dirent: Don't assume <dirent.h> exists.
[gnulib.git] / ChangeLog
1 2011-09-11  Bruno Haible  <bruno@clisp.org>
2
3         dirent: Don't assume <dirent.h> exists.
4         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
6         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
7         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
8
9 2011-09-11  Bruno Haible  <bruno@clisp.org>
10
11         Fix wint_t on MSVC.
12         * lib/wchar.in.h (wint_t): On MSVC, override it.
13         * lib/wctype.in.h (wint_t): Likewise.
14         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
15         MSVC.
16         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
17         * doc/posix-headers/wctype.texi: Likewise.
18
19 2011-09-11  Bruno Haible  <bruno@clisp.org>
20
21         sys_types: Fix typo.
22         * lib/sys_types.in.h: Fix typo in comment.
23         Reported by Paul Eggert.
24
25         Support for MSVC compiler: Ensure size_t gets defined.
26         * modules/strings (Depends-on): Add 'sys_types'.
27         * modules/sys_uio (Depends-on): Likewise.
28         * lib/sys_uio.in.h: Update comment.
29
30         C++ tests for module 'sys_types'.
31         * modules/sys_types-c++-tests: New file.
32         * tests/test-sys_types-c++.cc: New file.
33
34         Tests for module 'sys_types'.
35         * modules/sys_types-tests: New file.
36         * tests/test-sys_types.c: New file.
37
38         New module 'sys_types'.
39         * lib/sys_types.in.h: New file.
40         * m4/sys_types_h.m4: New file.
41         * modules/sys_types: New file.
42         * doc/posix-headers/sys_types.texi: Mention the new module and the
43         size_t problem on MSVC 9.
44
45 2011-09-11  Bruno Haible  <bruno@clisp.org>
46
47         Support for MSVC compiler: Avoid division by a literal 0.
48         * lib/math.in.h (NAN): Define through a function call also on MSVC.
49         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
50         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
51         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
52         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
53         * tests/infinity.h: New file.
54         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
55         on MSVC.
56         * tests/test-ceilf1.c: Include infinity.h.
57         (main): Use Infinityf.
58         * tests/test-ceil1.c: Include infinity.h.
59         (main): Use Infinityd.
60         * tests/test-ceill.c: Include infinity.h.
61         (main): Use Infinityl.
62         * tests/test-dprintf-posix.c: Include infinity.h.
63         (test_function): Use Infinityd.
64         * tests/test-floorf1.c: Include infinity.h.
65         (main): Use Infinityf.
66         * tests/test-floor1.c: Include infinity.h.
67         (main): Use Infinityd.
68         * tests/test-floorl.c: Include infinity.h.
69         (main): Use Infinityl.
70         * tests/test-fprintf-posix.c: Include infinity.h.
71         (test_function): Use Infinityd.
72         * tests/test-frexp.c: Include infinity.h.
73         (main): Use Infinityd.
74         * tests/test-frexpl.c: Include infinity.h.
75         (main): Use Infinityl.
76         * tests/test-isfinite.c: Include infinity.h.
77         (test_isfinitef): Use Infinityf.
78         (test_isfinited): Use Infinityd.
79         (test_isfinitel): Use Infinityl.
80         * tests/test-isinf.c: Include infinity.h.
81         (test_isinff): Use Infinityf.
82         (test_isinfd): Use Infinityd.
83         (test_isinfl): Use Infinityl.
84         * tests/test-isnan.c: Include infinity.h.
85         (test_float): Use Infinityf.
86         (test_double): Use Infinityd.
87         (test_long_double): Use Infinityl.
88         * tests/test-isnanf.h: Include infinity.h.
89         (main): Use Infinityf.
90         * tests/test-isnand.h: Include infinity.h.
91         (main): Use Infinityd.
92         * tests/test-isnanl.h: Include infinity.h.
93         (main): Use Infinityl.
94         * tests/test-ldexpl.c: Include infinity.h.
95         (main): Use Infinityl.
96         * tests/test-printf-posix.h: Include infinity.h.
97         (test_function): Use Infinityd.
98         * tests/test-roundf1.c: Include infinity.h.
99         (main): Use Infinityf.
100         * tests/test-round1.c: Include infinity.h.
101         (main): Use Infinityd.
102         * tests/test-roundl.c: Include infinity.h.
103         (main): Use Infinityl.
104         * tests/test-signbit.c: Include infinity.h.
105         (test_signbitf): Use Infinityf.
106         (test_signbitd): Use Infinityd.
107         (test_signbitl): Use Infinityl.
108         * tests/test-snprintf-posix.h: Include infinity.h.
109         (test_function): Use Infinityd, Infinityl.
110         * tests/test-sprintf-posix.h: Include infinity.h.
111         (test_function): Use Infinityd, Infinityl.
112         * tests/test-truncf1.c: Include infinity.h.
113         (main): Use Infinityf.
114         * tests/test-trunc1.c: Include infinity.h.
115         (main): Use Infinityd.
116         * tests/test-truncl.c: Include infinity.h.
117         (main): Use Infinityl.
118         * tests/test-vasnprintf-posix.c: Include infinity.h.
119         (test_function): Use Infinityd, Infinityl.
120         * tests/test-vasprintf-posix.c: Include infinity.h.
121         (test_function): Use Infinityd, Infinityl.
122         * modules/ceilf-tests (Files): Add tests/infinity.h.
123         * modules/ceil-tests (Files): Likewise.
124         * modules/ceill-tests (Files): Likewise.
125         * modules/dprintf-posix-tests (Files): Likewise.
126         * modules/floorf-tests (Files): Likewise.
127         * modules/floor-tests (Files): Likewise.
128         * modules/floorl-tests (Files): Likewise.
129         * modules/fprintf-posix-tests (Files): Likewise.
130         * modules/frexp-tests (Files): Likewise.
131         * modules/frexp-nolibm-tests (Files): Likewise.
132         * modules/frexpl-tests (Files): Likewise.
133         * modules/frexpl-nolibm-tests (Files): Likewise.
134         * modules/isfinite-tests (Files): Likewise.
135         * modules/isinf-tests (Files): Likewise.
136         * modules/isnan-tests (Files): Likewise.
137         * modules/isnanf-tests (Files): Likewise.
138         * modules/isnanf-nolibm-tests (Files): Likewise.
139         * modules/isnand-tests (Files): Likewise.
140         * modules/isnand-nolibm-tests (Files): Likewise.
141         * modules/isnanl-tests (Files): Likewise.
142         * modules/isnanl-nolibm-tests (Files): Likewise.
143         * modules/ldexpl-tests (Files): Likewise.
144         * modules/printf-posix-tests (Files): Likewise.
145         * modules/roundf-tests (Files): Likewise.
146         * modules/round-tests (Files): Likewise.
147         * modules/roundl-tests (Files): Likewise.
148         * modules/signbit-tests (Files): Likewise.
149         * modules/snprintf-posix-tests (Files): Likewise.
150         * modules/sprintf-posix-tests (Files): Likewise.
151         * modules/truncf-tests (Files): Likewise.
152         * modules/trunc-tests (Files): Likewise.
153         * modules/truncl-tests (Files): Likewise.
154         * modules/vasnprintf-posix-tests (Files): Likewise.
155         * modules/vasprintf-posix-tests (Files): Likewise.
156         * modules/vdprintf-posix-tests (Files): Likewise.
157         * modules/vfprintf-posix-tests (Files): Likewise.
158         * modules/vprintf-posix-tests (Files): Likewise.
159         * modules/vsnprintf-posix-tests (Files): Likewise.
160         * modules/vsprintf-posix-tests (Files): Likewise.
161         * modules/xprintf-posix-tests (Files): Likewise.
162
163 2011-09-11  Bruno Haible  <bruno@clisp.org>
164
165         Ensure pid_t gets defined.
166         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
167         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
168         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
169         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
170         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
171         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
172         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
173         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
174         * tests/test-fcntl-h.c: Check that pid_t is defined.
175         * tests/test-sched.c: Likewise.
176         * tests/test-termios.c: Likewise.
177         * tests/test-time.c: Likewise.
178         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
179         * doc/posix-headers/signal.texi: Likewise.
180         * doc/posix-headers/sys_types.texi: Likewise.
181         * doc/posix-headers/time.texi: Likewise.
182
183 2011-09-11  Bruno Haible  <bruno@clisp.org>
184
185         acl: Fix compilation on Solaris 10 (older version).
186         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
187         of ACE_EVERYONE.
188         * lib/set-mode-acl.c (qset_acl): Likewise.
189         Reported by Christian Jullien <eligis@orange.fr>.
190
191 2011-09-10  Bruno Haible  <bruno@clisp.org>
192
193         iconv, unsetenv: Add support for MSVC compiler.
194         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
195         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
196
197 2011-09-10  Bruno Haible  <bruno@clisp.org>
198
199         *printf: Add support for MSVC compiler.
200         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
201         handles the exception caused by the %n directive. When cross-compiling,
202         guess no on native Windows.
203         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
204         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
205         emulate it through vsnprintf.
206         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
207         * doc/posix-functions/dprintf.texi: Update documentation regarding
208         MSVC 9.
209         * doc/posix-functions/fprintf.texi: Likewise.
210         * doc/posix-functions/printf.texi: Likewise.
211         * doc/posix-functions/snprintf.texi: Likewise.
212         * doc/posix-functions/sprintf.texi: Likewise.
213         * doc/posix-functions/swprintf.texi: Likewise.
214         * doc/posix-functions/vdprintf.texi: Likewise.
215         * doc/posix-functions/vfprintf.texi: Likewise.
216         * doc/posix-functions/vprintf.texi: Likewise.
217         * doc/posix-functions/vsnprintf.texi: Likewise.
218         * doc/posix-functions/vsprintf.texi: Likewise.
219         * doc/glibc-functions/asprintf.texi: Likewise.
220         * doc/glibc-functions/obstack_printf.texi: Likewise.
221         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
222         * doc/glibc-functions/vasprintf.texi: Likewise.
223
224 2011-09-10  Bruno Haible  <bruno@clisp.org>
225
226         nocrash: Add support for native Windows.
227         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
228
229 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
230             Bruno Haible  <bruno@clisp.org>
231
232         absolute-header, include-next: Add support for MSVC compiler.
233         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
234         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
235         directory separator in #line directives.
236         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
237         recognize also backslash as directory separator in #line directives.
238
239 2011-09-08  Jim Meyering  <meyering@redhat.com>
240
241         maint.mk: mark the post-release commit log with "maint: " prefix
242         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
243         one-line commit-log summary.
244
245 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
246             Bruno Haible  <bruno@clisp.org>
247
248         Doc about crypt functions.
249         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
250         systems.
251         * doc/posix-functions/encrypt.texi: Likewise.
252         * doc/posix-functions/setkey.texi: Likewise.
253
254 2011-09-08  Simon Josefsson  <simon@josefsson.org>
255
256         * lib/gc.h: Fix copyright header.
257
258 2011-09-07  Bruno Haible  <bruno@clisp.org>
259
260         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
261         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
262         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
263
264 2011-09-07  Bruno Haible  <bruno@clisp.org>
265
266         openat: Work around compilation error with OSF/1 5.1 DTK cc.
267         * lib/fopen.c: Use different syntax for include of <stdio.h>.
268         * lib/freopen.c: Likewise.
269         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
270         * lib/lstat.c: Likewise.
271         * lib/stat.c: Likewise.
272         * lib/open.c: Use different syntax for include of <fcntl.h>.
273         * lib/openat.c: Include fcntl.h again, explicitly.
274
275 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
276
277         parse-datetime: document the newly accepted format
278         * doc/parse-datetime.texi (Combined date and time of day items):
279         New section.
280
281 2011-09-06  Bruno Haible  <bruno@clisp.org>
282
283         acl: Fix a test failure on newer Solaris 10 with ZFS.
284         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
285         ENOSYS as no ACL.
286         Reported by Jim Meyering.
287
288 2011-09-06  Bruno Haible  <bruno@clisp.org>
289
290         acl: Update for AIX >= 5.3 with NFS.
291         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
292         ENOSYS as no ACL.
293
294         acl: Fix a test failure on AIX >= 5.3 with NFS.
295         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
296         as no ACL.
297
298 2011-09-06  Bruno Haible  <bruno@clisp.org>
299
300         acl: Fix a test failure on IRIX 6.5 with NFS.
301         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
302         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
303         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
304         * lib/copy-acl.c (qcopy_acl): Likewise.
305
306 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
307
308         openat: port to AIX 7.1 with large files
309         AIX 7.1 does a "#define openat open64at" if large files are in use,
310         so we can't simply #undef openat.  Use the orig_openat trick (similar
311         to orig_open in lib/open.c) to work around the problem.  Problem
312         reported by Kevin Brott for GNU tar, in the thread containing
313         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
314         * lib/openat.c (__need_system_fcntl_h): Define first.
315         Include <fcntl.h> and <sys/types.h> before undefining.
316         (orig_openat) [HAVE_OPENAT]: New inline function.
317         (openat) [HAVE_OPENAT]: Do not undef.
318         (rpl_openat): Use orig_openat, not openat.
319
320 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
321             Bruno Haible  <bruno@clisp.org>
322
323         acl: Avoid errors on NonStop Kernel.
324         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
325         ENOTSUP errors.
326
327 2011-09-05  Bruno Haible  <bruno@clisp.org>
328
329         acl: Clean up Solaris code.
330         * lib/acl-internal.h: Remove no-op #if.
331         * lib/file-has-acl.c: Likewise.
332         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
333         * lib/copy-acl.c (qcopy_acl): Likewise.
334
335 2011-09-05  Bruno Haible  <bruno@clisp.org>
336
337         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
338         binaries built on the original Solaris 10.
339         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
340         trivial.
341
342 2011-09-05  Bruno Haible  <bruno@clisp.org>
343
344         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
345         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
346         10.
347         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
348         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
349         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
350         instead of acl_get, facl_get, acl_set, facl_set.
351
352 2011-09-05  Bruno Haible  <bruno@clisp.org>
353
354         copy-file: Try unit tests on more file systems.
355         * tests/test-copy-file-1.sh: New file.
356         * tests/test-copy-file-2.sh: New file.
357         * modules/copy-file-tests (Files): Add them.
358         (Makefile.am): Add them to TESTS.
359
360         acl: Try unit tests on more file systems.
361         * tests/test-file-has-acl-1.sh: New file.
362         * tests/test-file-has-acl-2.sh: New file.
363         * tests/test-set-mode-acl-1.sh: New file.
364         * tests/test-set-mode-acl-2.sh: New file.
365         * tests/test-copy-acl-1.sh: New file.
366         * tests/test-copy-acl-2.sh: New file.
367         * modules/acl-tests (Files): Add them.
368         (Makefile.am): Add them to TESTS.
369
370 2011-09-04  Bruno Haible  <bruno@clisp.org>
371
372         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
373         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
374         10.
375         (OLD_ALLOW, OLD_DENY): New macros.
376         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
377         ACE_ACCESS_ALLOWED_ACE_TYPE.
378         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
379         ACE_ACCESS_DENIED_ACE_TYPE.
380         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
381         (NEW_ACE_EXECUTE): Fix value.
382         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
383         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
384         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
385         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
386         NEW_ACE_SYNCHRONIZE): New macros.
387         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
388         instead of acl_fromtext, acl_set, facl_set.
389         Fixes a coreutils/tests/cp/perm failure.
390
391 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
392
393         openat: test for fstatat (..., 0) bug
394         Further testing with tar suggests that fstatat (..., 0)
395         does not work in general, on AIX 7.1; see
396         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
397         So, give up entirely on AIX 7.1's fstatat, and fall back on our
398         replacement fstatat (which is what older AIX releases were using
399         anyway).
400         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
401         use is now changed to orig_fstatat.  This was probably the right
402         thing to do anyway.
403         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
404         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
405         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
406         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
407         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
408         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
409         if the bug is found.
410
411         openat: test for fstatat (AT_FDCWD, ..., 0) bug
412         This tests for another fstatat bug on AIX 7.1:
413         fstatat (AT_FDCWD, ..., 0) does not work.  See
414         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
415         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
416         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
417         (rpl_fstatat): Adjust so that it works around either (or both)
418         bugs if present.
419         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
420
421 2011-09-03  Karl Berry  <karl@gnu.org>
422
423         * doc/regex.texi (Character Class Operators): Avoid literal ":"
424         in index entries.
425
426 2011-09-02  Bruno Haible  <bruno@clisp.org>
427
428         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
429         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
430         values of AR, ARFLAGS, RANLIB.
431         Reported by John W. Eaton <jwe@gnu.org> for Octave.
432
433 2011-09-02  Bruno Haible  <bruno@clisp.org>
434
435         Find 'ar' program that fits with --host argument.
436         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
437
438 2011-09-02  Bruno Haible  <bruno@clisp.org>
439
440         tests: init.sh: Support any non-GNU diff.
441         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
442         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
443         Solaris 8.
444
445 2011-09-02  Bruno Haible  <bruno@clisp.org>
446
447         tests: init.sh: work also with any non-GNU diff that supports -u
448         * tests/init.sh: Relax check for diff -u support.
449         Rather than checking for GNU diff via --version, simply check
450         for support for -u itself.  Useful at least on OpenBSD 4.9,
451         AIX 7.1, IRIX 6.5, and Solaris 10.
452
453 2011-09-01  Bruno Haible  <bruno@clisp.org>
454
455         strtoimax, strtoumax: Document problem on HP-UX 11.
456         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
457         * doc/posix-functions/strtoumax.texi: Likewise.
458
459 2011-09-01  Bruno Haible  <bruno@clisp.org>
460
461         strtoumax: Avoid link error on OSF/1 with DTK cc.
462         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
463         defined as a function.
464         * modules/strtoumax (Depends-on, configure.ac): Test only whether
465         strtoumax is defined, not whether it is declared.
466
467 2011-09-01  Bruno Haible  <bruno@clisp.org>
468
469         strtoimax: Avoid link error on OSF/1 with DTK cc.
470         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
471         defined as a function.
472         * modules/strtoimax (Depends-on, configure.ac): Test only whether
473         strtoimax is defined, not whether it is declared.
474
475 2011-09-01  Bruno Haible  <bruno@clisp.org>
476
477         imaxdiv: Avoid link error on OSF/1 with DTK cc.
478         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
479         as a function.
480         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
481         whether it is declared.
482
483 2011-09-01  Bruno Haible  <bruno@clisp.org>
484
485         imaxabs: Avoid link error on OSF/1 with DTK cc.
486         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
487         as a function.
488         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
489         whether it is declared.
490
491 2011-09-01  Bruno Haible  <bruno@clisp.org>
492
493         Tests for module 'strtoumax'.
494         * modules/strtoumax-tests: New file.
495         * tests/test-strtoumax.c: New file.
496
497         Tests for module 'strtoimax'.
498         * modules/strtoimax-tests: New file.
499         * tests/test-strtoimax.c: New file.
500
501         Tests for module 'imaxdiv'.
502         * modules/imaxdiv-tests: New file.
503         * tests/test-imaxdiv.c: New file.
504
505         Tests for module 'imaxabs'.
506         * modules/imaxabs-tests: New file.
507         * tests/test-imaxabs.c: New file.
508
509 2011-09-01  Bruno Haible  <bruno@clisp.org>
510
511         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
512         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
513         pthread_create.
514
515 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
516
517         openat: work around AIX 7.1 fstatat issue
518         This should fix the problem that was not properly fixed
519         in the previous change, dated 2011-08-30.
520         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
521         __need_system_stat_h defined.
522         (orig_fstatat) [HAVE_FSTATAT]: New function.
523         (rpl_fstatat): Go back to the old way of doing things,
524         except call orig_fstatat instead of fstatat.
525         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
526         Remove unnecessary check whether fstatat fills in st_size etc.
527
528 2011-09-01  Bruno Haible  <bruno@clisp.org>
529
530         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
531         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
532         just include the system's header.
533
534 2011-08-31  Jim Meyering  <meyering@redhat.com>
535
536         tests: avoid spurious assertion failure in test-float.c on ppc64
537         * tests/test-float.c (test_long_double): Comment out an assertion,
538         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
539         with gcc-4.4.4.
540
541         maint: indent with spaces, not TABs
542         I need to get in the habit of running gnulib's "make check".
543         Both of these would have been caught.
544         * m4/largefile.m4: Indent with spaces, not TABs.
545         * lib/parse-datetime.y (iso_8601_time): Likewise.
546         Spotted by Pádraig Brady.
547
548         test-parse-datetime.c: accommodate a relatively strict gcc warning
549         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
550         to avoid a warning from gcc's -Werror=missing-declarations.
551         Insert a few spaces-before-funcall-parenthesis.
552
553 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
554
555         parse-datetime: accept ISO 8601 date and time rep with "T" separator
556         The parser now accepts ISO 8601 date-time strings with "T" as the
557         separator.  It has long parsed dates like "2004-02-29 16:21:42"
558         with a space between the date and time strings.  Now it also parses
559         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
560         variants like "2004-02-29T16:21:42.333-07:00"
561         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
562         of day representation using the 'T' separator character.
563         * doc/parse-datetime.texi (General date syntax): replace use of
564         deprecated --iso-8601 option with --rfc-3339 in example of date
565         command output formats that can be parsed.
566         * tests/test-parse-datetime.c (tm_diff): New function, taken from
567         lib/parse-datetime.y.
568         (gmt_offset): New function.
569         (main): Add additional test cases to validate ISO8601 extended
570         date and time of day parsing.
571
572 2011-08-31  Bruno Haible  <bruno@clisp.org>
573
574         freopen: Documentation.
575         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
576         name.
577         Reported by Claudio Bley <claudio.bley@gmail.com>.
578
579 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
580
581         freopen: Don't crash if the filename argument is NULL.
582         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
583         NULL.
584
585 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
586
587         openat: work around AIX 7.1 fstatat bug
588         Problem reported by Kevin Brott for GNU tar, in the thread containing
589         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
590         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
591         FSTATAT_ST_SIZE_ETC_BROKEN.
592         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
593         rpl_fstatat.
594         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
595         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
596         AC_CHECK_FUNCS_ONCE for fstatat.
597         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
598         fchmodat, mkdirat, openat and unlinkat.
599
600 2011-08-30  Bruno Haible  <bruno@clisp.org>
601
602         Avoid endless recursions if config.h includes some header files.
603         * lib/fopen.c (__need_FILE): Define already before including config.h.
604         * lib/freopen.c (__need_FILE): Likewise.
605         * lib/open.c (__need_system_fcntl_h): Likewise.
606         * lib/stat.c (__need_system_sys_stat_h): Likewise.
607         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
608         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
609
610 2011-08-25  Karl Berry  <karl@gnu.org>
611
612         * config/srclist.txt (ylwrap): new try.
613         * build-aux/ylwrap: new file.
614
615 2011-08-23  Bruno Haible  <bruno@clisp.org>
616
617         tmpdir: Use a good default directory on native Windows.
618         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
619         (P_tmpdir): Default to _P_tmpdir on native Windows.
620         (path_search): On native Windows, try the value returned by GetTempPath
621         before trying P_tmpdir.
622         * modules/tmpdir (Depends-on): Add pathmax.
623         Suggested by John Darrington <john@darrington.wattle.id.au>.
624
625 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
626
627         doc: fix typo in README-release
628         * top/README-release: Capitalize first word of a sentence.
629
630 2011-08-19  Jim Meyering  <meyering@redhat.com>
631
632         fts: do not exhaust memory when processing million-entry directories
633         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
634         directory would require about 256*N bytes of memory.  Thus, it was
635         easy to construct a directory too large to be processed by any of
636         those tools.  With this change, fts' maximum memory utilization is
637         now limited to around 30MB.
638         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
639         (fts_read): When we've processed the final entry (i.e., when
640         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
641         using the parent entry to read any remaining entries.  Dispatch
642         depending on what fts_build returns:
643         - NULL+stop, aka failure: stop
644         - NULL otherwise: move up in the dir hierarchy
645         - non-NULL: handle this new entry
646         (fts_build): Declare and use new local, continue_readdir.
647         Prepare to be called from fts_read, when the entries
648         from a partially-read directory have just been exhausted.
649         In that case, we'll skip the opendir and instead use the parent's
650         fts_dirp and derive dir_fd from that.
651         Finally, in the readdir loop, if we read max_entries entries,
652         exit the loop ensuring *not* to call closedir.  This is required
653         so that fts_dirp can be reused on a subsequent call.
654         Prompted by Ben England's report of memory exhaustion in find
655         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
656
657         maint: fts: move decl of `dp' down into while loop; split a long line
658         * lib/fts.c (fts_build): No semantic change.
659
660         fts: add/use new struct member, fts_dirp
661         We are about to use this to manage any directory with
662         too many entries to read all of them into memory at once.
663         To do that, we'll need to save the DIR* pointer in each
664         affected FTSENT struct.
665         * lib/fts_.h: Include <dirent.h>.
666         (struct FTSENT) [fts_dirp]: New member.
667         * lib/fts.c (closedir_and_clear): Define.
668         Use it in place of closedir so that we are sure to
669         clear the new fts_dirp member when done with it.
670         (fts_alloc): Initialize the new member.
671         (fts_lfree): Free, if needed.
672
673         maint: fts: give __opendir2 a new parameter and rename
674         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
675         than surreptitiously using sole caller's "dir_fd".
676         (fts_opendir): Rename from __opendir2.
677
678         maint: fts.c: remove __opendir2's now-unused parameter, oflag
679         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
680
681         maint: fts.c: correct off-by-one indentation
682         * lib/fts.c (fts_build): Correct indentation, change style
683         of a couple of block comments, and bracing style.
684
685         maint: fts.c: move __opendir2 #define "up" out of function body
686         * lib/fts.c (__opendir2): Move "up".  No semantic change.
687
688         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
689         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
690         out for a long time and besides was useful only on BSD systems.
691
692 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
693
694         regex: port to Stratus OpenVOS
695         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
696         define to empty, rather than attempting nonportable optimizations.
697         Problem reported by Paul Green in:
698         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
699         and fix suggested by Eric Blake in:
700         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
701
702 2011-08-17  Eric Blake  <eblake@redhat.com>
703
704         getcwd: fix test failures on mingw
705         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
706         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
707         test if long directory cannot be created, and allow mingw errno.
708
709         getcwd-lgpl: fix m4 to match relaxed test for BSD
710         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
711         (gl_FUNC_GETCWD_SIGNATURE): New macro.
712         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
713         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
714         signature problem.
715
716         getcwd: fix compilation on mingw64
717         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
718         getcwd.
719         Reported by Marc-André Lureau.
720
721         pipe2: silence compiler warning
722         * lib/pipe2.c (pipe2): Hide label if it is not used.
723
724 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
725
726         relocatable-prog: fix link error
727         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
728         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
729         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
730         into modules/relocatable-lib without noticing that
731         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
732         also needs to build relocatable.c.
733
734 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
735
736         getaddrinfo: fix sh typo in gai_strerrorA decl checking
737         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
738         shell code: it contained a 'break' that was not in a loop.
739         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
740         via a shell-language loop; this may have been true in old Autoconf
741         versions, but it's not true in Autoconf 2.68.  I found this bug
742         when testing coreutils git on Solaris 8, whose shell complains
743         about the syntax error.
744
745 2011-08-12  Simon Josefsson  <simon@josefsson.org>
746
747         * lib/base64.c: Fix comment to reference RFC 4648.
748         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
749         <gvtulder@gmail.com>.
750
751 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
752
753         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
754
755         po/Makefile.in.in: fix make -q problem
756         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
757         rule, since there's no file named 'check-macro-version' and its
758         use as a file breaks make -q.
759         (all): Don't depend on check-macro-version.
760         (CHECK_MACRO_VERSION): New macro.
761         (stamp-po): Use it.
762
763         configmake: fix make -q problem
764         * modules/configmake (configmake.h): Update configmake.h's time stamp
765         even if the file does not change.  Otherwise, 'make -q' fails.
766         Problem reported by Simon Josefsson in
767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
768
769 2011-08-11  Jim Meyering  <meyering@redhat.com>
770
771         git-version-gen: correct the advice in a comment
772         * build-aux/git-version-gen: Correct comment.
773         Don't recommend to list .tarball-version in .gitignore.
774
775 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
776
777         base64: fix off-by-one buffer size bug
778         Problem and (trivial) fix reported by Gijs van Tulder in
779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
780         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
781         * tests/test-base64.c (main): Catch the bug.
782
783 2011-08-10  Eric Blake  <eblake@redhat.com>
784
785         closein: correct comments
786         * lib/closein.c (close_stdin): Improve comments.
787
788 2011-08-09  Bruno Haible  <bruno@clisp.org>
789
790         More tests for 'fseeko'.
791         * tests/test-fseeko3.c: New file, from Eric Blake.
792         * tests/test-fseeko3.sh: New file.
793         * modules/fseeko-tests (Files): Add them.
794         (TESTS): Add test-fseeko3.sh.
795         (check_PROGRAMS): Add test-fseeko3.
796
797 2011-08-09  Eric Blake  <eblake@redhat.com>
798
799         fseeko: remove unneeded hack
800         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
801
802         fseeko: fix bug on glibc
803         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
804         Reported by John W. Eaton.
805
806 2011-08-08  Bruno Haible  <bruno@clisp.org>
807
808         unictype/base: Fix interoperability with preinstalled libunistring.
809         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
810         Reported by Simon Josefsson.
811
812 2011-08-08  Bruno Haible  <bruno@clisp.org>
813
814         iswblank: Detect declaration correctly.
815         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
816         AC_CHECK_DECLS invocation.
817
818 2011-08-08  Bruno Haible  <bruno@clisp.org>
819
820         tcgetsid: Detect declaration correctly.
821         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
822         AC_CHECK_DECLS invocation.
823         Reported by Simon Josefsson.
824
825 2011-08-08  Eric Blake  <eblake@redhat.com>
826
827         largefile: fix typo that regressed large file support
828         * modules/largefile (configure.ac-early): Fix section name.
829
830 2011-08-06  Karl Berry  <karl@gnu.org>
831
832         * MODULES.html.sh (func_all_files): _Noreturn is no longer
833         a separate module.
834
835 2011-08-05  Simon Josefsson  <simon@josefsson.org>
836
837         openat: Fix warnings and commens when building unlinkat.c on Hurd.
838         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
839         get prototype for free.
840
841 2011-08-04  Bruno Haible  <bruno@clisp.org>
842
843         Tests for module 'pathmax'.
844         * modules/pathmax-tests: New file.
845         * tests/test-pathmax.c: New file.
846
847         canonicalize-lgpl: Support larger filenames on the Hurd.
848         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
849         Reported by Paul Eggert.
850
851         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
852         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
853         * lib/chdir-long.h: Include pathmax.h.
854         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
855         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
856         (PATH_MAX): Remove code that is done by pathmax.h.
857         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
858         * lib/tmpfile.c: Add a comment.
859         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
860         * modules/chdir-long (Depends-on): Add pathmax.
861         * modules/getcwd (Depends-on): Add pathmax.
862         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
863         is not defined.
864         * doc/posix-headers/limits.texi: Mention the pathmax module.
865         * NEWS: Mention the change.
866
867 2011-08-02  Bruno Haible  <bruno@clisp.org>
868
869         pthread_sigmask: Actually use results of gl_THREADLIB.
870         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
871         gl_THREADLIB, not gl_[]THREADLIB.
872         Reported by Eric Blake.
873
874 2011-08-02  Jim Meyering  <meyering@redhat.com>
875
876         maint.mk: relax the default _gl_TS_function_match regexp
877         * top/maint.mk (_gl_TS_function_match): Don't require at least one
878         space between function name and "(" in an "extern" declaration.
879         That would fail to match a decl with no space there: extern void foo();
880
881 2011-07-31  Iain Nicol  <iain@thenicols.net>
882
883         git-version-gen: document that EXTRA_DIST must include .version
884         * build-aux/git-version-gen: In the how-to-use comment, document
885         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
886         will fail when run from an unpacked distribution tarball.
887
888 2011-08-01  Bruno Haible  <bruno@clisp.org>
889
890         wctype-h: Fix last change.
891         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
892         REPLACE_TOWLOWER to 0.
893         Reported by Sam Steingold <sds@gnu.org>.
894
895 2011-07-31  Bruno Haible  <bruno@clisp.org>
896
897         frexpl: Update autoconf test.
898         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
899         according to changes of 2011-06-20.
900
901 2011-07-31  Bruno Haible  <bruno@clisp.org>
902
903         sys_utsname: Add support for Minix.
904         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
905         <sys/utsname.h>.
906         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
907         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
908
909 2011-07-31  Bruno Haible  <bruno@clisp.org>
910
911         strings: Add support for Minix.
912         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
913         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
914         * doc/posix-headers/strings.texi: Document the Minix problem.
915
916 2011-07-31  Bruno Haible  <bruno@clisp.org>
917
918         wctype-h: Add support for Minix.
919         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
920         REPLACE_TOWLOWER.
921         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
922         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
923         REPLACE_ISWCNTRL.
924
925 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
926
927         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
928         This is a performance improvement for 64-bit hosts: it causes the
929         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
930
931 2011-07-31  Bruno Haible  <bruno@clisp.org>
932
933         stdioext: Add support for Minix.
934         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
935         * lib/fpurge.c (fpurge): Likewise.
936         * lib/freadahead.c (freadahead): Likewise.
937         * lib/freadable.c (freadable): Likewise.
938         * lib/freading.c (freading): Likewise.
939         * lib/freadptr.c (freadptr): Likewise.
940         * lib/freadseek.c (freadptrinc): Likewise.
941         * lib/fseeko.c (rpl_fseeko): Likewise.
942         * lib/fseterr.c (fseterr): Likewise.
943         * lib/fwritable.c (fwritable): Likewise.
944         * lib/fwriting.c (fwriting): Likewise.
945         * lib/fflush.c (clear_ungetc_buffer): Update comment.
946         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
947
948 2011-07-31  Bruno Haible  <bruno@clisp.org>
949
950         errno: Port to Minix.
951         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
952         ECONNABORTED are defined.
953         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
954         GNULIB_defined_ECONNABORTED): New macros.
955         * lib/strerror-override.h (strerror_override): Test also
956         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
957         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
958         ECONNABORTED.
959         * doc/posix-headers/errno.texi: Mention the Minix problem.
960
961 2011-07-31  Bruno Haible  <bruno@clisp.org>
962
963         Work around declaration collisions on Minix.
964         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
965         defined, set REPLACE_MBSINIT.
966         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
967         defined, set REPLACE_MBRTOWC.
968         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
969         set REPLACE_MBRLEN.
970         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
971         defined, set REPLACE_MBSRTOWCS.
972         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
973         defined, set REPLACE_WCRTOMB.
974         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
975         defined, set REPLACE_WCSRTOMBS.
976
977 2011-07-31  Bruno Haible  <bruno@clisp.org>
978
979         Add support for Minix with ACK compiler.
980         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
981         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
982         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
983
984 2011-07-31  Bruno Haible  <bruno@clisp.org>
985
986         Documentation about Minix.
987         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
988         * doc/glibc-headers/*.texi: Likewise.
989         * doc/posix-functions/*.texi: Likewise.
990         * doc/glibc-functions/*.texi: Likewise.
991
992 2011-07-31  Bruno Haible  <bruno@clisp.org>
993
994         snippet/warn-on-use: Fix indentation.
995         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
996
997 2011-07-25  Jim Meyering  <meyering@redhat.com>
998
999         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1000         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1001         commands.
1002
1003 2011-07-27  Jim Meyering  <meyering@redhat.com>
1004
1005         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1006         * top/maint.mk (gl_extract_significant_defines_): Now that
1007         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1008         gnulib/lib/signal.in.h, and now that we recommend to
1009         define-if-undefined those two symbols in application code,
1010         we must filter them out of the "significant" list.
1011         This avoids a "make syntax-check" failure in coreutils.
1012
1013 2011-07-26  Eric Blake  <eblake@redhat.com>
1014
1015         warnings: add comments about previous patch
1016         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1017         * m4/include_next.m4: Likewise.
1018         * m4/warn-on-use.m4: Likewise.
1019         * m4/warnings.m4: Likewise, and simplify use.
1020         Suggested by Stefano Lattarini.
1021
1022         include-next, warnings: support older autoconf
1023         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1024         AS_VAR_PUSHDEF in a way that works with older autoconf.
1025         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1026         Reported by Daniel P. Berrange.
1027
1028 2011-07-25  Bruno Haible  <bruno@clisp.org>
1029
1030         fseek, ftell: Fix doc.
1031         * doc/posix-functions/fseek.texi: Reword statement about
1032         AC_SYS_LARGEFILE.
1033         * doc/posix-functions/ftell.texi: Likewise.
1034
1035 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1036             Bruno Haible  <bruno@clisp.org>
1037
1038         Add dependencies to the 'largefile' module.
1039         * modules/fopen (Depends-on): Add 'largefile'.
1040         * modules/freopen (Depends-on): Likewise.
1041         * modules/fseeko (Depends-on): Likewise.
1042         * modules/ftello (Depends-on): Likewise.
1043         * modules/glob (Depends-on): Likewise.
1044         * modules/lseek (Depends-on): Likewise.
1045         * modules/lstat (Depends-on): Likewise.
1046         * modules/mkostemp (Depends-on): Likewise.
1047         * modules/mkostemps (Depends-on): Likewise.
1048         * modules/mkstemp (Depends-on): Likewise.
1049         * modules/mkstemps (Depends-on): Likewise.
1050         * modules/open (Depends-on): Likewise.
1051         * modules/openat (Depends-on): Likewise.
1052         * modules/pread (Depends-on): Likewise.
1053         * modules/pwrite (Depends-on): Likewise.
1054         * modules/scandir (Depends-on): Likewise.
1055         * modules/stat (Depends-on): Likewise.
1056         * modules/tmpfile (Depends-on): Likewise.
1057         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1058         since the containing module now depends on the largefile module.
1059         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1060         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1061         off_t is fixed by gnulib.
1062         * doc/posix-functions/freopen.texi: Likewise.
1063         * doc/posix-functions/fseeko.texi: Likewise.
1064         * doc/posix-functions/fstatat.texi: Likewise.
1065         * doc/posix-functions/ftello.texi: Likewise.
1066         * doc/posix-functions/glob.texi: Likewise.
1067         * doc/posix-functions/lseek.texi: Likewise.
1068         * doc/posix-functions/lstat.texi: Likewise.
1069         * doc/posix-functions/mkstemp.texi: Likewise.
1070         * doc/posix-functions/open.texi: Likewise.
1071         * doc/posix-functions/openat.texi: Likewise.
1072         * doc/posix-functions/pread.texi: Likewise.
1073         * doc/posix-functions/pwrite.texi: Likewise.
1074         * doc/posix-functions/scandir.texi: Likewise.
1075         * doc/posix-functions/stat.texi: Likewise.
1076         * doc/posix-functions/tmpfile.texi: Likewise.
1077         * doc/glibc-functions/mkostemp.texi: Likewise.
1078         * doc/glibc-functions/mkostemps.texi: Likewise.
1079         * doc/glibc-functions/mkstemps.texi: Likewise.
1080
1081 2011-07-25  Bruno Haible  <bruno@clisp.org>
1082
1083         fcntl: Move AC_LIBOBJ invocation to module description.
1084         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1085         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1086
1087         fcntl: Remove call-in from fchdir.m4.
1088         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1089         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1090
1091         dup3: Remove potential call-in from fchdir.m4.
1092         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1093         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1094
1095         dup2: Move AC_LIBOBJ invocation to module description.
1096         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1097         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1098         Don't invoke AC_LIBOBJ.
1099         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1100
1101         dup2: Remove call-in from fchdir.m4.
1102         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1103         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1104
1105         fclose: Move AC_LIBOBJ invocation to module description.
1106         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1107         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1108         to 1.
1109         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1110
1111         fclose: Remove call-in from close.m4.
1112         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1113         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1114
1115         close: Move AC_LIBOBJ invocation to module description.
1116         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1117         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1118         1.
1119         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1120
1121         close: Remove call-in from fchdir.m4.
1122         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1123         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1124
1125         open: Move AC_LIBOBJ invocation to module description.
1126         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1127         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1128         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1129
1130         open: Remove call-in from fchdir.m4.
1131         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1132         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1133
1134         fchdir: Start to remove gl_REPLACE_* idiom.
1135         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1136         (gl_FUNC_FCHDIR): Invoke it.
1137
1138 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1139
1140         * lib/ftell.c (ftell): Comment out cast.
1141
1142         close: use gl_REPLACE_FCLOSE only if defined
1143         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
1144         is defined.  The close module doesn't depend on the fclose module
1145         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
1146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
1147         I reproduced the problem with "./gnulib-tool --test close sys_socket".
1148
1149 2011-07-24  Jim Meyering  <meyering@redhat.com>
1150
1151         test-select.h: avoid warning when using gcc's -Wmissing-declarations
1152         * tests/test-select.h (test_function): Declare as "static".
1153
1154 2011-07-24  Bruno Haible  <bruno@clisp.org>
1155
1156         doc: Mention the effects of AC_SYS_LARGEFILE.
1157         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
1158         on this function.
1159         * doc/posix-functions/aio_error.texi: Likewise.
1160         * doc/posix-functions/aio_fsync.texi: Likewise.
1161         * doc/posix-functions/aio_read.texi: Likewise.
1162         * doc/posix-functions/aio_return.texi: Likewise.
1163         * doc/posix-functions/aio_suspend.texi: Likewise.
1164         * doc/posix-functions/aio_write.texi: Likewise.
1165         * doc/posix-functions/fgetpos.texi: Likewise.
1166         * doc/posix-functions/fopen.texi: Likewise.
1167         * doc/posix-functions/freopen.texi: Likewise.
1168         * doc/posix-functions/fsetpos.texi: Likewise.
1169         * doc/posix-functions/fstatvfs.texi: Likewise.
1170         * doc/posix-functions/ftruncate.texi: Likewise.
1171         * doc/posix-functions/ftw.texi: Likewise.
1172         * doc/posix-functions/getrlimit.texi: Likewise.
1173         * doc/posix-functions/glob.texi: Likewise.
1174         * doc/posix-functions/lio_listio.texi: Likewise.
1175         * doc/posix-functions/lockf.texi: Likewise.
1176         * doc/posix-functions/mkstemp.texi: Likewise.
1177         * doc/posix-functions/mmap.texi: Likewise.
1178         * doc/posix-functions/nftw.texi: Likewise.
1179         * doc/posix-functions/openat.texi: Likewise.
1180         * doc/posix-functions/opendir.texi: Likewise.
1181         * doc/posix-functions/posix_fadvise.texi: Likewise.
1182         * doc/posix-functions/posix_fallocate.texi: Likewise.
1183         * doc/posix-functions/pread.texi: Likewise.
1184         * doc/posix-functions/pwrite.texi: Likewise.
1185         * doc/posix-functions/readdir.texi: Likewise.
1186         * doc/posix-functions/readdir_r.texi: Likewise.
1187         * doc/posix-functions/rewinddir.texi: Likewise.
1188         * doc/posix-functions/scandir.texi: Likewise.
1189         * doc/posix-functions/seekdir.texi: Likewise.
1190         * doc/posix-functions/setrlimit.texi: Likewise.
1191         * doc/posix-functions/statvfs.texi: Likewise.
1192         * doc/posix-functions/telldir.texi: Likewise.
1193         * doc/posix-functions/tmpfile.texi: Likewise.
1194         * doc/posix-functions/truncate.texi: Likewise.
1195         * doc/glibc-functions/fallocate.texi: Likewise.
1196         * doc/glibc-functions/fstatfs.texi: Likewise.
1197         * doc/glibc-functions/fts_children.texi: Likewise.
1198         * doc/glibc-functions/fts_read.texi: Likewise.
1199         * doc/glibc-functions/getdirentries.texi: Likewise.
1200         * doc/glibc-functions/mkostemp.texi: Likewise.
1201         * doc/glibc-functions/mkostemps.texi: Likewise.
1202         * doc/glibc-functions/mkstemps.texi: Likewise.
1203         * doc/glibc-functions/preadv.texi: Likewise.
1204         * doc/glibc-functions/pwritev.texi: Likewise.
1205         * doc/glibc-functions/sendfile.texi: Likewise.
1206         * doc/glibc-functions/statfs.texi: Likewise.
1207
1208 2011-07-24  Bruno Haible  <bruno@clisp.org>
1209
1210         doc: Fix typo.
1211         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
1212
1213 2011-07-24  Bruno Haible  <bruno@clisp.org>
1214
1215         doc: Mention fsusage.
1216         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
1217
1218 2011-07-24  Bruno Haible  <bruno@clisp.org>
1219
1220         doc: Mention new glibc headers and functions.
1221         * doc/glibc-headers/gshadow.texi: New file.
1222         * doc/glibc-functions/endsgent.texi: New file.
1223         * doc/glibc-functions/fgetsgent.texi: New file.
1224         * doc/glibc-functions/fgetsgent_r.texi: New file.
1225         * doc/glibc-functions/getsgent.texi: New file.
1226         * doc/glibc-functions/getsgent_r.texi: New file.
1227         * doc/glibc-functions/getsgnam.texi: New file.
1228         * doc/glibc-functions/getsgnam_r.texi: New file.
1229         * doc/glibc-functions/putsgent.texi: New file.
1230         * doc/glibc-functions/setsgent.texi: New file.
1231         * doc/glibc-functions/sgetsgent.texi: New file.
1232         * doc/glibc-functions/sgetsgent_r.texi: New file.
1233         * doc/glibc-functions/malloc_info.texi: New file.
1234         * doc/glibc-functions/preadv.texi: New file.
1235         * doc/glibc-functions/pwritev.texi: New file.
1236         * doc/glibc-functions/register_printf_modifier.texi: New file.
1237         * doc/glibc-functions/register_printf_specifier.texi: New file.
1238         * doc/glibc-functions/register_printf_type.texi: New file.
1239         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
1240         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
1241         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
1242         * doc/glibc-functions/pthread_getname_np.texi: New file.
1243         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
1244         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
1245         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
1246         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
1247         * doc/glibc-functions/pthread_setname_np.texi: New file.
1248         * doc/glibc-functions/pthread_sigqueue.texi: New file.
1249         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
1250         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
1251         * doc/glibc-functions/qsort_r.texi: New file.
1252         * doc/glibc-functions/quick_exit.texi: New file.
1253         * doc/glibc-functions/syncfs.texi: New file.
1254         * doc/gnulib.texi: Include them.
1255         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
1256         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
1257         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
1258         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1259         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1260         * doc/glibc-functions/execvpe.texi: Likewise.
1261
1262 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1263
1264         ftell: don't include <unistd.h>
1265         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
1266         guaranteed to define off_t, and the ftell module depends on the
1267         stdio module.
1268
1269         ftell: do not assume wraparound signed arithmetic
1270         * lib/ftell.c: Include <limits.h>.
1271         (ftell): Don't assume wraparound signed arithmetic.
1272
1273 2011-07-24  Bruno Haible  <bruno@clisp.org>
1274
1275         close: No longer depend on module 'fclose'.
1276         * modules/close (Depends-on): Remove fclose.
1277         * NEWS: Mention the change.
1278         Suggested by Sam Steingold <sds@gnu.org>.
1279
1280 2011-07-24  Bruno Haible  <bruno@clisp.org>
1281
1282         fsusage: Enable large volume support on AIX >= 5.2.
1283         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1284         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1285         instead of STAT_STATVFS.
1286         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1287
1288         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1289         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1290         f_blocks field only on MacOS X.
1291
1292         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1293         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1294         * modules/fsusage (Depends-on): Add largefile.
1295
1296 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1297
1298         * README: Modernize discussion of signed integers.
1299         Assuming overflow wraparound is no longer safe.
1300         Mention ones' complement and signed magnitude.
1301
1302 2011-07-22  Bruno Haible  <bruno@clisp.org>
1303
1304         select tests, pselect tests: Refactor.
1305         * tests/test-select.h: New file, extracted from tests/test-select.c.
1306         (select_fn): New type.
1307         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1308         test_connect_first, test_accept_first, test_pair, test_socket_pair,
1309         test_pipe): Add my_select argument.
1310         (test_function): Renamed from main. Add my_select argument.
1311         * tests/test-select.c: Move most code to tests/test-select.h. Include
1312         test-select.h.
1313         * modules/select-tests (Files): Add tests/test-select.h.
1314         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
1315         (my_select, main): New functions.
1316         * modules/pselect-tests (Files): Add tests/test-select.h,
1317         tests/macros.h, tests/signature.h.
1318         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
1319         (configure.ac): Check for <sys/wait.h>.
1320
1321 2011-07-22  Bruno Haible  <bruno@clisp.org>
1322
1323         sys_select tests: Check the signature of FD_*.
1324         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
1325         signature tests from here...
1326         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
1327         here.
1328         * modules/sys_select-tests (Files): Add tests/signature.h.
1329
1330 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1331
1332         largefile: new module, replacing large-inode
1333         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
1334         * MODULES.html.sh: Add largefile, remove large-inode.
1335         * modules/largefile, m4/largefile.m4: New files.
1336         * modules/large-inode, m4/large-inode.m4: Remove.
1337
1338         fsusage: port to MacOS X 10.7 with 4 TiB file systems
1339         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
1340         implementations that use only 32 bits to count blocks.
1341         On typical hosts with 1024-byte blocks, this fails with file
1342         systems as small as 4 TiB.  Problem reported by Herb Wartens
1343         <http://debbugs.gnu.org/9140> and this should also fix a similar
1344         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
1345
1346         large-inode: New module
1347         * MODULES.html.sh: Add it.
1348         * modules/large-inode, m4/large-inode.m4: New files.
1349
1350         extensions: Enable extensions on MacOS X 10.5 and later.
1351         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
1352
1353 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
1354
1355         file-has-acl: use acl_extended_file_nofollow if available
1356         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
1357         (acl_extended_file): New macro.
1358         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
1359         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
1360
1361 2011-07-21  Bruno Haible  <bruno@clisp.org>
1362
1363         Declare system functions in a way that works with C++.
1364         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
1365         declare fdopendir as extern "C".
1366         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
1367         declare frexpl as extern "C".
1368         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
1369         declare gai_strerror as extern "C".
1370         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
1371         programs, declare gai_strerror as extern "C".
1372         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
1373         declare getlogin_r as extern "C".
1374         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
1375         as extern "C".
1376         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
1377         declare ldexpl as extern "C".
1378         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
1379         as extern "C".
1380         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
1381         program, declare getmntinfo as extern "C".
1382         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
1383         stpncpy as extern "C".
1384         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
1385         program, declare __xpg_strerror_r as extern "C".
1386         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
1387         strndup as extern "C".
1388         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
1389         declare memset and bzero as extern "C".
1390         Reported by Sam Steingold <sds@gnu.org>.
1391
1392 2011-07-12  Jim Meyering  <meyering@redhat.com>
1393
1394         maint.mk: prohibit inclusion of "verify.h" without use
1395         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
1396
1397 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1398
1399         timer-time: A new module to check for timer_settime()
1400         * m4/timer_time.m4: Check for the posix function.
1401         * modules/timer-time: Add the new module.
1402         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
1403         Mention it.
1404
1405 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
1406             Bruno Haible  <bruno@clisp.org>
1407
1408         pthread_sigmask: assume POSIX threads if --avoid=threadlib
1409         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
1410         not defined, assume POSIX threads and look for pthread_sigmask in
1411         $LIBS, without changing $CPPFLAGS.
1412
1413 2011-07-19  Bruno Haible  <bruno@clisp.org>
1414
1415         strstr: Update cross-compilation guess.
1416         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
1417         CPUs, guess no, in view of glibc
1418         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
1419         Suggested by Eric Blake. Reported by Reuben Thomas.
1420
1421 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1422
1423         getopt-gnu: suppress core dumps from detection code
1424         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
1425         to suppress core dumps that may well occur on glibc systems.
1426         * modules/getopt-gnu: Depend on nocrash.
1427
1428 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
1429
1430         pthread_sigmask: ensure usleep is declared
1431         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
1432         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
1433
1434 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1435
1436         doc: Document NonStop portability issues.
1437         * doc/posix-functions/sigaction.texi (sigaction):
1438         * doc/posix-headers/signal.texi (signal.h):
1439         Document NonStop.  See Joachim Schmitz in
1440         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
1441
1442 2011-07-15  Bruno Haible  <bruno@clisp.org>
1443
1444         ffsl, ffsll: Avoid unportable behaviour.
1445         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
1446
1447 2011-07-15  Bruno Haible  <bruno@clisp.org>
1448
1449         ffs: More tests.
1450         * tests/test-ffs.c (NBITS): New macro.
1451         (main): Add more tests.
1452         * tests/test-ffsl.c (NBITS): New macro.
1453         (main): Add more tests.
1454         * tests/test-ffsll.c (NBITS): New macro.
1455         (main): Add more tests.
1456
1457 2011-07-15  Eric Blake  <eblake@redhat.com>
1458
1459         ffsl, ffsll: new modules
1460         * modules/ffsl: New file.
1461         * modules/ffsll: Likewise.
1462         * m4/ffsl.m4: Likewise.
1463         * m4/ffsll.m4: Likewise.
1464         * lib/ffsl.c: Likewise.
1465         * lib/ffsl.h: Likewise.
1466         * lib/ffsll.c: Likewise.
1467         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
1468         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
1469         * modules/string (Makefile.am): Substitute witnesses.
1470         * lib/strings.in.h (ffsl, ffsll): Declare.
1471         * modules/ffsl-tests: New test file.
1472         * modules/ffsll-tests: Likewise.
1473         * tests/test-ffsl.c: Likewise.
1474         * tests/test-ffsll.c: Likewise.
1475         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1476         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
1477         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
1478
1479         ffs: fix m4 prerequisite
1480         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
1481
1482         ffs: avoid undefined behavior
1483         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
1484         * tests/test-ffs.c (naive, main): Avoid signed shifts.
1485         Reported by Bruno Haible.
1486
1487 2011-07-12  Bruno Haible  <bruno@clisp.org>
1488
1489         pthread_sigmask: Rely on module 'threadlib'.
1490         * modules/pthread_sigmask (Depends-on): Add threadlib.
1491         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
1492         is defined.
1493
1494 2011-07-12  Bruno Haible  <bruno@clisp.org>
1495
1496         regex: Depend on module 'strcase'.
1497         * modules/regex (Depends-on): Add strcase, for strcasecmp().
1498
1499 2011-07-12  Jim Meyering  <meyering@redhat.com>
1500
1501         warn-on-use: fix typo in file name
1502         * modules/snippet/warn-on-use (Files): Correct file name:
1503         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
1504
1505 2011-07-12  Bruno Haible  <bruno@clisp.org>
1506
1507         strings: Document module.
1508         * doc/posix-headers/strings.texi: Mention module 'strings'.
1509
1510 2011-07-12  Bruno Haible  <bruno@clisp.org>
1511
1512         Rename module '_Noreturn' to 'snippet/_Noreturn'.
1513         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
1514         (Files, Makefile.am): Update.
1515         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
1516         * modules/stdlib (Depends-on): Update.
1517
1518 2011-07-12  Bruno Haible  <bruno@clisp.org>
1519
1520         * NEWS: Mention the changes.
1521
1522         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
1523         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
1524         (Files, Makefile.am): Update.
1525         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
1526         * modules/arpa_inet (Depends-on): Update.
1527         * modules/ctype (Depends-on): Update.
1528         * modules/dirent (Depends-on): Update.
1529         * modules/fcntl-h (Depends-on): Update.
1530         * modules/glob (Depends-on): Update.
1531         * modules/iconv-h (Depends-on): Update.
1532         * modules/inttypes-incomplete (Depends-on): Update.
1533         * modules/langinfo (Depends-on): Update.
1534         * modules/locale (Depends-on): Update.
1535         * modules/math (Depends-on): Update.
1536         * modules/netdb (Depends-on): Update.
1537         * modules/poll-h (Depends-on): Update.
1538         * modules/pty (Depends-on): Update.
1539         * modules/search (Depends-on): Update.
1540         * modules/signal (Depends-on): Update.
1541         * modules/spawn (Depends-on): Update.
1542         * modules/stdio (Depends-on): Update.
1543         * modules/stdlib (Depends-on): Update.
1544         * modules/string (Depends-on): Update.
1545         * modules/strings (Depends-on): Update.
1546         * modules/sys_file (Depends-on): Update.
1547         * modules/sys_ioctl (Depends-on): Update.
1548         * modules/sys_select (Depends-on): Update.
1549         * modules/sys_socket (Depends-on): Update.
1550         * modules/sys_stat (Depends-on): Update.
1551         * modules/sys_time (Depends-on): Update.
1552         * modules/sys_times (Depends-on): Update.
1553         * modules/sys_utsname (Depends-on): Update.
1554         * modules/sys_wait (Depends-on): Update.
1555         * modules/termios (Depends-on): Update.
1556         * modules/time (Depends-on): Update.
1557         * modules/unistd (Depends-on): Update.
1558         * modules/wchar (Depends-on): Update.
1559         * modules/wctype-h (Depends-on): Update.
1560         * MODULES.html.sh (Support for building libraries and executables):
1561         Update.
1562
1563         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
1564         * modules/snippet/unused-parameter: Renamed from
1565         modules/unused-parameter.
1566         (Files, Makefile.am): Update.
1567         * build-aux/snippet/unused-parameter.h: Renamed from
1568         build-aux/unused-parameter.h.
1569         * modules/selinux-h (Depends-on): Update.
1570         * modules/unistr/base (Depends-on): Update.
1571         * MODULES.html.sh (Core language properties): Update.
1572
1573         Rename module 'link-warning' to 'snippet/link-warning'.
1574         * modules/snippet/link-warning: Renamed from modules/link-warning.
1575         (Files, Makefile.am): Update.
1576         * build-aux/snippet/link-warning.h: Renamed from
1577         build-aux/link-warning.h.
1578         * MODULES.html.sh (Support for building libraries and executables):
1579         Update.
1580
1581         Rename module 'c++defs' to 'snippet/c++defs'.
1582         * modules/snippet/c++defs: Renamed from modules/c++defs.
1583         (Files, Makefile.am): Update.
1584         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
1585         * modules/arpa_inet (Depends-on): Update.
1586         * modules/ctype (Depends-on): Update.
1587         * modules/dirent (Depends-on): Update.
1588         * modules/fcntl-h (Depends-on): Update.
1589         * modules/glob (Depends-on): Update.
1590         * modules/iconv-h (Depends-on): Update.
1591         * modules/langinfo (Depends-on): Update.
1592         * modules/locale (Depends-on): Update.
1593         * modules/math (Depends-on): Update.
1594         * modules/netdb (Depends-on): Update.
1595         * modules/poll-h (Depends-on): Update.
1596         * modules/pty (Depends-on): Update.
1597         * modules/search (Depends-on): Update.
1598         * modules/signal (Depends-on): Update.
1599         * modules/spawn (Depends-on): Update.
1600         * modules/stdio (Depends-on): Update.
1601         * modules/stdlib (Depends-on): Update.
1602         * modules/string (Depends-on): Update.
1603         * modules/strings (Depends-on): Update.
1604         * modules/sys_ioctl (Depends-on): Update.
1605         * modules/sys_select (Depends-on): Update.
1606         * modules/sys_socket (Depends-on): Update.
1607         * modules/sys_stat (Depends-on): Update.
1608         * modules/sys_time (Depends-on): Update.
1609         * modules/sys_wait (Depends-on): Update.
1610         * modules/termios (Depends-on): Update.
1611         * modules/time (Depends-on): Update.
1612         * modules/unistd (Depends-on): Update.
1613         * modules/wchar (Depends-on): Update.
1614         * modules/wctype-h (Depends-on): Update.
1615
1616         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
1617         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
1618         (Files, Makefile.am): Update.
1619         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
1620         * modules/argv-iter (Depends-on): Update.
1621         * modules/arpa_inet (Depends-on): Update.
1622         * modules/dirent (Depends-on): Update.
1623         * modules/fcntl-h (Depends-on): Update.
1624         * modules/fnmatch (Depends-on): Update.
1625         * modules/getopt-posix (Depends-on): Update.
1626         * modules/glob (Depends-on): Update.
1627         * modules/iconv-h (Depends-on): Update.
1628         * modules/inttypes-incomplete (Depends-on): Update.
1629         * modules/locale (Depends-on): Update.
1630         * modules/math (Depends-on): Update.
1631         * modules/netdb (Depends-on): Update.
1632         * modules/search (Depends-on): Update.
1633         * modules/signal (Depends-on): Update.
1634         * modules/spawn (Depends-on): Update.
1635         * modules/stdio (Depends-on): Update.
1636         * modules/stdlib (Depends-on): Update.
1637         * modules/string (Depends-on): Update.
1638         * modules/strings (Depends-on): Update.
1639         * modules/sys_socket (Depends-on): Update.
1640         * modules/sys_stat (Depends-on): Update.
1641         * modules/sys_time (Depends-on): Update.
1642         * modules/sys_times (Depends-on): Update.
1643         * modules/sys_utsname (Depends-on): Update.
1644         * modules/time (Depends-on): Update.
1645         * modules/unistd (Depends-on): Update.
1646         * modules/wchar (Depends-on): Update.
1647         * MODULES.html.sh (Support for building libraries and executables):
1648         Update.
1649
1650 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1651
1652         Improvements on _Noreturn and related modules.
1653
1654         modules/_Exit-tests: test _Noreturn too
1655         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
1656         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
1657         (main): Use them.
1658
1659         stdnoreturn, stdnoreturn-tests: remove modules
1660         They're not needed here and a bit premature for use elsewhere.  See
1661         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
1662         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
1663         * tests/test-stdnoreturn.c: Remove files.
1664         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
1665         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
1666         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
1667         and using noreturn.
1668         * modules/openat, modules/sigpipe-die, modules/xalloc:
1669         * modules/xmemdup0, modules/xstrtol:
1670         Remove dependency on stdnoreturn.
1671
1672         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
1673         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
1674         Reparenthesize to avoid GCC warning.
1675         Support Microsoft's syntax.
1676         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
1677
1678         _Noreturn-tests: remove module
1679         * modules/_Noreturn-tests: Remove.
1680         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
1681         * tests/test-_Noreturn.c: Remove.
1682         * tests/test-stdnoreturn.c: Merge from the old
1683         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
1684
1685 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1686
1687         _Noreturn, stdnoreturn, and related modules.
1688
1689         * top/maint.mk: Adjust to new noreturn support.
1690         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
1691         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
1692
1693         xalloc: use stdnoreturn.h
1694         * lib/xalloc.h: Include <stdnoreturn.h>.
1695         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1696         * modules/xalloc (Depends-on): Add stdnoreturn.
1697
1698         xstrtol: use stdnoreturn.h
1699         * lib/xstrtol.h: Include <stdnoreturn.h>.
1700         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1701         * modules/xstrtol (Depends-on): Add stdnoreturn.
1702
1703         xmemdup0: use stdnoreturn.h
1704         * lib/xmemdup0.h: Include <stdnoreturn.h>.
1705         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1706         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
1707
1708         sigpipe-die: use stdnoreturn.h
1709         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
1710         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1711         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
1712
1713         openat: use stdnoreturn.h
1714         * lib/openat.h: Include <stdnoreturn.h>.
1715         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1716         * modules/openat (Depends-on): Add stdnoreturn.
1717
1718         * lib/openat-die.c (openat_save_fail): Modernize comment.
1719
1720         * lib/xalloc-die.c (xalloc_die): Modernize comment.
1721
1722         * lib/glthread/thread.h: Modernize comment.
1723
1724         obstack: use _Noreturn
1725         * lib/obstack.c (__attribute__): Remove macro.
1726         (print_and_abort): Use _Noreturn.
1727
1728         c-stack: use _Noreturn
1729         * lib/c-stack.c (die, overflow_handler, segv_handler):
1730         Use _Noreturn rather than __attribute__((noreturn)).
1731
1732         argmatch-tests, exclude_tests: use _Noreturn
1733         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
1734         Remove.
1735         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
1736
1737         stdlib: use _Noreturn
1738         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
1739         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
1740         * modules/stdlib (Depends-on): Add _Noreturn.
1741         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
1742
1743         stdnoreturn-tests: new module
1744         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
1745
1746         stdnoreturn: new module
1747         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
1748         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
1749
1750         _Noreturn-tests: new module
1751         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
1752
1753         _Noreturn: new module
1754         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
1755         New section, mentioning it.
1756         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
1757
1758         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
1759
1760 2011-07-11  Eric Blake  <eblake@redhat.com>
1761
1762         ffs: new module
1763         * modules/ffs: New file.
1764         * m4/ffs.m4: Likewise.
1765         * lib/ffs.c: Likewise.
1766         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
1767         * modules/strings (Makefile.am): Substitute witness.
1768         (Depends-on): Add c++defs.
1769         * lib/strings.in.h (ffs): Declare.
1770         * modules/ffs-tests: New test file.
1771         * tests/test-ffs.c: Test new module.
1772         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1773         * doc/posix-functions/ffs.texi (ffs): Likewise.
1774
1775         regex: avoid compiler warning
1776         * lib/regex.c (includes): Include <strings.h>, for use of
1777         strcasecmp in regcomp.c.
1778         Reported by Joachim Schmitz.
1779
1780 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1781
1782         stdint: respect system's intmax_t if INTMAX_MAX
1783         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
1784         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
1785         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
1786         long but int64_t is long long, and where we will clash with the
1787         system intmax_t if we override it.  See
1788         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
1789         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
1790         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
1791         similarly for UINTMAX_C.
1792
1793 2011-07-08  Bruno Haible  <bruno@clisp.org>
1794
1795         pthread_sigmask tests: Avoid a compiler warning.
1796         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
1797         non-zero.
1798
1799         sigprocmask tests: A better way to avoid a compiler warning.
1800         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
1801         (main): Complain if system() returns non-zero.
1802         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
1803
1804 2011-07-08  Bruno Haible  <bruno@clisp.org>
1805
1806         pthread_sigmask: Work around IRIX bug.
1807         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
1808         bug.
1809         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
1810         there may be unblocked pending signals.
1811         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
1812
1813 2011-07-08  Bruno Haible  <bruno@clisp.org>
1814
1815         pthread_sigmask: Work around Cygwin bug.
1816         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
1817         bug.
1818         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
1819         the system's pthread_sigmask function.
1820         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
1821
1822 2011-07-08  Bruno Haible  <bruno@clisp.org>
1823
1824         pthread_sigmask: Work around bug in single-threaded implementation.
1825         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
1826         FreeBSD, HP-UX, Solaris bug.
1827         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
1828         * lib/pthread_sigmask.c: Include <stddef.h>.
1829         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
1830         the system's pthread_sigmask function.
1831         * modules/pthread_sigmask (configure.ac): Invoke
1832         gl_PREREQ_PTHREAD_SIGMASK.
1833         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
1834         HP-UX, Solaris.
1835
1836 2011-07-08  Eric Blake  <eblake@redhat.com>
1837
1838         test-sigprocmask: avoid compiler warning
1839         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
1840         * tests/test-sigprocmask.c (main): Use it to silence warning.
1841         Reported by Jim Meyering.
1842
1843         test-snprintf: avoid compiler warning
1844         * tests/test-snprintf.c (main): Avoid shadowed declaration.
1845         * tests/test-vsnprintf.c (main): Likewise.
1846         Reported by Jim Meyering.
1847
1848 2011-07-08  Bruno Haible  <bruno@clisp.org>
1849
1850         Tests for module 'pthread_sigmask'.
1851         * modules/pthread_sigmask-tests: New file.
1852         * tests/test-pthread_sigmask1.c: New file, based on
1853         tests/test-sigprocmask.c.
1854         * tests/test-pthread_sigmask2.c: New file.
1855
1856 2011-07-08  Jim Meyering  <meyering@redhat.com>
1857
1858         test-getopt.h: avoid warning about an unused variable
1859         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
1860
1861 2011-07-07  Jim Meyering  <meyering@redhat.com>
1862
1863         maint: reduce list of files exempt from sc_prohibit_leading_TABs
1864         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
1865         now that it no longer contains leading TABs.
1866         Remove unused "url=FIXME" statement.
1867
1868 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1869
1870         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
1871         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
1872         When gl_THREADLIB is not in use, assume that the POSIX sematics
1873         are desired.  This is better for Emacs, which uses POSIX semantics
1874         on GNUish and/or POSIXish platforms, and does not use threads at
1875         all otherwise.
1876
1877         pthread_sigmask: fix typo when testing for libraries
1878         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
1879         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
1880
1881 2011-07-08  Eric Blake  <eblake@redhat.com>
1882
1883         fts: introduce FTS_NOATIME
1884         * lib/fts_.h (FTS_NOATIME): New bit flag.
1885         (FTS_OPTIONMASK): Adjust.
1886         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
1887         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
1888
1889 2011-07-08  Bruno Haible  <bruno@clisp.org>
1890
1891         Tests for module 'thread'.
1892         * modules/thread-tests: New file.
1893         * tests/test-thread_self.c: New file.
1894         * tests/test-thread_create.cc: New file.
1895
1896 2011-07-08  Bruno Haible  <bruno@clisp.org>
1897
1898         thread: Avoid gcc warnings when using gl_thread_self().
1899         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
1900         'void *'.
1901         (gl_thread_self_pointer): Update.
1902
1903 2011-07-07  Bruno Haible  <bruno@clisp.org>
1904
1905         signal-c++-tests: Check declaration of pthread_sigmask.
1906         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
1907         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
1908         $(LIB_PTHREAD_SIGMASK).
1909
1910 2011-07-07  Bruno Haible  <bruno@clisp.org>
1911
1912         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
1913         * lib/signal.in.h (pthread_sigmask): Override if
1914         REPLACE_PTHREAD_SIGMASK is 1.
1915         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1916         REPLACE_PTHREAD_SIGMASK.
1917         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
1918         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
1919         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
1920         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1921         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
1922
1923 2011-07-07  Bruno Haible  <bruno@clisp.org>
1924
1925         pthread_sigmask: Ensure declaration in <signal.h>.
1926         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
1927         include <pthread.h>.
1928         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
1929         problem.
1930
1931 2011-07-07  Bruno Haible  <bruno@clisp.org>
1932
1933         pthread_sigmask: Document the module.
1934         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
1935
1936 2011-07-07  Bruno Haible  <bruno@clisp.org>
1937
1938         pthread_sigmask: Follow gnulib conventions.
1939         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
1940         gl_PTHREAD_SIGMASK.
1941         * modules/pthread_sigmask (configure.ac): Update.
1942
1943 2011-07-07  Bruno Haible  <bruno@clisp.org>
1944
1945         pthread_sigmask: Make declaration C++ safe.
1946         * lib/signal.in.h: In two special conditions, just do an #include_next.
1947         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1948         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
1949         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1950         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1951         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
1952         not REPLACE_PTHREAD_MASK.
1953         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
1954         not REPLACE_PTHREAD_MASK.
1955         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1956
1957 2011-07-07  Bruno Haible  <bruno@clisp.org>
1958
1959         pthread_sigmask: Fix return value.
1960         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
1961         * lib/pthread_sigmask.c: New file.
1962         * modules/pthread_sigmask (Files): Add it.
1963         (configure.ac): Invoke AC_LIBOBJ.
1964
1965 2011-07-07  Eric Blake  <eblake@redhat.com>
1966
1967         getopt: more portable argv creation
1968         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
1969         const, use char arrays rather than strings.
1970         Suggested by Paul Eggert.
1971
1972 2011-07-07  Bruno Haible  <bruno@clisp.org>
1973
1974         Tests for module 'sigprocmask'.
1975         * modules/sigprocmask-tests: New file.
1976         * tests/test-sigprocmask.c: New file.
1977
1978 2011-07-07  Bruno Haible  <bruno@clisp.org>
1979
1980         float tests: Tweak.
1981         * tests/test-float.c (main): Tweak skip message.
1982
1983 2011-07-07  Eric Blake  <eblake@redhat.com>
1984
1985         getopt: avoid compiler warning during configure
1986         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
1987         assigning string literals to non-const pointer.
1988
1989         getopt-gnu: avoid crash in glibc getopt
1990         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
1991         * tests/test-getopt.h (test_getopt): Enhance test.
1992         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1993         * doc/posix-functions/getopt.texi (getopt): Document it.
1994         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
1995         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
1996         Likewise.
1997
1998 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
1999
2000         getopt: handle W; without long options in getopt [BZ #12922]
2001         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2002         but no long options are defined, just return 'W'.
2003
2004 2011-07-07  Bruno Haible  <bruno@clisp.org>
2005
2006         Avoid literal tabs.
2007         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2008         variable containing a tab instead of a literal tab.
2009         Reported by Jim Meyering.
2010
2011 2011-07-07  Bruno Haible  <bruno@clisp.org>
2012
2013         Comments.
2014         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2015
2016 2011-07-06  Bruno Haible  <bruno@clisp.org>
2017
2018         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2019         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2020         <winsock2.h>.
2021         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2022         lib/sys_socket.in.h.
2023         (close, gethostname): Hide declarations from <winsock2.h>.
2024         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2025         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2026         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2027         (select): Don't override if gnulib's <sys/select.h> was already
2028         included.
2029         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2030         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2031         setsockopt, shutdown, select): Tweak indentation.
2032
2033 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2034
2035         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2036         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2037         in an application that does not use the sys_select module.
2038
2039 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2040
2041         poll: do not return 0 on timeout=-1
2042         * lib/poll.c: Loop with yield if no events occured
2043
2044 2011-07-06  Eric Blake  <eblake@redhat.com>
2045
2046         pthread_sigmask: always replace when not using pthread
2047         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2048         replacement when using some threading other than pthread.  Fix
2049         logic bug.
2050
2051 2011-07-06  Bruno Haible  <bruno@clisp.org>
2052
2053         Comments.
2054         * m4/printf.m4: Update comments about mingw.
2055
2056 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2057
2058         sys_select: define sigset_t more portably
2059         * lib/sys_select.in.h: Always include <sys/types.h>, since
2060         we now need sigset_t and mingw defines it there.
2061         Include <signal.h> before split inclusion guard, to avoid
2062         mishaps on Solaris, whose <signal.h> eventually includes us.
2063         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2064         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2065         which come from ...
2066         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2067         gl_CHECK_TYPE_SIGSET_T.
2068         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2069         does the real work.
2070         * modules/sys_select (Depends-on): Add 'signal'.
2071
2072         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2073         Suggested by Bruno Haible.
2074
2075         pselect: Use pthread_sigmask, not sigprocmask.
2076         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2077         multithreaded apps better than sigprocmask does.
2078         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2079         sigprocmask directly.
2080
2081 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2082
2083         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2084         Don't #undef,  since we don't need any underlying pselect.
2085         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2086         (Depends-on): Add select.
2087         (Link): Add $(LIBSOCKET).
2088         These changes suggested by Bruno Haible.
2089
2090         pselect: document better
2091         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2092         * doc/posix-functions/pselect.texi (pselect): Document new module.
2093
2094         pthread_sigmask: new module
2095         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2096         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2097         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2098         This is done only as a macro; I don't know how well that'll
2099         work for C++.  Move <sys/types.h> include before the include_next,
2100         to avoid mishap on Solaris.
2101         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2102         * modules/signal (Makefile.am): Substitute the check's results.
2103         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2104
2105         test-pselect: new module
2106         * modules/pselect-tests, tests/test-pselect.c: New files.
2107         * tests/test-select.c, tests/test-sys_select-c++.cc:
2108         If TEST_PSELECT is defined, test pselect instead of testing select.
2109
2110         * tests/test-sys_select.c (sigset_t): Test for it, too.
2111         Suggested by Bruno Haible.
2112
2113 2011-07-05  Eric Blake  <eblake@redhat.com>
2114
2115         snprintf: guarantee %1$d, for libintl
2116         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2117         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2118         * doc/posix-functions/snprintf.texi (snprintf): Update.
2119         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2120         * tests/test-snprintf.c (main): Enhance test.
2121         * tests/test-vsnprintf.c (main): Likewise.
2122
2123 2011-07-05  Jim Meyering  <meyering@redhat.com>
2124
2125         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2126         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2127         per Bruno's request, to accommodate this idiom (no space after "#")
2128         even when the function is inside an #if block:
2129         char *
2130         gets (char *s)
2131         #undef gets
2132         {
2133           ...
2134         }
2135
2136 2011-07-04  Jim Meyering  <meyering@redhat.com>
2137
2138         maint: indent with spaces, not TABs, and add a rule to check this
2139         * tests/test-userspec.c: Indent with spaces, not TABs.
2140         * tests/test-argp.c: Likewise.
2141         * tests/test-c-stack2.sh: Likewise.
2142         * tests/test-parse-duration.sh: Likewise
2143         * m4/strtod.m4: Likewise.
2144         * m4/alloca.m4: Likewise.
2145         * m4/pselect.m4: Likewise.
2146         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
2147
2148 2011-07-03  Jim Meyering  <meyering@redhat.com>
2149
2150         maint.mk: correct omissions in prohibit_argmatch_without_use check
2151         This rule would mistakenly report that argmatch.h is included without
2152         use even when both the argmatch and invalid_arg macro were used.
2153         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
2154         of argmatch and invalid_arg.
2155
2156 2011-07-03  Bruno Haible  <bruno@clisp.org>
2157
2158         Comments about EINTR.
2159         * lib/safe-read.h: Explain the purpose of this module.
2160         * lib/safe-write.h: Likewise.
2161         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
2162         module.
2163         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
2164         module.
2165         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2166
2167 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2168
2169         xnanosleep: Rewrite to use new dtotimespec module.
2170         It has the conversion code that used to be in xnanosleep.
2171         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
2172         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
2173         (TIME_T_MAX): Remove.
2174         (xnanosleep): Rewrite in terms of dtotimespec.
2175         * modules/xnanosleep (Depends-on): Add dtotimespec.
2176         Remove intprops, stdbool.
2177
2178         timespec-add, timespec-sub: new modules
2179         * lib/timespec.h (timespec_add, timespec_sub): New decls.
2180         * lib/timespec-add.c, lib/timespec-sub.c:
2181         * modules/timespec-add, modules/timespec-sub: New files.
2182
2183         dtotimespec: new module
2184         * lib/timespec.h (dtotimespec): New decl.
2185         * lib/dtotimespec.c, modules/dtotimespec: New files.
2186
2187         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
2188
2189         pselect: new module
2190         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
2191         (pselect): New decls.
2192         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
2193         since the standard pselect decl uses 'restrict'.
2194         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
2195         HAVE_PSELECT, REPLACE_PSELECT.
2196         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
2197         HAVE_PSELECT, REPLACE_PSELECT.
2198         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
2199
2200         sys_select: don't depend on sys_socket
2201         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
2202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
2203         This fix works on GNU and GNU-like platforms, but has not been tested
2204         on native Windows.
2205         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
2206         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
2207         gl_HEADER_SYS_SOCKET.
2208         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
2209         gl_PREREQ_SYS_H_WINSOCK2.
2210
2211 2011-06-29  Eric Blake  <eblake@redhat.com>
2212
2213         pipe2: fix C89 compile problem
2214         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
2215         Reported by Bruno Haible.
2216
2217         pipe, pipe2: don't corrupt fd on error
2218         * lib/pipe.c (pipe): Leave fd unchanged on error.
2219         * lib/pipe2.c (pipe2): Likewise.
2220         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
2221         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2222
2223 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
2224
2225         mmap-anon: do not use regular expressions inadvertently
2226         * m4/mmap-anon.m4: Remove trailing period from strings sought
2227         in the output.
2228
2229 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2230
2231         nanosleep: fix integer overflow problem
2232         * lib/nanosleep.c (my_usleep): Don't assume signed integer
2233         arithmetic wraps around on overflow.
2234
2235         nanosleep: simplify carrying
2236         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
2237         first call to the underyling nanosleep, not for the last one.
2238         This doesn't fix any bugs, but it simplifies the computation of
2239         the remaining delay.  Found while auditing integer overflow issues.
2240
2241         dup2: remove test for existence of fcntl
2242         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
2243         "#if HAVE_FCNTL", in the configure-time test program.
2244         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
2245         and therefore speeds up "configure" a bit.  Found while
2246         adding the dup2 module to Emacs.
2247
2248 2011-06-24  Eric Blake  <eblake@redhat.com>
2249
2250         maint.mk: enhance useless header checks
2251         * top/maint.mk (_sc_header_without_use): Check both include
2252         styles.
2253         (sc_prohibit_assert_without_use)
2254         (sc_prohibit_close_stream_without_use)
2255         (sc_prohibit_getopt_without_use)
2256         (sc_prohibit_quotearg_without_use)
2257         (sc_prohibit_quote_without_use)
2258         (sc_prohibit_long_options_without_use)
2259         (sc_prohibit_inttostr_without_use)
2260         (sc_prohibit_ignore_value_without_use)
2261         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
2262         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
2263         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
2264         (sc_prohibit_hash_pjw_without_use)
2265         (sc_prohibit_safe_read_without_use)
2266         (sc_prohibit_argmatch_without_use)
2267         (sc_prohibit_canonicalize_without_use)
2268         (sc_prohibit_root_dev_ino_without_use)
2269         (sc_prohibit_openat_without_use)
2270         (sc_prohibit_c_ctype_without_use)
2271         (sc_prohibit_signal_without_use)
2272         (sc_prohibit_stdio--_without_use)
2273         (sc_prohibit_stdio-safer_without_use)
2274         (sc_prohibit_strings_without_use)
2275         (sc_prohibit_intprops_without_use)
2276         (sc_prohibit_stddef_without_use)
2277         (sc_prohibit_xfreopen_without_use): Update clients.
2278
2279 2011-06-24  Jim Meyering  <meyering@redhat.com>
2280
2281         syntax-check: keep one maint.mk rule in sync with its header
2282         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2283         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2284         I prefer to avoid temporary files here, so use <(...), but that
2285         is not supported by /bin/sh, so...
2286         (SHELL): Define to /bin/bash.
2287
2288 2011-06-24  Eric Blake  <eblake@redhat.com>
2289
2290         maint.mk: update sc_prohibit_intprops_without_use
2291         * top/maint.mk (_intprops_names): Match recent changes.
2292
2293 2011-06-24  Bruno Haible  <bruno@clisp.org>
2294
2295         strerror-override: No-op tweak.
2296         * lib/strerror-override.h (strerror_override): Reorder conditions,
2297         for consistency with lib/strerror-override.c.
2298
2299 2011-06-23  Eric Blake  <eblake@redhat.com>
2300
2301         maint.mk: test further PATH_MAX issues
2302         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2303         (sc_prohibit_path_max_allocation): ...and also test alloca.
2304         Suggested by Jim Meyering.
2305
2306 2011-06-22  Eric Blake  <eblake@redhat.com>
2307
2308         maint.mk: add syntax-check to avoid char[PATH_MAX]
2309         * top/maint.mk (sc_prohibit_path_max_array): New rule.
2310
2311         stat: be robust to PATH_MAX definition
2312         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
2313         * modules/stat (Depends-on): Add verify.
2314
2315         link: work around IRIX bug
2316         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
2317         * lib/link.c (rpl_link): Work around it.
2318         * tests/test-link.h (test_link): Enhance test.
2319         * doc/posix-functions/link.texi (link): Document the bug.
2320
2321         getopt: silence clang warning
2322         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
2323         dereference.
2324         Reported by Gustavo Martin Domato.
2325
2326 2011-06-22  Jim Meyering  <meyering@redhat.com>
2327
2328         bootstrap: do not insert a blank line into each .gitignore file
2329         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
2330
2331 2011-06-21  Eric Blake  <eblake@redhat.com>
2332
2333         perror: test for output mismatch
2334         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
2335         perror on IRIX.
2336
2337         strerror_r: fix OpenBSD behavior on out-of-range
2338         * lib/strerror_r.c (strerror_r): Always use maximal string.
2339         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2340
2341         strerror_r: fix OpenBSD behavior on 0
2342         * lib/strerror-override.c (strerror_override): Also override 0
2343         when needed.
2344         * lib/strerror-override.h (strerror_override): Likewise.
2345         * lib/strerror.c (strerror): Simplify, now that 0 override is done
2346         earlier.
2347         * lib/strerror_r.c (strerror_r): Likewise.
2348         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
2349         behavior...
2350         (gl_FUNC_STRERROR_0): ...into new macro.
2351         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
2352         is overridden.
2353         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
2354         * modules/strerror-override (Files): Add strerror.m4.
2355         (configure.ac): Also provide override for 0 when needed.
2356         * doc/posix-functions/strerror.texi (strerror): Document this.
2357         * doc/posix-functions/perror.texi (perror): Likewise.
2358
2359         perror: adjust array size
2360         * modules/perror (Depends-on): Add strerror-override.
2361         * lib/perror.c (perror): Use it to avoid magic number.
2362
2363         strerror-override: reduce size
2364         * lib/strerror-override.c (strerror_override): Use fewer lines.
2365
2366 2011-06-20  Bruno Haible  <bruno@clisp.org>
2367
2368         pathmax: Ensure correct value for PATH_MAX on HP-UX.
2369         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
2370
2371 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2372
2373         alloca: port to compilers that can optimize like GCC 4.6.0
2374         * lib/alloca.c (find_stack_direction): New signature, taken from
2375         Autoconf git.  This works with GCC 4.6.0.  This code should never
2376         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
2377         be used with other compilers that optimize as well as GCC 4.6.0 does.
2378         (alloca): Adjust to new signature.
2379         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
2380         New macro, which patches Autoconf in a similar way.
2381
2382         c-stack: stop worrying about stack direction
2383         * lib/c-stack.c (find_stack_direction): Remove.
2384         (segv_handler): Don't worry about stack direction growth, as it's
2385         too much of a pain to configure this correctly, given how compilers
2386         are optimizing-away our stack-growth detection code.  Instead, assume
2387         that any access to just before or just after the stack is OK.
2388         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2389         Don't require AC_FUNC_ALLOCA; no longer needed.
2390
2391 2011-06-20  Eric Blake  <eblake@redhat.com>
2392
2393         test-stat: don't allocate PATH_MAX bytes
2394         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
2395         PATH_MAX-sized buffer.
2396         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
2397         * modules/stat-tests (Depends-on): Likewise.
2398         * tests/test-fstatat.c (includes): Drop pathmax.h.
2399         * tests/test-stat.c (includes): Likewise.
2400         Reported by Bruno Haible.
2401
2402 2011-06-20  Bruno Haible  <bruno@clisp.org>
2403
2404         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
2405         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
2406         * lib/float.c: New file.
2407         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
2408         REPLACE_FLOAT_LDBL.
2409         * modules/float (Files): Add lib/float.c.
2410         (configure.ac): Invoke AC_LIBOBJ.
2411         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
2412
2413 2011-06-20  Bruno Haible  <bruno@clisp.org>
2414
2415         Tests for module 'float'.
2416         * modules/float-tests: New file.
2417         * tests/test-float.c: New file.
2418
2419 2011-06-19  Bruno Haible  <bruno@clisp.org>
2420
2421         isinf: Coding style.
2422         * lib/isinf.c: Use GNU coding style.
2423
2424 2011-06-19  Bruno Haible  <bruno@clisp.org>
2425
2426         linkat test: Avoid test failure on AIX 7.1.
2427         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
2428         * tests/test-link.h (test_link): Likewise.
2429
2430 2011-06-19  Bruno Haible  <bruno@clisp.org>
2431
2432         pread test: Avoid test failure on OpenBSD 4.9.
2433         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
2434
2435 2011-06-19  Bruno Haible  <bruno@clisp.org>
2436
2437         sprintf-posix: Fix test failure on AIX 7.1.
2438         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
2439         * doc/posix-functions/dprintf.texi: Mention limited precision problem
2440         on AIX.
2441         * doc/posix-functions/fprintf.texi: Likewise.
2442         * doc/posix-functions/printf.texi: Likewise.
2443         * doc/posix-functions/snprintf.texi: Likewise.
2444         * doc/posix-functions/sprintf.texi: Likewise.
2445         * doc/posix-functions/vdprintf.texi: Likewise.
2446         * doc/posix-functions/vfprintf.texi: Likewise.
2447         * doc/posix-functions/vprintf.texi: Likewise.
2448         * doc/posix-functions/vsnprintf.texi: Likewise.
2449         * doc/posix-functions/vsprintf.texi: Likewise.
2450
2451 2011-06-19  Bruno Haible  <bruno@clisp.org>
2452
2453         roundl-ieee: Fix test failure on AIX 7.1.
2454         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
2455         * doc/posix-functions/roundl.texi: Mention problem with negative
2456         arguments.
2457
2458 2011-06-19  Bruno Haible  <bruno@clisp.org>
2459
2460         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2461         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
2462         * doc/posix-functions/round.texi: Mention problem with negative
2463         arguments.
2464         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
2465
2466 2011-06-19  Bruno Haible  <bruno@clisp.org>
2467
2468         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2469         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
2470         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
2471         * doc/posix-functions/roundf.texi: Mention problem with negative
2472         arguments.
2473         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
2474
2475 2011-06-19  Bruno Haible  <bruno@clisp.org>
2476
2477         ceilf-ieee: Work around bug on MacOS X 10.5.
2478         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
2479
2480         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
2481         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
2482         IEEE compliant, avoid compiler optimizations.
2483         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
2484         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2485         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
2486         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2487         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2488         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2489         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2490         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2491         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2492         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2493
2494 2011-06-19  Bruno Haible  <bruno@clisp.org>
2495
2496         ceilf-ieee: Work around bug on AIX 7.1.
2497         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
2498         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
2499
2500 2011-06-19  Bruno Haible  <bruno@clisp.org>
2501
2502         ceil-ieee: Work around bug on AIX 7.1.
2503         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
2504         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
2505
2506 2011-06-18  Bruno Haible  <bruno@clisp.org>
2507
2508         fsync test: Avoid test failure on MacOS X and AIX.
2509         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
2510         EINVAL.
2511
2512 2011-06-18  Bruno Haible  <bruno@clisp.org>
2513
2514         openat, fdopendir tests: Fix link errors.
2515         * modules/openat-tests (Depends-on): Add progname.
2516         * modules/fdopendir-tests (Depends-on): Likewise.
2517         * tests/test-fchownat.c: Include progname.h.
2518         (main): Call set_program_name.
2519         * tests/test-fstatat.c: Include progname.h.
2520         (main): Call set_program_name.
2521         * tests/test-mkdirat.c: Include progname.h.
2522         (main): Call set_program_name.
2523         * tests/test-openat.c: Include progname.h.
2524         (main): Call set_program_name.
2525         * tests/test-unlinkat.c: Include progname.h.
2526         (main): Call set_program_name.
2527         * tests/test-fdopendir.c: Include progname.h.
2528         (main): Call set_program_name.
2529
2530 2011-06-18  Bruno Haible  <bruno@clisp.org>
2531
2532         Doc update.
2533         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
2534         HP-UX.
2535         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
2536
2537 2011-06-18  Bruno Haible  <bruno@clisp.org>
2538
2539         getcwd tests: Avoid compilation error on HP-UX 11.31.
2540         * modules/getcwd-tests (Depends-on): Add pathmax.
2541         * tests/test-getcwd.c: Include pathmax.h.
2542
2543 2011-06-18  Bruno Haible  <bruno@clisp.org>
2544
2545         isfinite, isinf: Fix link error on AIX 6 and 7.
2546         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
2547         needed, also test the macro with a 'float' argument.
2548         * m4/isinf.m4 (gl_ISINF): Likewise.
2549
2550 2011-06-18  Bruno Haible  <bruno@clisp.org>
2551
2552         getloadavg: Don't clobber LIBS. Regression from previous commit.
2553         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
2554         AC_CHECK_LIB from here...
2555         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
2556         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
2557         gl_func_getloadavg_done.
2558         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2559
2560 2011-06-18  Bruno Haible  <bruno@clisp.org>
2561
2562         clean-temp: Improve documentation.
2563         * lib/clean-temp.h: Explain better how to use this module.
2564         Reported by John Darrington <john@darrington.wattle.id.au>.
2565
2566 2011-06-17  Bruno Haible  <bruno@clisp.org>
2567
2568         pread, pwrite: Avoid cc warning on AIX.
2569         * lib/unistd.in.h (pread): Undefine before defining as a macro.
2570         (pwrite): Likewise.
2571
2572 2011-06-17  Bruno Haible  <bruno@clisp.org>
2573
2574         spawn-pipe tests: Fix link error.
2575         * tests/test-spawn-pipe-child.c: Undefine fprintf.
2576         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2577
2578 2011-06-17  Bruno Haible  <bruno@clisp.org>
2579
2580         Tests: Remove unnecessary dependency.
2581         * modules/canonicalize-tests (Depends-on): Remove progname.
2582         * modules/chown-tests (Depends-on): Likewise.
2583         * modules/dirname-tests (Depends-on): Likewise.
2584         * modules/fdopendir-tests (Depends-on): Likewise.
2585         * modules/fdutimensat-tests (Depends-on): Likewise.
2586         * modules/hash-tests (Depends-on): Likewise.
2587         * modules/lchown-tests (Depends-on): Likewise.
2588         * modules/linkat-tests (Depends-on): Likewise.
2589         * modules/renameat-tests (Depends-on): Likewise.
2590         * modules/spawn-pipe-tests (Depends-on): Likewise.
2591         * modules/utimensat-tests (Depends-on): Likewise.
2592
2593 2011-06-17  Bruno Haible  <bruno@clisp.org>
2594
2595         spawn-pipe tests: Fix link error.
2596         * tests/test-spawn-pipe-child.c: Undefine fflush.
2597
2598 2011-06-17  Bruno Haible  <bruno@clisp.org>
2599
2600         Fix tests link errors.
2601         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
2602         * modules/chown-tests (Makefile.am): Don't link test-chown with
2603         LIBINTL.
2604         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
2605         LIBINTL.
2606         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
2607         LIBINTL.
2608         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
2609         LIBINTL.
2610
2611 2011-06-16  Bruno Haible  <bruno@clisp.org>
2612
2613         crypto/gc-sha1: Fix recent regression.
2614         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
2615         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
2616
2617         crypto/gc-md5: Fix recent regression.
2618         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
2619
2620         crypto/gc-md4: Fix recent regression.
2621         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
2622         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
2623
2624         crypto/gc-arctwo: Fix recent regression.
2625         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
2626         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
2627
2628         crypto/gc-rijndael: Fix recent regression.
2629         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
2630         (configure.ac): Invoke AC_LIBOBJ here.
2631         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
2632         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2633
2634         crypto/gc-hmac-sha1: Fix recent regression.
2635         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
2636         (configure.ac): Invoke AC_LIBOBJ here.
2637         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
2638         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2639
2640         crypto/gc-hmac-md5: Fix recent regression.
2641         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
2642         (configure.ac): Invoke AC_LIBOBJ here.
2643         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
2644         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2645
2646         crypto/gc-des: Fix recent regression.
2647         * modules/crypto/gc-des (Files): Remove m4/des.m4.
2648         (configure.ac): Invoke AC_LIBOBJ here.
2649         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
2650         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2651
2652         crypto/gc-arcfour: Fix recent regression.
2653         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
2654         (configure.ac): Invoke AC_LIBOBJ here.
2655         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
2656         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2657
2658 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
2659
2660         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
2661         After the 2011-05-21 change, this macro requires
2662         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
2663         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
2664
2665 2011-06-16  Bruno Haible  <bruno@clisp.org>
2666
2667         fprintftime: Move AC_LIBOBJ invocations to module description.
2668         * m4/fprintftime.m4: Remove file.
2669         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
2670         (configure.ac): Remove gl_FPRINTFTIME call.
2671         (Makefile.am): Augment lib_SOURCES.
2672         Reported by Jim Meyering.
2673
2674 2011-06-16  Bruno Haible  <bruno@clisp.org>
2675
2676         tmpfile-safer: Finish 2011-05-23 commit.
2677         * m4/stdio-safer.m4: Really remove file.
2678         Reported by Jim Meyering.
2679
2680 2011-06-16  Bruno Haible  <bruno@clisp.org>
2681
2682         syntax-check: Fix typo.
2683         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
2684         printf-posix.m4.
2685         Reported by Jim Meyering.
2686
2687 2011-06-13  Jim Meyering  <meyering@redhat.com>
2688
2689         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
2690         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
2691
2692 2011-05-23  Bruno Haible  <bruno@clisp.org>
2693
2694         yesno: Move AC_LIBOBJ invocations to module description.
2695         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
2696         * modules/yesno (Makefile.am): Augment lib_SOURCES.
2697
2698 2011-05-23  Bruno Haible  <bruno@clisp.org>
2699
2700         xstrtol: Move AC_LIBOBJ invocations to module description.
2701         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
2702         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
2703
2704 2011-05-23  Bruno Haible  <bruno@clisp.org>
2705
2706         xstrtold: Move AC_LIBOBJ invocations to module description.
2707         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
2708         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
2709
2710 2011-05-23  Bruno Haible  <bruno@clisp.org>
2711
2712         xstrtod: Move AC_LIBOBJ invocations to module description.
2713         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
2714         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
2715
2716 2011-05-23  Bruno Haible  <bruno@clisp.org>
2717
2718         xnanosleep: Move AC_LIBOBJ invocations to module description.
2719         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
2720         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
2721
2722 2011-05-23  Bruno Haible  <bruno@clisp.org>
2723
2724         xgetcwd: Move AC_LIBOBJ invocations to module description.
2725         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
2726         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
2727
2728 2011-05-23  Bruno Haible  <bruno@clisp.org>
2729
2730         xalloc: Move AC_LIBOBJ invocations to module description.
2731         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
2732         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
2733
2734 2011-05-23  Bruno Haible  <bruno@clisp.org>
2735
2736         write-any-file: Move AC_LIBOBJ invocations to module description.
2737         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
2738         invocation.
2739         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
2740
2741 2011-05-23  Bruno Haible  <bruno@clisp.org>
2742
2743         utimens: Move AC_LIBOBJ invocations to module description.
2744         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
2745         * modules/utimens (Makefile.am): Augment lib_SOURCES.
2746
2747 2011-05-23  Bruno Haible  <bruno@clisp.org>
2748
2749         utimecmp: Move AC_LIBOBJ invocations to module description.
2750         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
2751         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
2752
2753 2011-05-23  Bruno Haible  <bruno@clisp.org>
2754
2755         userspec: Move AC_LIBOBJ invocations to module description.
2756         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
2757         * modules/userspec (Makefile.am): Augment lib_SOURCES.
2758
2759 2011-05-23  Bruno Haible  <bruno@clisp.org>
2760
2761         unlinkdir: Move AC_LIBOBJ invocations to module description.
2762         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
2763         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
2764
2765 2011-05-23  Bruno Haible  <bruno@clisp.org>
2766
2767         unistd-safer: Move AC_LIBOBJ invocations to module description.
2768         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
2769         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
2770
2771 2011-05-23  Bruno Haible  <bruno@clisp.org>
2772
2773         tempname: Move AC_LIBOBJ invocations to module description.
2774         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
2775         * modules/tempname (Makefile.am): Augment lib_SOURCES.
2776
2777 2011-05-23  Bruno Haible  <bruno@clisp.org>
2778
2779         strftime: Move AC_LIBOBJ invocations to module description.
2780         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
2781         * modules/strftime (Makefile.am): Augment lib_SOURCES.
2782
2783 2011-05-23  Bruno Haible  <bruno@clisp.org>
2784
2785         stdlib-safer: Move AC_LIBOBJ invocations to module description.
2786         * m4/stdlib-safer.m4: Remove file.
2787         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
2788         (configure.ac): Remove gl_STDLIB_SAFER call.
2789         (Makefile.am): Augment lib_SOURCES.
2790
2791 2011-05-23  Bruno Haible  <bruno@clisp.org>
2792
2793         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
2794         * m4/stdio-safer.m4: Remove file.
2795         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
2796         (configure.ac): Remove gl_TMPFILE_SAFER call.
2797         (Makefile.am): Augment lib_SOURCES.
2798
2799 2011-05-23  Bruno Haible  <bruno@clisp.org>
2800
2801         popen-safer: Move AC_LIBOBJ invocations to module description.
2802         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
2803         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
2804         (configure.ac): Remove gl_POPEN_SAFER call.
2805         (Makefile.am): Augment lib_SOURCES.
2806
2807 2011-05-23  Bruno Haible  <bruno@clisp.org>
2808
2809         freopen-safer: Move AC_LIBOBJ invocations to module description.
2810         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
2811         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
2812         (configure.ac): Remove gl_FREOPEN_SAFER call.
2813         (Makefile.am): Augment lib_SOURCES.
2814
2815 2011-05-23  Bruno Haible  <bruno@clisp.org>
2816
2817         fopen-safer: Move AC_LIBOBJ invocations to module description.
2818         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
2819         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
2820         (configure.ac): Remove gl_FOPEN_SAFER call.
2821         (Makefile.am): Augment lib_SOURCES.
2822
2823 2011-05-23  Bruno Haible  <bruno@clisp.org>
2824
2825         crypto/sha512: Move AC_LIBOBJ invocations to module description.
2826         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
2827         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
2828
2829 2011-05-23  Bruno Haible  <bruno@clisp.org>
2830
2831         crypto/sha256: Move AC_LIBOBJ invocations to module description.
2832         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
2833         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
2834
2835 2011-05-23  Bruno Haible  <bruno@clisp.org>
2836
2837         crypto/sha1: Move AC_LIBOBJ invocations to module description.
2838         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
2839         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
2840
2841 2011-05-23  Bruno Haible  <bruno@clisp.org>
2842
2843         settime: Move AC_LIBOBJ invocations to module description.
2844         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
2845         * modules/settime (Makefile.am): Augment lib_SOURCES.
2846
2847 2011-05-23  Bruno Haible  <bruno@clisp.org>
2848
2849         savedir: Move AC_LIBOBJ invocations to module description.
2850         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
2851         * modules/savedir (Makefile.am): Augment lib_SOURCES.
2852
2853 2011-05-23  Bruno Haible  <bruno@clisp.org>
2854
2855         save-cwd: Move AC_LIBOBJ invocations to module description.
2856         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
2857         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
2858
2859 2011-05-23  Bruno Haible  <bruno@clisp.org>
2860
2861         same: Move AC_LIBOBJ invocations to module description.
2862         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
2863         * modules/same (Makefile.am): Augment lib_SOURCES.
2864
2865 2011-05-23  Bruno Haible  <bruno@clisp.org>
2866
2867         safe-write: Move AC_LIBOBJ invocations to module description.
2868         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
2869         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
2870         instead of gl_SAFE_WRITE.
2871         (Makefile.am): Augment lib_SOURCES.
2872
2873 2011-05-23  Bruno Haible  <bruno@clisp.org>
2874
2875         safe-read: Move AC_LIBOBJ invocations to module description.
2876         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
2877         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
2878         of gl_SAFE_READ.
2879         (Makefile.am): Augment lib_SOURCES.
2880
2881 2011-05-23  Bruno Haible  <bruno@clisp.org>
2882
2883         safe-alloc: Move AC_LIBOBJ invocations to module description.
2884         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
2885         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
2886
2887 2011-05-23  Bruno Haible  <bruno@clisp.org>
2888
2889         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
2890         * m4/rijndael.m4: Remove file.
2891         * modules/crypto/rijndael (Files): Remove it.
2892         (configure.ac): Remove gl_RIJNDAEL call.
2893         (Makefile.am): Augment lib_SOURCES.
2894
2895 2011-05-23  Bruno Haible  <bruno@clisp.org>
2896
2897         readtokens: Move AC_LIBOBJ invocations to module description.
2898         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
2899         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
2900
2901 2011-05-23  Bruno Haible  <bruno@clisp.org>
2902
2903         read-file: Move AC_LIBOBJ invocations to module description.
2904         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
2905         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
2906         of gl_FUNC_READ_FILE.
2907         (Makefile.am): Augment lib_SOURCES.
2908
2909 2011-05-23  Bruno Haible  <bruno@clisp.org>
2910
2911         quotearg: Move AC_LIBOBJ invocations to module description.
2912         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
2913         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
2914
2915 2011-05-23  Bruno Haible  <bruno@clisp.org>
2916
2917         quote: Move AC_LIBOBJ invocations to module description.
2918         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
2919         * modules/quote (Makefile.am): Augment lib_SOURCES.
2920
2921 2011-05-23  Bruno Haible  <bruno@clisp.org>
2922
2923         posixver: Move AC_LIBOBJ invocations to module description.
2924         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
2925         * modules/posixver (Makefile.am): Augment lib_SOURCES.
2926
2927 2011-05-23  Bruno Haible  <bruno@clisp.org>
2928
2929         posixtm: Move AC_LIBOBJ invocations to module description.
2930         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
2931         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
2932
2933 2011-05-23  Bruno Haible  <bruno@clisp.org>
2934
2935         physmem: Move AC_LIBOBJ invocations to module description.
2936         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
2937         * modules/physmem (Makefile.am): Augment lib_SOURCES.
2938
2939 2011-05-23  Bruno Haible  <bruno@clisp.org>
2940
2941         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
2942         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
2943         invocation.
2944         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
2945
2946 2011-05-23  Bruno Haible  <bruno@clisp.org>
2947
2948         mpsort: Move AC_LIBOBJ invocations to module description.
2949         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
2950         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
2951
2952 2011-05-23  Bruno Haible  <bruno@clisp.org>
2953
2954         modechange: Move AC_LIBOBJ invocations to module description.
2955         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
2956         * modules/modechange (Makefile.am): Augment lib_SOURCES.
2957
2958 2011-05-23  Bruno Haible  <bruno@clisp.org>
2959
2960         mkdir-p: Move AC_LIBOBJ invocations to module description.
2961         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
2962         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
2963
2964 2011-05-23  Bruno Haible  <bruno@clisp.org>
2965
2966         mkancesdirs: Move AC_LIBOBJ invocations to module description.
2967         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
2968         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
2969
2970 2011-05-23  Bruno Haible  <bruno@clisp.org>
2971
2972         mgetgroups: Move AC_LIBOBJ invocations to module description.
2973         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
2974         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
2975
2976 2011-05-23  Bruno Haible  <bruno@clisp.org>
2977
2978         memxor: Move AC_LIBOBJ invocations to module description.
2979         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
2980         * modules/memxor (Makefile.am): Augment lib_SOURCES.
2981
2982 2011-05-23  Bruno Haible  <bruno@clisp.org>
2983
2984         memcoll: Move AC_LIBOBJ invocations to module description.
2985         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
2986         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
2987
2988 2011-05-23  Bruno Haible  <bruno@clisp.org>
2989
2990         memcasecmp: Move AC_LIBOBJ invocations to module description.
2991         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
2992         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
2993
2994 2011-05-23  Bruno Haible  <bruno@clisp.org>
2995
2996         crypto/md5: Move AC_LIBOBJ invocations to module description.
2997         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
2998         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
2999
3000 2011-05-23  Bruno Haible  <bruno@clisp.org>
3001
3002         crypto/md4: Move AC_LIBOBJ invocations to module description.
3003         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3004         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3005
3006 2011-05-23  Bruno Haible  <bruno@clisp.org>
3007
3008         crypto/md2: Move AC_LIBOBJ invocations to module description.
3009         * m4/md2.m4: Remove file.
3010         * modules/crypto/md2 (Files): Remove it.
3011         (configure.ac): Remove gl_MD2 call.
3012         (Makefile.am): Augment lib_SOURCES.
3013
3014 2011-05-23  Bruno Haible  <bruno@clisp.org>
3015
3016         long-options: Move AC_LIBOBJ invocations to module description.
3017         * m4/long-options.m4: Remove file.
3018         * modules/long-options (Files): Remove it.
3019         (configure.ac): Remove gl_LONG_OPTIONS call.
3020         (Makefile.am): Augment lib_SOURCES.
3021
3022 2011-05-23  Bruno Haible  <bruno@clisp.org>
3023
3024         i-ring: Move AC_LIBOBJ invocations to module description.
3025         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3026         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3027
3028 2011-05-23  Bruno Haible  <bruno@clisp.org>
3029
3030         idcache: Move AC_LIBOBJ invocations to module description.
3031         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3032         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3033
3034 2011-05-23  Bruno Haible  <bruno@clisp.org>
3035
3036         human: Move AC_LIBOBJ invocations to module description.
3037         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3038         * modules/human (Makefile.am): Augment lib_SOURCES.
3039
3040 2011-05-23  Bruno Haible  <bruno@clisp.org>
3041
3042         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3043         * m4/hmac-sha1.m4: Remove file.
3044         * modules/crypto/hmac-sha1 (Files): Remove it.
3045         (configure.ac): Remove gl_HMAC_SHA1 call.
3046         (Makefile.am): Augment lib_SOURCES.
3047
3048 2011-05-23  Bruno Haible  <bruno@clisp.org>
3049
3050         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3051         * m4/hmac-md5.m4: Remove file.
3052         * modules/crypto/hmac-md5 (Files): Remove it.
3053         (configure.ac): Remove gl_HMAC_MD5 call.
3054         (Makefile.am): Augment lib_SOURCES.
3055
3056 2011-05-23  Bruno Haible  <bruno@clisp.org>
3057
3058         hash: Move AC_LIBOBJ invocations to module description.
3059         * m4/hash.m4: Remove file.
3060         * modules/hash (Files): Remove it.
3061         (configure.ac): Remove gl_HASH call.
3062         (Makefile.am): Augment lib_SOURCES.
3063
3064 2011-05-23  Bruno Haible  <bruno@clisp.org>
3065
3066         hard-locale: Move AC_LIBOBJ invocations to module description.
3067         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3068         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3069
3070 2011-05-23  Bruno Haible  <bruno@clisp.org>
3071
3072         getugroups: Move AC_LIBOBJ invocations to module description.
3073         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3074         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3075
3076 2011-05-23  Bruno Haible  <bruno@clisp.org>
3077
3078         gettime: Move AC_LIBOBJ invocations to module description.
3079         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3080         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3081
3082 2011-05-23  Bruno Haible  <bruno@clisp.org>
3083
3084         getndelim2: Move AC_LIBOBJ invocations to module description.
3085         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3086         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3087
3088 2011-05-23  Bruno Haible  <bruno@clisp.org>
3089
3090         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3091         * m4/gc-pbkdf2-sha1.m4: Remove file.
3092         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3093         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3094         (Makefile.am): Augment lib_SOURCES.
3095
3096 2011-05-23  Bruno Haible  <bruno@clisp.org>
3097
3098         fts: Move AC_LIBOBJ invocations to module description.
3099         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3100         * modules/fts (configure.ac): ... to here.
3101
3102 2011-05-23  Bruno Haible  <bruno@clisp.org>
3103
3104         file-type: Move AC_LIBOBJ invocations to module description.
3105         * m4/file-type.m4: Remove file.
3106         * modules/file-type (Files): Remove it.
3107         (configure.ac): Remove gl_FILE_TYPE call.
3108         (Makefile.am): Augment lib_SOURCES.
3109
3110 2011-05-23  Bruno Haible  <bruno@clisp.org>
3111
3112         filenamecat*: Respect rules for use of AC_LIBOBJ.
3113         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3114         Remove AC_LIBOBJ invocation.
3115         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3116         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3117
3118 2011-05-23  Bruno Haible  <bruno@clisp.org>
3119
3120         filemode: Move AC_LIBOBJ invocations to module description.
3121         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3122         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3123
3124 2011-05-23  Bruno Haible  <bruno@clisp.org>
3125
3126         openat-safer: Move AC_LIBOBJ invocations to module description.
3127         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3128         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3129
3130 2011-05-23  Bruno Haible  <bruno@clisp.org>
3131
3132         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3133         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3134         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3135
3136 2011-05-23  Bruno Haible  <bruno@clisp.org>
3137
3138         exclude: Move AC_LIBOBJ invocations to module description.
3139         * m4/exclude.m4: Remove file.
3140         * modules/exclude (Files): Remove it.
3141         (configure.ac): Remove gl_EXCLUDE call.
3142         (Makefile.am): Augment lib_SOURCES.
3143
3144 2011-05-23  Bruno Haible  <bruno@clisp.org>
3145
3146         dirname*: Respect rules for use of AC_LIBOBJ.
3147         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
3148         invocations.
3149         * modules/dirname (Makefile.am): Augment lib_SOURCES.
3150         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
3151
3152 2011-05-23  Bruno Haible  <bruno@clisp.org>
3153
3154         dirent-safer: Move AC_LIBOBJ invocations to module description.
3155         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
3156         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
3157
3158 2011-05-23  Bruno Haible  <bruno@clisp.org>
3159
3160         crypto/des: Move AC_LIBOBJ invocations to module description.
3161         * m4/des.m4: Remove file.
3162         * modules/crypto/des (Files): Remove it.
3163         (configure.ac): Remove gl_DES call.
3164         (Makefile.am): Augment lib_SOURCES.
3165
3166 2011-05-23  Bruno Haible  <bruno@clisp.org>
3167
3168         cycle-check: Move AC_LIBOBJ invocations to module description.
3169         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
3170         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
3171
3172 2011-05-23  Bruno Haible  <bruno@clisp.org>
3173
3174         c-strtold: Move AC_LIBOBJ invocations to module description.
3175         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
3176         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
3177
3178 2011-05-23  Bruno Haible  <bruno@clisp.org>
3179
3180         c-strtod: Move AC_LIBOBJ invocations to module description.
3181         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
3182         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
3183
3184 2011-05-23  Bruno Haible  <bruno@clisp.org>
3185
3186         crc: Move AC_LIBOBJ invocations to module description.
3187         * m4/crc.m4: Remove file.
3188         * modules/crc (Files): Remove it.
3189         (configure.ac): Remove gl_CRC call.
3190         (Makefile.am): Augment lib_SOURCES.
3191
3192 2011-05-23  Bruno Haible  <bruno@clisp.org>
3193
3194         close-stream: Move AC_LIBOBJ invocations to module description.
3195         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
3196         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
3197
3198 2011-05-23  Bruno Haible  <bruno@clisp.org>
3199
3200         closeout: Move AC_LIBOBJ invocations to module description.
3201         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
3202         * modules/closeout (Makefile.am): Augment lib_SOURCES.
3203
3204 2011-05-23  Bruno Haible  <bruno@clisp.org>
3205
3206         closein: Move AC_LIBOBJ invocations to module description.
3207         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
3208         * modules/closein (Makefile.am): Augment lib_SOURCES.
3209
3210 2011-05-23  Bruno Haible  <bruno@clisp.org>
3211
3212         cloexec: Move AC_LIBOBJ invocations to module description.
3213         * m4/cloexec.m4: Remove file.
3214         * modules/cloexec (Files): Remove it.
3215         (configure.ac): Remove gl_CLOEXEC call.
3216         (Makefile.am): Augment lib_SOURCES.
3217
3218 2011-05-23  Bruno Haible  <bruno@clisp.org>
3219
3220         check-version: Move AC_LIBOBJ invocations to module description.
3221         * m4/check-version.m4: Remove file.
3222         * modules/check-version (Files): Remove it.
3223         (configure.ac): Remove gl_CHECK_VERSION call.
3224         (Makefile.am): Augment lib_SOURCES.
3225
3226 2011-05-23  Bruno Haible  <bruno@clisp.org>
3227
3228         chdir-safer: Move AC_LIBOBJ invocations to module description.
3229         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
3230         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
3231
3232 2011-05-23  Bruno Haible  <bruno@clisp.org>
3233
3234         canonicalize: Move AC_LIBOBJ invocations to module description.
3235         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
3236         AC_LIBOBJ invocation.
3237         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
3238
3239 2011-05-23  Bruno Haible  <bruno@clisp.org>
3240
3241         canon-host: Move AC_LIBOBJ invocations to module description.
3242         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
3243         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
3244         instead of gl_CANON_HOST.
3245         (Makefile.am): Augment lib_SOURCES.
3246
3247 2011-05-23  Bruno Haible  <bruno@clisp.org>
3248
3249         backupfile: Move AC_LIBOBJ invocations to module description.
3250         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
3251         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
3252
3253 2011-05-23  Bruno Haible  <bruno@clisp.org>
3254
3255         argmatch: Move AC_LIBOBJ invocations to module description.
3256         * m4/argmatch.m4: Remove file.
3257         * modules/argmatch (Files): Remove it.
3258         (configure.ac): Remove gl_ARGMATCH call.
3259         (Makefile.am): Augment lib_SOURCES.
3260
3261 2011-05-23  Bruno Haible  <bruno@clisp.org>
3262
3263         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
3264         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
3265         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
3266
3267 2011-05-23  Bruno Haible  <bruno@clisp.org>
3268
3269         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
3270         * m4/arcfour.m4: Remove file.
3271         * modules/crypto/arcfour (Files): Remove it.
3272         (configure.ac): Remove gl_ARCFOUR call.
3273         (Makefile.am): Augment lib_SOURCES.
3274
3275 2011-05-22  Bruno Haible  <bruno@clisp.org>
3276
3277         write: Move AC_LIBOBJ invocations to module description.
3278         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3279         * modules/write (configure.ac): ... to here.
3280
3281 2011-05-22  Bruno Haible  <bruno@clisp.org>
3282
3283         wmemset: Move AC_LIBOBJ invocations to module description.
3284         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3285         here...
3286         * modules/wmemset (configure.ac): ... to here.
3287
3288 2011-05-22  Bruno Haible  <bruno@clisp.org>
3289
3290         wmemmove: Move AC_LIBOBJ invocations to module description.
3291         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3292         here...
3293         * modules/wmemmove (configure.ac): ... to here.
3294
3295 2011-05-22  Bruno Haible  <bruno@clisp.org>
3296
3297         wmemcpy: Move AC_LIBOBJ invocations to module description.
3298         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3299         here...
3300         * modules/wmemcpy (configure.ac): ... to here.
3301
3302 2011-05-22  Bruno Haible  <bruno@clisp.org>
3303
3304         wmemcmp: Move AC_LIBOBJ invocations to module description.
3305         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3306         here...
3307         * modules/wmemcmp (configure.ac): ... to here.
3308
3309 2011-05-22  Bruno Haible  <bruno@clisp.org>
3310
3311         wmemchr: Move AC_LIBOBJ invocations to module description.
3312         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
3313         here...
3314         * modules/wmemchr (configure.ac): ... to here.
3315
3316 2011-05-22  Bruno Haible  <bruno@clisp.org>
3317
3318         wcswidth: Move AC_LIBOBJ invocations to module description.
3319         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
3320         here...
3321         * modules/wcswidth (configure.ac): ... to here.
3322
3323 2011-05-22  Bruno Haible  <bruno@clisp.org>
3324
3325         wcwidth: Respect rules for use of AC_LIBOBJ.
3326         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
3327         invocation from here...
3328         * modules/wcwidth (configure.ac): ... to here.
3329         (Depends-on): Update conditions.
3330
3331 2011-05-22  Bruno Haible  <bruno@clisp.org>
3332
3333         wctype: Move AC_LIBOBJ invocations to module description.
3334         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
3335         invocation from here...
3336         * modules/wctype (configure.ac): ... to here.
3337         (Depends-on): Update conditions.
3338
3339 2011-05-22  Bruno Haible  <bruno@clisp.org>
3340
3341         wctrans: Move AC_LIBOBJ invocations to module description.
3342         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
3343         invocation from here...
3344         * modules/wctrans (configure.ac): ... to here.
3345
3346 2011-05-22  Bruno Haible  <bruno@clisp.org>
3347
3348         wctomb: Move AC_LIBOBJ invocations to module description.
3349         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
3350         invocations from here...
3351         * modules/wctomb (configure.ac): ... to here.
3352
3353 2011-05-22  Bruno Haible  <bruno@clisp.org>
3354
3355         wctob: Move AC_LIBOBJ invocations to module description.
3356         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
3357         gl_PREREQ_WCTOB invocations from here...
3358         * modules/wctob (configure.ac): ... to here.
3359         (Depends-on): Update conditions.
3360
3361 2011-05-22  Bruno Haible  <bruno@clisp.org>
3362
3363         wcsxfrm: Move AC_LIBOBJ invocations to module description.
3364         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
3365         here...
3366         * modules/wcsxfrm (configure.ac): ... to here.
3367
3368 2011-05-22  Bruno Haible  <bruno@clisp.org>
3369
3370         wcstok: Move AC_LIBOBJ invocations to module description.
3371         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
3372         * modules/wcstok (configure.ac): ... to here.
3373
3374 2011-05-22  Bruno Haible  <bruno@clisp.org>
3375
3376         wcsstr: Move AC_LIBOBJ invocations to module description.
3377         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
3378         * modules/wcsstr (configure.ac): ... to here.
3379
3380 2011-05-22  Bruno Haible  <bruno@clisp.org>
3381
3382         wcsspn: Move AC_LIBOBJ invocations to module description.
3383         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
3384         * modules/wcsspn (configure.ac): ... to here.
3385
3386 2011-05-22  Bruno Haible  <bruno@clisp.org>
3387
3388         wcsrtombs: Move AC_LIBOBJ invocations to module description.
3389         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
3390         gl_PREREQ_WCSRTOMBS invocations from here...
3391         * modules/wcsrtombs (configure.ac): ... to here.
3392
3393 2011-05-22  Bruno Haible  <bruno@clisp.org>
3394
3395         wcsrchr: Move AC_LIBOBJ invocations to module description.
3396         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
3397         here...
3398         * modules/wcsrchr (configure.ac): ... to here.
3399
3400 2011-05-22  Bruno Haible  <bruno@clisp.org>
3401
3402         wcspbrk: Move AC_LIBOBJ invocations to module description.
3403         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
3404         here...
3405         * modules/wcspbrk (configure.ac): ... to here.
3406
3407 2011-05-22  Bruno Haible  <bruno@clisp.org>
3408
3409         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
3410         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
3411         gl_PREREQ_WCSNRTOMBS invocations from here...
3412         * modules/wcsnrtombs (configure.ac): ... to here.
3413
3414 2011-05-22  Bruno Haible  <bruno@clisp.org>
3415
3416         wcsnlen: Move AC_LIBOBJ invocations to module description.
3417         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
3418         here...
3419         * modules/wcsnlen (configure.ac): ... to here.
3420
3421 2011-05-22  Bruno Haible  <bruno@clisp.org>
3422
3423         wcsncpy: Move AC_LIBOBJ invocations to module description.
3424         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
3425         here...
3426         * modules/wcsncpy (configure.ac): ... to here.
3427
3428 2011-05-22  Bruno Haible  <bruno@clisp.org>
3429
3430         wcsncmp: Move AC_LIBOBJ invocations to module description.
3431         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
3432         here...
3433         * modules/wcsncmp (configure.ac): ... to here.
3434
3435 2011-05-22  Bruno Haible  <bruno@clisp.org>
3436
3437         wcsncat: Move AC_LIBOBJ invocations to module description.
3438         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
3439         here...
3440         * modules/wcsncat (configure.ac): ... to here.
3441
3442 2011-05-22  Bruno Haible  <bruno@clisp.org>
3443
3444         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
3445         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
3446         from here...
3447         * modules/wcsncasecmp (configure.ac): ... to here.
3448
3449 2011-05-22  Bruno Haible  <bruno@clisp.org>
3450
3451         wcslen: Move AC_LIBOBJ invocations to module description.
3452         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
3453         * modules/wcslen (configure.ac): ... to here.
3454
3455 2011-05-22  Bruno Haible  <bruno@clisp.org>
3456
3457         wcsdup: Move AC_LIBOBJ invocations to module description.
3458         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
3459         * modules/wcsdup (configure.ac): ... to here.
3460
3461 2011-05-22  Bruno Haible  <bruno@clisp.org>
3462
3463         wcscspn: Move AC_LIBOBJ invocations to module description.
3464         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
3465         here...
3466         * modules/wcscspn (configure.ac): ... to here.
3467
3468 2011-05-22  Bruno Haible  <bruno@clisp.org>
3469
3470         wcscpy: Move AC_LIBOBJ invocations to module description.
3471         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
3472         * modules/wcscpy (configure.ac): ... to here.
3473
3474 2011-05-22  Bruno Haible  <bruno@clisp.org>
3475
3476         wcscoll: Move AC_LIBOBJ invocations to module description.
3477         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
3478         here...
3479         * modules/wcscoll (configure.ac): ... to here.
3480
3481 2011-05-22  Bruno Haible  <bruno@clisp.org>
3482
3483         wcscmp: Move AC_LIBOBJ invocations to module description.
3484         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
3485         * modules/wcscmp (configure.ac): ... to here.
3486
3487 2011-05-22  Bruno Haible  <bruno@clisp.org>
3488
3489         wcschr: Move AC_LIBOBJ invocations to module description.
3490         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
3491         * modules/wcschr (configure.ac): ... to here.
3492
3493 2011-05-22  Bruno Haible  <bruno@clisp.org>
3494
3495         wcscat: Move AC_LIBOBJ invocations to module description.
3496         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
3497         * modules/wcscat (configure.ac): ... to here.
3498
3499 2011-05-22  Bruno Haible  <bruno@clisp.org>
3500
3501         wcscasecmp: Move AC_LIBOBJ invocations to module description.
3502         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
3503         here...
3504         * modules/wcscasecmp (configure.ac): ... to here.
3505
3506 2011-05-22  Bruno Haible  <bruno@clisp.org>
3507
3508         wcrtomb: Move AC_LIBOBJ invocations to module description.
3509         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
3510         invocations from here...
3511         * modules/wcrtomb (configure.ac): ... to here.
3512
3513 2011-05-22  Bruno Haible  <bruno@clisp.org>
3514
3515         wcpncpy: Move AC_LIBOBJ invocations to module description.
3516         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
3517         here...
3518         * modules/wcpncpy (configure.ac): ... to here.
3519
3520 2011-05-22  Bruno Haible  <bruno@clisp.org>
3521
3522         wcpcpy: Move AC_LIBOBJ invocations to module description.
3523         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
3524         * modules/wcpcpy (configure.ac): ... to here.
3525
3526 2011-05-22  Bruno Haible  <bruno@clisp.org>
3527
3528         waitpid: Move AC_LIBOBJ invocations to module description.
3529         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
3530         invocation from here...
3531         * modules/waitpid (configure.ac): ... to here.
3532
3533 2011-05-22  Bruno Haible  <bruno@clisp.org>
3534
3535         utimensat: Move AC_LIBOBJ invocations to module description.
3536         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
3537         here...
3538         * modules/utimensat (configure.ac): ... to here.
3539
3540 2011-05-22  Bruno Haible  <bruno@clisp.org>
3541
3542         usleep: Move AC_LIBOBJ invocations to module description.
3543         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
3544         here...
3545         * modules/usleep (configure.ac): ... to here.
3546
3547 2011-05-22  Bruno Haible  <bruno@clisp.org>
3548
3549         unlockpt: Move AC_LIBOBJ invocations to module description.
3550         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
3551         gl_PREREQ_UNLOCKPT invocations from here...
3552         * modules/unlockpt (configure.ac): ... to here.
3553
3554 2011-05-22  Bruno Haible  <bruno@clisp.org>
3555
3556         unlink: Respect rules for use of AC_LIBOBJ.
3557         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
3558         * modules/unlink (configure.ac): ... to here.
3559
3560 2011-05-22  Bruno Haible  <bruno@clisp.org>
3561
3562         uname: Move AC_LIBOBJ invocations to module description.
3563         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
3564         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
3565         here...
3566         * modules/uname (configure.ac): ... to here.
3567
3568 2011-05-22  Bruno Haible  <bruno@clisp.org>
3569
3570         ttyname_r: Move AC_LIBOBJ invocations to module description.
3571         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
3572         gl_PREREQ_TTYNAME_R invocations from here...
3573         * modules/ttyname_r (configure.ac): ... to here.
3574
3575 2011-05-22  Bruno Haible  <bruno@clisp.org>
3576
3577         tsearch: Move AC_LIBOBJ invocations to module description.
3578         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
3579         invocations from here...
3580         * modules/tsearch (configure.ac): ... to here.
3581
3582 2011-05-22  Bruno Haible  <bruno@clisp.org>
3583
3584         towctrans: Move AC_LIBOBJ invocations to module description.
3585         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
3586         AC_LIBOBJ invocation from here...
3587         * modules/towctrans (configure.ac): ... to here.
3588
3589 2011-05-22  Bruno Haible  <bruno@clisp.org>
3590
3591         tmpfile: Move AC_LIBOBJ invocations to module description.
3592         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
3593         invocations from here...
3594         * modules/tmpfile (configure.ac): ... to here.
3595
3596 2011-05-22  Bruno Haible  <bruno@clisp.org>
3597
3598         times: Move AC_LIBOBJ invocations to module description.
3599         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
3600         * modules/times (configure.ac): ... to here.
3601
3602 2011-05-22  Bruno Haible  <bruno@clisp.org>
3603
3604         time_r: Move AC_LIBOBJ invocations to module description.
3605         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
3606         invocations from here...
3607         * modules/time_r (configure.ac): ... to here.
3608
3609 2011-05-22  Bruno Haible  <bruno@clisp.org>
3610
3611         timegm: Move AC_LIBOBJ invocations to module description.
3612         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
3613         invocations from here...
3614         * modules/timegm (configure.ac): ... to here.
3615
3616 2011-05-22  Bruno Haible  <bruno@clisp.org>
3617
3618         tcgetsid: Move AC_LIBOBJ invocations to module description.
3619         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
3620         and gl_PREREQ_TCGETSID invocations from here...
3621         * modules/tcgetsid (configure.ac): ... to here.
3622         (Depends-on): Update conditions.
3623
3624 2011-05-22  Bruno Haible  <bruno@clisp.org>
3625
3626         symlinkat: Move AC_LIBOBJ invocations to module description.
3627         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
3628         here...
3629         * modules/symlinkat (configure.ac): ... to here.
3630
3631 2011-05-22  Bruno Haible  <bruno@clisp.org>
3632
3633         symlink: Move AC_LIBOBJ invocations to module description.
3634         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
3635         here...
3636         * modules/symlink (configure.ac): ... to here.
3637
3638 2011-05-22  Bruno Haible  <bruno@clisp.org>
3639
3640         strverscmp: Move AC_LIBOBJ invocations to module description.
3641         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
3642         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
3643         from here...
3644         * modules/strverscmp (configure.ac): ... to here.
3645
3646 2011-05-22  Bruno Haible  <bruno@clisp.org>
3647
3648         strtok_r: Move AC_LIBOBJ invocations to module description.
3649         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
3650         and gl_PREREQ_STRTOK_R invocations from here...
3651         * modules/strtok_r (configure.ac): ... to here.
3652         (Depends-on): Update conditions.
3653
3654 2011-05-22  Bruno Haible  <bruno@clisp.org>
3655
3656         strtoumax: Move AC_LIBOBJ invocations to module description.
3657         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
3658         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
3659         from here...
3660         * modules/strtoumax (configure.ac): ... to here.
3661
3662 2011-05-22  Bruno Haible  <bruno@clisp.org>
3663
3664         strtoimax: Move AC_LIBOBJ invocations to module description.
3665         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
3666         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
3667         from here...
3668         * modules/strtoimax (configure.ac): ... to here.
3669
3670 2011-05-22  Bruno Haible  <bruno@clisp.org>
3671
3672         strtoull: Move AC_LIBOBJ invocations to module description.
3673         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
3674         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
3675         from here...
3676         * modules/strtoull (configure.ac): ... to here.
3677
3678 2011-05-22  Bruno Haible  <bruno@clisp.org>
3679
3680         strtoll: Move AC_LIBOBJ invocations to module description.
3681         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
3682         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
3683         here...
3684         * modules/strtoll (configure.ac): ... to here.
3685
3686 2011-05-22  Bruno Haible  <bruno@clisp.org>
3687
3688         strtoul: Move AC_LIBOBJ invocations to module description.
3689         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
3690         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3691         * modules/strtoul (configure.ac): ... to here.
3692
3693 2011-05-22  Bruno Haible  <bruno@clisp.org>
3694
3695         strtol: Move AC_LIBOBJ invocations to module description.
3696         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
3697         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3698         * modules/strtol (configure.ac): ... to here.
3699
3700 2011-05-22  Bruno Haible  <bruno@clisp.org>
3701
3702         strtod: Move AC_LIBOBJ invocations to module description.
3703         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
3704         invocations from here...
3705         * modules/strtod (configure.ac): ... to here.
3706
3707 2011-05-22  Bruno Haible  <bruno@clisp.org>
3708
3709         strstr*: Move AC_LIBOBJ invocations to module description.
3710         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
3711         invocations from here...
3712         * modules/strstr-simple (configure.ac): ... to here.
3713         * modules/strstr (configure.ac): ... and here.
3714
3715 2011-05-22  Bruno Haible  <bruno@clisp.org>
3716
3717         strsignal: Move AC_LIBOBJ invocations to module description.
3718         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
3719         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
3720         * modules/strsignal (configure.ac): ... to here.
3721         (Depends-on): Update conditions.
3722
3723 2011-05-22  Bruno Haible  <bruno@clisp.org>
3724
3725         strsep: Move AC_LIBOBJ invocations to module description.
3726         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
3727         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
3728         here...
3729         * modules/strsep (configure.ac): ... to here.
3730
3731 2011-05-22  Bruno Haible  <bruno@clisp.org>
3732
3733         strptime: Move AC_LIBOBJ invocations to module description.
3734         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
3735         gl_PREREQ_STRPTIME invocations from here...
3736         * modules/strptime (configure.ac): ... to here.
3737
3738 2011-05-22  Bruno Haible  <bruno@clisp.org>
3739
3740         strpbrk: Move AC_LIBOBJ invocations to module description.
3741         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
3742         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
3743         here...
3744         * modules/strpbrk (configure.ac): ... to here.
3745
3746 2011-05-22  Bruno Haible  <bruno@clisp.org>
3747
3748         strnlen: Move AC_LIBOBJ invocations to module description.
3749         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
3750         invocations from here...
3751         * modules/strnlen (configure.ac): ... to here.
3752
3753 2011-05-22  Bruno Haible  <bruno@clisp.org>
3754
3755         strndup: Move AC_LIBOBJ invocations to module description.
3756         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
3757         invocations from here...
3758         * modules/strndup (configure.ac): ... to here.
3759         (Depends-on): Update conditions.
3760
3761 2011-05-22  Bruno Haible  <bruno@clisp.org>
3762
3763         strncat: Move AC_LIBOBJ invocations to module description.
3764         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
3765         invocations from here...
3766         * modules/strncat (configure.ac): ... to here.
3767
3768 2011-05-22  Bruno Haible  <bruno@clisp.org>
3769
3770         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
3771         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
3772         invocations from here...
3773         * modules/strdup (configure.ac): ... to here.
3774         * modules/strdup-posix (configure.ac): ... and here.
3775
3776 2011-05-22  Bruno Haible  <bruno@clisp.org>
3777
3778         strcspn: Move AC_LIBOBJ invocations to module description.
3779         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
3780         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
3781         here...
3782         * modules/strcspn (configure.ac): ... to here.
3783
3784 2011-05-22  Bruno Haible  <bruno@clisp.org>
3785
3786         strchrnul: Move AC_LIBOBJ invocations to module description.
3787         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
3788         gl_PREREQ_STRCHRNUL invocations from here...
3789         * modules/strchrnul (configure.ac): ... to here.
3790
3791 2011-05-22  Bruno Haible  <bruno@clisp.org>
3792
3793         strcasestr*: Move AC_LIBOBJ invocations to module description.
3794         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
3795         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
3796         * modules/strcasestr-simple (configure.ac): ... to here.
3797         * modules/strcasestr (configure.ac): ... and here.
3798
3799 2011-05-22  Bruno Haible  <bruno@clisp.org>
3800
3801         strcase: Move AC_LIBOBJ invocations to module description.
3802         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
3803         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
3804         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
3805         gl_PREREQ_STRNCASECMP invocations from here...
3806         * modules/strcase (configure.ac): ... to here.
3807
3808 2011-05-22  Bruno Haible  <bruno@clisp.org>
3809
3810         stpncpy: Move AC_LIBOBJ invocations to module description.
3811         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
3812         here...
3813         * modules/stpncpy (configure.ac): ... to here.
3814
3815 2011-05-22  Bruno Haible  <bruno@clisp.org>
3816
3817         stpcpy: Move AC_LIBOBJ invocations to module description.
3818         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
3819         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
3820         here...
3821         * modules/stpcpy (configure.ac): ... to here.
3822
3823 2011-05-21  Bruno Haible  <bruno@clisp.org>
3824
3825         stat: Move AC_LIBOBJ invocations to module description.
3826         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
3827         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
3828         here...
3829         * modules/stat (configure.ac): ... to here.
3830
3831 2011-05-21  Bruno Haible  <bruno@clisp.org>
3832
3833         sleep: Move AC_LIBOBJ invocations to module description.
3834         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
3835         * modules/sleep (configure.ac): ... to here.
3836
3837 2011-05-21  Bruno Haible  <bruno@clisp.org>
3838
3839         signbit: Move AC_LIBOBJ invocations to module description.
3840         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
3841         * modules/signbit (configure.ac): ... to here.
3842
3843 2011-05-21  Bruno Haible  <bruno@clisp.org>
3844
3845         sigprocmask: Move AC_LIBOBJ invocations to module description.
3846         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
3847         gl_PREREQ_SIGPROMASK invocations from here...
3848         * modules/sigprocmask (configure.ac): ... to here.
3849
3850 2011-05-21  Bruno Haible  <bruno@clisp.org>
3851
3852         sigaction: Move AC_LIBOBJ invocations to module description.
3853         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
3854         gl_PREREQ_SIGACTION invocations from here...
3855         * modules/sigaction (configure.ac): ... to here.
3856
3857 2011-05-21  Bruno Haible  <bruno@clisp.org>
3858
3859         sig2str: Move AC_LIBOBJ invocations to module description.
3860         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
3861         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
3862         here...
3863         * modules/sig2str (configure.ac): ... to here.
3864
3865 2011-05-21  Bruno Haible  <bruno@clisp.org>
3866
3867         setlocale: Move AC_LIBOBJ invocations to module description.
3868         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
3869         gl_PREREQ_SETLOCALE invocations from here...
3870         * modules/setlocale (configure.ac): ... to here.
3871
3872 2011-05-21  Bruno Haible  <bruno@clisp.org>
3873
3874         unsetenv: Move AC_LIBOBJ invocations to module description.
3875         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
3876         and gl_PREREQ_UNSETENV invocations from here...
3877         * modules/unsetenv (configure.ac): ... to here.
3878         (Depends-on): Update.
3879
3880 2011-05-21  Bruno Haible  <bruno@clisp.org>
3881
3882         setenv: Move AC_LIBOBJ invocations to module description.
3883         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
3884         here...
3885         * modules/setenv (configure.ac): ... to here.
3886
3887 2011-05-21  Bruno Haible  <bruno@clisp.org>
3888
3889         selinux-h: Move AC_LIBOBJ invocations to module description.
3890         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
3891         AC_LIBOBJ invocation from here...
3892         * modules/selinux-h (configure.ac): ... to here.
3893
3894 2011-05-21  Bruno Haible  <bruno@clisp.org>
3895
3896         select: Respect rules for use of AC_LIBOBJ.
3897         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
3898         here...
3899         * modules/select (configure.ac): ... to here.
3900
3901 2011-05-21  Bruno Haible  <bruno@clisp.org>
3902
3903         scandir: Move AC_LIBOBJ invocations to module description.
3904         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
3905         invocations from here...
3906         * modules/scandir (configure.ac): ... to here.
3907
3908 2011-05-21  Bruno Haible  <bruno@clisp.org>
3909
3910         rpmatch: Move AC_LIBOBJ invocations to module description.
3911         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
3912         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
3913         here...
3914         * modules/rpmatch (configure.ac): ... to here.
3915
3916 2011-05-21  Bruno Haible  <bruno@clisp.org>
3917
3918         rmdir: Respect rules for use of AC_LIBOBJ.
3919         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
3920         * modules/rmdir (configure.ac): ... to here.
3921
3922 2011-05-21  Bruno Haible  <bruno@clisp.org>
3923
3924         renameat: Move AC_LIBOBJ invocations to module description.
3925         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
3926         here...
3927         * modules/renameat (configure.ac): ... to here.
3928
3929 2011-05-21  Bruno Haible  <bruno@clisp.org>
3930
3931         rename: Respect rules for use of AC_LIBOBJ.
3932         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
3933         here...
3934         * modules/rename (configure.ac): ... to here.
3935
3936 2011-05-21  Bruno Haible  <bruno@clisp.org>
3937
3938         remove: Move AC_LIBOBJ invocations to module description.
3939         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
3940         here...
3941         * modules/remove (configure.ac): ... to here.
3942
3943 2011-05-21  Bruno Haible  <bruno@clisp.org>
3944
3945         relocatable-lib: Move AC_LIBOBJ invocations to module description.
3946         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
3947         macro.
3948         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
3949         * modules/relocatable-lib (configure.ac): ... to here.
3950         * modules/relocatable-prog-wrapper (configure.ac): Invoke
3951         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
3952
3953 2011-05-21  Bruno Haible  <bruno@clisp.org>
3954
3955         relocatable-prog: Move AC_LIBOBJ invocations to module description.
3956         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
3957         here...
3958         * modules/relocatable-prog (configure.ac): ... to here.
3959
3960 2011-05-21  Bruno Haible  <bruno@clisp.org>
3961
3962         regex: Move AC_LIBOBJ invocations to module description.
3963         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
3964         invocations from here...
3965         * modules/regex (configure.ac): ... to here.
3966
3967 2011-05-21  Bruno Haible  <bruno@clisp.org>
3968
3969         realloc-*: Move AC_LIBOBJ invocations to module description.
3970         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
3971         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
3972         AC_LIBOBJ invocations from here...
3973         * modules/realloc-gnu (configure.ac): ... to here.
3974         * modules/realloc-posix (configure.ac): ... and here.
3975
3976 2011-05-21  Bruno Haible  <bruno@clisp.org>
3977
3978         readutmp: Move AC_LIBOBJ invocations to module description.
3979         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
3980         * modules/readutmp (configure.ac): ... to here.
3981
3982 2011-05-21  Bruno Haible  <bruno@clisp.org>
3983
3984         readlinkat: Move AC_LIBOBJ invocations to module description.
3985         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
3986         here...
3987         * modules/readlinkat (configure.ac): ... to here.
3988
3989 2011-05-21  Bruno Haible  <bruno@clisp.org>
3990
3991         readlink: Move AC_LIBOBJ invocations to module description.
3992         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
3993         gl_PREREQ_READLINK invocations from here...
3994         * modules/readlink (configure.ac): ... to here.
3995
3996 2011-05-21  Bruno Haible  <bruno@clisp.org>
3997
3998         readline: Move AC_LIBOBJ invocations to module description.
3999         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4000         gl_PREREQ_READLINE invocations from here...
4001         * modules/readline (configure.ac): ... to here.
4002
4003 2011-05-21  Bruno Haible  <bruno@clisp.org>
4004
4005         read: Move AC_LIBOBJ invocations to module description.
4006         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4007         * modules/read (configure.ac): ... to here.
4008
4009 2011-05-21  Bruno Haible  <bruno@clisp.org>
4010
4011         rawmemchr: Move AC_LIBOBJ invocations to module description.
4012         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4013         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4014         from here...
4015         * modules/rawmemchr (configure.ac): ... to here.
4016
4017 2011-05-21  Bruno Haible  <bruno@clisp.org>
4018
4019         random_r: Move AC_LIBOBJ invocations to module description.
4020         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4021         gl_PREREQ_RANDOM_R invocations from here...
4022         * modules/random_r (configure.ac): ... to here.
4023
4024 2011-05-21  Bruno Haible  <bruno@clisp.org>
4025
4026         pwrite: Move AC_LIBOBJ invocations to module description.
4027         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4028         * modules/pwrite (configure.ac): ... to here.
4029
4030 2011-05-21  Bruno Haible  <bruno@clisp.org>
4031
4032         putenv: Move AC_LIBOBJ invocations to module description.
4033         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4034         * modules/putenv (configure.ac): ... to here.
4035
4036 2011-05-21  Bruno Haible  <bruno@clisp.org>
4037
4038         login_tty: Move AC_LIBOBJ invocations to module description.
4039         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4040         * modules/login_tty (configure.ac): ... to here.
4041
4042 2011-05-21  Bruno Haible  <bruno@clisp.org>
4043
4044         openpty: Move AC_LIBOBJ invocations to module description.
4045         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4046         * modules/openpty (configure.ac): ... to here.
4047
4048 2011-05-21  Bruno Haible  <bruno@clisp.org>
4049
4050         forkpty: Move AC_LIBOBJ invocations to module description.
4051         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4052         * modules/forkpty (configure.ac): ... to here.
4053
4054 2011-05-21  Bruno Haible  <bruno@clisp.org>
4055
4056         ptsname: Move AC_LIBOBJ invocations to module description.
4057         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4058         invocations from here...
4059         * modules/ptsname (configure.ac): ... to here.
4060
4061 2011-05-21  Bruno Haible  <bruno@clisp.org>
4062
4063         pread: Move AC_LIBOBJ invocations to module description.
4064         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4065         * modules/pread (configure.ac): ... to here.
4066
4067 2011-05-21  Bruno Haible  <bruno@clisp.org>
4068
4069         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4070         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4071         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4072         * modules/posix_spawn (configure.ac): ... to here.
4073         * modules/posix_spawnp (configure.ac): ... and here.
4074
4075 2011-05-21  Bruno Haible  <bruno@clisp.org>
4076
4077         popen: Move AC_LIBOBJ invocations to module description.
4078         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4079         invocations from here...
4080         * modules/popen (configure.ac): ... to here.
4081
4082 2011-05-21  Bruno Haible  <bruno@clisp.org>
4083
4084         poll: Move AC_LIBOBJ invocations to module description.
4085         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4086         invocations from here...
4087         * modules/poll (configure.ac): ... to here.
4088
4089 2011-05-21  Bruno Haible  <bruno@clisp.org>
4090
4091         pipe-posix: Move AC_LIBOBJ invocations to module description.
4092         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4093         * modules/pipe-posix (configure.ac): ... to here.
4094
4095 2011-05-21  Bruno Haible  <bruno@clisp.org>
4096
4097         openat: Respect rules for use of AC_LIBOBJ.
4098         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4099         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4100         * modules/openat (configure.ac): ... to here.
4101
4102 2011-05-21  Bruno Haible  <bruno@clisp.org>
4103
4104         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4105         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4106         invocation from here...
4107         * modules/obstack-printf (configure.ac): ... to here.
4108         * modules/obstack-printf-posix (configure.ac): ... and here.
4109
4110 2011-05-21  Bruno Haible  <bruno@clisp.org>
4111
4112         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4113         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4114         from here...
4115         * modules/nl_langinfo (configure.ac): ... to here.
4116
4117 2011-05-21  Bruno Haible  <bruno@clisp.org>
4118
4119         nanosleep: Move AC_LIBOBJ invocations to module description.
4120         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4121         gl_PREREQ_NANOSLEEP invocations from here...
4122         * modules/nanosleep (configure.ac): ... to here.
4123
4124 2011-05-21  Bruno Haible  <bruno@clisp.org>
4125
4126         mountlist: Move AC_LIBOBJ invocations to module description.
4127         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4128         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4129         * modules/mountlist (configure.ac): ... to here.
4130
4131 2011-05-21  Bruno Haible  <bruno@clisp.org>
4132
4133         mktime: Respect rules for use of AC_LIBOBJ.
4134         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4135         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4136         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4137         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4138         * modules/mktime (configure.ac): ... to here.
4139         * modules/mktime-internal (configure.ac): ... and here.
4140         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4141
4142 2011-05-21  Bruno Haible  <bruno@clisp.org>
4143
4144         mkstemps: Move AC_LIBOBJ invocations to module description.
4145         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
4146         here...
4147         * modules/mkstemps (configure.ac): ... to here.
4148
4149 2011-05-21  Bruno Haible  <bruno@clisp.org>
4150
4151         mkstemp: Move AC_LIBOBJ invocations to module description.
4152         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
4153         gl_PREREQ_MKSTEMP invocations from here...
4154         * modules/mkstemp (configure.ac): ... to here.
4155
4156 2011-05-21  Bruno Haible  <bruno@clisp.org>
4157
4158         mkostemps: Move AC_LIBOBJ invocations to module description.
4159         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
4160         here...
4161         * modules/mkostemps (configure.ac): ... to here.
4162
4163 2011-05-21  Bruno Haible  <bruno@clisp.org>
4164
4165         mkostemp: Move AC_LIBOBJ invocations to module description.
4166         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
4167         gl_PREREQ_MKOSTEMP invocations from here...
4168         * modules/mkostemp (configure.ac): ... to here.
4169
4170 2011-05-21  Bruno Haible  <bruno@clisp.org>
4171
4172         mknod: Move AC_LIBOBJ invocations to module description.
4173         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
4174         * modules/mknod (configure.ac): ... to here.
4175
4176 2011-05-21  Bruno Haible  <bruno@clisp.org>
4177
4178         mkfifoat: Move AC_LIBOBJ invocations to module description.
4179         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
4180         here...
4181         * modules/mkfifoat (configure.ac): ... to here.
4182
4183 2011-05-21  Bruno Haible  <bruno@clisp.org>
4184
4185         mkfifo: Respect rules for use of AC_LIBOBJ.
4186         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
4187         here...
4188         * modules/mkfifo (configure.ac): ... to here.
4189
4190 2011-05-21  Bruno Haible  <bruno@clisp.org>
4191
4192         mkdtemp: Move AC_LIBOBJ invocations to module description.
4193         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
4194         invocations from here...
4195         * modules/mkdtemp (configure.ac): ... to here.
4196
4197 2011-05-21  Bruno Haible  <bruno@clisp.org>
4198
4199         mkdir: Move AC_LIBOBJ invocations to module description.
4200         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
4201         * modules/mkdir (configure.ac): ... to here.
4202
4203 2011-05-21  Bruno Haible  <bruno@clisp.org>
4204
4205         memset: Move AC_LIBOBJ invocations to module description.
4206         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
4207         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
4208         here...
4209         * modules/memset (configure.ac): ... to here.
4210
4211 2011-05-21  Bruno Haible  <bruno@clisp.org>
4212
4213         memrchr: Move AC_LIBOBJ invocations to module description.
4214         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
4215         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
4216         here...
4217         * modules/memrchr (configure.ac): ... to here.
4218
4219 2011-05-21  Bruno Haible  <bruno@clisp.org>
4220
4221         mempcpy: Move AC_LIBOBJ invocations to module description.
4222         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
4223         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
4224         here...
4225         * modules/mempcpy (configure.ac): ... to here.
4226
4227 2011-05-21  Bruno Haible  <bruno@clisp.org>
4228
4229         memmove: Move AC_LIBOBJ invocations to module description.
4230         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
4231         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
4232         here...
4233         * modules/memmove (configure.ac): ... to here.
4234
4235 2011-05-21  Bruno Haible  <bruno@clisp.org>
4236
4237         memmem*: Move AC_LIBOBJ invocations to module description.
4238         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
4239         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
4240         here...
4241         (gl_FUNC_MEMMEM): ... and here...
4242         * modules/memmem-simple (configure.ac): ... to here.
4243         * modules/memmem (configure.ac): ... and here.
4244
4245 2011-05-21  Bruno Haible  <bruno@clisp.org>
4246
4247         memcpy: Move AC_LIBOBJ invocations to module description.
4248         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
4249         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
4250         here...
4251         * modules/memcpy (configure.ac): ... to here.
4252
4253 2011-05-21  Bruno Haible  <bruno@clisp.org>
4254
4255         memcmp: Simplify autoconf macro.
4256         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
4257         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
4258         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
4259
4260 2011-05-21  Bruno Haible  <bruno@clisp.org>
4261
4262         memcmp: Move AC_LIBOBJ invocations to module description.
4263         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
4264         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
4265         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
4266         * modules/memcmp (configure.ac): ... to here.
4267         (Depends-on): Update conditions.
4268
4269 2011-05-21  Bruno Haible  <bruno@clisp.org>
4270
4271         memchr: Respect rules for use of AC_LIBOBJ.
4272         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
4273         invocations from here...
4274         * modules/memchr (configure.ac): ... to here.
4275
4276 2011-05-21  Bruno Haible  <bruno@clisp.org>
4277
4278         mbtowc: Move AC_LIBOBJ invocations to module description.
4279         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4280         invocations from here...
4281         * modules/mbtowc (configure.ac): ... to here.
4282
4283 2011-05-21  Bruno Haible  <bruno@clisp.org>
4284
4285         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4286         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4287         gl_PREREQ_MBSRTOWCS invocations from here...
4288         * modules/mbsrtowcs (configure.ac): ... to here.
4289
4290 2011-05-21  Bruno Haible  <bruno@clisp.org>
4291
4292         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4293         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4294         gl_PREREQ_MBSNRTOWCS invocations from here...
4295         * modules/mbsnrtowcs (configure.ac): ... to here.
4296
4297 2011-05-21  Bruno Haible  <bruno@clisp.org>
4298
4299         mbsinit: Move AC_LIBOBJ invocations to module description.
4300         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4301         invocations from here...
4302         * modules/mbsinit (configure.ac): ... to here.
4303
4304 2011-05-21  Bruno Haible  <bruno@clisp.org>
4305
4306         mbrlen: Move AC_LIBOBJ invocations to module description.
4307         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4308         invocations from here...
4309         * modules/mbrlen (configure.ac): ... to here.
4310
4311 2011-05-21  Bruno Haible  <bruno@clisp.org>
4312
4313         mbrtowc: Respect rules for use of AC_LIBOBJ.
4314         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
4315         invocations from here...
4316         * modules/mbrtowc (configure.ac): ... to here.
4317
4318 2011-05-21  Bruno Haible  <bruno@clisp.org>
4319
4320         malloc-*: Move AC_LIBOBJ invocations to module description.
4321         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
4322         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
4323         AC_LIBOBJ invocations from here...
4324         * modules/malloc-gnu (configure.ac): ... to here.
4325         * modules/malloc-posix (configure.ac): ... and here.
4326
4327 2011-05-21  Bruno Haible  <bruno@clisp.org>
4328
4329         lstat, openat: Respect rules for use of AC_LIBOBJ.
4330         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
4331         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
4332         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
4333         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
4334         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
4335         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
4336         here.
4337         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4338
4339 2011-05-21  Bruno Haible  <bruno@clisp.org>
4340
4341         lseek: Move AC_LIBOBJ invocations to module description.
4342         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
4343         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4344         * modules/lseek (configure.ac): ... to here.
4345
4346 2011-05-21  Bruno Haible  <bruno@clisp.org>
4347
4348         linkat: Move AC_LIBOBJ invocations to module description.
4349         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
4350         here...
4351         * modules/linkat (configure.ac): ... to here.
4352
4353 2011-05-21  Bruno Haible  <bruno@clisp.org>
4354
4355         link: Respect rules for use of AC_LIBOBJ.
4356         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
4357         * modules/link (configure.ac): ... to here.
4358
4359 2011-05-21  Bruno Haible  <bruno@clisp.org>
4360
4361         lchown: Move AC_LIBOBJ invocations to module description.
4362         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4363         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4364         * modules/lchown (configure.ac): ... to here.
4365
4366 2011-05-21  Bruno Haible  <bruno@clisp.org>
4367
4368         iswctype: Move AC_LIBOBJ invocations to module description.
4369         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
4370         here...
4371         * modules/iswctype (configure.ac): ... to here.
4372
4373 2011-05-21  Bruno Haible  <bruno@clisp.org>
4374
4375         iswblank: Move AC_LIBOBJ invocations to module description.
4376         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
4377         here...
4378         * modules/iswblank (configure.ac): ... to here.
4379
4380 2011-05-21  Bruno Haible  <bruno@clisp.org>
4381
4382         atanl: Move AC_LIBOBJ invocations to module description.
4383         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
4384         * modules/atanl (configure.ac): ... to here.
4385
4386 2011-05-21  Bruno Haible  <bruno@clisp.org>
4387
4388         acosl: Move AC_LIBOBJ invocations to module description.
4389         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
4390         * modules/acosl (configure.ac): ... to here.
4391
4392 2011-05-21  Bruno Haible  <bruno@clisp.org>
4393
4394         asinl: Respect rules for use of AC_LIBOBJ.
4395         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
4396         * modules/asinl (configure.ac): ... to here.
4397
4398 2011-05-21  Bruno Haible  <bruno@clisp.org>
4399
4400         tanl: Move AC_LIBOBJ invocations to module description.
4401         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
4402         * modules/tanl (configure.ac): ... to here.
4403
4404 2011-05-21  Bruno Haible  <bruno@clisp.org>
4405
4406         cosl: Move AC_LIBOBJ invocations to module description.
4407         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
4408         * modules/cosl (configure.ac): ... to here.
4409
4410 2011-05-21  Bruno Haible  <bruno@clisp.org>
4411
4412         sinl: Move AC_LIBOBJ invocations to module description.
4413         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
4414         * modules/sinl (configure.ac): ... to here.
4415
4416 2011-05-21  Bruno Haible  <bruno@clisp.org>
4417
4418         logl: Move AC_LIBOBJ invocations to module description.
4419         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
4420         * modules/logl (configure.ac): ... to here.
4421
4422 2011-05-21  Bruno Haible  <bruno@clisp.org>
4423
4424         expl: Move AC_LIBOBJ invocations to module description.
4425         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
4426         * modules/expl (configure.ac): ... to here.
4427
4428 2011-05-21  Bruno Haible  <bruno@clisp.org>
4429
4430         roundl: Move AC_LIBOBJ invocations to module description.
4431         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
4432         * modules/roundl (configure.ac): ... to here.
4433
4434 2011-05-21  Bruno Haible  <bruno@clisp.org>
4435
4436         round: Move AC_LIBOBJ invocations to module description.
4437         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
4438         * modules/round (configure.ac): ... to here.
4439
4440 2011-05-21  Bruno Haible  <bruno@clisp.org>
4441
4442         roundf: Move AC_LIBOBJ invocations to module description.
4443         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
4444         * modules/roundf (configure.ac): ... to here.
4445
4446 2011-05-21  Bruno Haible  <bruno@clisp.org>
4447
4448         truncl: Move AC_LIBOBJ invocations to module description.
4449         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
4450         * modules/truncl (configure.ac): ... to here.
4451
4452 2011-05-21  Bruno Haible  <bruno@clisp.org>
4453
4454         trunc: Move AC_LIBOBJ invocations to module description.
4455         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
4456         * modules/trunc (configure.ac): ... to here.
4457
4458 2011-05-21  Bruno Haible  <bruno@clisp.org>
4459
4460         truncf: Move AC_LIBOBJ invocations to module description.
4461         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
4462         * modules/truncf (configure.ac): ... to here.
4463
4464 2011-05-21  Bruno Haible  <bruno@clisp.org>
4465
4466         ceill: Move AC_LIBOBJ invocations to module description.
4467         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
4468         * modules/ceill (configure.ac): ... to here.
4469
4470 2011-05-21  Bruno Haible  <bruno@clisp.org>
4471
4472         ceil: Move AC_LIBOBJ invocations to module description.
4473         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
4474         * modules/ceil (configure.ac): ... to here.
4475
4476 2011-05-21  Bruno Haible  <bruno@clisp.org>
4477
4478         ceilf: Move AC_LIBOBJ invocations to module description.
4479         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
4480         * modules/ceilf (configure.ac): ... to here.
4481
4482 2011-05-21  Bruno Haible  <bruno@clisp.org>
4483
4484         floorl: Respect rules for use of AC_LIBOBJ.
4485         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
4486         * modules/floorl (configure.ac): ... to here.
4487
4488 2011-05-21  Bruno Haible  <bruno@clisp.org>
4489
4490         floor: Respect rules for use of AC_LIBOBJ.
4491         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
4492         * modules/floor (configure.ac): ... to here.
4493
4494 2011-05-21  Bruno Haible  <bruno@clisp.org>
4495
4496         floorf: Move AC_LIBOBJ invocations to module description.
4497         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
4498         * modules/floorf (configure.ac): ... to here.
4499
4500 2011-05-20  Bruno Haible  <bruno@clisp.org>
4501
4502         sqrtl: Respect rules for use of AC_LIBOBJ.
4503         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
4504         * modules/sqrtl (configure.ac): ... to here.
4505
4506 2011-05-20  Bruno Haible  <bruno@clisp.org>
4507
4508         ldexpl: Respect rules for use of AC_LIBOBJ.
4509         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
4510         * modules/ldexpl (configure.ac): ... to here.
4511
4512 2011-05-20  Bruno Haible  <bruno@clisp.org>
4513
4514         frexpl*: Respect rules for use of AC_LIBOBJ.
4515         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
4516         invocation from here...
4517         * modules/frexpl (configure.ac): ... to here.
4518         * modules/frexpl-nolibm (configure.ac): ... and here.
4519
4520 2011-05-20  Bruno Haible  <bruno@clisp.org>
4521
4522         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
4523         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
4524         invocation from here...
4525         * modules/frexp (configure.ac): ... to here.
4526         * modules/frexp-nolibm (configure.ac): ... and here.
4527
4528 2011-05-20  Bruno Haible  <bruno@clisp.org>
4529
4530         isnan: Respect rules for use of AC_LIBOBJ.
4531         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
4532         invocations here.
4533         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
4534         REPLACE_ISNAN.
4535         * modules/isnand (configure.ac): Likewise.
4536         * modules/isnanl (configure.ac): Likewise.
4537
4538 2011-05-20  Bruno Haible  <bruno@clisp.org>
4539
4540         isnanl*: Respect rules for use of AC_LIBOBJ.
4541         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
4542         invocation from here...
4543         * modules/isnanl (configure.ac): ... to here.
4544         * modules/isnanl-nolibm (configure.ac): ... and here.
4545
4546 2011-05-20  Bruno Haible  <bruno@clisp.org>
4547
4548         isnand*: Move AC_LIBOBJ invocations to module description.
4549         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
4550         invocation from here...
4551         * modules/isnand (configure.ac): ... to here.
4552         * modules/isnand-nolibm (configure.ac): ... and here.
4553
4554 2011-05-20  Bruno Haible  <bruno@clisp.org>
4555
4556         isnanf*: Move AC_LIBOBJ invocations to module description.
4557         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
4558         invocation from here...
4559         * modules/isnanf (configure.ac): ... to here.
4560         * modules/isnanf-nolibm (configure.ac): ... and here.
4561
4562 2011-05-20  Bruno Haible  <bruno@clisp.org>
4563
4564         isnan*: Separate the AC_LIBOBJ invocations.
4565         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
4566         AC_LIBOBJ invocation.
4567         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
4568         here.
4569         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
4570         AC_LIBOBJ invocation.
4571         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
4572         here.
4573         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
4574         AC_LIBOBJ invocation.
4575         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
4576         here.
4577         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
4578
4579 2011-05-08  Bruno Haible  <bruno@clisp.org>
4580
4581         isinf: Move AC_LIBOBJ invocations to module description.
4582         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
4583         * modules/isinf (configure.ac): ... to here.
4584
4585 2011-05-08  Bruno Haible  <bruno@clisp.org>
4586
4587         isfinite: Move AC_LIBOBJ invocations to module description.
4588         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
4589         * modules/isfinite (configure.ac): ... to here.
4590
4591 2011-05-08  Bruno Haible  <bruno@clisp.org>
4592
4593         isblank: Move AC_LIBOBJ invocations to module description.
4594         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
4595         here...
4596         * modules/isblank (configure.ac): ... to here.
4597
4598 2011-05-08  Bruno Haible  <bruno@clisp.org>
4599
4600         isapipe: Move AC_LIBOBJ invocations to module description.
4601         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
4602         gl_PREREQ_ISAPIPE invocations from here...
4603         * modules/isapipe (configure.ac): ... to here.
4604         (Depends-on): Update condition.
4605
4606 2011-05-08  Bruno Haible  <bruno@clisp.org>
4607
4608         ioctl: Move AC_LIBOBJ invocations to module description.
4609         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
4610         invocations from here...
4611         * modules/ioctl (configure.ac): ... to here.
4612         (Depends-on): Update condition.
4613
4614 2011-05-08  Bruno Haible  <bruno@clisp.org>
4615
4616         imaxdiv: Move AC_LIBOBJ invocations to module description.
4617         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
4618         invocations from here...
4619         * modules/imaxdiv (configure.ac): ... to here.
4620
4621 2011-05-08  Bruno Haible  <bruno@clisp.org>
4622
4623         imaxabs: Move AC_LIBOBJ invocations to module description.
4624         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
4625         invocations from here...
4626         * modules/imaxabs (configure.ac): ... to here.
4627
4628 2011-05-08  Bruno Haible  <bruno@clisp.org>
4629
4630         getaddrinfo: Move AC_LIBOBJ invocations to module description.
4631         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
4632         AC_LIBOBJ invocations from here...
4633         * modules/getaddrinfo (configure.ac): ... to here.
4634         (Depends-on): Add conditions.
4635
4636 2011-05-08  Bruno Haible  <bruno@clisp.org>
4637
4638         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4639         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
4640         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4641         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
4642         (gl_PREREQ_INET_PTON): ... from here.
4643         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
4644         gl_PREREQ_INET_PTON here.
4645         (Depends-on): Update condition.
4646
4647 2011-05-08  Bruno Haible  <bruno@clisp.org>
4648
4649         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4650         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
4651         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4652         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
4653         (gl_PREREQ_INET_NTOP): ... from here.
4654         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
4655         gl_PREREQ_INET_NTOP here.
4656         (Depends-on): Update condition.
4657
4658 2011-05-08  Bruno Haible  <bruno@clisp.org>
4659
4660         iconv_open: Move AC_LIBOBJ invocations to module description.
4661         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
4662         AC_LIBOBJ invocations from here...
4663         * modules/iconv_open (configure.ac): ... to here.
4664
4665 2011-05-08  Bruno Haible  <bruno@clisp.org>
4666
4667         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
4668         If module 'iconv_open' is among the main modules and module
4669         'iconv_open-utf' is among the tests dependencies, then
4670         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
4671         return the special iconv_t values. Therefore iconv() and iconv_close()
4672         must support these special iconv_t values, already in lib, not only in
4673         tests.
4674         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
4675         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
4676         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
4677         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
4678         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
4679         (Depends-on): Add the dependencies of iconv_open-utf.
4680         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
4681         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
4682         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
4683
4684 2011-05-08  Bruno Haible  <bruno@clisp.org>
4685
4686         group-member: Move AC_LIBOBJ invocations to module description.
4687         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
4688         gl_PREREQ_GROUP_MEMBER invocations from here...
4689         * modules/group-member (configure.ac): ... to here.
4690
4691 2011-05-08  Bruno Haible  <bruno@clisp.org>
4692
4693         grantpt: Move AC_LIBOBJ invocations to module description.
4694         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
4695         invocations from here...
4696         * modules/grantpt (configure.ac): ... to here.
4697
4698 2011-05-08  Bruno Haible  <bruno@clisp.org>
4699
4700         glob: Move AC_LIBOBJ invocations to module description.
4701         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
4702         from here...
4703         * modules/glob (configure.ac): ... to here.
4704
4705 2011-05-08  Bruno Haible  <bruno@clisp.org>
4706
4707         getusershell: Move AC_LIBOBJ invocations to module description.
4708         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
4709         Move AC_LIBOBJ invocation from here...
4710         * modules/getusershell (configure.ac): ... to here.
4711         (Depends-on): Update condition.
4712
4713 2011-05-08  Bruno Haible  <bruno@clisp.org>
4714
4715         gettimeofday: Move AC_LIBOBJ invocations to module description.
4716         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
4717         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
4718         gl_PREREQ_GETTIMEOFDAY invocations from here...
4719         * modules/gettimeofday (configure.ac): ... to here.
4720
4721 2011-05-08  Bruno Haible  <bruno@clisp.org>
4722
4723         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
4724         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
4725         just gl_FUNC_TZSET.
4726         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
4727         (gl_FUNC_TZSET_CLOBBER): Remove actions.
4728         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
4729         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
4730
4731 2011-05-08  Bruno Haible  <bruno@clisp.org>
4732
4733         getsubopt: Move AC_LIBOBJ invocations to module description.
4734         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
4735         gl_PREREQ_GETSUBOPT invocations from here...
4736         * modules/getsubopt (configure.ac): ... to here.
4737
4738 2011-05-08  Bruno Haible  <bruno@clisp.org>
4739
4740         getpass-gnu: Move AC_LIBOBJ invocations to module description.
4741         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
4742         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
4743         * modules/getpass-gnu (configure.ac): ... to here.
4744
4745 2011-05-08  Bruno Haible  <bruno@clisp.org>
4746
4747         getpass: Move AC_LIBOBJ invocations to module description.
4748         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
4749         gl_PREREQ_GETPASS invocations from here...
4750         * modules/getpass (configure.ac): ... to here.
4751
4752 2011-05-08  Bruno Haible  <bruno@clisp.org>
4753
4754         getpagesize: Move AC_LIBOBJ invocations to module description.
4755         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
4756         from here...
4757         * modules/getpagesize (configure.ac): ... to here.
4758
4759 2011-05-08  Bruno Haible  <bruno@clisp.org>
4760
4761         getopt: Move AC_LIBOBJ invocations to module description.
4762         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
4763         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
4764         invocations from here...
4765         * modules/getopt-gnu (configure.ac): ... to here.
4766         * modules/getopt-posix (configure.ac): ... and here.
4767         (Depends-on): Update condition.
4768
4769 2011-05-08  Bruno Haible  <bruno@clisp.org>
4770
4771         getopt, argp: Respect rules for use of AC_LIBOBJ.
4772         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
4773         (gl_REPLACE_GETOPT_ALWAYS): New macro.
4774         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
4775         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
4776
4777 2011-05-08  Bruno Haible  <bruno@clisp.org>
4778
4779         getlogin_r: Move AC_LIBOBJ invocations to module description.
4780         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
4781         gl_PREREQ_GETLOGIN_R invocations from here...
4782         * modules/getlogin_r (configure.ac): ... to here.
4783
4784 2011-05-08  Bruno Haible  <bruno@clisp.org>
4785
4786         getlogin: Move AC_LIBOBJ invocations to module description.
4787         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
4788         here...
4789         * modules/getlogin (configure.ac): ... to here.
4790
4791 2011-05-08  Bruno Haible  <bruno@clisp.org>
4792
4793         getloadavg: Move AC_LIBOBJ invocations to module description.
4794         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
4795         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
4796         * modules/getloadavg (configure.ac): ... to here.
4797
4798 2011-05-08  Bruno Haible  <bruno@clisp.org>
4799
4800         gethrxtime: Move AC_LIBOBJ invocations to module description.
4801         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
4802         LIB_GETHRXTIME from here...
4803         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
4804         invocations from here...
4805         * modules/gethrxtime (configure.ac): ... to here.
4806
4807 2011-05-08  Bruno Haible  <bruno@clisp.org>
4808
4809         gethostname: Move AC_LIBOBJ invocations to module description.
4810         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
4811         gl_PREREQ_GETHOSTNAME invocations from here...
4812         * modules/gethostname (configure.ac): ... to here.
4813
4814 2011-05-08  Bruno Haible  <bruno@clisp.org>
4815
4816         getgroups: Move AC_LIBOBJ invocations to module description.
4817         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
4818         here...
4819         * modules/getgroups (configure.ac): ... to here.
4820
4821 2011-05-08  Bruno Haible  <bruno@clisp.org>
4822
4823         getdtablesize: Move AC_LIBOBJ invocations to module description.
4824         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
4825         invocation from here...
4826         * modules/getdtablesize (configure.ac): ... to here.
4827
4828 2011-05-08  Bruno Haible  <bruno@clisp.org>
4829
4830         getdomainname: Move AC_LIBOBJ invocations to module description.
4831         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
4832         gl_PREREQ_GETDOMAINNAME invocations from here...
4833         * modules/getdomainname (configure.ac): ... to here.
4834
4835 2011-05-08  Bruno Haible  <bruno@clisp.org>
4836
4837         getline: Move AC_LIBOBJ invocations to module description.
4838         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
4839         invocations from here...
4840         * modules/getline (configure.ac): ... to here.
4841
4842 2011-05-08  Bruno Haible  <bruno@clisp.org>
4843
4844         getline: Simplify.
4845         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
4846         It's already handled through the module dependency.
4847
4848 2011-05-08  Bruno Haible  <bruno@clisp.org>
4849
4850         getdelim: Move AC_LIBOBJ invocations to module description.
4851         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
4852         and gl_PREREQ_GETDELIM invocations from here...
4853         * modules/getdelim (configure.ac): ... to here.
4854         (Depends-on): Fix condition.
4855
4856 2011-05-08  Bruno Haible  <bruno@clisp.org>
4857
4858         getcwd: Move AC_LIBOBJ invocations to module description.
4859         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
4860         invocations from here...
4861         * modules/getcwd (configure.ac): ... to here.
4862
4863 2011-05-08  Bruno Haible  <bruno@clisp.org>
4864
4865         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
4866         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
4867         here...
4868         * modules/getcwd-lgpl (configure.ac): ... to here.
4869
4870 2011-05-07  Bruno Haible  <bruno@clisp.org>
4871
4872         crypto/gc: Move AC_LIBOBJ invocations to module description.
4873         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
4874         * modules/crypto/gc (configure.ac): ... to here.
4875
4876 2011-05-07  Bruno Haible  <bruno@clisp.org>
4877
4878         fwriting: Move AC_LIBOBJ invocations to module description.
4879         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
4880         here...
4881         * modules/fwriting (configure.ac): ... to here.
4882
4883 2011-05-07  Bruno Haible  <bruno@clisp.org>
4884
4885         fwritable: Move AC_LIBOBJ invocations to module description.
4886         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
4887         here...
4888         * modules/fwritable (configure.ac): ... to here.
4889
4890 2011-05-07  Bruno Haible  <bruno@clisp.org>
4891
4892         futimens: Move AC_LIBOBJ invocations to module description.
4893         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
4894         here...
4895         * modules/futimens (configure.ac): ... to here.
4896
4897 2011-05-07  Bruno Haible  <bruno@clisp.org>
4898
4899         ftruncate: Move AC_LIBOBJ invocations to module description.
4900         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
4901         gl_PREREQ_FTRUNCATE invocations from here...
4902         * modules/ftruncate (configure.ac): ... to here.
4903
4904 2011-05-07  Bruno Haible  <bruno@clisp.org>
4905
4906         fsync: Move AC_LIBOBJ invocations to module description.
4907         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
4908         invocations from here...
4909         * modules/fsync (configure.ac): ... to here.
4910
4911 2011-05-07  Bruno Haible  <bruno@clisp.org>
4912
4913         fsusage: Move AC_LIBOBJ invocations to module description.
4914         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
4915         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
4916         * modules/fsusage (configure.ac): ... to here.
4917
4918 2011-05-07  Bruno Haible  <bruno@clisp.org>
4919
4920         freopen: Move AC_LIBOBJ invocations to module description.
4921         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
4922         invocations from here...
4923         * modules/freopen (configure.ac): ... to here.
4924
4925 2011-05-07  Bruno Haible  <bruno@clisp.org>
4926
4927         free: Move AC_LIBOBJ invocations to module description.
4928         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
4929         invocations from here...
4930         * modules/free (configure.ac): ... to here.
4931
4932 2011-05-07  Bruno Haible  <bruno@clisp.org>
4933
4934         freadable: Move AC_LIBOBJ invocations to module description.
4935         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
4936         here...
4937         * modules/freadable (configure.ac): ... to here.
4938
4939 2011-05-07  Bruno Haible  <bruno@clisp.org>
4940
4941         fpurge: Move AC_LIBOBJ invocations to module description.
4942         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
4943         invocations from here...
4944         * modules/fpurge (configure.ac): ... to here.
4945
4946 2011-05-07  Bruno Haible  <bruno@clisp.org>
4947
4948         fpending: Move AC_LIBOBJ invocations to module description.
4949         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
4950         gl_FUNC_FPENDING.
4951         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
4952         invocations from here...
4953         * modules/fpending (configure.ac): ... to here.
4954
4955 2011-05-07  Bruno Haible  <bruno@clisp.org>
4956
4957         fopen: Move AC_LIBOBJ invocations to module description.
4958         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
4959         invocations from here...
4960         * modules/fopen (configure.ac): ... to here.
4961
4962 2011-05-07  Bruno Haible  <bruno@clisp.org>
4963
4964         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
4965         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
4966         gl_FUNC_FNMATCH_POSIX.
4967         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
4968         invocations from here...
4969         * modules/fnmatch (configure.ac): ... to here.
4970         * modules/fnmatch-gnu (configure.ac): ... and here.
4971
4972 2011-05-07  Bruno Haible  <bruno@clisp.org>
4973
4974         flock: Move AC_LIBOBJ invocations to module description.
4975         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
4976         invocations from here...
4977         * modules/flock (configure.ac): ... to here.
4978
4979 2011-05-07  Bruno Haible  <bruno@clisp.org>
4980
4981         fileblocks: Move AC_LIBOBJ invocations to module description.
4982         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
4983         gl_PREREQ_FILEBLOCKS invocations from here...
4984         * modules/fileblocks (configure.ac): ... to here.
4985
4986 2011-05-06  Bruno Haible  <bruno@clisp.org>
4987
4988         fflush: Move AC_LIBOBJ invocations to module description.
4989         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
4990         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
4991         invocations from here...
4992         * modules/fflush (configure.ac): ... to here.
4993
4994 2011-05-06  Bruno Haible  <bruno@clisp.org>
4995
4996         fdopendir: Move AC_LIBOBJ invocations to module description.
4997         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
4998         here...
4999         * modules/fdopendir (configure.ac): ... to here.
5000         (Depends-on): Improve conditions.
5001
5002 2011-05-06  Bruno Haible  <bruno@clisp.org>
5003
5004         _Exit: Move AC_LIBOBJ invocations to module description.
5005         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5006         invocations from here...
5007         * modules/_Exit (configure.ac): ... to here.
5008
5009 2011-05-21  Bruno Haible  <bruno@clisp.org>
5010
5011         euidaccess: Respect rules for use of AC_LIBOBJ.
5012         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5013         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5014         from here...
5015         * modules/euidaccess (configure.ac): ... to here.
5016
5017 2011-05-06  Bruno Haible  <bruno@clisp.org>
5018
5019         error: Move AC_LIBOBJ invocations to module description.
5020         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5021         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5022         invocations from here...
5023         * modules/error (configure.ac): ... to here.
5024
5025 2011-05-06  Bruno Haible  <bruno@clisp.org>
5026
5027         duplocale: Move AC_LIBOBJ invocations to module description.
5028         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5029         gl_PREREQ_DUPLOCALE invocations from here...
5030         * modules/duplocale (configure.ac): ... to here.
5031
5032 2011-05-05  Bruno Haible  <bruno@clisp.org>
5033
5034         dirfd: Move AC_LIBOBJ invocations to module description.
5035         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5036         gl_FUNC_DIRFD.
5037         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5038         here...
5039         * modules/dirfd (configure.ac): ... to here.
5040         (Depends-on): Fix condition.
5041
5042 2011-05-05  Bruno Haible  <bruno@clisp.org>
5043
5044         chown: Respect rules for use of AC_LIBOBJ.
5045         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5046         * modules/chown (configure.ac): ... to here.
5047
5048 2011-05-05  Bruno Haible  <bruno@clisp.org>
5049
5050         chdir-long: Move AC_LIBOBJ invocations to module description.
5051         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5052         gl_PREREQ_CHDIR_LONG invocations from here...
5053         * modules/chdir-long (configure.ac): ... to here.
5054
5055 2011-05-05  Bruno Haible  <bruno@clisp.org>
5056
5057         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5058         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5059         from here...
5060         * modules/canonicalize-lgpl (configure.ac): ... to here.
5061
5062 2011-05-05  Bruno Haible  <bruno@clisp.org>
5063
5064         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5065         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5066         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5067         REPLACE_CALLOC.
5068         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5069         * modules/calloc-gnu (configure.ac): Likewise.
5070
5071 2011-05-05  Bruno Haible  <bruno@clisp.org>
5072
5073         btowc: Move AC_LIBOBJ invocations to module description.
5074         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5075         invocations from here...
5076         * modules/btowc (configure.ac): ... to here.
5077
5078 2011-05-21  Bruno Haible  <bruno@clisp.org>
5079
5080         atexit: Move AC_LIBOBJ invocations to module description.
5081         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5082         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5083         here...
5084         * modules/atexit (configure.ac): ... to here.
5085
5086 2011-05-05  Bruno Haible  <bruno@clisp.org>
5087
5088         atoll: Move AC_LIBOBJ invocations to module description.
5089         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5090         invocations from here...
5091         * modules/atoll (configure.ac): ... to here.
5092
5093 2011-05-05  Bruno Haible  <bruno@clisp.org>
5094
5095         argz: Move AC_LIBOBJ invocations to module description.
5096         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5097         * modules/argz (configure.ac): ... to here.
5098
5099 2011-05-05  Bruno Haible  <bruno@clisp.org>
5100
5101         alphasort: Move AC_LIBOBJ invocations to module description.
5102         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5103         gl_PREREQ_ALPHASORT invocations from here...
5104         * modules/alphasort (configure.ac): ... to here.
5105
5106 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5107
5108         verify: new macro verify_expr; verify_true deprecated
5109         * NEWS: Mention this.
5110         * doc/verify.texi (Compile-time Assertions): Document this.
5111         * lib/verify.h (verify_true): Deprecate.
5112         (verify_expr): New macro.
5113         * tests/test-verify.c (function): Test verify_expr.
5114
5115 2011-06-14  Jim Meyering  <meyering@redhat.com>
5116
5117         init.sh: give more portable redirection-related advice in a comment
5118         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5119         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5120         for lots of discussion.  Stefano Lattarini suggested the solution
5121         of putting "9>&2" after the command.  Reported by Bruno Haible.
5122
5123 2011-06-13  Bruno Haible  <bruno@clisp.org>
5124
5125         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5126         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5127         'none'.
5128
5129 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5130
5131         ftoastr: use strtof only if HAVE_STRTOF
5132         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5134         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5135         * modules/ftoastr (configure.ac): Check for strtof.
5136
5137 2011-06-13  Bruno Haible  <bruno@clisp.org>
5138
5139         gnulib-tool: Addendum to 2011-06-08 commit.
5140         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5141         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5142
5143 2011-06-13  Bruno Haible  <bruno@clisp.org>
5144
5145         fseeko: Provide a non-inline replacement of fseek().
5146         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
5147         * modules/fseeko (Depends-on): Add fseek.
5148         * modules/fseek (License): Change to LGPLv2+.
5149
5150 2011-06-13  Bruno Haible  <bruno@clisp.org>
5151
5152         ftello: Provide a non-inline replacement of ftell().
5153         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
5154         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
5155         not have ftello() (such as on mingw).
5156         * modules/ftello (Depends-on): Add ftell.
5157         * modules/ftell (License): Change to LGPLv2+.
5158
5159 2011-05-07  Bruno Haible  <bruno@clisp.org>
5160
5161         ftell: Move AC_LIBOBJ invocations to module description.
5162         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
5163         * modules/ftell (configure.ac): ... to here.
5164
5165 2011-05-07  Bruno Haible  <bruno@clisp.org>
5166
5167         ftello: Respect rules for use of AC_LIBOBJ.
5168         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5169         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
5170         here...
5171         * modules/ftello (configure.ac): ... to here.
5172
5173 2011-05-07  Bruno Haible  <bruno@clisp.org>
5174
5175         fseeko: Simplify.
5176         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
5177         (gl_FUNC_FSEEKO): Inline it here.
5178
5179 2011-05-07  Bruno Haible  <bruno@clisp.org>
5180
5181         fseek: Move AC_LIBOBJ invocations to module description.
5182         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
5183         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5184         * modules/fseek (configure.ac): ... to here.
5185
5186 2011-05-07  Bruno Haible  <bruno@clisp.org>
5187
5188         fseek: Respect rules for use of AC_LIBOBJ.
5189         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
5190         here...
5191         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
5192
5193 2011-05-07  Bruno Haible  <bruno@clisp.org>
5194
5195         fseeko: Respect rules for use of AC_LIBOBJ.
5196         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
5197         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
5198         here...
5199         * modules/fseeko (configure.ac): ... to here.
5200
5201 2011-06-13  Bruno Haible  <bruno@clisp.org>
5202
5203         gnulib-tool: Allow comments in the 'Depends-on' section.
5204         * doc/gnulib.texi (Module description): Mention comment syntax in the
5205         Depends-on section.
5206         * gnulib-tool (func_get_dependencies): Filter out comment lines.
5207
5208 2011-06-13  Bruno Haible  <bruno@clisp.org>
5209
5210         file-set.h: guard __attibute__ use, now that it's not always defined
5211         * lib/file-set.h (record_file): Use __attribute__ only with compiler
5212         versions that support it.  This fixes a coreutils build failure with
5213         the vendor cc on HP-UX 11.31.
5214
5215 2011-06-12  Bruno Haible  <bruno@clisp.org>
5216
5217         acl: Add support for HP-UX >= 11.11 JFS ACLs.
5218         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
5219         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
5220         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
5221         (acl, aclsort): New declarations.
5222         (aclv_nontrivial): New declaration.
5223         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
5224         (file_has_acl): Read also the second kind of HP-UX ACLs.
5225         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
5226         kind of HP-UX ACLs if the first kind fails.
5227         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
5228         second kind of HP-UX ACLs.
5229         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
5230         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
5231         agree.
5232         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5233         hpuxjfs.
5234         Handle hpuxjfs.
5235         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5236         hpuxjfs.
5237         Handle hpuxjfs.
5238         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5239         (func_test_same_acls): Use both lsacl and getacl.
5240         Handle hpuxjfs.
5241         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5242         (func_test_same_acls): Use both lsacl and getacl.
5243         Handle hpuxjfs.
5244
5245 2011-06-12  Bruno Haible  <bruno@clisp.org>
5246
5247         acl: Complete the 2010-08-10 fix.
5248         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
5249         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
5250         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
5251         explicitly.
5252         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
5253         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
5254
5255 2011-06-12  Bruno Haible  <bruno@clisp.org>
5256
5257         spawn-pipe tests: Comments.
5258         * tests/test-spawn-pipe-child.c (main): Update comment.
5259         Reported by James Youngman <jay@gnu.org>.
5260
5261 2011-06-11  James Youngman  <jay@gnu.org>
5262
5263         New module 'stat-size'.
5264         * modules/stat-size: New module.  Provides macros for accessing
5265         file size information in instances of struct stat.  Depends on the
5266         fileblocks module because it calls st_blocks.
5267         * lib/stat-size.h: New file, adapted from coreutils' system.h.
5268         * doc/gnulib.texi: Include stat-size.texi.
5269         * doc/stat-size.texi: Documentation for this module.
5270         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
5271         * m4/fileblocks.m4: Mention that stat-size depends on the call to
5272         AC_STRUCT_ST_BLOCKS.
5273
5274 2011-06-09  Bruno Haible  <bruno@clisp.org>
5275
5276         thread: Support pthreads-win32.
5277         * lib/glthread/thread.h (gl_thread_self): Define differently on
5278         pthreads-win32.
5279         (gl_null_thread): New declaration.
5280         (gl_thread_self_pointer): New macro.
5281         * lib/glthread/thread.c (gl_null_thread): New constant.
5282         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5283         gl_thread_self.
5284         * tests/test-tls.c: Likewise.
5285         Suggested by Paul Eggert. Reported by Eric Blake.
5286
5287 2011-06-09  Bruno Haible  <bruno@clisp.org>
5288
5289         thread: Fix confusion between NULL and 0.
5290         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5291         Reported by Paul Eggert.
5292
5293 2011-06-09  Bruno Haible  <bruno@clisp.org>
5294
5295         spawn-pipe tests: Avoid test failure on HP-UX 11.
5296         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5297         is closed.
5298
5299 2011-06-09  Bruno Haible  <bruno@clisp.org>
5300
5301         acl tests: Fix compilation error on HP-UX 11.
5302         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5303
5304 2011-06-09  Bruno Haible  <bruno@clisp.org>
5305
5306         rmdir: Avoid test failure on HP-UX 10.20.
5307         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5308         EEXIST.
5309
5310 2011-06-08  Eric Blake  <eblake@redhat.com>
5311
5312         perror: fix test on mingw
5313         * modules/perror-tests (Depends-on): Add dup2.
5314
5315         strerror_r-posix: fix on MacOS
5316         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
5317         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
5318         logic bug.
5319         * lib/strerror_r.c (strerror_r): Fix the bug.
5320         * lib/strerror.c (strerror): Likewise.
5321         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5322         problem.
5323         * doc/posix-functions/strerror.texi (strerror): Likewise.
5324         * doc/posix-functions/perror.texi (perror): Likewise.
5325         * tests/test-strerror.c (main): Enhance test.
5326         * tests/test-strerror_r.c (main): Likewise.
5327
5328 2011-06-08  Bruno Haible  <bruno@clisp.org>
5329
5330         gnulib-tool: Better isolation between different gnulib-tool invocations.
5331         * gnulib-tool: New option --witness-c-macro.
5332         (witness_c_macro): New variable.
5333         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
5334         AM_CPPFLAGS define it as a C macro.
5335         (func_emit_tests_Makefile_am): Likewise.
5336         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
5337         read it from there.
5338         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
5339         m4_define, not AC_DEFUN.
5340         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
5341         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
5342         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
5343         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
5344         s|...|...|, to substitute the values of the GNULIB_* module indicator
5345         variables.
5346         * modules/dirent (Makefile.am): Likewise.
5347         * modules/fcntl-h (Makefile.am): Likewise.
5348         * modules/iconv-h (Makefile.am): Likewise.
5349         * modules/langinfo (Makefile.am): Likewise.
5350         * modules/locale (Makefile.am): Likewise.
5351         * modules/math (Makefile.am): Likewise.
5352         * modules/netdb (Makefile.am): Likewise.
5353         * modules/poll-h (Makefile.am): Likewise.
5354         * modules/pty (Makefile.am): Likewise.
5355         * modules/search (Makefile.am): Likewise.
5356         * modules/signal (Makefile.am): Likewise.
5357         * modules/spawn (Makefile.am): Likewise.
5358         * modules/stdio (Makefile.am): Likewise.
5359         * modules/stdlib (Makefile.am): Likewise.
5360         * modules/string (Makefile.am): Likewise.
5361         * modules/sys_ioctl (Makefile.am): Likewise.
5362         * modules/sys_select (Makefile.am): Likewise.
5363         * modules/sys_socket (Makefile.am): Likewise.
5364         * modules/sys_stat (Makefile.am): Likewise.
5365         * modules/sys_times (Makefile.am): Likewise.
5366         * modules/sys_utsname (Makefile.am): Likewise.
5367         * modules/sys_wait (Makefile.am): Likewise.
5368         * modules/termios (Makefile.am): Likewise.
5369         * modules/time (Makefile.am): Likewise.
5370         * modules/unistd (Makefile.am): Likewise.
5371         * modules/wchar (Makefile.am): Likewise.
5372
5373 2011-06-08  Eric Blake  <eblake@redhat.com>
5374
5375         strerror: simplify replacement
5376         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
5377         * modules/strerror (configure.ac): No prereqs needed here...
5378         * modules/strerror-override (configure.ac): ...but this needs it.
5379         (Files): Add file for needed prereq macro.
5380
5381 2011-06-08  Bruno Haible  <bruno@clisp.org>
5382
5383         strerror_r-posix: Tweaks.
5384         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
5385         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
5386         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
5387         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
5388         (gl_FUNC_STRERROR_R): ... to here.
5389         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
5390
5391 2011-06-07  Eric Blake  <eblake@redhat.com>
5392
5393         perror: document fixed bugs
5394         * doc/posix-functions/perror.texi (perror): Document recent
5395         patches.
5396
5397 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5398
5399         stat-time: get_stat_birthtime failure is better-defined
5400         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
5401         return a timestamp whose tv_sec and tv_nsec values are both -1.
5402         Previously, the spec said only that the tv_nsec value was negative.
5403         This upward-compatible change simplifies GNU tar a bit.
5404
5405 2011-06-07  Eric Blake  <eblake@redhat.com>
5406
5407         strerror_r-posix: work around cygwin 1.7.9
5408         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
5409         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
5410         bug without replacing strerror_r.
5411         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
5412         strerror_r is buggy, but without requiring strerror_r compilation.
5413         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
5414
5415         test-perror: relax test to ignore cygwin bug
5416         * tests/test-perror2.c (main): Relax test on requiring detection
5417         of stream errors, and use unbuffered stream.
5418         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
5419         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
5420         * doc/posix-functions/fputc.texi (fputc): Likewise.
5421         * doc/posix-functions/fputs.texi (fputs): Likewise.
5422         * doc/posix-functions/fputws.texi (fputws): Likewise.
5423         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
5424         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
5425         * doc/posix-functions/getopt.texi (getopt): Likewise.
5426         * doc/posix-functions/perror.texi (perror): Likewise.
5427         * doc/posix-functions/printf.texi (printf): Likewise.
5428         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
5429         * doc/posix-functions/psignal.texi (psignal): Likewise.
5430         * doc/posix-functions/putc.texi (putc): Likewise.
5431         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
5432         Likewise.
5433         * doc/posix-functions/putchar.texi (putchar): Likewise.
5434         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
5435         Likewise.
5436         * doc/posix-functions/puts.texi (puts): Likewise.
5437         * doc/posix-functions/putwc.texi (putwc): Likewise.
5438         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
5439         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5440         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5441         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
5442         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5443         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5444         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
5445         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
5446
5447 2011-05-22  Bruno Haible  <bruno@clisp.org>
5448
5449         strerror: Move AC_LIBOBJ invocations to module description.
5450         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
5451         gl_PREREQ_STRERROR invocations from here...
5452         * modules/strerror (configure.ac): ... to here.
5453
5454 2011-05-21  Bruno Haible  <bruno@clisp.org>
5455
5456         perror: Use common idiom.
5457         * modules/perror (configure.ac): Reorder statements.
5458
5459 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5460
5461         tests: fix usage message in 'mktempd_'
5462         * tests/init.sh (mktempd_): In the usage message, use literal
5463         'mktempd_', not '$ME' (which is even undefined), as the name of
5464         the subroutine.
5465
5466 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5467
5468         tests init: new function 'fatal_', for hard errors
5469         Before this patch, the only way offered by tests/init.sh to
5470         properly signal a hard error was the `framework_failure_'
5471         function.  But the error message issued by that function,
5472         as its name would suggest, refers to a set-up failure in the
5473         testsuite, while hard errors can obviously also be due to
5474         other reasons.  The best way to fix this inconsistency is to
5475         introduce a new function with a more general error message.
5476         * tests/init.sh (fatal_): New function.
5477
5478 2011-06-06  Eric Blake  <eblake@redhat.com>
5479
5480         canonicalize-lgpl: use common idiom
5481         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
5482         over newer POSIX -Rf.
5483         Reported by Bruno Haible.
5484
5485         canonicalize-lgpl: work around AIX realpath bug
5486         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
5487         * doc/posix-functions/realpath.texi (realpath): Document it.
5488         Reported by Bruno Haible.
5489
5490         strerror: work around FreeBSD bug
5491         * lib/strerror.c (strerror): Special case 0.
5492         Reported by Bruno Haible.
5493
5494         strerror-override: avoid bloating errno module
5495         * modules/errno (Files, configure.ac): Move replacement strings...
5496         * modules/strerror-override: ...to new module.
5497         * modules/strerror (Depends-on): Add strerror-override.
5498         * modules/strerror_r-posix (Depends-on): Likewise.
5499         * MODULES.html.sh: Document new module.
5500         Reported by Bruno Haible.
5501
5502 2011-06-06  Bruno Haible  <bruno@clisp.org>
5503
5504         spawn-pipe tests: Rename program.
5505         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
5506         * tests/test-spawn-pipe-child.c: Update comment.
5507         * tests/test-spawn-pipe.sh: Update.
5508         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
5509
5510         spawn-pipe tests: Link the child program only against libc.
5511         * tests/test-spawn-pipe-child.c: New file, extracted from
5512         tests/test-spawn-pipe.c.
5513         (main): Expect only one argument.
5514         (is_open): New function, copied from tests/test-pipe.c.
5515         * tests/test-spawn-pipe.c: Don't include <errno.h>.
5516         (child_main): Remove function.
5517         (test_pipe): Pass only one argument to the child program.
5518         (main): Remove child process code. Expect the child program's name as
5519         first argument.
5520         * tests/test-spawn-pipe.sh: Pass the child program's name as first
5521         argument.
5522         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
5523         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
5524         test-spawn-pipe-child against no libraries.
5525
5526 2011-06-06  Bruno Haible  <bruno@clisp.org>
5527
5528         careadlinkat: Avoid mismatch between ssize_t and int.
5529         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
5530         * lib/careadlinkat.c (careadlinkatcwd): Define always.
5531
5532 2011-06-06  Jim Meyering  <meyering@redhat.com>
5533
5534         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
5535         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
5536         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
5537
5538 2011-06-05  Bruno Haible  <bruno@clisp.org>
5539
5540         ansi-c++-opt: Interoperability with libtool.
5541         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
5542         set the variable to "no", not to ":".
5543         * NEWS: Mention the change.
5544
5545 2011-06-05  Bruno Haible  <bruno@clisp.org>
5546
5547         acl: Fix test failure on AIX 7.
5548         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
5549         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
5550
5551 2011-06-05  Bruno Haible  <bruno@clisp.org>
5552
5553         pipe-filter-ii: Fix test failure on AIX and IRIX.
5554         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
5555         with EAGAIN, retry with a smaller buffer size.
5556
5557 2011-06-05  Bruno Haible  <bruno@clisp.org>
5558
5559         localename: Fix link dependencies.
5560         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
5561         * modules/localename-tests (Makefile.am): Link test-localename with
5562         $(LIBTHREAD).
5563
5564 2011-06-05  Bruno Haible  <bruno@clisp.org>
5565
5566         error: Avoid gcc warning.
5567         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
5568
5569 2011-06-05  Bruno Haible  <bruno@clisp.org>
5570
5571         unsetenv: Avoid gcc warning.
5572         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
5573
5574 2011-06-05  Bruno Haible  <bruno@clisp.org>
5575
5576         setenv: Avoid gcc warning.
5577         * lib/setenv.c (setenv): Provide declaration if system lacks it.
5578
5579 2011-06-05  Bruno Haible  <bruno@clisp.org>
5580
5581         sys_select: Ensure memset is declared also on AIX 7.
5582         * lib/sys_select.in.h: Include <string.h> also on AIX.
5583         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
5584         self-contained also on AIX 7.1.
5585
5586 2011-06-04  Jim Meyering  <meyering@redhat.com>
5587
5588         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
5589         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
5590         function name, "error".
5591         (_gl_translatable_diag_func_re): New configurable variable.
5592
5593 2011-06-04  Bruno Haible  <bruno@clisp.org>
5594
5595         getopt: Avoid gcc warning.
5596         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
5597
5598 2011-06-04  Bruno Haible  <bruno@clisp.org>
5599
5600         strerror_r: Fix comments.
5601         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
5602         commit.
5603
5604 2011-06-04  Bruno Haible  <bruno@clisp.org>
5605
5606         perror: Fix compilation error.
5607         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
5608         Undefine fprintf, not sprintf.
5609         * modules/perror (Depends-on): Remove intprops, verify.
5610
5611 2011-06-04  Bruno Haible  <bruno@clisp.org>
5612
5613         setlocale: Enable replacement on Cygwin 1.5.
5614         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
5615         Cygwin 1.5.x.
5616         * doc/posix-functions/setlocale.texi: Mention that the problem with the
5617         LC_CTYPE category also exists on Cygwin 1.5.x.
5618
5619 2011-06-04  Bruno Haible  <bruno@clisp.org>
5620
5621         strerror-override: Don't disable symbol renamings.
5622         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
5623         * lib/strerror-override.c: Include config.h.
5624         (strerror_override): Don't undefine.
5625
5626 2011-06-03  Bruno Haible  <bruno@clisp.org>
5627
5628         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
5629         * lib/localename.h: Update copyright header.
5630         * lib/localename.c: Likewise.
5631         * lib/relocatable.h: Likewise.
5632         * lib/relocatable.c: Likewise.
5633
5634 2011-06-02  Bruno Haible  <bruno@clisp.org>
5635
5636         doc: Fix a module name.
5637         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
5638
5639 2011-06-02  Bruno Haible  <bruno@clisp.org>
5640
5641         pipe2: Remove dependency on 'nonblocking' module.
5642         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
5643         O_NONBLOCK is defined by gnulib.
5644         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
5645         is zero.
5646         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
5647         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
5648         defined by gnulib.
5649         (get_nonblocking_flag): New function.
5650         (main): Test O_NONBLOCK flag only if it is nonzero.
5651         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
5652
5653 2011-06-03  Jim Meyering  <meyering@redhat.com>
5654
5655         maint: three new prohibit-header-without-use rules
5656         Prohibit use of cloexec.h, posixver.h, same.h without use.
5657         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
5658         (sc_prohibit_posixver_without_use): Likewise.
5659         (sc_prohibit_same_without_use): Likewise.
5660
5661 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
5662
5663         allocator: 'die' routine is now given requested size
5664         * lib/allocator.h (struct allocator.die): New size arg.
5665         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
5666         If the actual problem is an ssize_t limitation, not a size_t or
5667         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
5668
5669 2011-06-01  Eric Blake  <eblake@redhat.com>
5670
5671         strerror: drop strerror_r dependency
5672         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
5673         * lib/strerror-override.c (strerror_override): ...to new file.
5674         * lib/strerror-override.h: Add prototype.
5675         * lib/strerror-impl.h: Delete.
5676         * lib/strerror.c (strerror): New implementation.
5677         * modules/errno (Files): Add new files.
5678         (configure.ac): Compile new file as appropriate.
5679         * modules/strerror (Files): Drop unused file.
5680         (Depends-on): Drop strerror_r-posix.
5681         * MODULES.html.sh: Document strerror_r-posix.
5682         Requested by Sam Steingold.
5683
5684         perror: call strerror_r directly
5685         * modules/perror (Files): Drop strerror-impl.h.
5686         * lib/perror.c (perror): Use our own stack buffer, rather than
5687         calling a wrapper that uses static storage.
5688         * doc/posix-functions/perror.texi (perror): Document a limitation
5689         of our replacement.
5690
5691         strerror_r: fix includes for FreeBSD
5692         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
5693         since we use abort on some platforms.
5694         Reported by Matthias Bolte.
5695
5696 2011-05-31  Bruno Haible  <bruno@clisp.org>
5697
5698         Fix link errors in tests: openat-die uses gettext-h.
5699         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
5700         against $(LIBINTL).
5701         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
5702         against $(LIBINTL).
5703         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
5704         $(LIBINTL).
5705         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
5706         against $(LIBINTL).
5707         * modules/linkat-tests (Makefile.am): Link test-linkat against
5708         $(LIBINTL).
5709         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
5710         $(LIBINTL).
5711         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
5712         against $(LIBINTL).
5713         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
5714         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
5715         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
5716         $(LIBINTL).
5717         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
5718         $(LIBINTL).
5719         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
5720         $(LIBINTL).
5721         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5722
5723 2011-05-31  Bruno Haible  <bruno@clisp.org>
5724
5725         Fix link errors in tests: wait-process uses gettext-h.
5726         * modules/nonblocking-pipe-tests (Makefile.am): Set
5727         test_nonblocking_pipe_main_LDADD.
5728         * modules/nonblocking-socket-tests (Makefile.am): Link
5729         test-nonblocking-socket-main against $(LIBINTL).
5730         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5731
5732 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5733
5734         assert-h: work around 'verify' incompatibility
5735         * lib/verify.h: Use @...@ directives, not ifdef.
5736         * modules/assert-h (assert.h): Implement the directives.
5737         (assert.h): Substitute the symbol-prefix more consistently.
5738
5739 2011-05-29  Jim Meyering  <meyering@redhat.com>
5740
5741         trim: remove three superfluous assignments
5742         * lib/trim.c (trim2): Remove three superfluous assignments
5743         and correct brace positioning.
5744
5745 2011-05-29  Bruno Haible  <bruno@clisp.org>
5746
5747         wctype-h: Avoid namespace pollution on Solaris 2.6.
5748         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
5749         identifiers.
5750         * doc/posix-headers/wctype.texi: Mention the problem.
5751         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5752
5753 2011-05-28  Jim Meyering  <meyering@redhat.com>
5754
5755         parse-datetime.y: accommodate -Wstrict-overflow
5756         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
5757         placate -Wstrict-overflow.
5758
5759         trim: avoid a warning from -O2 -Wstrict-overflow
5760         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
5761
5762 2011-05-29  Bruno Haible  <bruno@clisp.org>
5763
5764         gnulib-tool: Fix bug in yesterday's commit.
5765         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
5766         twice.
5767
5768 2011-05-29  Bruno Haible  <bruno@clisp.org>
5769
5770         Allow multiple gnulib generated include files to be combined.
5771         * gnulib-tool (func_compute_include_guard_prefix): New function.
5772         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
5773         ${gl_include_guard_prefix} references.
5774         (func_import, func_create_testdir): Invoke
5775         func_compute_include_guard_prefix.
5776         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
5777         * lib/ctype.in.h: Likewise.
5778         * lib/dirent.in.h: Likewise.
5779         * lib/errno.in.h: Likewise.
5780         * lib/fcntl.in.h: Likewise.
5781         * lib/float.in.h: Likewise.
5782         * lib/getopt.in.h: Likewise.
5783         * lib/iconv.in.h: Likewise.
5784         * lib/langinfo.in.h: Likewise.
5785         * lib/locale.in.h: Likewise.
5786         * lib/math.in.h: Likewise.
5787         * lib/netdb.in.h: Likewise.
5788         * lib/netinet_in.in.h: Likewise.
5789         * lib/poll.in.h: Likewise.
5790         * lib/pthread.in.h: Likewise.
5791         * lib/pty.in.h: Likewise.
5792         * lib/sched.in.h: Likewise.
5793         * lib/se-selinux.in.h: Likewise.
5794         * lib/search.in.h: Likewise.
5795         * lib/signal.in.h: Likewise.
5796         * lib/spawn.in.h: Likewise.
5797         * lib/stdarg.in.h: Likewise.
5798         * lib/stddef.in.h: Likewise.
5799         * lib/stdint.in.h: Likewise.
5800         * lib/stdio.in.h: Likewise.
5801         * lib/stdlib.in.h: Likewise.
5802         * lib/string.in.h: Likewise.
5803         * lib/strings.in.h: Likewise.
5804         * lib/sys_file.in.h: Likewise.
5805         * lib/sys_ioctl.in.h: Likewise.
5806         * lib/sys_select.in.h: Likewise.
5807         * lib/sys_socket.in.h: Likewise.
5808         * lib/sys_stat.in.h: Likewise.
5809         * lib/sys_time.in.h: Likewise.
5810         * lib/sys_times.in.h: Likewise.
5811         * lib/sys_uio.in.h: Likewise.
5812         * lib/sys_utsname.in.h: Likewise.
5813         * lib/sys_wait.in.h: Likewise.
5814         * lib/sysexits.in.h: Likewise.
5815         * lib/termios.in.h: Likewise.
5816         * lib/time.in.h: Likewise.
5817         * lib/unistd.in.h: Likewise.
5818         * lib/wchar.in.h: Likewise.
5819         * lib/wctype.in.h: Likewise.
5820         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
5821         * modules/ctype (Makefile.am): Likewise.
5822         * modules/dirent (Makefile.am): Likewise.
5823         * modules/errno (Makefile.am): Likewise.
5824         * modules/fcntl-h (Makefile.am): Likewise.
5825         * modules/float (Makefile.am): Likewise.
5826         * modules/getopt-posix (Makefile.am): Likewise.
5827         * modules/iconv-h (Makefile.am): Likewise.
5828         * modules/langinfo (Makefile.am): Likewise.
5829         * modules/locale (Makefile.am): Likewise.
5830         * modules/math (Makefile.am): Likewise.
5831         * modules/netdb (Makefile.am): Likewise.
5832         * modules/netinet_in (Makefile.am): Likewise.
5833         * modules/poll-h (Makefile.am): Likewise.
5834         * modules/pthread (Makefile.am): Likewise.
5835         * modules/pty (Makefile.am): Likewise.
5836         * modules/sched (Makefile.am): Likewise.
5837         * modules/search (Makefile.am): Likewise.
5838         * modules/selinux-h (Makefile.am): Likewise.
5839         * modules/signal (Makefile.am): Likewise.
5840         * modules/spawn (Makefile.am): Likewise.
5841         * modules/stdarg (Makefile.am): Likewise.
5842         * modules/stddef (Makefile.am): Likewise.
5843         * modules/stdint (Makefile.am): Likewise.
5844         * modules/stdio (Makefile.am): Likewise.
5845         * modules/stdlib (Makefile.am): Likewise.
5846         * modules/string (Makefile.am): Likewise.
5847         * modules/strings (Makefile.am): Likewise.
5848         * modules/sys_file (Makefile.am): Likewise.
5849         * modules/sys_ioctl (Makefile.am): Likewise.
5850         * modules/sys_select (Makefile.am): Likewise.
5851         * modules/sys_socket (Makefile.am): Likewise.
5852         * modules/sys_stat (Makefile.am): Likewise.
5853         * modules/sys_time (Makefile.am): Likewise.
5854         * modules/sys_times (Makefile.am): Likewise.
5855         * modules/sys_uio (Makefile.am): Likewise.
5856         * modules/sys_utsname (Makefile.am): Likewise.
5857         * modules/sys_wait (Makefile.am): Likewise.
5858         * modules/sysexits (Makefile.am): Likewise.
5859         * modules/termios (Makefile.am): Likewise.
5860         * modules/time (Makefile.am): Likewise.
5861         * modules/unistd (Makefile.am): Likewise.
5862         * modules/wchar (Makefile.am): Likewise.
5863         * modules/wctype-h (Makefile.am): Likewise.
5864         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
5865
5866 2011-05-29  Bruno Haible  <bruno@clisp.org>
5867
5868         assert-h: Allow multiple gnulib generated replacements to coexist.
5869         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
5870
5871 2011-05-29  Bruno Haible  <bruno@clisp.org>
5872
5873         argp: Allow coexistence with strerror_r-posix module.
5874         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
5875         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
5876         by gnulib's <string.h> replacement), assume it has the POSIX signature,
5877         not the glibc signature.
5878
5879 2011-05-28  Bruno Haible  <bruno@clisp.org>
5880
5881         gnulib-tool: Alternative structure of testdirs, similar to --import.
5882         * gnulib-tool: New option --single-configure.
5883         (func_usage): Document it.
5884         (single_configure): New variable.
5885         (func_modules_transitive_closure_separately,
5886         func_modules_transitive_closure_separately,
5887         func_determine_use_libtests, func_modules_add_dummy_separately,
5888         func_modules_to_filelist_separately): New functions, extracted from
5889         func_import.
5890         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
5891         (func_import): Use the new functions.
5892         (func_create_testdir): Set final_modules. Handle $single_configure =
5893         true case.
5894
5895 2011-05-28  Bruno Haible  <bruno@clisp.org>
5896
5897         getloadavg: Remove an unreliable safety check.
5898         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
5899         getloadavg.c is in place.
5900         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
5901         Reported by Sam Steingold <sds@gnu.org>.
5902
5903 2011-05-28  Bruno Haible  <bruno@clisp.org>
5904
5905         doc: Cleanup yet another file produced by texinfo.tex.
5906         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
5907
5908 2011-05-28  Bruno Haible  <bruno@clisp.org>
5909
5910         Finish the conditional dependencies mechanism.
5911         * gnulib-tool: New option --no-conditional-dependencies.
5912         (func_usage): Document it. Don't mark --conditional-dependencies as
5913         experimental.
5914         (cond_dependencies): The possible values can now be true, false, empty.
5915         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
5916         (func_import): Store setting in gnulib-cache.m4 and read it from there.
5917         * doc/gnulib-tool.texi (Conditional dependencies): New section.
5918
5919 2011-05-28  Bruno Haible  <bruno@clisp.org>
5920
5921         doc: Use a recent texinfo.tex.
5922         * doc/Makefile (tex_opts): New variable.
5923         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
5924
5925 2011-05-28  Jim Meyering  <meyering@redhat.com>
5926
5927         intprops.h: adjust comment to match code change
5928         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
5929         only once, it *may* have side effects.  Also fix an unrelated typo.
5930         (_GL_INT_SIGNED): Likewise.
5931
5932 2011-05-26  Simon Josefsson  <simon@josefsson.org>
5933
5934         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
5935
5936 2011-05-26  Bruno Haible  <bruno@clisp.org>
5937
5938         mbsrchr: Avoid collision with system function on Interix.
5939         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
5940         Reported by Markus Duft <mduft@gentoo.org>.
5941
5942 2011-05-15  James Youngman  <jay@gnu.org>
5943
5944         getopt: for ambiguous options, enumerate the possibilities.
5945         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
5946         the ambiguous options when an ambiguous prefix is given. This was
5947         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
5948         glibc change was
5949         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
5950
5951 2011-05-25  Eric Blake  <eblake@redhat.com>
5952
5953         getcwd: work around mingw bug
5954         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
5955         * doc/posix-functions/getcwd.texi (getcwd): Document it.
5956         Reported by Matthias Bolte.
5957
5958 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
5959
5960         test-intprops: disable -Wtype-limits diagnostics
5961         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
5962         diagnostics.  Otherwise, the integer overflow macros generate many
5963         diagnostics.  Reported by Jim Meyering in
5964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5965
5966         intprops: shorten, to pacify gcc -Woverlength-strings
5967         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
5968         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
5969         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
5970         likely to run afoul of C compiler limits for string constant lengths.
5971         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5972
5973 2011-05-24  Eric Blake  <eblake@redhat.com>
5974
5975         docs: document recently fixed glibc printf bug
5976         * doc/posix-functions/fprintf.texi (fprintf): Document it.
5977         * doc/posix-functions/printf.texi (printf): Likewise.
5978         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5979         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5980
5981         closein-tests: convert to init.sh
5982         * modules/closein-tests (Files): Add init.sh
5983         * tests/test-closein.sh Use it.
5984
5985         yesno-tests: convert to init.sh
5986         * modules/yesno-tests (Files): Add init.sh.
5987         * tests/test-yesno.sh: Use it.
5988
5989         atexit-tests: ensure reliable exit status
5990         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
5991         Reported by Bruno Haible.
5992
5993 2011-05-24  Bruno Haible  <bruno@clisp.org>
5994
5995         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
5996         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
5997         gl_PREREQ_STRERROR_R invocations from here...
5998         * modules/strerror_r-posix (configure.ac): ... to here.
5999
6000 2011-05-24  Eric Blake  <eblake@redhat.com>
6001
6002         strerror_r: fix missing header
6003         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6004
6005         strerror_r: fix AIX test failures
6006         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6007         ERANGE failure.
6008
6009         strerror_r: fix Solaris test failures
6010         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6011         failures.
6012         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6013
6014         strerror_r: enforce POSIX recommendations
6015         * lib/strerror_r.c (safe_copy): New helper method.
6016         (strerror_r): Guarantee a non-empty string.
6017         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6018         recent POSIX rulings and to match our strerror guarantees.
6019         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6020
6021 2011-05-24  Jim Meyering  <meyering@redhat.com>
6022
6023         test-perror2.c: avoid warning about unused variable
6024         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6025
6026 2011-05-24  Eric Blake  <eblake@redhat.com>
6027
6028         perror: avoid spurious test failure on HP-UX
6029         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6030
6031         tests: fix logic bug in init.sh
6032         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6033         shell.
6034
6035 2011-05-24  Jim Meyering  <meyering@redhat.com>
6036
6037         utimensat: do not reference an out-of-scope buffer
6038         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6039         declared in an inner scope, yet "times" would be dereferenced outside
6040         the scope in which "ts" was valid.
6041         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6042         of ts[2] "out/up", so that the use of aliased "times" (via
6043         "times = ts;") does not end up referencing an out-of-scope "ts"
6044
6045         opendir-safer.c: don't clobber errno; don't close negative FD
6046         * lib/opendir-safer.c (opendir_safer):
6047         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6048         file descriptor, and more importantly, don't clobber the
6049         offending errno value with EINVAL.  Before, upon failure
6050         of dup_safer, we would pass the negative file descriptor to
6051         fdopendir, which would clobber errno.
6052
6053 2011-05-23  Bruno Haible  <bruno@clisp.org>
6054
6055         idcache: Fix module description.
6056         * modules/idcache (Include): Set to "idcache.h".
6057
6058 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6059
6060         gnulib-tool: fix portability problem with MacOS sed
6061         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6062         before the "}".  Problem reported by Leo in
6063         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6064         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6065         sed_extract_condition1, sed_extract_condition2.
6066
6067 2011-05-23  Bruno Haible  <bruno@clisp.org>
6068
6069         hash: Simplify autoconf macro.
6070         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6071
6072 2011-05-23  Bruno Haible  <bruno@clisp.org>
6073
6074         getugroups: Fix module description.
6075         * modules/getugroups (Include): Set to "getugroups.h".
6076
6077 2011-05-23  Bruno Haible  <bruno@clisp.org>
6078
6079         linkat: Simplify autoconf macro.
6080         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6081
6082 2011-05-23  Bruno Haible  <bruno@clisp.org>
6083             Eric Blake  <eblake@redhat.com>
6084
6085         linkat, renameat: Update dependencies.
6086         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6087         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6088         symlinkat.
6089
6090 2011-05-23  Jim Meyering  <meyering@redhat.com>
6091
6092         maint.mk: more tight_scope improvements
6093         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6094         (_gl_TS_headers): Define only in if-0'd block.
6095         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6096         sometimes we must *not* use it.  Adjust uses accordingly.
6097         (sc_tight_scope): Use much simpler grep-based test to determine
6098         whether we skip this rule.
6099
6100         maint.mk: generalize/improve the tight-scope rule
6101         * top/maint.mk: Emit a warning when the test is skipped.
6102         (_gl_TS_dir): Add $(srcdir)/ prefix.
6103         (_gl_TS_function_match): Simplify, rather than trying
6104         to enumerate common types.  Otherwise, it would fail to match an
6105         "extern unsigned char const *" declaration in idutils.
6106         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6107         a way to support use of that type of macro.
6108         (_gl_TS_var_match): Simplify regexp.
6109         (_gl_TS_obj_files): New configurable variable.
6110         (_gl_TS_headers): Likewise.
6111
6112 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6113
6114         verify: fix bug when gnulib <assert.h> is also included
6115         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6116         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6117         Perhaps there's a better way, but this fixes the immediate problem.
6118         Problem reported by Bruno Haible in
6119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6120
6121 2011-05-22  Bruno Haible  <bruno@clisp.org>
6122
6123         xgetcwd: Simplify autoconf macro.
6124         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6125
6126 2011-05-22  Bruno Haible  <bruno@clisp.org>
6127
6128         New module 'mktime-internal'.
6129         * modules/mktime-internal: New file.
6130         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6131         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6132         mktime_internal as a C macro if libc has __mktime_internal.
6133         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6134         conditions.
6135         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6136
6137 2011-05-22  Bruno Haible  <bruno@clisp.org>
6138
6139         timegm: Correct mktime replacement statements.
6140         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6141         defining mktime as a C macro. This completes a 2009-07-28 commit.
6142
6143 2011-05-22  Bruno Haible  <bruno@clisp.org>
6144
6145         timegm: Simplify autoconf macro.
6146         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
6147
6148 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6149
6150         clock-time: change to LGPLv2+.
6151         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
6152         BSD-like but we have no mark for that; this is good enough for now.
6153
6154 2011-05-21  Bruno Haible  <bruno@clisp.org>
6155
6156         strerror_r: Fix comments.
6157         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
6158
6159 2011-05-21  Bruno Haible  <bruno@clisp.org>
6160
6161         relocatable-prog-wrapper: Fix possible link error.
6162         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
6163         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
6164         (gl_FUNC_SETENV): ... to here.
6165         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
6166         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
6167
6168 2011-05-21  Bruno Haible  <bruno@clisp.org>
6169
6170         relocatable-prog-wrapper: Assume strerror() exists.
6171         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
6172         m4/strerror.m4.
6173         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
6174         * lib/relocwrapper.c: Remove mention of strerror module.
6175         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
6176         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
6177         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
6178         C macro.
6179
6180 2011-05-21  Bruno Haible  <bruno@clisp.org>
6181
6182         select: Simplify replacement idiom.
6183         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
6184         Win32 platforms.
6185         * lib/sys_select.in.h (select): Simplify accordingly.
6186         * modules/select (Depends-on): Likewise.
6187
6188 2011-05-21  Bruno Haible  <bruno@clisp.org>
6189
6190         mkdir-p: Simplify autoconf macro.
6191         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
6192         gl_FUNC_LCHOWN.
6193
6194 2011-05-21  Eric Blake  <eblake@redhat.com>
6195
6196         strerror_r: avoid clobbering strerror on cygwin
6197         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
6198         fall back instead to sys_errlist.
6199         * modules/strerror (configure.ac): Add witness.
6200         * tests/test-strerror_r.c (main): Enhance test.
6201         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6202         * tests/test-perror2.c (main): Free memory before exit.
6203
6204 2011-05-21  Bruno Haible  <bruno@clisp.org>
6205
6206         mkdtemp: Use gnulib naming conventions.
6207         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
6208         * modules/mkdtemp (configure.ac): Update.
6209
6210 2011-05-20  Eric Blake  <eblake@redhat.com>
6211
6212         strerror_r: avoid corrupting errno on Solaris
6213         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
6214         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6215
6216         strerror_r: avoid compiler warning
6217         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
6218
6219         strerror_r: simplify AIX code
6220         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
6221
6222         test-perror: avoid spurious failure on FreeBSD
6223         * modules/perror-tests (Depends-on): Add strerror, now that
6224         strerror_r no longer pulls it in.
6225
6226 2011-05-20  Bruno Haible  <bruno@clisp.org>
6227
6228         strerror_r-posix: Remove unused dependencies.
6229         * modules/strerror_r-posix (Depends-on): Remove strerror.
6230         Reported by Eric Blake.
6231
6232 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6233
6234         intprops: remove assumption about A|B representation
6235         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
6236         is a valid integer if both A and B are.  Although this is true for
6237         all known practical hosts, the C standard doesn't guarantee it,
6238         and the code need not assume it.  Also, this change may work around
6239         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
6240         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
6241
6242 2011-05-20  Eric Blake  <eblake@redhat.com>
6243
6244         perror: work around FreeBSD bug
6245         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
6246         is broken.  Move AC_LIBOBJ...
6247         * modules/perror (configure.ac): Here.
6248         * doc/posix-functions/perror.texi (perror): Document this.
6249         * tests/test-perror2.c (main): Enhance test.
6250
6251         test-perror: check for strerror interactions
6252         * tests/macros.h (STREQ): Add macro.
6253         * modules/perror-tests (Files): Add second test.
6254         * tests/test-perror2.c (main): New file.
6255         * doc/posix-functions/perror.texi (perror): Document glibc bug.
6256
6257         test-perror: rewrite to use init script
6258         * modules/perror-tests (Files): Add init.sh.
6259         * tests/test-perror.sh: Use temporary directory.
6260
6261 2011-05-20  Jim Meyering  <meyering@redhat.com>
6262
6263         maint: replace misused "a" with "an"
6264         * doc/intprops.texi: "a integer"
6265         * doc/regex.texi: "a explanation"
6266         * lib/alignof.h: "a object"
6267         * lib/argmatch.h: "a explanation"
6268         * lib/argp-help.c: "a option" and "a OPTION_DOC"
6269         * lib/stdint.in.h: "a integer"
6270         * lib/userspec.c: "a owner"
6271         * doc/gnulib.texi: Fix "a idea", and reword.
6272
6273 2011-05-19  Jim Meyering  <meyering@redhat.com>
6274
6275         maint: correct misuse of "a" and "an"
6276         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6277         * lib/argp-help.c: "an docum...": s/an/a/
6278         * lib/argp-parse.c: "An vector": s/An/A/
6279         * lib/execute.c: "an native": s/an/a/
6280         * lib/spawn-pipe.c: Likewise.
6281         * lib/gc.h: "an Gc_rc": s/an/a/
6282         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6283         * lib/fts.c: "an stat.st_dev": s/an/a/
6284
6285 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6286
6287         intprops-tests: work around HP-UX 11.23 cc bug with constants
6288         * tests/test-intprops.c (VERIFY): New macro.
6289         (main): Use it, instead of verify, to work around the compiler bug; see
6290         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6291
6292         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6293         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6294         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6295         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6296         (_GL_REMAINDER_OVERFLOW): Use it.
6297
6298         intprops-tests: revert unsigned part of previous change
6299         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6300         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6301         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6302         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6303
6304 2011-05-19  Bruno Haible  <bruno@clisp.org>
6305
6306         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6307         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6308         strerror_r() returned without filling the buffer.
6309         Reported by Eric Blake.
6310
6311 2011-05-19  Eric Blake  <eblake@redhat.com>
6312
6313         strerror_r: guarantee unchanged errno
6314         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
6315         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
6316         failure.
6317         * tests/test-strerror_r.c (main): Enhance test.
6318
6319 2011-05-19  Bruno Haible  <bruno@clisp.org>
6320
6321         strerror_r: Reorder #if blocks.
6322         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
6323         for consistency with the previous commit.
6324
6325 2011-05-19  Bruno Haible  <bruno@clisp.org>
6326
6327         perror: Avoid clobbering the strerror buffer when possible.
6328         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
6329         * lib/strerror.c: Include it.
6330         * modules/strerror (Files): Add lib/strerror-impl.h.
6331         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
6332         (my_strerror): New function, defined through lib/strerror-impl.h.
6333         (perror): Use it instead of strerror.
6334         * modules/perror (Files): Add lib/strerror-impl.h.
6335         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
6336
6337 2011-05-19  Eric Blake  <eblake@redhat.com>
6338
6339         strerror_r: fix on newer cygwin
6340         * lib/strerror_r.c (strerror_r): Cygwin now has
6341         __xpg_strerror_r, use it.
6342
6343 2011-05-19  Bruno Haible  <bruno@clisp.org>
6344
6345         strerror_r: Avoid clobbering the strerror buffer when possible.
6346         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
6347         (sys_nerr, sys_errlist): New declarations.
6348         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
6349         HP-UX, native Win32, IRIX, and 32-bit Solaris.
6350         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
6351
6352 2011-05-19  Bruno Haible  <bruno@clisp.org>
6353
6354         strerror_r: Fix test failure on mingw.
6355         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
6356         EXTEND_STRERROR_R.
6357         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
6358         macros from errno.in.h instead.
6359
6360 2011-05-19  Eric Blake  <eblake@redhat.com>
6361
6362         strerror: relax test for Solaris
6363         * tests/test-strerror.c (main): Permit Solaris behavior.
6364         * tests/test-strerror_r.c (main): Likewise.
6365
6366         strerror: enforce POSIX ruling on strerror(0)
6367         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
6368         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6369         * lib/strerror_r.c (rpl_strerror_r): Work around it.
6370         * doc/posix-functions/strerror.texi (strerror): Document it.
6371         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
6372         * tests/test-strerror.c (main): Strengthen test.
6373         * tests/test-strerror_r.c (main): Likewise.
6374
6375 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6376
6377         intprop-tests: port to older and more-pedantic compilers
6378         * modules/intprops-tests (Files): Add tests/macros.h.
6379         * tests/test-intprops.c: Include macros.h.
6380         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
6381         it's no longer documented to expand to an integer constant expression.
6382         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
6383         argument is floating point, as it's no longer documented to expand
6384         to an integer constant expression in that case.
6385         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
6386         compiler bugs reported by Bruno Haible.  See
6387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6388         (U0, U1): New constants, to work around the same bugs.  Also,
6389         in tests, use e.g., "(unsigned int) 39" rather than "39u".
6390
6391         intprops: work around C compiler bugs
6392         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
6393         bug in Sun C 5.11 2010/08/13 and other compilers; see
6394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6395
6396         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
6397         * doc/intprops.texi (Integer Type Determination): Fix
6398         documentation for TYPE_IS_INTEGER: it returns an constant
6399         expression, not an integer constant expression.  Fix doc for
6400         TYPE_SIGNED: it returns an integer constant expression only if its
6401         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
6402         hardly worth documented that way....)
6403
6404 2011-05-18  Bruno Haible  <bruno@clisp.org>
6405
6406         strerror_r: Avoid clobbering the strerror buffer when possible.
6407         * lib/strerror_r.c (strerror_r): Merge the three implementations.
6408         Handle gnulib defined errno values here. When strerror() returns NULL
6409         or an empty string, return EINVAL.
6410         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
6411         gnulib defined errno values here.
6412         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
6413
6414 2011-05-18  Eric Blake  <eblake@redhat.com>
6415
6416         fnmatch: avoid compiler warning
6417         * lib/fnmatch_loop.c (FCT): Use correct type.
6418         Reported by Matthias Bolte.
6419
6420 2011-05-13  Jim Meyering  <meyering@redhat.com>
6421
6422         maint.mk: three new prohibit_<HDR>_without_use rules
6423         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
6424         (sc_prohibit_stdio-safer_without_use): Likewise.
6425         (sc_prohibit_xfreopen_without_use): Likewise.
6426
6427 2011-05-17  Jim Meyering  <meyering@redhat.com>
6428
6429         announce-gen: fail if the NEWS delta is empty
6430         If there's nothing noteworthy in NEWS, then either you forgot
6431         or you shouldn't be releasing.
6432         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
6433
6434 2011-05-17  Pádraig Brady <P@draigBrady.com>
6435
6436         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
6437         reserved symbols starting with double underscore from the check.
6438
6439 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6440
6441         intprops: add doc
6442         * doc/intprops.texi: New file, documenting intprops.
6443         * doc/gnulib.texi (Particular Modules): Include it.
6444
6445         verify: add doc to gnulib manual and fix example
6446         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
6447         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
6448         (Compile-time Assertions): Fix example so it can't overflow.
6449
6450 2011-05-17  Jim Meyering  <meyering@redhat.com>
6451
6452         warnings.m4: don't usurp save_CPPFLAGS variable name
6453         * m4/warnings.m4: Prefix local temporary variable name with gl_.
6454
6455         doc: fix typo
6456         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
6457
6458 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6459             Bruno Haible  <bruno@clisp.org>
6460
6461         doc: Tweak recent change.
6462         * README (Portability guidelines): Tweak new text.
6463         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
6464         Interix 6.1.
6465
6466 2011-05-16  Eric Blake  <eblake@redhat.com>
6467
6468         inttypes: avoid autoconf warning
6469         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
6470         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6471
6472 2011-05-16  Sam Steingold <sds@gnu.org>
6473         and Eric Blake  <eblake@redhat.com>
6474
6475         vc-list-files: accept multiple directory operands
6476         * build-aux/vc-list-files: Iterate over all remaining operands.
6477
6478 2011-05-16  Bruno Haible  <bruno@clisp.org>
6479
6480         Fix confusion regarding deprecated modules.
6481         * modules/calloc (Status, Notice): Mark module as deprecated, not
6482         obsolete.
6483         * modules/fnmatch-posix (Status, Notice): Likewise.
6484         * modules/getdate (Status, Notice): Likewise.
6485         * modules/getopt (Status, Notice): Likewise.
6486         * modules/malloc (Status, Notice): Likewise.
6487         * modules/pipe (Status, Notice): Likewise.
6488         * modules/realloc (Status, Notice): Likewise.
6489         * modules/rename-dest-slash (Status, Notice): Likewise.
6490         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
6491         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
6492         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
6493         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
6494         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
6495
6496 2011-05-16  Bruno Haible  <bruno@clisp.org>
6497
6498         doc: List the target platforms.
6499         * doc/gnulib-intro.texi (Target Platforms): New section.
6500         * doc/gnulib.texi (Introduction): Update menu.
6501         * README (Portability guidelines): Refer to the new section. Update
6502         statement about oldest supported environment. Remove rationale why
6503         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
6504         unportable C89 function.
6505         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
6506         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
6507
6508 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6509
6510         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
6511
6512 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6513
6514         intprops-tests: new module
6515         * modules/intprops-tests, tests/test-intprops.c: New files.
6516
6517         intprops: add safe, portable integer overflow checking
6518         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
6519         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
6520         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
6521         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
6522         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
6523         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
6524         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
6525         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
6526         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
6527         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
6528         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
6529
6530 2011-05-12  James Youngman  <jay@gnu.org>
6531
6532         Add a test for glibc's Bugzilla bug #12378.
6533         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
6534         doesn't allow the literal matching of a lone "[" (which is
6535         required by POSIX).
6536         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
6537
6538 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
6539
6540         Sync glibc change fixing Bugzilla bug #12378.
6541         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
6542         beginning and fall back to matching as normal character if the
6543         string ends before the matching ']' is found.  This is what POSIX
6544         requires.
6545
6546 2011-05-13  Eric Blake  <eblake@redhat.com>
6547
6548         getcwd-lgpl: relax test for FreeBSD
6549         * doc/posix-functions/getcwd.texi (getcwd): Document portability
6550         issue.
6551         * tests/test-getcwd-lgpl.c (main): Relax test.
6552         Reported by Matthias Bolte.
6553
6554 2011-05-11  Eric Blake  <eblake@redhat.com>
6555
6556         test-fflush: silence compiler warning
6557         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
6558
6559 2011-05-11  Bruno Haible  <bruno@clisp.org>
6560
6561         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
6562         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
6563         * modules/canonicalize (Depends-on): Add 'nocrash'.
6564         * modules/canonicalize-lgpl (Depends-on): Likewise.
6565         * doc/posix-functions/realpath.texi: Update platforms list.
6566         Reported by Ryan Schmidt <ryandesign@macports.org>.
6567
6568 2011-05-11  Bruno Haible  <bruno@clisp.org>
6569
6570         group-member: Declare function in <unistd.h>.
6571         * lib/unistd.in.h (group_member): New declaration.
6572         * lib/group-member.h: Remove file.
6573         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
6574         * tests/test-unistd-c++.cc: Check signature of group_member.
6575         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
6576         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
6577         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
6578         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
6579         HAVE_GROUP_MEMBER.
6580         * modules/group-member (Files): Remove lib/group-member.h.
6581         (Depends-on): Add unistd. Specify conditions.
6582         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6583         (Include): Change to <unistd.h>.
6584         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
6585         HAVE_GROUP_MEMBER.
6586         * NEWS: Mention the change.
6587         * lib/euidaccess.c: Don't include group-member.h.
6588
6589 2011-05-11  Bruno Haible  <bruno@clisp.org>
6590
6591         group-member: Document module.
6592         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
6593         module.
6594
6595 2011-05-11  Bruno Haible  <bruno@clisp.org>
6596
6597         fclose: Fix mistake earlier today.
6598         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
6599
6600 2011-05-11  Eric Blake  <eblake@redhat.com>
6601
6602         fclose: preserve fflush errors
6603         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
6604         Reported by Jim Meyering.
6605
6606         bootstrap: support a prereq of 'rpcgen -' on RHEL5
6607         * build-aux/bootstrap (check_versions): When no specific version
6608         is required, merely check that the app produces an exit status
6609         that indicates its existence.
6610
6611         maint.mk: drop redundant check
6612         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
6613         the same but better.
6614
6615 2011-05-11  Bruno Haible  <bruno@clisp.org>
6616
6617         fclose: Fix possible link error.
6618         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
6619         unregister_shadow_fd. Improve comments.
6620         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
6621         Eric Blake.
6622
6623 2011-05-11  Jim Meyering  <meyering@redhat.com>
6624
6625         maint.mk: improve "can not" detection and generalize rule name
6626         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
6627         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
6628         Use the same technique as in sc_prohibit_doubled_word, so that
6629         we recognize "can not" also when the words are separated by a newline.
6630         Suggested by Eric Blake.
6631         (perl_filename_lineno_text_): Define.  Factored out of...
6632         (prohibit_doubled_word_): ...here.  Use the new definition.
6633         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
6634         (prohibit_undesirable_word_seq_RE_): New overridable variable.
6635         (ignore_undesirable_word_sequence_RE_): New overridable variable.
6636
6637 2011-05-10  Eric Blake  <eblake@redhat.com>
6638
6639         fclose: avoid double close race when possible
6640         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
6641         all but WINDOWS_SOCKETS.
6642
6643 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
6644
6645         openat: correct new comment
6646         * lib/openat-proc.c (openat_proc_name): Correct the comment.
6647
6648 2011-05-10  Jim Meyering  <meyering@redhat.com>
6649
6650         openat: add comments
6651         * lib/openat-proc.c (openat_proc_name): Add comments,
6652         mostly from Eric Blake.
6653
6654 2011-05-09  Eric Blake  <eblake@redhat.com>
6655
6656         openat: reduce syscalls in first probe of /proc
6657         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
6658         be a directory.  Simplify the probe for .. bugs.
6659         * modules/openat (Depends-on): Drop same-inode.
6660         Reported by Bastien ROUCARIES.
6661
6662 2011-05-09  Jim Meyering  <meyering@redhat.com>
6663
6664         maint.mk: change semantics/name of tight_scope variables
6665         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
6666         Rename variables to align with semantics that make them more useful.
6667
6668         maint.mk: tweak new rule's name not to impinge
6669         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
6670         (sc_tight_scope): Use new rule name rather than $@-0.
6671
6672         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
6673         * top/maint.mk (sc_tight_scope): New rule.
6674         (sc_tight_scope-0): New rule, ifdef'd out.
6675         (_gl_TS_dir): Default.
6676         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
6677         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
6678
6679 2011-05-09  Simon Josefsson  <simon@josefsson.org>
6680
6681         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
6682         Haible <bruno@clisp.org>.
6683
6684 2011-05-08  Bruno Haible  <bruno@clisp.org>
6685
6686         Comments.
6687         * m4/isnanf.m4: Add comment.
6688         * m4/isnanl.m4: Likewise.
6689
6690 2011-05-08  Bruno Haible  <bruno@clisp.org>
6691
6692         glob: Remove obsolete macro.
6693         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
6694
6695 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
6696
6697         intprops: Sun C 5.11 supports __typeof__
6698         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
6699         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
6700         which is new.
6701         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
6702
6703         intprops: switch to usual gnulib indenting and naming
6704         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
6705         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
6706
6707         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
6708
6709 2011-05-08  Jim Meyering  <meyering@redhat.com>
6710
6711         maint.mk: suppress "Entering/Leaving directory" diag in announcement
6712         * top/maint.mk (release-prep): Use make's --no-print-directory
6713         option when generating the announcement.  This eliminates the
6714         pesky "make[2]: Entering/Leaving directory" diagnostics in the
6715         generated announcement template.
6716
6717 2011-05-08  Bruno Haible  <bruno@clisp.org>
6718
6719         tzset: Fix gettimeofday wrapper on Solaris 2.6.
6720         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
6721         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
6722
6723 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
6724
6725         ignore-value, verify: Omit include files from lib_SOURCES.
6726         * modules/ignore-value, modules/verify (Makefile.am):
6727         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
6728         that leads Automake to duplicate use of am__objects_... variables
6729         in Makefile.in.  See
6730         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
6731
6732 2011-05-07  Bruno Haible  <bruno@clisp.org>
6733
6734         fclose: Simplify autoconf macro.
6735         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
6736         defined.
6737
6738 2011-05-07  Bruno Haible  <bruno@clisp.org>
6739
6740         canonicalize-lgpl: Fix autoconf macro ordering bug.
6741         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
6742         gl_STDLIB_H_DEFAULTS.
6743
6744 2011-05-06  Eric Blake  <eblake@redhat.com>
6745
6746         maintainer-makefile: make sc_po_check easier to tune
6747         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
6748         to probe for strings, such as an alternate location for gnulib.
6749
6750         fclose: guarantee behavior on seekable stdin
6751         * modules/fclose (Depends-on): Add fflush.
6752         * doc/posix-functions/fclose.texi (fclose): Document this.
6753         * tests/test-fclose.c (main): Make test for this unconditional.
6754
6755 2011-05-06  Bruno Haible  <bruno@clisp.org>
6756
6757         fflush, fpurge: Relicense under LGPLv2+.
6758         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
6759         * modules/fpurge (License): Likewise.
6760         With permission from Eric Blake and Jim Meyering.
6761         Suggested by Eric Blake.
6762
6763 2011-05-06  Karl Berry  <karl@gnu.org>
6764
6765         * MODULES.html.sh (func_all_modules): remove exit.
6766
6767 2011-05-06  Jim Meyering  <meyering@redhat.com>
6768
6769         maint.mk: use info-gnu@ as the default only for a stable release
6770         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
6771         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
6772         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
6773         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
6774
6775 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
6776
6777         assert-h: new module, which supports C1X-style static_assert
6778         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
6779         * lib/verify.h: Revamp so that this can be copied into assert.h,
6780         while retaining the ability to use it standalone as before.
6781         Rename private identifiers so as not to encroach on the
6782         standard C namespace, since this is now used by assert.h.
6783         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
6784         the old verify_true.
6785         (_GL_VERIFY_TRUE): New macro, with much of the contents of
6786         the old verify_true.  Use _GL_VERIFY_TYPE.
6787         (_GL_VERIFY): New macro, with much of the contents of the old verify.
6788         (static_assert): New macro, if _GL_STATIC_ASSERT_H
6789         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
6790         defined when this file is copied into the replacement assert.h.
6791         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
6792         and _Static_assert is not built in.
6793         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
6794         defined, and use the new macros mentioned above.
6795         * doc/posix-headers/assert.texi: Document this.
6796
6797 2011-05-05  Bruno Haible  <bruno@clisp.org>
6798
6799         fclose, fflush: Respect rules for use of AC_LIBOBJ.
6800         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
6801         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
6802         gl_REPLACE_FCLOSE here.
6803         * modules/fflush (Depends-on): Remove fclose.
6804         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
6805         combination with module 'fclose'.
6806
6807 2011-05-05  Bruno Haible  <bruno@clisp.org>
6808
6809         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
6810         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
6811         gl_FUNC_FFLUSH.
6812         (gl_FUNC_FFLUSH): Use it.
6813         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
6814         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
6815         gl_REPLACE_FSEEKO here.
6816
6817 2011-05-05  Bruno Haible  <bruno@clisp.org>
6818
6819         tzset: Relicense under LGPL.
6820         * modules/tzset (License): Change to LGPL.
6821         No agreement needed; it's a no-op.
6822
6823         strtoimax, strtoumax: Relicense under LGPL.
6824         * modules/strtoimax (License): Change to LGPL.
6825         * modules/strtoumax (License): Likewise.
6826         With permission from Jim Meyering, Paul Eggert:
6827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
6828         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
6829
6830         getgroups: Relicense under LGPL.
6831         * modules/getgroups (License): Change to LGPL.
6832         With permission from Jim Meyering, Paul Eggert, Eric Blake:
6833         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
6834         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
6835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6836
6837         nanosleep: Relicense under LGPL.
6838         * modules/nanosleep (License): Change to LGPL.
6839         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
6840         Haible:
6841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
6842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
6843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6844         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
6845
6846         futimens: Relicense under LGPL.
6847         * modules/futimens (License): Change to LGPL.
6848         With permission from Eric Blake:
6849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6850
6851         fflush: Relicense under LGPL.
6852         * modules/fflush (License): Change to LGPL.
6853         With permission from Eric Blake, Bruno Haible, Jim Meyering:
6854         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6855         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
6856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
6857
6858         tmpfile: Relicense under LGPL.
6859         * modules/tmpfile (License): Change to LGPL.
6860         With permission from Ben Pfaff:
6861         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
6862
6863         isfinite: Relicense under LGPL.
6864         * modules/isfinite (License): Change to LGPL.
6865         With permission from Ben Pfaff, Bruno Haible:
6866         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
6867         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
6868
6869         acosl..tanl: Relicense under LGPL.
6870         * modules/acosl (License): Change to LGPL.
6871         * modules/asinl (License): Likewise.
6872         * modules/atanl (License): Likewise.
6873         * modules/cosl (License): Likewise.
6874         * modules/expl (License): Likewise.
6875         * modules/logl (License): Likewise.
6876         * modules/sinl (License): Likewise.
6877         * modules/sqrtl (License): Likewise.
6878         * modules/tanl (License): Likewise.
6879         Source code originally from glibc and Paolo Bonzini. Agreements:
6880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
6881         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
6882
6883 2011-05-05  Bruno Haible  <bruno@clisp.org>
6884
6885         signal: Define sighandler_t.
6886         * lib/signal.in.h (sighandler_t): New type.
6887         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
6888         whether sighandler_t is defined.
6889         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
6890         * modules/signal (Depends-on): Add extensions.
6891         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
6892         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
6893         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
6894
6895 2011-05-05  Eric Blake  <eblake@redhat.com>
6896
6897         maint: remove useless REPLACE_*_H macros
6898         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
6899         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
6900         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
6901         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
6902         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
6903         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
6904         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
6905         * m4/btowc.m4: Update callers.
6906         * m4/dirfd.m4: Likewise.
6907         * m4/duplocale.m4: Likewise.
6908         * m4/fchdir.m4: Likewise.
6909         * m4/fdopendir.m4: Likewise.
6910         * m4/inet_ntop.m4: Likewise.
6911         * m4/inet_pton.m4: Likewise.
6912         * m4/ioctl.m4: Likewise.
6913         * m4/mbrlen.m4: Likewise.
6914         * m4/mbrtowc.m4: Likewise.
6915         * m4/mbsinit.m4: Likewise.
6916         * m4/mbsnrtowcs.m4: Likewise.
6917         * m4/mbsrtowcs.m4: Likewise.
6918         * m4/poll.m4: Likewise.
6919         * m4/setlocale.m4: Likewise.
6920         * m4/wcrtomb.m4: Likewise.
6921         * m4/wcsnrtombs.m4: Likewise.
6922         * m4/wcsrtombs.m4: Likewise.
6923         * m4/wctob.m4: Likewise.
6924         * m4/wcwidth.m4: Likewise.
6925         * modules/posix_spawn: Likewise.
6926         * modules/posix_spawn_file_actions_addclose: Likewise.
6927         * modules/posix_spawn_file_actions_adddup2: Likewise.
6928         * modules/posix_spawn_file_actions_addopen: Likewise.
6929         * modules/posix_spawn_file_actions_destroy: Likewise.
6930         * modules/posix_spawn_file_actions_init: Likewise.
6931         * modules/posix_spawnattr_destroy: Likewise.
6932         * modules/posix_spawnattr_getflags: Likewise.
6933         * modules/posix_spawnattr_getpgroup: Likewise.
6934         * modules/posix_spawnattr_getschedparam: Likewise.
6935         * modules/posix_spawnattr_getschedpolicy: Likewise.
6936         * modules/posix_spawnattr_getsigdefault: Likewise.
6937         * modules/posix_spawnattr_getsigmask: Likewise.
6938         * modules/posix_spawnattr_init: Likewise.
6939         * modules/posix_spawnattr_setflags: Likewise.
6940         * modules/posix_spawnattr_setpgroup: Likewise.
6941         * modules/posix_spawnattr_setschedparam: Likewise.
6942         * modules/posix_spawnattr_setschedpolicy: Likewise.
6943         * modules/posix_spawnattr_setsigdefault: Likewise.
6944         * modules/posix_spawnattr_setsigmask: Likewise.
6945         * modules/posix_spawnp: Likewise.
6946
6947 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
6948
6949         Add option to do-release-commit-and-tag to specify branch.
6950         * build-aux/do-release-commit-and-tag: Add --branch.
6951
6952 2011-05-03  Bruno Haible  <bruno@clisp.org>
6953
6954         Avoid unnecessary compilation units, through conditional dependencies.
6955         * modules/accept (Depends-on): Add conditions to the dependencies.
6956         * modules/acosl (Depends-on): Likewise.
6957         * modules/argz (Depends-on): Likewise.
6958         * modules/asinl (Depends-on): Likewise.
6959         * modules/atanl (Depends-on): Likewise.
6960         * modules/atoll (Depends-on): Likewise.
6961         * modules/bind (Depends-on): Likewise.
6962         * modules/btowc (Depends-on): Likewise.
6963         * modules/canonicalize-lgpl (Depends-on): Likewise.
6964         * modules/ceil (Depends-on): Likewise.
6965         * modules/ceilf (Depends-on): Likewise.
6966         * modules/ceill (Depends-on): Likewise.
6967         * modules/chdir-long (Depends-on): Likewise.
6968         * modules/chown (Depends-on): Likewise.
6969         * modules/close (Depends-on): Likewise.
6970         * modules/connect (Depends-on): Likewise.
6971         * modules/cosl (Depends-on): Likewise.
6972         * modules/dirfd (Depends-on): Likewise.
6973         * modules/dprintf (Depends-on): Likewise.
6974         * modules/dprintf-posix (Depends-on): Likewise.
6975         * modules/error (Depends-on): Likewise.
6976         * modules/euidaccess (Depends-on): Likewise.
6977         * modules/expl (Depends-on): Likewise.
6978         * modules/faccessat (Depends-on): Likewise.
6979         * modules/fchdir (Depends-on): Likewise.
6980         * modules/fclose (Depends-on): Likewise.
6981         * modules/fcntl (Depends-on): Likewise.
6982         * modules/fdopendir (Depends-on): Likewise.
6983         * modules/fflush (Depends-on): Likewise.
6984         * modules/floor (Depends-on): Likewise.
6985         * modules/floorf (Depends-on): Likewise.
6986         * modules/floorl (Depends-on): Likewise.
6987         * modules/fnmatch (Depends-on): Likewise.
6988         * modules/fopen (Depends-on): Likewise.
6989         * modules/fprintf-posix (Depends-on): Likewise.
6990         * modules/frexp (Depends-on): Likewise.
6991         * modules/frexp-nolibm (Depends-on): Likewise.
6992         * modules/frexpl (Depends-on): Likewise.
6993         * modules/frexpl-nolibm (Depends-on): Likewise.
6994         * modules/fseek (Depends-on): Likewise.
6995         * modules/fsusage (Depends-on): Likewise.
6996         * modules/ftell (Depends-on): Likewise.
6997         * modules/ftello (Depends-on): Likewise.
6998         * modules/futimens (Depends-on): Likewise.
6999         * modules/getcwd (Depends-on): Likewise.
7000         * modules/getcwd-lgpl (Depends-on): Likewise.
7001         * modules/getdelim (Depends-on): Likewise.
7002         * modules/getdomainname (Depends-on): Likewise.
7003         * modules/getgroups (Depends-on): Likewise.
7004         * modules/gethostname (Depends-on): Likewise.
7005         * modules/getline (Depends-on): Likewise.
7006         * modules/getlogin_r (Depends-on): Likewise.
7007         * modules/getopt-posix (Depends-on): Likewise.
7008         * modules/getpeername (Depends-on): Likewise.
7009         * modules/getsockname (Depends-on): Likewise.
7010         * modules/getsockopt (Depends-on): Likewise.
7011         * modules/getsubopt (Depends-on): Likewise.
7012         * modules/getusershell (Depends-on): Likewise.
7013         * modules/glob (Depends-on): Likewise.
7014         * modules/grantpt (Depends-on): Likewise.
7015         * modules/iconv_open (Depends-on): Likewise.
7016         * modules/iconv_open-utf (Depends-on): Likewise.
7017         * modules/inet_ntop (Depends-on): Likewise.
7018         * modules/inet_pton (Depends-on): Likewise.
7019         * modules/ioctl (Depends-on): Likewise.
7020         * modules/isapipe (Depends-on): Likewise.
7021         * modules/isfinite (Depends-on): Likewise.
7022         * modules/isinf (Depends-on): Likewise.
7023         * modules/lchown (Depends-on): Likewise.
7024         * modules/ldexpl (Depends-on): Likewise.
7025         * modules/link (Depends-on): Likewise.
7026         * modules/linkat (Depends-on): Likewise.
7027         * modules/listen (Depends-on): Likewise.
7028         * modules/logl (Depends-on): Likewise.
7029         * modules/lstat (Depends-on): Likewise.
7030         * modules/mbrlen (Depends-on): Likewise.
7031         * modules/mbrtowc (Depends-on): Likewise.
7032         * modules/mbsinit (Depends-on): Likewise.
7033         * modules/mbsnrtowcs (Depends-on): Likewise.
7034         * modules/mbsrtowcs (Depends-on): Likewise.
7035         * modules/mbtowc (Depends-on): Likewise.
7036         * modules/memcmp (Depends-on): Likewise.
7037         * modules/mkdir (Depends-on): Likewise.
7038         * modules/mkdtemp (Depends-on): Likewise.
7039         * modules/mkfifo (Depends-on): Likewise.
7040         * modules/mkfifoat (Depends-on): Likewise.
7041         * modules/mknod (Depends-on): Likewise.
7042         * modules/mkostemp (Depends-on): Likewise.
7043         * modules/mkostemps (Depends-on): Likewise.
7044         * modules/mkstemp (Depends-on): Likewise.
7045         * modules/mkstemps (Depends-on): Likewise.
7046         * modules/mktime (Depends-on): Likewise.
7047         * modules/nanosleep (Depends-on): Likewise.
7048         * modules/open (Depends-on): Likewise.
7049         * modules/openat (Depends-on): Likewise.
7050         * modules/perror (Depends-on): Likewise.
7051         * modules/poll (Depends-on): Likewise.
7052         * modules/popen (Depends-on): Likewise.
7053         * modules/posix_spawn (Depends-on): Likewise.
7054         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7055         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7056         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7057         * modules/posix_spawnp (Depends-on): Likewise.
7058         * modules/pread (Depends-on): Likewise.
7059         * modules/printf-posix (Depends-on): Likewise.
7060         * modules/ptsname (Depends-on): Likewise.
7061         * modules/putenv (Depends-on): Likewise.
7062         * modules/pwrite (Depends-on): Likewise.
7063         * modules/readline (Depends-on): Likewise.
7064         * modules/readlink (Depends-on): Likewise.
7065         * modules/readlinkat (Depends-on): Likewise.
7066         * modules/recv (Depends-on): Likewise.
7067         * modules/recvfrom (Depends-on): Likewise.
7068         * modules/regex (Depends-on): Likewise.
7069         * modules/remove (Depends-on): Likewise.
7070         * modules/rename (Depends-on): Likewise.
7071         * modules/renameat (Depends-on): Likewise.
7072         * modules/rmdir (Depends-on): Likewise.
7073         * modules/round (Depends-on): Likewise.
7074         * modules/roundf (Depends-on): Likewise.
7075         * modules/roundl (Depends-on): Likewise.
7076         * modules/rpmatch (Depends-on): Likewise.
7077         * modules/select (Depends-on): Likewise.
7078         * modules/send (Depends-on): Likewise.
7079         * modules/sendto (Depends-on): Likewise.
7080         * modules/setenv (Depends-on): Likewise.
7081         * modules/setlocale (Depends-on): Likewise.
7082         * modules/setsockopt (Depends-on): Likewise.
7083         * modules/shutdown (Depends-on): Likewise.
7084         * modules/sigaction (Depends-on): Likewise.
7085         * modules/signbit (Depends-on): Likewise.
7086         * modules/sigprocmask (Depends-on): Likewise.
7087         * modules/sinl (Depends-on): Likewise.
7088         * modules/sleep (Depends-on): Likewise.
7089         * modules/snprintf (Depends-on): Likewise.
7090         * modules/snprintf-posix (Depends-on): Likewise.
7091         * modules/socket (Depends-on): Likewise.
7092         * modules/sprintf-posix (Depends-on): Likewise.
7093         * modules/sqrtl (Depends-on): Likewise.
7094         * modules/stat (Depends-on): Likewise.
7095         * modules/strchrnul (Depends-on): Likewise.
7096         * modules/strdup-posix (Depends-on): Likewise.
7097         * modules/strerror (Depends-on): Likewise.
7098         * modules/strerror_r-posix (Depends-on): Likewise.
7099         * modules/strndup (Depends-on): Likewise.
7100         * modules/strnlen (Depends-on): Likewise.
7101         * modules/strptime (Depends-on): Likewise.
7102         * modules/strsep (Depends-on): Likewise.
7103         * modules/strsignal (Depends-on): Likewise.
7104         * modules/strstr-simple (Depends-on): Likewise.
7105         * modules/strtod (Depends-on): Likewise.
7106         * modules/strtoimax (Depends-on): Likewise.
7107         * modules/strtok_r (Depends-on): Likewise.
7108         * modules/strtoumax (Depends-on): Likewise.
7109         * modules/symlink (Depends-on): Likewise.
7110         * modules/symlinkat (Depends-on): Likewise.
7111         * modules/tanl (Depends-on): Likewise.
7112         * modules/tcgetsid (Depends-on): Likewise.
7113         * modules/tmpfile (Depends-on): Likewise.
7114         * modules/trunc (Depends-on): Likewise.
7115         * modules/truncf (Depends-on): Likewise.
7116         * modules/truncl (Depends-on): Likewise.
7117         * modules/uname (Depends-on): Likewise.
7118         * modules/unlink (Depends-on): Likewise.
7119         * modules/unlockpt (Depends-on): Likewise.
7120         * modules/unsetenv (Depends-on): Likewise.
7121         * modules/usleep (Depends-on): Likewise.
7122         * modules/utimensat (Depends-on): Likewise.
7123         * modules/vasprintf (Depends-on): Likewise.
7124         * modules/vdprintf (Depends-on): Likewise.
7125         * modules/vdprintf-posix (Depends-on): Likewise.
7126         * modules/vfprintf-posix (Depends-on): Likewise.
7127         * modules/vprintf-posix (Depends-on): Likewise.
7128         * modules/vsnprintf (Depends-on): Likewise.
7129         * modules/vsnprintf-posix (Depends-on): Likewise.
7130         * modules/vsprintf-posix (Depends-on): Likewise.
7131         * modules/wcrtomb (Depends-on): Likewise.
7132         * modules/wcscasecmp (Depends-on): Likewise.
7133         * modules/wcscspn (Depends-on): Likewise.
7134         * modules/wcsdup (Depends-on): Likewise.
7135         * modules/wcsncasecmp (Depends-on): Likewise.
7136         * modules/wcsnrtombs (Depends-on): Likewise.
7137         * modules/wcspbrk (Depends-on): Likewise.
7138         * modules/wcsrtombs (Depends-on): Likewise.
7139         * modules/wcsspn (Depends-on): Likewise.
7140         * modules/wcsstr (Depends-on): Likewise.
7141         * modules/wcstok (Depends-on): Likewise.
7142         * modules/wcswidth (Depends-on): Likewise.
7143         * modules/wctob (Depends-on): Likewise.
7144         * modules/wctomb (Depends-on): Likewise.
7145         * modules/wctype (Depends-on): Likewise.
7146         * modules/wcwidth (Depends-on): Likewise.
7147         * modules/write (Depends-on): Likewise.
7148
7149 2011-05-03  Bruno Haible  <bruno@clisp.org>
7150
7151         Support for conditional dependencies.
7152         * doc/gnulib.texi (Module description): Document the syntax of
7153         conditional dependencies.
7154         * gnulib-tool: New option --conditional-dependencies.
7155         (func_usage): Document it.
7156         (cond_dependencies): New variable.
7157         (func_get_automake_snippet_conditional,
7158         func_get_automake_snippet_unconditional): New functions, extracted from
7159         func_get_automake_snippet.
7160         (func_get_automake_snippet): Use them.
7161         (sed_first_32_chars): New variable.
7162         (func_module_shellfunc_name): New function.
7163         (func_module_shellvar_name): New function.
7164         (func_module_conditional_name): New function.
7165         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
7166         func_cond_module_condition): New functions.
7167         (func_modules_transitive_closure): Add support for conditional
7168         dependencies.
7169         (func_emit_lib_Makefile_am): For a conditional module, enclose the
7170         conditional automake snippet in an automake conditional.
7171         (func_emit_autoconf_snippets): Emit shell functions that contain the
7172         code for conditional modules.
7173         (func_import, func_create_testdir): Update specification.
7174
7175 2011-05-03  Eric Blake  <eblake@redhat.com>
7176
7177         test-getaddrinfo: report error information
7178         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
7179
7180 2011-05-03  Jim Meyering  <meyering@redhat.com>
7181
7182         bootstrap: avoid build failure when $GZIP is set
7183         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
7184         program name.  If defined at all, it is supposed to list gzip options.
7185         Reported by Alan Curry in http://debbugs.gnu.org/8609
7186
7187 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
7188
7189         readme-release: new module with release instructions
7190         * modules/readme-release: New module.
7191         * top/README-release: New file, from coreutils, grep, diffutils.
7192         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7193
7194 2011-05-02  Eric Blake  <eblake@redhat.com>
7195
7196         fflush: also replace fclose when fixing fflush
7197         * modules/fflush (Depends-on): Add fclose.
7198         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
7199         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
7200         memstreams with no backing fd.
7201         * doc/posix-functions/fclose.texi (fclose): Document the use of
7202         fflush module to fix the bug.
7203         * tests/test-fclose.c (main): Relax test when fclose is used in
7204         isolation.
7205
7206         fclose: add some tests
7207         * modules/fclose-tests: New test module.
7208         * tests/test-fclose.c: New file.
7209         * doc/posix-functions/fclose.texi (fclose): Document the bug.
7210
7211         fclose: reduced dependencies
7212         * modules/fclose (Depends-on): Switch from fflush/fseeko to
7213         simpler lseek.
7214         * lib/fclose.c (rpl_fclose): Likewise.
7215         Reported by Simon Josefsson.
7216
7217         exit: drop remaining clients
7218         * modules/argmatch (Depends-on): Replace exit with stdlib.
7219         * modules/copy-file (Depends-on): Likewise.
7220         * modules/execute (Depends-on): Likewise.
7221         * modules/exitfail (Depends-on): Likewise.
7222         * modules/obstack (Depends-on): Likewise.
7223         * modules/pagealign_alloc (Depends-on): Likewise.
7224         * modules/pipe-filter-gi (Depends-on): Likewise.
7225         * modules/pipe-filter-ii (Depends-on): Likewise.
7226         * modules/savewd (Depends-on): Likewise.
7227         * modules/spawn-pipe (Depends-on): Likewise.
7228         * modules/wait-process (Depends-on): Likewise.
7229         * modules/xsetenv (Depends-on): Likewise.
7230         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
7231         * modules/git-merge-changelog (Depends-on): Likewise.
7232         * modules/long-options (Depends-on): Likewise.
7233         * modules/pt_chown (Depends-on): Likewise.
7234         * modules/sysexits (Depends-on): Likewise.
7235
7236         freading: relax license from LGPLv3+ to LGPLv2+
7237         * modules/freading (License): Relax LGPL version.
7238
7239 2011-05-02  Bruno Haible  <bruno@clisp.org>
7240
7241         fchdir: Remove unused dependencies.
7242         * modules/fchdir (Depends-on): Remove include_next.
7243
7244 2011-05-02  Bruno Haible  <bruno@clisp.org>
7245
7246         gnulib-tool: Refactor.
7247         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
7248         from func_emit_autoconf_snippets.
7249         (func_emit_autoconf_snippets): Use it.
7250
7251 2011-05-02  Simon Josefsson  <simon@josefsson.org>
7252
7253         * NEWS: Document removal of 'exit'.
7254         * modules/exit: Remove file.
7255
7256 2011-05-01  Bruno Haible  <bruno@clisp.org>
7257
7258         Update DEPENDENCIES.
7259         * DEPENDENCIES (gettext): Recommend the newest release.
7260         Reported by Simon Josefsson.
7261
7262 2011-05-01  Bruno Haible  <bruno@clisp.org>
7263
7264         gnulib-tool: Reduce code duplication.
7265         * gnulib-tool (func_emit_autoconf_snippets): New function.
7266         (func_import, func_create_testdir): Use it.
7267
7268 2011-04-30  Eric Blake  <eblake@redhat.com>
7269
7270         fclose: don't fail on non-seekable input stream
7271         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
7272         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
7273         since fflush is allowed to fail in that case.
7274
7275 2011-04-30  Bruno Haible  <bruno@clisp.org>
7276
7277         dup3: cleanup
7278         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7279
7280 2011-04-30  Bruno Haible  <bruno@clisp.org>
7281
7282         netdb: Make it work in C++ mode.
7283         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7284         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7285         module.
7286         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7287         gl_MODULE_INDICATOR_FOR_TESTS.
7288         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7289         * modules/netdb-c++-tests: New file.
7290         * tests/test-netdb-c++.cc: New file.
7291
7292 2011-04-30  Bruno Haible  <bruno@clisp.org>
7293
7294         New modules 'vfscanf', 'vscanf'.
7295         * modules/vfscanf: New file.
7296         * modules/vscanf: New file.
7297         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7298         here.
7299         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7300         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7301
7302 2011-04-30  Bruno Haible  <bruno@clisp.org>
7303
7304         passfd: Add comments.
7305         * lib/passfd.c: Add comments about platforms.
7306
7307 2011-04-30  Bruno Haible  <bruno@clisp.org>
7308
7309         sys_uio: Make <sys/uio.h> self-contained.
7310         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
7311         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
7312
7313 2011-04-30  Bruno Haible  <bruno@clisp.org>
7314
7315         sys_socket: Ensure 'struct iovec' definition.
7316         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
7317         <sys/socket.h>.
7318         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
7319
7320 2011-04-30  Bruno Haible  <bruno@clisp.org>
7321
7322         sys_uio: Protect definition of 'struct iovec'.
7323         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
7324         it as a C struct.
7325
7326 2011-04-30  Bruno Haible  <bruno@clisp.org>
7327
7328         manywarnings: fix indentation
7329         * m4/manywarnings.m4: Indent by 2 spaces consistently.
7330
7331 2011-04-30  Pádraig Brady <P@draigBrady.com>
7332
7333         manywarnings: add -Wno-missing-field-initializers if needed.
7334         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
7335         option if it's needed to allow initialization with { 0, }
7336
7337 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
7338
7339         announce-gen: cosmetic improvement
7340         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
7341
7342 2011-04-29  Jim Meyering  <meyering@redhat.com>
7343
7344         vc-list-files: indent with spaces, not TABs
7345         * build-aux/vc-list-files: Convert leading TABs to spaces,
7346         to match the style of most other files in gnulib.
7347
7348         announce-gen: indent with spaces, not TABs
7349         * build-aux/announce-gen: Convert all TABs to spaces, to match
7350         the style of most other files in gnulib.
7351
7352 2011-04-29  Eric Blake  <eblake@redhat.com>
7353
7354         quotearg: avoid uninitialized variable use
7355         * lib/quotearg.c (quoting_options_from_style): Initialize
7356         remaining fields, and ensure that custom styles are only used via
7357         quoting_options rather than quoting_style.
7358
7359 2011-04-29  Jim Meyering  <meyering@redhat.com>
7360
7361         maint.mk: remove unused VC-tag variable
7362         * top/maint.mk (VC-tag): Remove unused variable.
7363
7364 2011-04-29  Bruno Haible  <bruno@clisp.org>
7365
7366         netdb: fix gai_strerror replacements
7367         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
7368         * modules/netdb: Substitute it.
7369
7370 2011-04-29  Jim Meyering  <meyering@redhat.com>
7371
7372         test-getcwd.c: avoid new set-but-not-used warning
7373         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
7374         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
7375         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
7376         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
7377
7378         test-hash.c: avoid a new shadowing warning
7379         * tests/test-hash.c (main): Don't shadow "dup".
7380
7381 2011-04-28  Eric Blake  <eblake@redhat.com>
7382
7383         getaddrinfo: fix gai_strerror signature
7384         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
7385         and work around mingw with UNICODE defined.
7386         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
7387         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
7388         * modules/netdb (Makefile.am): Substitute it.
7389         * lib/netdb.in.h (gai_strerror): Declare replacement.
7390         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
7391         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
7392         the fix.
7393
7394         getsockopt: avoid compiler warning
7395         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
7396         Reported by Matthias Bolte.
7397
7398         tests: drop unused link dependency
7399         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
7400         * modules/dirent-safer-tests (Makefile.am): Likewise.
7401         * modules/fdopendir-tests (Makefile.am): Likewise.
7402         * modules/mkfifoat-tests (Makefile.am): Likewise.
7403         * modules/openat-safer-tests (Makefile.am): Likewise.
7404         * modules/openat-tests (Makefile.am): Likewise.
7405         * modules/readlinkat-tests (Makefile.am): Likewise.
7406         * modules/symlinkat-tests (Makefile.am): Likewise.
7407         * modules/linkat-tests (Makefile.am): Likewise.
7408         (Depends-on): Switch to filenamecat-lgpl.
7409         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
7410         LIBINTL.
7411         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
7412         * tests/test-linkat.c (main): Don't require xalloc.
7413
7414         hash, mgetgroups: drop xalloc dependency
7415         * lib/hash.c (includes): Adjust includes.
7416         * lib/mgetgroups.c (includes): Likewise.
7417         (xgetgroups): Move...
7418         * lib/xgetgroups.c: ...to new file.
7419         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
7420         * modules/xgetgroups: New file, split from...
7421         * modules/mgetgroups: ...here.
7422         (Depends-on): Add xalloc-oversized.
7423         * modules/hash (Depends-on): Likewise.
7424         * modules/hash-tests (Depends-on): Drop xalloc.
7425         (test_hash_LDADD): Drop unused library.
7426         * tests/test-hash.c (main): Break xalloc dependency.
7427         (includes): Drop unused include.
7428
7429         xalloc-oversized: new module
7430         * modules/xalloc-oversized: New module.
7431         * modules/xalloc (Depends-on): Add it.
7432         * lib/xalloc.h (xalloc_oversized): Move...
7433         * lib/xalloc-oversized.h: ...into new file.
7434
7435         utimecmp: drop dependency on xmalloc
7436         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
7437         due to memory pressure.
7438         * modules/utimecmp (Depends-on): Drop xalloc.
7439
7440 2011-04-27  Eric Blake  <eblake@redhat.com>
7441
7442         getcwd: fix mingw bugs
7443         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
7444         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
7445         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
7446
7447 2011-04-27  Bruno Haible  <bruno@clisp.org>
7448
7449         mkstemps: Ensure declaration on MacOS X 10.5.
7450         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
7451         * doc/glibc-functions/mkstemps.texi: Document header file problem on
7452         MacOS X.
7453
7454 2011-04-27  Bruno Haible  <bruno@clisp.org>
7455
7456         mkstemp: More documentation.
7457         * doc/posix-functions/mkstemp.texi: Document header file problem on
7458         MacOS X.
7459
7460 2011-04-27  Bruno Haible  <bruno@clisp.org>
7461
7462         mkstemp: Tweak configure message when cross-compiling.
7463         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
7464         result as a guess.
7465
7466 2011-04-27  Bruno Haible  <bruno@clisp.org>
7467
7468         clean-temp: Clarify what it does.
7469         * lib/clean-temp.h: Add more comments.
7470         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
7471         module.
7472         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
7473         * doc/glibc-functions/mkstemps.texi: Likewise.
7474         * doc/glibc-functions/mkostemps.texi: Likewise.
7475
7476 2011-04-27  Eric Blake  <eblake@redhat.com>
7477
7478         fchdir: avoid extra chdir and fix test
7479         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
7480         getcwd-lgpl.
7481         * lib/fchdir.c (get_name): Any absolute name will do; it does not
7482         have to be canonical.
7483         (canonicalize_file_name): Drop unused macro.
7484         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
7485
7486         filenamecat-lgpl: fix licence
7487         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
7488         when it was first created.
7489
7490         linkat, renameat: add missing dependency
7491         * modules/linkat (Depends-on): Require getcwd-lgpl.
7492         * modules/renameat (Depends-on): Likewise.
7493
7494         tests: reduce dependencies
7495         * tests/test-linkat.c (main): Use lighter-weight getcwd.
7496         * tests/test-renameat.c (main): Likewise.
7497         * modules/linkat-tests (Depends-on): Relax dependency.
7498         * modules/renameat-tests (Depends-on): Likewise.
7499         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
7500         dependency explicit.
7501
7502         save-cwd: reduce default dependency
7503         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
7504         * lib/save-cwd.c: Update comments.
7505         * NEWS: Document the semantic change.
7506
7507         getcwd: enhance tests
7508         * tests/test-getcwd-lgpl.c: New file, taken from...
7509         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
7510         repeat long path stress tests from m4 probe.
7511         * modules/getcwd-lgpl-tests: New module.
7512         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
7513         * m4/getcwd-abort-bug.m4: Update comment.
7514         * m4/getcwd-path-max.m4: Likewise.
7515
7516         getcwd-lgpl: new module
7517         * modules/getcwd-lgpl: New module.
7518         * lib/getcwd-lgpl.c: New file.
7519         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7520         * MODULES.html.sh (lacking POSIX:2008): Likewise.
7521         * modules/getcwd (configure.ac): Set C witness.
7522         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
7523
7524         getcwd: tweak comments
7525         * m4/getcwd-abort-bug.m4: Fix comments.
7526         * m4/getcwd-path-max.m4: Likewise.
7527         * m4/getcwd.m4: Likewise.
7528
7529 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7530         and Eric Blake  <eblake@redhat.com>
7531
7532         mkstemp: replace if system version uses wrong permissions
7533         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
7534         read/write mode bits set in file created by mkstemp.
7535         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
7536
7537 2011-04-27  Eric Blake  <eblake@redhat.com>
7538
7539         passfd: avoid compiler warning
7540         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
7541         Reported by Laine Stump.
7542
7543 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
7544
7545         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
7546         required by the NetBSD (and perhaps other 4.4BSD derived) join.
7547
7548 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7549         and Eric Blake  <eblake@redhat.com>
7550
7551         mkstemp: mention clean-temp module
7552         * lib/mkstemp.c: Add comment.
7553         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
7554
7555 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7556
7557         inttypes: also provide default values for 32-bit tests
7558         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
7559         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
7560
7561 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7562
7563         strtoumax: remove dependency on strtoimax
7564         This is like the strtoull change of yesterday.
7565         * modules/strtoumax (Files): Add lib/strtoimax.c.
7566         (Depends-on): Remove strtoimax and add verify.
7567
7568         inttypes-incomplete: new module
7569         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
7570         all but the PRI* and SCN* parts of gl_INTTYPES_H.
7571         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
7572         of gl_INTTYPES_H.
7573         (gl_INTTYPES_H): Rewrite in terms of these new macros.
7574         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
7575         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
7576         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
7577         * modules/strtoumax, modules/xstrtol (Depends-on):
7578         Depend on inttypes-incomplete, not inttypes.
7579         * modules/inttypes-incomplete: New module, containing the contents
7580         of the old modules/inttypes module, except that the Files: section
7581         omits m4/inttypes-pri.m4, and the configure.ac section invokes
7582         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
7583         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
7584         (Depends-on): Depend only on inttypes-incomplete.
7585         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
7586
7587         inttypes: omit now-redundant strtoimax and strtoumax work
7588         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
7589         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
7590
7591         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
7592         This supports apps that need pointers to strtoimax and strtoumax,
7593         and ports to HP-UX 11.00 64.bit, which has macros that expand to
7594         nonexistent functions.  See
7595         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
7596         et seq.
7597         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
7598         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
7599         a macro.
7600         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7601
7602 2011-04-25  Simon Josefsson  <simon@josefsson.org>
7603
7604         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
7605
7606 2011-04-25  Bruno Haible  <bruno@clisp.org>
7607
7608         strtol, strtoul: Mark modules as obsolete.
7609         * modules/strtol (Status, Notice): New sections.
7610         * modules/strtoul (Status, Notice): New sections.
7611
7612 2011-04-25  Bruno Haible  <bruno@clisp.org>
7613
7614         strtod: Remove check for strtod, unless supporting old platforms.
7615         * modules/strtod-obsolete: New file.
7616         * m4/strtod-obsolete.m4: New file.
7617         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
7618         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
7619         * modules/strtod (Depends-on): Add strtod-obsolete.
7620         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
7621
7622 2011-04-25  Bruno Haible  <bruno@clisp.org>
7623
7624         strcase: Make module obsolete.
7625         * modules/strcase (Status, Notice): New sections.
7626
7627 2011-04-25  Bruno Haible  <bruno@clisp.org>
7628
7629         dup2: Remove check for dup2, unless supporting old obsolete platforms.
7630         * modules/dup2-obsolete: New file.
7631         * m4/dup2-obsolete.m4: New file.
7632         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
7633         gl_FUNC_DUP2_OBSOLETE is not also defined.
7634         * modules/dup2 (Depends-on): Add dup2-obsolete.
7635         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
7636
7637 2011-04-25  Bruno Haible  <bruno@clisp.org>
7638
7639         strnlen: Avoid memchr related link error on old obsolete platforms.
7640         * modules/memchr-obsolete: New file.
7641         * m4/memchr-obsolete.m4: New file.
7642         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
7643         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
7644         * modules/memchr (Depends-on): Add memchr-obsolete.
7645         * modules/strnlen (Depends-on): Likewise.
7646         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
7647
7648 2011-04-25  Jim Meyering  <meyering@redhat.com>
7649
7650         maint.mk: makefile_at_at_check extend and clean up
7651         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
7652         in addition to */Makefile.am.
7653         Exempt legitimate uses of @VAR@ notation, e.g.,
7654         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
7655         Remove obsolete coreutils-specific comment.
7656         Prompted by discussion here:
7657         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
7658
7659 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
7660
7661         strtoul: remove dependency on strtol
7662         This is so that 'configure' need not check for strtol merely because
7663         the application needs strtoul.
7664         * modules/strtoul (Files): Add lib/strtol.c.
7665         (Depends-on): Remove strtol.
7666
7667         strtoull: remove dependency on strtoul
7668         This is like the strtoll change.
7669         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
7670         (Depends-on): Remove strtoul.
7671
7672         strtoll: remove dependency on strtol
7673         This is so that 'configure' need not check for strtol merely because
7674         the application needs strtoll.
7675         * modules/strtoll (Files): Add lib/strtol.c.
7676         (Depends-on): Remove strtol.
7677
7678 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7679
7680         inttypes: Move some configure check to module 'imaxdiv'.
7681         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
7682         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
7683         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
7684
7685 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7686
7687         inttypes: Move some configure check to module 'imaxabs'.
7688         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
7689         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
7690         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
7691
7692 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7693
7694         inttypes: Remove configure tests that are not needed since 2009-12-31.
7695         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
7696         gl_cv_header_working_inttypes_h.
7697
7698 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7699
7700         * modules/strnlen (Depends-on): Remove memchr.
7701         The strnlen implementation doesn't need the memchr module's fixes; see
7702         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
7703
7704         strtol: remove dependency on wchar
7705         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
7706         * modules/strtol (Depends-on): Remove wchar.
7707
7708 2011-04-21  Eric Blake  <eblake@redhat.com>
7709
7710         passfd: fix test regression on Linux
7711         * modules/passfd-tests (configure.ac): Correct socketpair check.
7712
7713         passfd: speed up configure and drop unused code
7714         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
7715         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
7716         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
7717         Instead of probing at configure for unix_scm_rights_bsd44_way,
7718         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
7719         check to a struct member probe.
7720         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
7721         (sendfd, recvfd): Update preprocessor checks.
7722         * modules/passfd (Files): Reflect rename, and drop unused file.
7723         (Depends-on): Drop unused dependency.
7724
7725         passfd: allow compilation on mingw
7726         * modules/sys_socket (Depends-on): Add sys_uio.
7727         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
7728         iovec and a minimal struct msghdr.
7729         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
7730         * tests/test-sys_socket.c (main): Enhance test.
7731         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
7732         guaranteed to provide what we need.
7733         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
7734         * modules/passfd-tests (Depends-on): Add sys_wait.
7735         * tests/test-passfd.c (main): Skip test on mingw, for now.
7736         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
7737         partial 'struct msghdr' implementation.
7738
7739         sys_uio: new module
7740         * modules/sys_uio: New module.
7741         * modules/sys_uio-tests: Likewise.
7742         * lib/sys_uio.in.h: New file.
7743         * m4/sys_uio_h.m4: Likewise.
7744         * tests/test-sys_uio.c: Likewise.
7745         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
7746         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
7747
7748 2011-04-20  Jim Meyering  <meyering@redhat.com>
7749
7750         useless-if-before-free: avoid false-positive
7751         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
7752         disjunct so that it too requires a terminating ";".  Without that,
7753         this script would identify as useless one statement from gcc that
7754         was not:
7755           if (aligned_ptr)
7756             free (((void **) aligned_ptr) [-1]);
7757
7758 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
7759
7760         doc: update users.txt.
7761         * users.txt: Add barcode.
7762
7763 2011-04-19  Bruno Haible  <bruno@clisp.org>
7764
7765         ioctl: Remove link dependency on native Windows.
7766         * lib/fd-hook.h: Renamed from lib/close-hook.h.
7767         (gl_close_fn, gl_ioctl_fn): New types.
7768         (struct fd_hook): Renamed from struct close_hook. Change type of
7769         private_close_fn field. Add private_ioctl_fn field.
7770         (close_hook_fn): Add parameter for primary close method.
7771         (execute_close_hooks, execute_all_close_hooks): Likewise.
7772         (ioctl_hook_fn): New type.
7773         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
7774         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
7775         argument.
7776         (unregister_fd_hook): Renamed from unregister_close_hook.
7777         * lib/fd-hook.c: Renamed from lib/close-hook.c.
7778         Don't include <unistd.h>.
7779         (close): Remove undef.
7780         (anchor): Update.
7781         (execute_close_hooks): Add argument for primary close method.
7782         (execute_all_close_hooks): Likewise.
7783         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
7784         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
7785         argument. Allow each argument to be NULL.
7786         (unregister_fd_hook): Renamed from unregister_close_hook.
7787         * lib/close.c (rpl_close): Pass 'close' function pointer to
7788         execute_all_close_hooks.
7789         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
7790         (primary_ioctl): New function.
7791         (ioctl): Don't call ioctlsocket here. Instead, call
7792         execute_all_ioctl_hooks.
7793         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
7794         close method.
7795         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
7796         (fd_sockets_hook): Renamed from close_sockets_hook.
7797         (gl_sockets_startup, gl_sockets_cleanup): Update.
7798         * modules/fd-hook: Renamed from modules/close-hook. Update.
7799         * modules/close (Depends-on): Add fd-hook, remove close-hook.
7800         * modules/sockets (Depends-on): Likewise.
7801         * modules/ioctl (Depends-on): Add fd-hook.
7802         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
7803         GNULIB_SOCKET.
7804
7805 2011-04-19  Bruno Haible  <bruno@clisp.org>
7806
7807         Move the support of O_NONBLOCK in open() to the 'open' module.
7808         * modules/nonblocking (Depends-on): Remove 'open'.
7809         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
7810         gl_cv_have_open_O_NONBLOCK.
7811         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
7812         O_NONBLOCK support.
7813         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
7814
7815 2011-04-17  Bruno Haible  <bruno@clisp.org>
7816
7817         pipe2: Simplify code.
7818         * lib/pipe2.c (pipe2): Reduce code duplication.
7819
7820 2011-04-17  Bruno Haible  <bruno@clisp.org>
7821
7822         nonblocking: Add comment.
7823         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
7824
7825 2011-04-17  Bruno Haible  <bruno@clisp.org>
7826
7827         nonblocking: Add tests for sockets.
7828         * tests/test-nonblocking-socket.sh: New file.
7829         * tests/test-nonblocking-socket-main.c: New file.
7830         * tests/test-nonblocking-socket-child.c: New file.
7831         * tests/test-nonblocking-socket.h: New file.
7832         * tests/socket-server.h: New file.
7833         * tests/socket-client.h: New file.
7834         * modules/nonblocking-socket-tests: New file.
7835         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
7836
7837 2011-04-17  Bruno Haible  <bruno@clisp.org>
7838
7839         nonblocking: Add tests for pipes.
7840         * tests/test-nonblocking-pipe.sh: New file.
7841         * tests/test-nonblocking-pipe-main.c: New file.
7842         * tests/test-nonblocking-pipe-child.c: New file.
7843         * tests/test-nonblocking-pipe.h: New file.
7844         * tests/test-nonblocking-writer.h: New file.
7845         * tests/test-nonblocking-reader.h: New file.
7846         * tests/test-nonblocking-misc.h: New file.
7847         * modules/nonblocking-pipe-tests: New file.
7848         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
7849
7850 2011-04-16  Bruno Haible  <bruno@clisp.org>
7851
7852         gettext: Clarify the needed programmer actions.
7853         * modules/gettext (Notice): New field.
7854         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7855
7856 2011-04-16  Bruno Haible  <bruno@clisp.org>
7857
7858         strchrnul: Tweak last commit.
7859         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
7860         bug.
7861         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
7862         as in _GL_FUNCDECL_SYS.
7863         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
7864         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
7865
7866 2011-04-15  Eric Blake  <eblake@redhat.com>
7867
7868         strchrnul: work around cygwin bug
7869         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
7870         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
7871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
7872         * modules/string (Makefile.am): Substitute it.
7873         * lib/string.in.h (strchrnul): Use it.
7874
7875 2011-04-15  Bruno Haible  <bruno@clisp.org>
7876
7877         Don't require lib/stdio-write.c when only module 'stdio' is used.
7878         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
7879         invocation.
7880         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
7881
7882 2011-04-14  Bruno Haible  <bruno@clisp.org>
7883
7884         Support non-blocking pipe I/O in read() on native Windows.
7885         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
7886         (read): New declaration.
7887         * lib/read.c: New file.
7888         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
7889         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
7890         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
7891         vscanf): New declarations.
7892         * lib/stdio-read.c: New file.
7893         * m4/read.m4: New file.
7894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
7895         REPLACE_READ.
7896         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
7897         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7898         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
7899         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
7900         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
7901         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7902         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7903         * modules/read: New file.
7904         * modules/nonblocking (Files): Add lib/stdio-read.c.
7905         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
7906         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
7907         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7908         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7909         * modules/pread (Depends-on): Add read.
7910         * modules/safe-read (Depends-on): Likewise.
7911         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
7912         gets, scanf, vfscanf, vscanf): Verify signatures.
7913         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
7914         problem with non-blocking pipes.
7915         * doc/posix-functions/fgetc.texi: Likewise.
7916         * doc/posix-functions/fgets.texi: Likewise.
7917         * doc/posix-functions/fread.texi: Likewise.
7918         * doc/posix-functions/fscanf.texi: Likewise.
7919         * doc/posix-functions/getc.texi: Likewise.
7920         * doc/posix-functions/getchar.texi: Likewise.
7921         * doc/posix-functions/gets.texi: Likewise.
7922         * doc/posix-functions/scanf.texi: Likewise.
7923         * doc/posix-functions/vfscanf.texi: Likewise.
7924         * doc/posix-functions/vscanf.texi: Likewise.
7925
7926 2011-04-14  Bruno Haible  <bruno@clisp.org>
7927
7928         Support non-blocking pipe I/O in write() on native Windows.
7929         * lib/write.c (rpl_write): Split a write request that failed merely
7930         because the byte count was larger than the pipe buffer's size.
7931         * doc/posix-functions/write.texi: Mention the problem with large byte
7932         counts.
7933
7934 2011-04-14  Bruno Haible  <bruno@clisp.org>
7935
7936         wchar: Ensure that wchar_t gets defined on uClibc.
7937         * lib/wchar.in.h: On uClibc, include <stddef.h>.
7938         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
7939
7940 2011-04-13  Bruno Haible  <bruno@clisp.org>
7941
7942         safe-write, full-read: Avoid unnecessary compilation units.
7943         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
7944         (Depends-on): Remove safe-read. Add ssize_t.
7945         * modules/full-read (Files): Add lib/full-write.c.
7946         (Depends-on): Add full-write.
7947
7948 2011-04-13  Bruno Haible  <bruno@clisp.org>
7949
7950         Support non-blocking pipe I/O and SIGPIPE in pwrite().
7951         * modules/pwrite (Depends-on): Add 'write'.
7952
7953 2011-04-13  Bruno Haible  <bruno@clisp.org>
7954
7955         Support non-blocking pipe I/O in write() on native Windows.
7956         * lib/unistd.in.h (write): Enable replacement also if
7957         GNULIB_UNISTD_H_NONBLOCKING is 1.
7958         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
7959         (rpl_write): When failing to write on a non-blocking pipe, change
7960         errno from ENOSPC to EAGAIN.
7961         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
7962         putchar, puts, vfprintf, vprintf): Enable replacement also if
7963         GNULIB_STDIO_H_NONBLOCKING is 1.
7964         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
7965         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
7966         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
7967         CALL_WITH_SIGPIPE_EMULATION.
7968         (CALL_WITH_SIGPIPE_EMULATION): Use them.
7969         * m4/nonblocking.m4: New file.
7970         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
7971         for non-blocking I/O support.
7972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7973         GNULIB_UNISTD_H_NONBLOCKING.
7974         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
7975         required for non-blocking I/O support.
7976         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
7977         * modules/nonblocking (Files): Add m4/nonblocking.m4,
7978         lib/stdio-write.c, m4/asm-underscore.m4.
7979         (Depends-on): Add stdio, unistd.
7980         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
7981         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
7982         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
7983         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
7984         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
7985         problem with non-blocking pipes.
7986         * doc/posix-functions/fputc.texi: Likewise.
7987         * doc/posix-functions/fputs.texi: Likewise.
7988         * doc/posix-functions/fwrite.texi: Likewise.
7989         * doc/posix-functions/printf.texi: Likewise.
7990         * doc/posix-functions/putc.texi: Likewise.
7991         * doc/posix-functions/putchar.texi: Likewise.
7992         * doc/posix-functions/puts.texi: Likewise.
7993         * doc/posix-functions/vfprintf.texi: Likewise.
7994         * doc/posix-functions/vprintf.texi: Likewise.
7995         * doc/posix-functions/write.texi: Likewise.
7996
7997 2011-04-10  Jim Meyering  <meyering@redhat.com>
7998
7999         maint.mk: prohibit doubled words
8000         Detect them also when they're separated by a newline.
8001         There are 3 ways to customize it:
8002           - disable the test on a per file basis, as usual with rules using
8003             $(VC_LIST_EXCEPT)
8004           - replace the default doubled-word-selecting regexp (affects all files)
8005           - ignore a particular file-vs-doubled-word match
8006         I nearly used that last one to ignore the "is is" match in
8007         coreutils' NEWS file, since the text was "ls -is is ..."
8008         To do that, I would have added this line to cfg.mk:
8009           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8010         but it would have ignored any "is is" match in NEWS.
8011         Low probability, but still...
8012         Instead, I changed the text, slightly:
8013           -  ls -is is now consistent with ls -lis in ignoring values returned
8014           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8015         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8016         (prohibit_doubled_word_): Define.
8017         (sc_prohibit_doubled_word): New rule.
8018         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8019
8020 2011-04-10  Jim Meyering  <meyering@redhat.com>
8021
8022         maint: fix doubled-word typo in comment
8023         * m4/gethostname.m4: s/is is/it is/
8024         * m4/getdomainname.m4: Likewise.
8025
8026 2011-04-10  Jim Meyering  <meyering@redhat.com>
8027
8028         maint: remove doubled word: s/it it/it/
8029         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8030
8031 2011-04-10  Jim Meyering  <meyering@redhat.com>
8032
8033         maint.mk: remove useless semicolon and backslash
8034         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8035         semicolon and backslash.
8036
8037 2011-04-10  Bruno Haible  <bruno@clisp.org>
8038
8039         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8040         * modules/stdint-tests (Depends-on): Add wchar.
8041
8042 2011-04-10  Jim Meyering  <meyering@redhat.com>
8043
8044         maint: remove doubled words in comments, e.g., s/a a/a/
8045         * lib/strptime.c (day_of_the_week): s/the the/the/
8046         * tests/test-chown.h (test_chown): s/a a/a/
8047
8048         test-chown.h: correct a cast
8049         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8050         when the destination is a stat.st_gid.
8051
8052 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8053
8054         getaddrinfo: Fix test for sa_len member.
8055         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8056         include <sys/types.h> before <sys/socket.h>.
8057
8058 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8059
8060         maint: change "can not" to "cannot"
8061         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8062         boundaries.
8063
8064 2011-04-09  Jim Meyering  <meyering@redhat.com>
8065
8066         maint: change "a a" to "a"
8067         * tests/test-lchown.h (test_lchown): s/a a/a/
8068
8069         maint.mk: prohibit \<the the\>
8070         * top/maint.mk (sc_prohibit_the_the): New rule.
8071
8072         maint: fix "the the" in comment
8073         * lib/count-one-bits.h: s/the the/the/
8074
8075         maint: change "can not" to "cannot"
8076         But do not change the occurrences in maintain.texi or in
8077         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8078         * doc/gnulib-tool.texi: s/can not/cannot/
8079         * doc/posix-functions/accept.texi (accept): Likewise.
8080         * doc/posix-functions/socket.texi (socket): Likewise.
8081         * lib/mbrtowc.c: Likewise.
8082
8083         maint.mk: prohibit use of "can not"
8084         * top/maint.mk (sc_prohibit_can_not): New rule.
8085         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8086
8087 2011-04-09  Bruno Haible  <bruno@clisp.org>
8088
8089         careadlinkat: Guard against misuse of careadlinkatcwd.
8090         * lib/careadlinkat.c: Include <stdlib.h>.
8091         (careadlinkatcwd): Check that the fd argument is as expected.
8092
8093 2011-04-09  Bruno Haible  <bruno@clisp.org>
8094
8095         careadlinkat: Use common coding style.
8096         * lib/careadlinkat.c: Move gnulib includes after system includes.
8097
8098 2011-04-09  Bruno Haible  <bruno@clisp.org>
8099
8100         careadlinkat: Clarify specification.
8101         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8102         (careadlinkatcwd): Add comment.
8103         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8104
8105 2011-04-09  Bruno Haible  <bruno@clisp.org>
8106
8107         areadlinkat: Avoid link error on many platforms.
8108         * modules/areadlinkat (Depends-on): Add areadlink.
8109
8110 2011-04-09  Bruno Haible  <bruno@clisp.org>
8111
8112         allocator, careadlinkat: Fix double-inclusion guard.
8113         * lib/allocator.h: Fix double-inclusion guard.
8114         * lib/careadlinkat.h: Likewise.
8115
8116 2011-04-09  Bruno Haible  <bruno@clisp.org>
8117
8118         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8119         * lib/relocwrapper.c: Update dependencies hierarchy.
8120         * build-aux/install-reloc: Update list of files to be compiled.
8121         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8122         lib/allocator.[hc].
8123
8124 2011-04-08  Eric Blake  <eblake@redhat.com>
8125
8126         strftime: silence gnulib-tool warning
8127         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8128
8129 2011-04-08  Bruno Haible  <bruno@clisp.org>
8130
8131         verify: Fix syntax error with GCC 4.6 in C++ mode.
8132         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8133         (HAVE_STATIC_ASSERT): New macro.
8134         (verify_true, verify): Use 'static_assert' if it is supported and
8135         '_Static_assert' is not supported.
8136
8137 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8138
8139         allocator: New module.
8140         * modules/allocator, lib/allocator.c: New files.
8141         * lib/allocator.h (stdlib_allocator): New decl.
8142         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8143         Remove.  Do not include <stdlib.h>.
8144         (careadlinkat): Use stdlib_allocator instead of rolling our own.
8145         * modules/careadlinkat (Files): Remove lib/allocator.h.
8146         (Depends-on): Add allocator.
8147
8148         stdlib: let modules use system malloc, realloc
8149         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
8150         if !_GL_USE_STDLIB_ALLOC.
8151         (malloc, realloc): Limit this change to a smaller scope.
8152
8153         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
8154         (malloc, realloc): Don't #undef; no longer needed.
8155         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8156         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8157         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8158         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8159         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8160         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8161         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8162         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8163
8164         careadlinkat: rename members to avoid problem
8165         * lib/allocator.h (struct allocator): Rename members from
8166         malloc/realloc to allocate/reallocate, to avoid problems if malloc
8167         and realloc are #define'd.  Reported by Eric Blake in
8168         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
8169         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
8170
8171 2011-04-08  Eric Blake  <eblake@redhat.com>
8172
8173         nonblocking: reduce dependency
8174         * tests/test-nonblocking.c: Only test sockets when in use.
8175         * modules/nonblocking-tests (Depends-on): Drop socket.
8176         (Makefile.am): Link even if sockets are not present.
8177         * modules/pipe2-tests (Makefile.am): Likewise.
8178         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
8179
8180         pipe2: fix O_NONBLOCK support on mingw
8181         * modules/pipe2 (Depends-on): Add nonblocking.
8182         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
8183         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
8184         * tests/test-nonblocking.c (main): Likewise.
8185         * modules/pipe2-tests (Makefile.am): Avoid link failure.
8186
8187         fcntl-h: fix O_ACCMODE on cygwin
8188         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
8189         * lib/fcntl.in.h (O_ACCMODE): Fix it.
8190
8191         pipe-filter: drop O_NONBLOCK workarounds
8192         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
8193         * modules/pipe-filter-ii (Depends-on): Likewise.
8194         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
8195
8196         nonblocking: provide O_NONBLOCK for mingw
8197         * modules/nonblocking (Depends-on): Add open.
8198         (configure.ac): Set new witness macro.
8199         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
8200         * modules/fcntl-h (Makefile.am): Substitute it.
8201         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
8202         nonblocking module is in use.
8203         * lib/nonblocking.c: Adjust portability test.
8204         * lib/open.c (open): Don't let native open see gnulib flag.
8205         * tests/test-fcntl-h.c (main): Enhance test.
8206         * tests/test-open.h (test_open): Likewise.
8207         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
8208
8209         careadlinkat: fix compilation error on mingw
8210         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
8211         within struct allocator.
8212
8213 2011-04-06  Eric Blake  <eblake@redhat.com>
8214
8215         binary-io: relicense under LGPLv2+
8216         * modules/binary-io (License): Relax to LGPLv2+.
8217         Requested for libvirt, and required by pipe2.
8218
8219 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8220
8221         verify: use _Static_assert if available
8222         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
8223         (verify_true, verify): Use it if available.  This generates better
8224         diagnostics with GCC 4.6.0 and later.
8225
8226 2011-04-05  Bruno Haible  <bruno@clisp.org>
8227
8228         Remove leftover generated .h files after config.status changed.
8229
8230         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
8231         GL_GENERATE_ALLOCA_H.
8232         * modules/alloca-opt (Makefile.am): Remove alloca.h if
8233         GL_GENERATE_ALLOCA_H evaluates to false.
8234
8235         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
8236         GL_GENERATE_ARGZ_H.
8237         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
8238         evaluates to false.
8239
8240         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
8241         GL_GENERATE_BYTESWAP_H.
8242         * modules/byteswap (Makefile.am): Remove byteswap.h if
8243         GL_GENERATE_BYTESWAP_H evaluates to false.
8244
8245         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
8246         GL_GENERATE_ERRNO_H.
8247         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
8248         evaluates to false.
8249
8250         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
8251         GL_GENERATE_FLOAT_H.
8252         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
8253         evaluates to false.
8254
8255         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
8256         GL_GENERATE_FNMATCH_H.
8257         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
8258         GL_GENERATE_FNMATCH_H evaluates to false.
8259
8260         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
8261         GL_GENERATE_GLOB_H.
8262         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
8263         evaluates to false.
8264
8265         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
8266         automake conditional GL_GENERATE_ICONV_H.
8267         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
8268         evaluates to false.
8269
8270         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
8271         GL_GENERATE_NETINET_IN_H.
8272         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
8273         GL_GENERATE_NETINET_IN_H evaluates to false.
8274
8275         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8276         conditional GL_GENERATE_PTHREAD_H.
8277         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8278         * modules/pthread (Makefile.am): Remove pthread.h if
8279         GL_GENERATE_PTHREAD_H evaluates to false.
8280
8281         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8282         GL_GENERATE_SCHED_H.
8283         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8284         evaluates to false.
8285
8286         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8287         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8288         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8289         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8290
8291         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8292         GL_GENERATE_STDARG_H.
8293         * modules/stdarg (Makefile.am): Remove stdarg.h if
8294         GL_GENERATE_STDARG_H evaluates to false.
8295
8296         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8297         GL_GENERATE_STDBOOL_H.
8298         * modules/stdbool (Makefile.am): Remove stdbool.h if
8299         GL_GENERATE_STDBOOL_H evaluates to false.
8300
8301         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8302         conditional GL_GENERATE_STDDEF_H.
8303         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8304         * modules/stddef (Makefile.am): Remove stddef.h if
8305         GL_GENERATE_STDDEF_H evaluates to false.
8306
8307         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8308         GL_GENERATE_STDINT_H.
8309         * modules/stdint (Makefile.am): Remove stdint.h if
8310         GL_GENERATE_STDINT_H evaluates to false.
8311
8312         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
8313         GL_GENERATE_SYSEXITS_H.
8314         * modules/sysexits (Makefile.am): Remove sysexits.h if
8315         GL_GENERATE_SYSEXITS_H evaluates to false.
8316
8317         Reported by Karl Berry and Ralf Wildenhues.
8318
8319 2011-04-05  Bruno Haible  <bruno@clisp.org>
8320
8321         Ensure to rebuild generated .h files when config.status has changed.
8322         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
8323         config.status.
8324         * modules/ctype (Makefile.am): Likewise.
8325         * modules/dirent (Makefile.am): Likewise.
8326         * modules/errno (Makefile.am): Likewise.
8327         * modules/fcntl-h (Makefile.am): Likewise.
8328         * modules/float (Makefile.am): Likewise.
8329         * modules/getopt-posix (Makefile.am): Likewise.
8330         * modules/glob (Makefile.am): Likewise.
8331         * modules/iconv-h (Makefile.am): Likewise.
8332         * modules/inttypes (Makefile.am): Likewise.
8333         * modules/langinfo (Makefile.am): Likewise.
8334         * modules/locale (Makefile.am): Likewise.
8335         * modules/math (Makefile.am): Likewise.
8336         * modules/netdb (Makefile.am): Likewise.
8337         * modules/netinet_in (Makefile.am): Likewise.
8338         * modules/poll-h (Makefile.am): Likewise.
8339         * modules/pthread (Makefile.am): Likewise.
8340         * modules/pty (Makefile.am): Likewise.
8341         * modules/sched (Makefile.am): Likewise.
8342         * modules/search (Makefile.am): Likewise.
8343         * modules/selinux-h (Makefile.am): Likewise.
8344         * modules/signal (Makefile.am): Likewise.
8345         * modules/spawn (Makefile.am): Likewise.
8346         * modules/stdarg (Makefile.am): Likewise.
8347         * modules/stdbool (Makefile.am): Likewise.
8348         * modules/stddef (Makefile.am): Likewise.
8349         * modules/stdint (Makefile.am): Likewise.
8350         * modules/stdio (Makefile.am): Likewise.
8351         * modules/stdlib (Makefile.am): Likewise.
8352         * modules/string (Makefile.am): Likewise.
8353         * modules/strings (Makefile.am): Likewise.
8354         * modules/sys_file (Makefile.am): Likewise.
8355         * modules/sys_ioctl (Makefile.am): Likewise.
8356         * modules/sys_select (Makefile.am): Likewise.
8357         * modules/sys_socket (Makefile.am): Likewise.
8358         * modules/sys_stat (Makefile.am): Likewise.
8359         * modules/sys_time (Makefile.am): Likewise.
8360         * modules/sys_times (Makefile.am): Likewise.
8361         * modules/sys_utsname (Makefile.am): Likewise.
8362         * modules/sys_wait (Makefile.am): Likewise.
8363         * modules/sysexits (Makefile.am): Likewise.
8364         * modules/termios (Makefile.am): Likewise.
8365         * modules/time (Makefile.am): Likewise.
8366         * modules/unistd (Makefile.am): Likewise.
8367         * modules/wchar (Makefile.am): Likewise.
8368         * modules/wctype-h (Makefile.am): Likewise.
8369         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
8370
8371 2011-04-05  Bruno Haible  <bruno@clisp.org>
8372
8373         pipe2: Relicense under LGPLv2+.
8374         * modules/pipe2 (License): Change to LGPLv2+.
8375         Requested by Eric Blake, for libvirt.
8376
8377 2011-04-05  Bruce Korb  <bkorb@gnu.org>
8378
8379         bootstrap: compute gnulib_extra_files after updating build_aux
8380         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
8381         change build_aux or also supply gnulib_extra_files.  Handle correctly.
8382
8383 2011-04-05  Eric Blake  <eblake@redhat.com>
8384
8385         bootstrap: preserve git whitelist item sorting
8386         * build-aux/bootstrap (sort_patterns): New function.
8387         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
8388
8389 2011-04-05  Simon Josefsson  <simon@josefsson.org>
8390
8391         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
8392         sc_space_tab check.
8393
8394 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8395
8396         areadlink, areadlinkat: rewrite in terms of careadlinkat
8397         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
8398         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
8399         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
8400         (malloc, realloc): Remove #undefs.
8401         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
8402         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
8403         readlink, ssize_t, stdint, unistd.
8404         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
8405         areadlink, stdint.
8406
8407         careadlinkat: new module
8408         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
8409         * modules/careadlinkat: New files, written by me with
8410         a review and feedback from Ben Pfaff in
8411         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
8412
8413 2011-04-01  Bruno Haible  <bruno@clisp.org>
8414
8415         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
8416         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
8417         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
8418         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
8419         Reported by Bruce Korb <bruce.korb@gmail.com>.
8420
8421 2011-04-01  Bruno Haible  <bruno@clisp.org>
8422
8423         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
8424         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
8425         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
8426         * modules/wcpcpy (Depends-on): Add extensions.
8427         * modules/wcpncpy (Depends-on): Likewise.
8428         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
8429         systems.
8430         * doc/posix-functions/wcpncpy.texi: Likewise.
8431         * doc/posix-functions/wcwidth.texi: Likewise.
8432
8433 2011-03-31  Eric Blake  <eblake@redhat.com>
8434
8435         nonblocking: fix mingw test failures
8436         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
8437         non-blocking flag on regular file.
8438         (get_nonblocking_flag): Set errno on invalid fd.
8439         * tests/test-nonblocking.c (main): Avoid test failure on
8440         directories if fchdir is not active.
8441         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
8442
8443 2011-03-31  Bruno Haible  <bruno@clisp.org>
8444
8445         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
8446         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
8447         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
8448         Reported by Simon Josefsson <simon@josefsson.org>.
8449
8450 2011-03-31  Bruno Haible  <bruno@clisp.org>
8451         and Eric Blake  <eblake@redhat.com>
8452
8453         nonblocking: new module
8454         * modules/nonblocking: New module.
8455         * modules/nonblocking-tests: Likewise.
8456         * lib/nonblocking.h: New file.
8457         * lib/nonblocking.c: Likewise.
8458         * tests/test-nonblocking.c: New test.
8459         * lib/ioctl.c (ioctl) [mingw]: Update comment.
8460
8461 2011-03-30  Bruno Haible  <bruno@clisp.org>
8462
8463         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
8464         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
8465         instead of 'printf' format for GCC >= 4.4.
8466         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
8467         (fprintf, printf, vfprintf, vprintf): Declare with
8468         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
8469         the system's vfprintf() function.
8470         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
8471
8472 2011-03-30  Eric Blake  <eblake@redhat.com>
8473
8474         passfd: fix scoping bug
8475         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
8476         before sendmsg/recvmsg.
8477
8478         passfd: standardize coding conventions
8479         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
8480         can be learned at compile time.
8481         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
8482         ifdefs.
8483         (sendfd, recvfd): Follow gnulib code conventions.
8484
8485         passfd: fix incorrect sendmsg arguments
8486         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
8487         incorrect msg_controllen value.
8488         * modules/passfd-tests (Depends-on): Check for alarm.
8489         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
8490         Reported by Bastien ROUCARIES.
8491
8492 2011-03-30  Bruno Haible  <bruno@clisp.org>
8493
8494         c-strcasestr: Relicense under LGPLv2+.
8495         * modules/c-strcasestr (License): Change to LGPLv2+.
8496         Requested by Eric Blake, for libvirt.
8497
8498 2011-03-30  Simon Josefsson  <simon@josefsson.org>
8499
8500         * users.txt: Add libidn2.  Fix libtasn1 link.
8501
8502 2011-03-30  Jim Meyering  <meyering@redhat.com>
8503
8504         tests: readlink* ("",... fails with EINVAL on newer kernels
8505         readlink and readlinkat have typically failed with ENOENT for
8506         the invalid, empty file name,  "".  However, with the advent
8507         of linux-2.6.39, they fail with EINVAL.
8508         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
8509         when operating on the empty file name.
8510         * tests/test-readlink.h (test_readlink): Likewise.
8511
8512 2011-03-29  Bruno Haible  <bruno@clisp.org>
8513
8514         Relicense some modules under LGPLv2+, for libidn2.
8515         * modules/array-mergesort (License): Change to LGPLv2+.
8516         * modules/c-strcaseeq (License): Likewise.
8517         * modules/striconveh (License): Likewise.
8518         * modules/striconveha (License): Likewise.
8519         * modules/uniconv/base (License): Likewise.
8520         * modules/uniconv/u8-conv-from-enc (License): Likewise.
8521         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
8522         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
8523         * modules/unictype/base (License): Likewise.
8524         * modules/unictype/bidiclass-of (License): Likewise.
8525         * modules/unictype/category-M (License): Likewise.
8526         * modules/unictype/category-none (License): Likewise.
8527         * modules/unictype/category-of (License): Likewise.
8528         * modules/unictype/category-test (License): Likewise.
8529         * modules/unictype/category-test-withtable (License): Likewise.
8530         * modules/unictype/combining-class (License): Likewise.
8531         * modules/unictype/joiningtype-of (License): Likewise.
8532         * modules/unictype/scripts (License): Likewise.
8533         * modules/uninorm/base (License): Likewise.
8534         * modules/uninorm/canonical-decomposition (License): Likewise.
8535         * modules/uninorm/composition (License): Likewise.
8536         * modules/uninorm/decompose-internal (License): Likewise.
8537         * modules/uninorm/decomposition-table (License): Likewise.
8538         * modules/uninorm/nfc (License): Likewise.
8539         * modules/uninorm/nfd (License): Likewise.
8540         * modules/uninorm/u32-normalize (License): Likewise.
8541         * modules/unistr/base (License): Likewise.
8542         * modules/unistr/u32-cpy (License): Likewise.
8543         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
8544         * modules/unistr/u32-to-u8 (License): Likewise.
8545         * modules/unistr/u32-uctomb (License): Likewise.
8546         * modules/unistr/u8-check (License): Likewise.
8547         * modules/unistr/u8-mblen (License): Likewise.
8548         * modules/unistr/u8-mbtouc (License): Likewise.
8549         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
8550         * modules/unistr/u8-mbtoucr (License): Likewise.
8551         * modules/unistr/u8-prev (License): Likewise.
8552         * modules/unistr/u8-strlen (License): Likewise.
8553         * modules/unistr/u8-to-u32 (License): Likewise.
8554         * modules/unistr/u8-uctomb (License): Likewise.
8555         * modules/unitypes (License): Likewise.
8556         Requested by Simon Josefsson.
8557
8558 2011-03-29  Simon Josefsson  <simon@josefsson.org>
8559
8560         lib-symbol-visibility: Add a notice.
8561         * modules/lib-symbol-visibility (Notice): New field.
8562
8563 2011-03-29  Bruno Haible  <bruno@clisp.org>
8564
8565         getaddrinfo: Doc fix.
8566         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
8567         section "fixed in Gnulib".
8568
8569 2011-03-28  Simon Josefsson  <simon@josefsson.org>
8570
8571         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
8572         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
8573
8574 2011-03-26  Bruno Haible  <bruno@clisp.org>
8575
8576         unictype/property-byname: Reduce the number of load-time relocations.
8577         * lib/unictype/pr_byname.c: Include <stdlib.h>.
8578         (UC_PROPERTY_INDEX_*): New enumeration values.
8579         (uc_property_byname): Convert an index from the lookup table to an
8580         uc_property_t.
8581         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
8582         values.
8583
8584 2011-03-26  Bruno Haible  <bruno@clisp.org>
8585
8586         unictype/property-byname: Allow omitted word separators and aliases.
8587         * lib/unictype/pr_byname.gperf: Add property names without word
8588         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
8589         for 'space'.
8590
8591 2011-03-26  Bruno Haible  <bruno@clisp.org>
8592
8593         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
8594         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
8595         also hyphens to space.
8596         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
8597         without spaces.
8598         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
8599
8600 2011-03-26  Bruno Haible  <bruno@clisp.org>
8601
8602         unictype/joiningtype-byname: Recognize long names as well.
8603         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
8604         a long name.
8605         * lib/unictype/joiningtype_byname.c: Include <string.h>,
8606         unictype/joiningtype_byname.h.
8607         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
8608         * lib/unictype/joiningtype_byname.gperf: New file.
8609         * modules/unictype/joiningtype-byname (Files): Add
8610         lib/unictype/joiningtype_byname.gperf.
8611         (Depends-on): Add gperf.
8612         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
8613         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
8614         long names.
8615
8616         Tests for module 'unictype/joiningtype-longname'.
8617         * modules/unictype/joiningtype-longname-tests: New file.
8618         * tests/unictype/test-joiningtype_longname.c: New file.
8619
8620         New module 'unictype/joiningtype-longname'.
8621         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
8622         * lib/unictype/joiningtype_longname.c: New file.
8623         * modules/unictype/joiningtype-longname: New file.
8624         * modules/unictype/joiningtype-all (Depends-on): Add
8625         unictype/joiningtype-longname.
8626
8627 2011-03-26  Bruno Haible  <bruno@clisp.org>
8628
8629         unictype/bidiclass-byname: Recognize long names as well.
8630         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
8631         name.
8632         * lib/unictype/bidi_byname.c: Include <string.h>,
8633         unictype/bidi_byname.h.
8634         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
8635         * lib/unictype/bidi_byname.gperf: New file.
8636         * modules/unictype/bidiclass-byname (Files): Add
8637         lib/unictype/bidi_byname.gperf.
8638         (Depends-on): Add gperf.
8639         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
8640         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
8641         long names.
8642
8643         Tests for module 'unictype/bidiclass-longname'.
8644         * modules/unictype/bidiclass-longname-tests: New file.
8645         * tests/unictype/test-bidi_longname.c: New file.
8646
8647         New module 'unictype/bidiclass-longname'.
8648         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
8649         * lib/unictype/bidi_longname.c: New file.
8650         * modules/unictype/bidiclass-longname: New file.
8651         * modules/unictype/bidiclass-all (Depends-on): Add
8652         unictype/bidiclass-longname.
8653
8654 2011-03-26  Bruno Haible  <bruno@clisp.org>
8655
8656         unictype/bidi*: Rename modules.
8657         * modules/unictype/bidiclass-all: Renamed from
8658         modules/unictype/bidicategory-all.
8659         * modules/unictype/bidiclass-name: Renamed from
8660         modules/unictype/bidiclass-name.
8661         (Description): Update.
8662         * modules/unictype/bidiclass-name-tests: Renamed from
8663         modules/unictype/bidicategory-name-tests.
8664         * modules/unictype/bidiclass-byname: Renamed from
8665         modules/unictype/bidicategory-byname.
8666         (Description): Update.
8667         * modules/unictype/bidiclass-byname-tests: Renamed from
8668         modules/unictype/bidicategory-byname-tests.
8669         * modules/unictype/bidiclass-of: Renamed from
8670         modules/unictype/bidicategory-of.
8671         (Description): Update.
8672         * modules/unictype/bidiclass-of-tests: Renamed from
8673         modules/unictype/bidicategory-of-tests.
8674         * modules/unictype/bidiclass-test: Renamed from
8675         modules/unictype/bidicategory-test.
8676         (Description): Update.
8677         * modules/unictype/bidiclass-test-tests: Renamed from
8678         modules/unictype/bidicategory-test-tests.
8679         * modules/unictype/bidicategory-all: New file, a simple redirection.
8680         * modules/unictype/bidicategory-name: Likewise.
8681         * modules/unictype/bidicategory-byname: Likewise.
8682         * modules/unictype/bidicategory-of: Likewise.
8683         * modules/unictype/bidicategory-test: Likewise.
8684         * modules/unictype/property-bidi-* (Dependencies): Update.
8685         * lib/unictype/bidi_*.c: Update comment.
8686
8687 2011-03-26  Bruno Haible  <bruno@clisp.org>
8688
8689         unictype/bidi*: Rename functions, part 2.
8690         * modules/unictype/bidicategory-name (configure.ac): Update required
8691         libunistring version.
8692         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
8693
8694 2011-03-25  Bruno Haible  <bruno@clisp.org>
8695
8696         New module 'unictype/combining-class-all'.
8697         * modules/unictype/combining-class-all: New file.
8698
8699         Tests for module 'unictype/combining-class-byname'.
8700         * modules/unictype/combining-class-byname-tests: New file.
8701         * tests/unictype/test-combiningclass_byname.c: New file.
8702
8703         New module 'unictype/combining-class-byname'.
8704         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
8705         * lib/unictype/combiningclass_byname.c: New file.
8706         * lib/unictype/combiningclass_byname.gperf: New file.
8707         * modules/unictype/combining-class-byname: New file.
8708
8709         Tests for module 'unictype/combining-class-longname'.
8710         * modules/unictype/combining-class-longname-tests: New file.
8711         * tests/unictype/test-combiningclass_longname.c: New file.
8712
8713         New module 'unictype/combining-class-longname'.
8714         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
8715         * lib/unictype/combiningclass_longname.c: New file.
8716         * modules/unictype/combining-class-longname: New file.
8717
8718         Tests for module 'unictype/combining-class-name'.
8719         * modules/unictype/combining-class-name-tests: New file.
8720         * tests/unictype/test-combiningclass_name.c: New file.
8721
8722         New module 'unictype/combining-class-name'.
8723         * lib/unictype.in.h (uc_combining_class_name): New declaration.
8724         * lib/unictype/combiningclass_name.c: New file.
8725         * modules/unictype/combining-class-name: New file.
8726
8727 2011-03-25  Bruno Haible  <bruno@clisp.org>
8728
8729         unictype/combining-class: Rename source files.
8730         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
8731         of unictype/combining.h.
8732         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
8733         Update.
8734         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
8735         * modules/unictype/combining-class (Description): Fix.
8736         (Files, Makefile.am): Update.
8737         * tests/unictype/test-combiningclass.c: Renamed from
8738         tests/unictype/test-combining.c.
8739         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
8740
8741 2011-03-25  Bruno Haible  <bruno@clisp.org>
8742
8743         unictype: Update list of canonical combining classes.
8744         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
8745
8746 2011-03-25  Bruno Haible  <bruno@clisp.org>
8747
8748         unictype/category-byname: Recognize long names as well.
8749         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
8750         a long name.
8751         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
8752         unictype/categ_byname.h.
8753         (UC_CATEGORY_INDEX_*): New enumeration values.
8754         (uc_general_category_byname): Use uc_general_category_lookup and
8755         convert from index to value.
8756         * lib/unictype/categ_byname.gperf: New file.
8757         * modules/unictype/category-byname (Files): Add
8758         lib/unictype/categ_byname.gperf.
8759         (Depends-on): Add gperf.
8760         (Makefile.am): Add rule for generating unictype/categ_byname.h.
8761         * tests/unictype/test-categ_byname.c (main): Test the recognition of
8762         long names.
8763
8764         Tests for module 'unictype/category-longname'.
8765         * modules/unictype/category-longname-tests: New file.
8766         * tests/unictype/test-categ_longname.c: New file.
8767
8768         New module 'unictype/category-longname'.
8769         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
8770         * lib/unictype/categ_longname.c: New file.
8771         * modules/unictype/category-longname: New file.
8772         * modules/unictype/category-all (Depends-on): Add it.
8773
8774 2011-03-25  Bruno Haible  <bruno@clisp.org>
8775
8776         Tests for module 'unictype/category-LC'.
8777         * modules/unictype/category-LC-tests: New file.
8778         * tests/unictype/test-categ_LC.c: New file, automatically generated.
8779
8780         New module 'unictype/category-LC'.
8781         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
8782         (UC_CATEGORY_LC): New declaration.
8783         (UC_CASED_LETTER): New macro.
8784         * lib/gen-uni-tables.c (is_category_LC): New function.
8785         (output_categories): Also handle category LC.
8786         (UC_CATEGORY_MASK_LC): New enumeration value.
8787         (general_category_byname): Also handle category LC.
8788         * lib/unictype/categ_LC.c: New file.
8789         * lib/unictype/categ_LC.h: New file, automatically generated.
8790         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
8791         category LC.
8792         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
8793         * modules/unictype/category-LC: New file.
8794         * modules/unictype/category-byname (Depends-on): Add
8795         unictype/category-LC.
8796         * modules/unictype/category-all (Depends-on): Likewise.
8797
8798 2011-03-25  Eric Blake  <eblake@redhat.com>
8799
8800         xmalloc: revert yesterday's regression
8801         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
8802         realloc's underlying behavior (allowing allocation of zero-size
8803         objects, especially if malloc-gnu is also in use).
8804
8805 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
8806
8807         maint.mk: add missing version to VC-tag
8808         * top/maint.mk: git tag was missing actual tag name; add it.
8809
8810         valgrind: do leak checking, and exit with code 1 on error (not 0)
8811         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
8812         to VALGRIND.
8813
8814 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
8815
8816         posix-modules: say what it does.
8817         * posix-modules: Add a line to the --help output saying what it does.
8818
8819 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
8820
8821         xmalloc: Do not leak if underlying realloc is C99 compatible.
8822         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
8823         This avoids a leak on C99-based systems.  See
8824         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
8825
8826 2011-03-24  Eric Blake  <eblake@redhat.com>
8827
8828         realloc: document portability problem
8829         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
8830         passing 0 size to realloc.
8831
8832 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
8833
8834         doc: update users.txt
8835         * users.txt: Add cvsps, tmpwatch
8836
8837 2011-03-23  Matt Rice  <ratmice@gmail.com>
8838
8839         doc: update users.txt
8840         * users.txt: Add gdb.
8841
8842 2011-03-23  Jim Meyering  <meyering@redhat.com>
8843
8844         doc: update users.txt
8845         Looking through matches up to the following URL (there are still
8846         several more pages), I found several projects that use gnulib:
8847         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
8848         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
8849         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
8850
8851 2011-03-22  Bruno Haible  <bruno@clisp.org>
8852
8853         unictype/bidi*: Rename functions.
8854         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
8855         uc_bidi_class, uc_is_bidi_class): New declarations.
8856         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
8857         uc_bidi_category_byname.
8858         (uc_bidi_category_byname): New function.
8859         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
8860         u_bidi_category_name.
8861         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
8862         (uc_bidi_category_name): New function.
8863         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
8864         uc_bidi_category.
8865         (uc_bidi_category): New function.
8866         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
8867         uc_is_bidi_category. Invoke uc_bidi_class.
8868         (uc_is_bidi_category): New function.
8869         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
8870         instead of uc_bidi_category_byname.
8871         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
8872         instead of uc_bidi_category_name.
8873         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
8874         uc_bidi_category.
8875         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
8876         instead of uc_is_bidi_category.
8877
8878 2011-03-21  Bruno Haible  <bruno@clisp.org>
8879
8880         New module 'unictype/joininggroup-all'.
8881         * modules/unictype/joininggroup-all: New file.
8882
8883         Tests for module 'unictype/joininggroup-of'.
8884         * modules/unictype/joininggroup-of-tests: New file.
8885         * tests/unictype/test-joininggroup_of.c: New file.
8886         * tests/unictype/test-joininggroup_of.h: New file, automatically
8887         generated by gen-uni-tables.
8888
8889         New module 'unictype/joininggroup-of'.
8890         * modules/unictype/joininggroup-of: New file.
8891         * lib/unictype/joininggroup_of.c: New file.
8892         * lib/unictype/joininggroup_of.h: New file, automatically generated by
8893         gen-uni-tables.
8894
8895         Tests for module 'unictype/joininggroup-byname'.
8896         * modules/unictype/joininggroup-byname-tests: New file.
8897         * tests/unictype/test-joininggroup_byname.c: New file.
8898
8899         New module 'unictype/joininggroup-byname'.
8900         * modules/unictype/joininggroup-byname: New file.
8901         * lib/unictype/joininggroup_byname.c: New file.
8902         * lib/unictype/joininggroup_byname.gperf: New file.
8903
8904         Tests for module 'unictype/joininggroup-name'.
8905         * modules/unictype/joininggroup-name-tests: New file.
8906         * tests/unictype/test-joininggroup_name.c: New file.
8907
8908         New module 'unictype/joininggroup-name'.
8909         * modules/unictype/joininggroup-name: New file.
8910         * lib/unictype/joininggroup_name.c: New file.
8911         * lib/unictype/joininggroup_name.h: New file.
8912
8913         New module 'unictype/joiningtype-all'.
8914         * modules/unictype/joiningtype-all: New file.
8915
8916         Tests for module 'unictype/joiningtype-of'.
8917         * modules/unictype/joiningtype-of-tests: New file.
8918         * tests/unictype/test-joiningtype_of.c: New file.
8919         * tests/unictype/test-joiningtype_of.h: New file, automatically
8920         generated by gen-uni-tables.
8921
8922         New module 'unictype/joiningtype-of'.
8923         * modules/unictype/joiningtype-of: New file.
8924         * lib/unictype/joiningtype_of.c: New file.
8925         * lib/unictype/joiningtype_of.h: New file, automatically generated by
8926         gen-uni-tables.
8927
8928         Tests for module 'unictype/joiningtype-byname'.
8929         * modules/unictype/joiningtype-byname-tests: New file.
8930         * tests/unictype/test-joiningtype_byname.c: New file.
8931
8932         New module 'unictype/joiningtype-byname'.
8933         * modules/unictype/joiningtype-byname: New file.
8934         * lib/unictype/joiningtype_byname.c: New file.
8935
8936         Tests for module 'unictype/joiningtype-name'.
8937         * modules/unictype/joiningtype-name-tests: New file.
8938         * tests/unictype/test-joiningtype_name.c: New file.
8939
8940         New module 'unictype/joiningtype-name'.
8941         * modules/unictype/joiningtype-name: New file.
8942         * lib/unictype/joiningtype_name.c: New file.
8943
8944         unictype: Add support for Arabic shaping properties.
8945         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
8946         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
8947         declarations.
8948         (UC_JOINING_GROUP_*): New enumeration values.
8949         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
8950         declarations.
8951         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
8952         (unicode_joining_type): New variable.
8953         (UC_JOINING_GROUP_*): New enumeration values.
8954         (unicode_joining_group): New variable.
8955         (fill_arabicshaping, joining_type_as_c_identifier,
8956         output_joining_type_test, output_joining_type,
8957         joining_group_as_c_identifier, output_joining_group_test,
8958         output_joining_group): New functions.
8959         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
8960         fill_arabicshaping and output_joining_type_test, output_joining_type,
8961         output_joining_group_test, output_joining_group.
8962         Reported by Simon Josefsson.
8963
8964 2011-03-21  Jim Meyering  <meyering@redhat.com>
8965
8966         strftime: fix a bug in yesterday's change
8967         * lib/strftime.c (add): Accommodate width's initial value of -1.
8968         Otherwise, nstrftime would copy uninitialized data into
8969         the result buffer.
8970
8971 2011-03-21  Jim Meyering  <meyering@redhat.com>
8972
8973         tests: add strftime-tests module
8974         * tests/test-strftime.c: New file.
8975         * modules/strftime-tests: New module.
8976
8977 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8978
8979         strftime: don't assume a byte count fits in 'int'
8980         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
8981         found this problem by static analysis, using gcc -Wstrict-overflow
8982         (GCC 4.5.2, x86-64).  This reported an optimization that depended
8983         on an integer overflow having undefined behavior, but it turns out
8984         that the argument is a size, which might not fit in 'int' anyway,
8985
8986 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8987
8988         stdio: don't require ignore_value around fwrite
8989
8990         This patch works around libc bug 11959
8991         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
8992         Without this patch, applications must often write
8993         ignore_value (fwrite (...)) even though the ignore_value is
8994         not helpful here.  It's common to write many objects, using
8995         fwrite/printf/etc., and then use ferror to detect output error.
8996
8997         I considered making this patch optional, but decided against it,
8998         because libc is obviously being inconsistent here: there is no
8999         reason libc should insist that user code must inspect fwrite
9000         return's value without also insisting that it inspect printf's,
9001         putchar's, etc.  If user code wants to have a strict style where
9002         all these functions' values are checked (so that ferror need not
9003         be checked), we could add support for that style in a new gnulib
9004         module, but in the meantime it's better to be consistent and to
9005         support common usage.
9006
9007         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9008         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9009         that we are compiling in checking mode, and if not C++, and
9010         if not already wrapping fwrite for some other reason.
9011         (fwrite): #define to rpl_fwrite if the latter is defined.
9012
9013 2011-03-20  Bruno Haible  <bruno@clisp.org>
9014
9015         verror: Fix compilation error introduced on 2011-02-13.
9016         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9017         instead of __attribute__.
9018         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9019
9020 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9021             Bruno Haible  <bruno@clisp.org>
9022
9023         socklen: do not depend on sys_socket
9024         While trying to modify Emacs to use gnulib's socklen module,
9025         I discovered a circular dependency: socklen depends on sys_socket
9026         and vice versa.  Emacs can use socklen, but it does not need
9027         sys_socket because it has its own substitute for sys/socket.h.
9028         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9029         gl_TYPE_SOCKLEN_T.
9030         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9031         gl_PREREQ_SYS_H_SOCKET.
9032         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9033         gl_PREREQ_SYS_H_SOCKET.
9034         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9035         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9036         * modules/socklen (Depends-on): Do not depend on sys_socket.
9037         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9038
9039 2011-03-20  Jim Meyering  <meyering@redhat.com>
9040
9041         maint.mk: sort file names *after* new transformation
9042         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9043         prefix would have led to an unwarranted failure in GNU parted.
9044         Sort after that transformation.
9045
9046 2011-03-19  Jim Meyering  <meyering@redhat.com>
9047
9048         maint.mk: fix po-file syntax-check rule
9049         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9050         Patch by Bruno Haible.
9051
9052 2011-03-19  Bruno Haible  <bruno@clisp.org>
9053
9054         socklen: Update comment.
9055         * m4/socklen.m4: Update comment about platforms.
9056
9057 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9058             Bruno Haible  <bruno@clisp.org>
9059
9060         inet_ntop, inet_pton: Simplify.
9061         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9062         documented to provide socklen_t and we already depend on sys_socket.
9063         * modules/inet_pton (Depends-on): Likewise.
9064         * lib/arpa_inet.in.h: Adjust comment.
9065
9066 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9067             Bruno Haible  <bruno@clisp.org>
9068
9069         netdb: Simplify.
9070         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9071         documented to provide socklen_t and we already depend on sys_socket.
9072         * lib/netdb.in.h: Adjust comment.
9073
9074 2011-03-19  Bruno Haible  <bruno@clisp.org>
9075
9076         sys_socket, netdb: Document problem with socklen_t.
9077         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9078         platforms.
9079         * doc/posix-headers/netdb.texi: Likewise.
9080
9081 2011-03-18  Eric Blake  <eblake@redhat.com>
9082
9083         maint.mk: let po check work in VPATH build
9084         * top/maint.mk (po_file): Allow cfg.mk override.
9085         (sc_po_check): Allow VPATH use.
9086         Reported by Jiri Denemark.
9087
9088 2011-03-16  Jim Meyering  <meyering@redhat.com>
9089
9090         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9091         Before, you would have had to create one .x-sc_ file per rule in order
9092         to exempt offending files.  Now, you may instead use a Make variable --
9093         usually defined in cfg.mk -- whose name identifies the affected rule.
9094         * top/maint.mk (_sc_excl): Define.
9095         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9096         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9097
9098 2011-03-13  Bruno Haible  <bruno@clisp.org>
9099
9100         ignore-value tests: Avoid warnings.
9101         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9102         empty for gcc < 3.4.
9103
9104 2011-03-13  Bruno Haible  <bruno@clisp.org>
9105
9106         passfd: Fix link error on Solaris.
9107         * modules/passfd (Description): Correct.
9108         (Depends-on): Add socketlib.
9109         (Link): New section.
9110         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9111
9112 2011-03-13  Bruno Haible  <bruno@clisp.org>
9113
9114         passfd: Fix link error on AIX 5.2.
9115         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9116
9117 2011-03-13  Bruno Haible  <bruno@clisp.org>
9118
9119         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9120         * lib/sys_socket.in.h: Include <stddef.h>.
9121         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9122         CMSG_FIRSTHDR. Remove unused variable.
9123
9124 2011-03-13  Bruno Haible  <bruno@clisp.org>
9125
9126         passfd: Fix compilation error on OpenBSD.
9127         * lib/passfd.c: Include <sys/uio.h>.
9128
9129 2011-03-13  Bruno Haible  <bruno@clisp.org>
9130
9131         passfd test: Fix warnings.
9132         * tests/test-passfd.c: Include <sys/wait.h>.
9133         (main): Fix typo.
9134
9135 2011-03-13  Bruno Haible  <bruno@clisp.org>
9136
9137         passfd module, part 4, tweaks.
9138         * tests/test-passfd.c: Reorder includes.
9139         (main): Fix perror and printf calls.
9140
9141 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9142
9143         passfd module, part 4.
9144         * modules/passfd-tests: New file.
9145         * tests/test-passfd.c: New file.
9146
9147 2011-03-13  Jim Meyering  <meyering@redhat.com>
9148
9149         Makefile: rely on GNU make; derive syntax-check rule names
9150         Rather than requiring that each sc_ rule be listed as a dependent
9151         of "check", use features of GNU make to derive the list.
9152         * Makefile (syntax-check-rules): Define.
9153         (check): Depend on the new variable, not the hard-coded list.
9154
9155 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
9156             Bruno Haible  <bruno@clisp.org>
9157
9158         passfd module, part 3.
9159         * lib/passfd.h (recvfd): Add a flags argument.
9160         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
9161         (recvfd): Add a flags argument.
9162         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9163         exists.
9164         * modules/passfd (Depends-on): Add cloexec.
9165         Suggested by Eric Blake.
9166
9167 2011-03-13  Bruno Haible  <bruno@clisp.org>
9168
9169         passfd module, part 2, tweaks.
9170         * modules/passfd (Files): Reorder.
9171         (Depends-on): Remove errno.
9172         (Include): Remove <sys/socket.h>, <sys/un.h>.
9173         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
9174         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
9175         specification header. Include <sys/socket.h> always. Don't include
9176         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
9177         (sendfd): Clarify that it sets errno when it fails.
9178         (recvfd): Fix specification.
9179
9180 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9181
9182         passfd module, part 2.
9183         * modules/passfd: New file.
9184         * lib/passfd.h: New file.
9185         * lib/passfd.c: New file.
9186
9187 2011-03-12  Bruno Haible  <bruno@clisp.org>
9188
9189         wcswidth, mbswidth: Avoid integer overflow.
9190         * lib/wcswidth.c: Include <limits.h>.
9191         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
9192         * lib/mbswidth.c: Include <limits.h>.
9193         (mbsnwidth): Avoid 'int' overflow.
9194         Reported by Jim Meyering.
9195
9196 2011-03-12  Bruno Haible  <bruno@clisp.org>
9197
9198         futimens, utimensat: Avoid endless recursion on Solaris 10.
9199         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
9200         Solaris.
9201         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
9202         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
9203
9204 2011-03-11  Jim Meyering  <meyering@redhat.com>
9205
9206         maint.mk: relax a regexp to accommodate other formatting styles
9207         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
9208         between "ngettext" and the following "(".
9209
9210 2011-03-11  Pádraig Brady <P@draigBrady.com>
9211
9212         maint.mk: suppress a false positive warning
9213         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
9214         diagnostics are marked with ngettext.
9215
9216 2011-03-10  Eric Blake  <eblake@redhat.com>
9217
9218         wchar: add explicit dependencies, for Tru64
9219         * modules/mbmemcasecoll (Depends-on): Add wchar.
9220         * modules/mbtowc (Depends-on): Likewise.
9221         * modules/vasnprintf (Depends-on): Likewise.
9222         * modules/unistdio/u-printf-args (Depends-on): Likewise.
9223         * modules/wctomb (Depends-on): Likewise.
9224         Reported by Peter O'Gorman.
9225
9226 2011-03-08  Bruno Haible  <bruno@clisp.org>
9227
9228         passfd module, part 1, tweaks.
9229         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
9230         Improve indentation. Improve AC_MSG_CHECKING messages.
9231         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
9232         gl_SOCKET_FAMILIES.
9233
9234 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9235
9236         passfd module, part 1.
9237         * m4/afunix.m4: New file.
9238         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
9239         sockets.
9240
9241 2011-03-08  Bruno Haible  <bruno@clisp.org>
9242
9243         regex-quote: New API.
9244         * lib/regex-quote.h: Include <stdbool.h>.
9245         (struct regex_quote_spec): New type.
9246         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9247         New declarations.
9248         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9249         'const struct regex_quote_spec *' argument.
9250         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
9251         (pcre_special): New constant.
9252         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9253         New functions.
9254         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9255         'const struct regex_quote_spec *' argument.
9256         * modules/regex-quote (Depends-on): Add stdbool.
9257         * tests/test-regex-quote.c (check): Update for new API. Add test for
9258         anchored results.
9259         * NEWS: Mention the API change.
9260         Reported by Reuben Thomas and Eric Blake.
9261
9262 2011-03-06  Bruno Haible  <bruno@clisp.org>
9263
9264         regex-quote: Fix creation of POSIX extended regular expressions.
9265         * lib/regex-quote.c (ere_special): Add grouping and alternation
9266         operators.
9267
9268 2011-03-05  Bruno Haible  <bruno@clisp.org>
9269
9270         doc: Improve doc regarding autopoint vs. gnulib.
9271         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
9272         disable autopoint while running autoreconf.
9273         Suggested by Ralf Wildenhues.
9274
9275 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9276
9277         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9278         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9279
9280 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9281
9282         parse-duration: remove xalloc.h dependency
9283         * lib/parse-duration.c (parse_period): handle NULL return from
9284         strdup instead of calling xstrdup().
9285         * modules/parse-duration: remove "xalloc" dependency
9286
9287 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9288
9289         bootstrap: honor m4_base when running aclocal
9290         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9291
9292 2011-03-02  Jim Meyering  <meyering@redhat.com>
9293
9294         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9295         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9296         on request from Matt Booth.
9297
9298 2011-03-01  Eric Blake  <eblake@redhat.com>
9299
9300         test-link: work on Hurd
9301         * tests/test-link.h (test_link): Hurd rejects linking directories
9302         with EISDIR instead of the POSIX-mandated EPERM.
9303
9304 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9305
9306         stdio: simplify by moving files to printf-posix, sigpipe
9307         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9308         since this symbol is needed only if printf is replaced.
9309         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
9310         Require gl_ASM_SYMBOL_PREFIX.
9311         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
9312         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
9313         (Depends-on): Add 'raise'.
9314         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
9315         * modules/stdio (Files): Remove lib/stdio-write.c,
9316         m4/asm-underscore.m4.
9317         (Depends-on): Remove 'raise'.
9318
9319         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
9320         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
9321         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
9322         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
9323
9324 2011-02-28  Bruno Haible  <bruno@clisp.org>
9325
9326         localcharset: Assume ANSI C behaviour of free().
9327         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
9328         calling free().
9329         Suggested by Simon Josefsson <simon@josefsson.org>.
9330
9331 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
9332             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
9333             Bruno Haible  <bruno@clisp.org>  (tiny change)
9334
9335         On Cygwin, use /proc file system instead of win32 API.
9336         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
9337         Win32 file names.
9338         (DllMain): Simplify by removing Cygwin specific code.
9339         (find_shared_library_fullname): Use Linux specific implementation also
9340         for Cygwin.
9341         (get_shared_library_fullname): Update accordingly.
9342         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
9343         Win32 file names.
9344         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
9345         Cygwin specific code.
9346
9347 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
9348             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
9349
9350         Fix OpenMP flag detection for various Fortran compilers.
9351         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
9352         OpenMP-conditional compilation construct, to force compile
9353         failure with missing OpenMP flag.
9354         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
9355
9356 2011-02-25  Eric Blake  <eblake@redhat.com>
9357
9358         strstr: expand test coverage
9359         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
9360         compilation.
9361         * tests/test-memmem.c (main): Duplicate tests.
9362         * tests/test-strcasestr.c (main): Likewise.
9363         * tests/test-c-strcasestr.c (main): Likewise.
9364
9365 2011-02-25  Jim Meyering  <meyering@redhat.com>
9366
9367         maint.mk: detect missing-NL-at-EOF, too
9368         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
9369         it also detects when a file lacks a newline at EOF.
9370         (require_exactly_one_NL_at_EOF_): Renamed from
9371         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
9372         since people may well have .x-sc_... file names tied to the
9373         existing name.  Suggested by Eric Blake.
9374
9375 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9376
9377         dirname: move m4/dos.m4 functionality into lib/dosname.h
9378
9379         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
9380         extracts symbols from it, puts them into config.h; but it's much
9381         easier to use the symbols directly.  filename.h already does this,
9382         but it disagrees with dos.m4 in some respects.  This patch
9383         introduces a different include file dosname.h that packages up
9384         dos.m4, and then later we can work on merging filename.h and
9385         dosname.h.  Applications that need only the easy-to-configure
9386         symbols should consider including dosname.h rather than dirname.h.
9387         * NEWS: Mention incompatible changes.
9388         * m4/dos.m4: Remove.
9389         * lib/dosname.h, modules/dosname: New files.
9390         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
9391         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
9392         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
9393         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
9394         Include dosname.h, not dirname.h.
9395         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
9396         Include dosname.h, for definitions of symbols like ISSLASH
9397         that used to be in config.h.
9398         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
9399         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9400         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9401         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9402         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
9403         * modules/rmdir (Files): Likewise.
9404         * modules/stat (Files): Likewise.
9405         * modules/unlink (Files): Likewise.
9406         * modules/dirname-lgpl (Depends-on): Add dosname.
9407         * modules/lstat (Depends-on): Likewise.
9408         * modules/openat (Depends-on): Likewise.
9409         * modules/rmdir (Depends-on): Likewise.
9410         * modules/savewd (Depends-on): Likewise.
9411         * modules/stat (Depends-on): Likewise.
9412         * modules/unlink (Depends-on): Likewise.
9413         * modules/openat (Depends-on): Remove dirname-lgpl.
9414         * modules/savewd (Depends-on): Likewise.
9415         * tests/test-dirname.c: Do not use removed symbols like
9416         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
9417         the remaining symbols, e.g., ISSLASH ('\\').
9418
9419 2011-02-25  Eric Blake  <eblake@redhat.com>
9420
9421         strstr: revert patches that introduced bug and pessimization
9422         * lib/str-two-way.h: Add another reference.
9423         (two_way_short_needle, two_way_long_needle): Revert changes from
9424         2011-02-24; they pessimize search speed.
9425         (critical_factorization): Partially revert changes from
9426         2010-06-22; they violate the requirement that the left half of the
9427         needle be smaller than the period of the needle.
9428
9429 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9430
9431         filenamecat: remove unnecessary dependency on dirname-lgpl
9432         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
9433         is no direct dependency, just an indirect one via filenamecat-lgpl.
9434
9435         remove: remove unnecessary use of m4/dos.m4
9436         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
9437         * modules/remove (FILES): Remove m4/dos.m4.
9438
9439         * lib/openat-proc.c: Don't include dirname.h; not needed.
9440
9441         backupfile: remove unnecessary use of m4/dos.m4
9442         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
9443         of its symbols are used by the backupfile code.  backupfile.c does
9444         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
9445         for the rare case of programs that want all their backup file
9446         names to live within 8+3 limits, and dos.m4 doesn't address that.
9447         * modules/backupfile (Files): Remove m4/dos.m4.
9448
9449 2011-02-24  Jim Meyering  <meyering@redhat.com>
9450
9451         strstr: fix a bug whereby strstr would mistakenly return NULL
9452         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
9453         in period calculation.
9454         (two_way_long_needle): Likewise.
9455         The original problem was reported by Mike Stump in
9456         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
9457         Ralf Wildenhues provided the short needle and haystack.
9458         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
9459         Add a more involved test to trigger the bug in two_way_long_needle.
9460
9461 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9462
9463         gnulib-tool: remove use of bold display in help screen
9464         * gnulib-tool (func_usage): Do not use bold display anymore in the
9465         help screen.  That was just meant to be a temporary emphasis for a
9466         backward-incompatible change.
9467
9468 2011-02-23  Bruno Haible  <bruno@clisp.org>
9469
9470         Fix misindentation of preprocessor directives.
9471         * lib/argp-namefrob.h: Reindent preprocessor directives.
9472         * lib/getopt_int.h (struct _getopt_data): Likewise.
9473         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
9474         * lib/vasnprintf.c (decode_long_double): Likewise.
9475         * tests/test-argmatch.c: Insert blank lines, for clarity.
9476         * tests/test-exclude.c: Likewise.
9477
9478 2011-02-22  Bruno Haible  <bruno@clisp.org>
9479
9480         ioctl: Fix for MacOS X in 64-bit mode.
9481         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
9482         value.
9483         Suggested by Eric Blake.
9484         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
9485
9486 2011-02-22  Jim Meyering  <meyering@redhat.com>
9487
9488         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
9489         * Makefile (sc_cpp_indent_check): Don't limit the check to files
9490         in lib/.
9491
9492 2011-02-22  Eric Blake  <eblake@redhat.com>
9493
9494         maint: avoid any CDPATH issue
9495         * Makefile (sc_cpp_indent_check): Anchor cd argument.
9496
9497         maint: adjust cpp indentation for my modules, as well
9498         * Makefile (sc_cpp_indent_check): Add my name.
9499         * lib/fbufmode.c: Filter through cppi.
9500         * lib/fpurge.c: Likewise.
9501         * lib/freadable.c: Likewise.
9502         * lib/freading.c: Likewise.
9503         * lib/fwritable.c: Likewise.
9504         * lib/fwriting.c: Likewise.
9505         * lib/sigaction.c: Likewise.
9506
9507 2011-02-22  Jim Meyering  <meyering@redhat.com>
9508
9509         maint: adjust cpp indentation to reflect nesting depth
9510         I.e., in a block of code that begins with an unnested "#if",
9511         put one space between the "#" in column 1 and following token.
9512         For example,
9513         -#include <sys/vfs.h>
9514         +# include <sys/vfs.h>
9515         Do this only in .c files that are part of a module I maintain.
9516         * lib/linkat.c: Filter through cppi.
9517         * lib/nanosleep.c: Likewise.
9518         * lib/openat.c: Likewise.
9519         * lib/openat-die.c: Likewise.
9520         * lib/dup3.c: Likewise.
9521         * lib/fchownat.c: Likewise.
9522         * lib/flock.c: Likewise.
9523         * lib/fsync.c: Likewise.
9524         * lib/fts.c: Likewise.
9525         * lib/getpass.c: Likewise.
9526         * lib/gettimeofday.c: Likewise.
9527         * lib/userspec.c: Likewise.
9528         * Makefile (sc_cpp_indent_check): New rule, to check this.
9529
9530 2011-02-22  Bruno Haible  <bruno@clisp.org>
9531
9532         New module 'wctomb'.
9533         * lib/stdlib.in.h (wctomb): New declaration.
9534         * lib/wctomb.c: New file.
9535         * lib/wctomb-impl.h: New file.
9536         * m4/wctomb.m4: New file.
9537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
9538         REPLACE_WCTOMB.
9539         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
9540         REPLACE_WCTOMB.
9541         * modules/wctomb: New file.
9542         * tests/test-stdlib-c++.cc: Test signature of wctomb.
9543         * doc/posix-functions/wctomb.texi: Mention the new module.
9544         * modules/wctob (Depends-on): Add wctomb.
9545
9546 2011-02-22  Bruno Haible  <bruno@clisp.org>
9547
9548         New module 'mbtowc'.
9549         * lib/stdlib.in.h (mbtowc): New declaration.
9550         * lib/mbtowc.c: New file.
9551         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
9552         * m4/mbtowc.m4: New file.
9553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
9554         REPLACE_MBTOWC.
9555         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
9556         REPLACE_MBTOWC.
9557         * modules/mbtowc: New file.
9558         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
9559         * doc/posix-functions/mbtowc.texi: Mention the new module.
9560         * modules/btowc (Depends-on): Add mbtowc.
9561
9562 2011-02-22  Bruno Haible  <bruno@clisp.org>
9563
9564         wcrtomb: Add more tests for native Windows platforms.
9565         * tests/test-wcrtomb-w32-1.sh: New file.
9566         * tests/test-wcrtomb-w32-2.sh: New file.
9567         * tests/test-wcrtomb-w32-3.sh: New file.
9568         * tests/test-wcrtomb-w32-4.sh: New file.
9569         * tests/test-wcrtomb-w32-5.sh: New file.
9570         * tests/test-wcrtomb-w32.c: New file.
9571         * modules/wcrtomb-tests (Files): Add them.
9572         (Makefile.am): Arrange to run these tests.
9573         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
9574         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
9575
9576 2011-02-20  Bruno Haible  <bruno@clisp.org>
9577
9578         wcrtomb: Enhance test.
9579         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
9580
9581 2011-02-20  Bruno Haible  <bruno@clisp.org>
9582
9583         mbrtowc: Tiny optimization.
9584         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
9585
9586 2011-02-20  Jim Meyering  <meyering@redhat.com>
9587
9588         test-exclude.c: remove unmatched #endif
9589         * tests/test-exclude.c: Remove stray #endif, left over from
9590         the change of a week ago.
9591
9592 2011-02-19  Jim Meyering  <meyering@redhat.com>
9593
9594         git-version-gen: skip "-dirty" check when appropriate
9595         * build-aux/git-version-gen: Don't run any git commands when the
9596         version string comes from .tarball-version.  Prior to this, we
9597         would run git update-index --refresh even from a just-unpacked
9598         tarball directory, and that could affect a .git/ directory in a
9599         parent of the build directory.  Reported by Mike Frysinger.
9600
9601 2011-02-19  Bruno Haible  <bruno@clisp.org>
9602
9603         unictype/property-byname: Reduce the size of the 'data' segment.
9604         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
9605
9606 2011-02-19  Bruno Haible  <bruno@clisp.org>
9607
9608         unictype/scripts: Reduce the size of the 'data' segment.
9609         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
9610         '%pic'.
9611         * lib/unictype/scripts_byname.gperf: Regenerated.
9612
9613 2011-02-19  Bruno Haible  <bruno@clisp.org>
9614
9615         stdint: Update documentation.
9616         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
9617
9618 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
9619
9620         stdint: omit redundant check for wchar.h
9621         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
9622         always tests whether wchar.h exists, so remove the now-redundant test.
9623
9624 2011-02-18  Bruno Haible  <bruno@clisp.org>
9625
9626         stdint: Cut dependency to module 'wchar'.
9627         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
9628         include the necessary prerequisites.
9629         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
9630         * modules/stdint (Depends-on): Remove wchar.
9631         (Makefile.am): Substitute HAVE_WCHAR_H.
9632         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
9633
9634 2011-02-18  Eric Blake  <eblake@redhat.com>
9635
9636         longlong: skip, rather than fail, on cross-compilation
9637         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
9638         when cross-compiling; regression from 2011-02-16.
9639
9640 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9641
9642         * NEWS: Mention 2011-02-08 change to stdlib.
9643
9644 2011-02-17  Bruno Haible  <bruno@clisp.org>
9645
9646         getloadavg: Add comments about platforms.
9647         * m4/getloadavg.m4: Add comment.
9648         * lib/getloadavg.c: Likewise.
9649
9650 2011-02-17  Bruno Haible  <bruno@clisp.org>
9651
9652         getloadavg: Fix link error on Solaris 2.6.
9653         * modules/getloadavg (Link): New section.
9654         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
9655         linking test-getloadavg.
9656         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
9657         getloadavg.
9658
9659 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9660
9661         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
9662         It was 'int', but this doesn't match the IRIX 6.5 manual.
9663         Suggested by Bruno Haible in
9664         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
9665
9666 2011-02-17  Bruno Haible  <bruno@clisp.org>
9667
9668         havelib: Fix comments.
9669         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
9670         change.
9671
9672 2011-02-17  Bruno Haible  <bruno@clisp.org>
9673
9674         havelib: Update config.rpath.
9675         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
9676
9677 2011-02-17  Bruno Haible  <bruno@clisp.org>
9678
9679         getloadavg test: Add some plausibility checks.
9680         * tests/test-getloadavg.c (check_avg): Print a warning when the value
9681         is improbable.
9682
9683 2011-02-16  Eric Blake  <eblake@redhat.com>
9684
9685         maintainer-makefile: make syntax-check a no-op from tarballs
9686         * top/maint.mk (no-vc-detected): New rule.
9687         (local-checks-available): Use it to avoid hanging if someone tries
9688         'make syntax-check' from a tarball.  Also append to any non-syntax
9689         checks already defined in cfg.mk.
9690
9691 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9692
9693         longlong: tune, particularly for common case of c99
9694
9695         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
9696         or running anything if c99, or if unsigned long long int does not
9697         work.  In either case, we know the answer without further tests.
9698         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
9699         it at most once, and use its results for both long long int and
9700         unsigned long long int.  This is more likely to be efficient in
9701         the common case where the program wants to check for both long
9702         long int and unsigned long long int.
9703         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
9704         since the answer is already known.
9705
9706 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9707
9708         getloadavg: set errno
9709         * lib/getloadavg.c: Set errno when returning -1.  If no other
9710         error number looks appropriate, set it to ENOSYS if the getloadavg
9711         looks like it can't possibly ever work, ENOTSUP otherwise.
9712         Suggested by Bruno Haible in
9713         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
9714
9715         getloadavg: trim unused parts and speed up 'configure'
9716         * NEWS: Document this.
9717         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
9718         always compiled if getloadavg is absent.
9719         Move test code to ...
9720         * tests/test-getloadavg.c: New file, containing previous
9721         contents of test from lib/getloadavg.c.  It also contains
9722         suggestions by Bruno Haible in
9723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
9724         * modules/getloadavg-tests: New file.
9725         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
9726         Do tests in the same order as they're needed for getloadavg.c.
9727         Omit setgid-related tests that generate symbols KMEM_GROUP,
9728         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
9729         Do only the tests that are needed to see whether the system has
9730         getloadavg, moving the other tests into ...
9731         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
9732         NLIST_NAME_UNION; nobody should be using it.  Do not define
9733         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
9734         relevant, as the user of this module shouldn't care how getloadavg
9735         is implemented.
9736
9737         getloadavg: omit unused var
9738         * lib/getloadavg.c (getloadavg): Omit unused local variable.
9739
9740 2011-02-15  Jim Meyering  <meyering@redhat.com>
9741
9742         doc: update users.txt
9743         * users.txt: Update iwhd's URL.
9744
9745 2011-02-13  Bruno Haible  <bruno@clisp.org>
9746
9747         Consistent macro naming for macros that use GCC __attribute__.
9748         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
9749         _ATTRIBUTE_NONNULL_.
9750         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
9751         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
9752         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
9753         ATTRIBUTE_DEPRECATED.
9754         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
9755         ATTRIBUTE_NORETURN.
9756         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9757         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9758         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9759         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9760         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
9761         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
9762         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
9763         ATTRIBUTE_SENTINEL.
9764         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
9765         ATTRIBUTE_RETURN_CHECK.
9766         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
9767         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
9768         ATTRIBUTE_NORETURN.
9769         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
9770         Reported by Paul Eggert.
9771
9772 2011-02-13  Bruno Haible  <bruno@clisp.org>
9773
9774         Don't interfere with a program's definition of __attribute__.
9775         * lib/argp.h (__attribute__): Remove definition.
9776         (_GL_ATTRIBUTE_FORMAT): New macro.
9777         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
9778         * lib/argp-fmtstream.h (__attribute__): Remove definition.
9779         (_GL_ATTRIBUTE_FORMAT): New macro.
9780         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
9781         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
9782         GCC 3 or newer.
9783         * lib/error.h (__attribute__): Remove definition.
9784         (_GL_ATTRIBUTE_FORMAT): New macro.
9785         (error, error_at_line): Use it.
9786         * lib/hash.h (__attribute__): Remove definition.
9787         (ATTRIBUTE_WUR): Update definition. Define always.
9788         * lib/openat.h (__attribute__): Remove definition.
9789         (ATTRIBUTE_NORETURN): Update definition. Define always.
9790         * lib/sigpipe-die.h (__attribute__): Remove definition.
9791         (ATTRIBUTE_NORETURN): Update definition. Define always.
9792         * lib/vasnprintf.h (__attribute__): Remove definition.
9793         (_GL_ATTRIBUTE_FORMAT): New macro.
9794         (asnprintf, vasnprintf): Use it.
9795         * lib/xalloc.h (__attribute__): Remove definition.
9796         (ATTRIBUTE_NORETURN): Update definition. Define always.
9797         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
9798         * lib/xmemdup0.h (__attribute__): Remove definition.
9799         (ATTRIBUTE_NORETURN): Update definition. Define always.
9800         * lib/xprintf.h (__attribute__): Remove definition.
9801         (_GL_ATTRIBUTE_FORMAT): New macro.
9802         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
9803         * lib/xstrtol.h (__attribute__): Remove definition.
9804         (ATTRIBUTE_NORETURN): Update definition. Define always.
9805         * lib/xvasprintf.h (__attribute__): Remove definition.
9806         (_GL_ATTRIBUTE_FORMAT): New macro.
9807         (xasprintf, xvasprintf): Use it.
9808         * tests/test-argmatch.c (__attribute__): Remove definition.
9809         (ATTRIBUTE_NORETURN): Update definition. Define always.
9810         * tests/test-exclude.c (__attribute__): Remove definition.
9811         (ATTRIBUTE_NORETURN): Update definition. Define always.
9812         Reported by Paul Eggert.
9813
9814 2011-02-13  Bruno Haible  <bruno@clisp.org>
9815
9816         mbrtowc: Add more tests for native Windows platforms.
9817         * tests/test-mbrtowc-w32-1.sh: New file.
9818         * tests/test-mbrtowc-w32-2.sh: New file.
9819         * tests/test-mbrtowc-w32-3.sh: New file.
9820         * tests/test-mbrtowc-w32-4.sh: New file.
9821         * tests/test-mbrtowc-w32-5.sh: New file.
9822         * tests/test-mbrtowc-w32.c: New file.
9823         * modules/mbrtowc-tests (Files): Add them.
9824         (Makefile.am): Arrange to run these tests.
9825         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
9826         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
9827
9828 2011-02-13  Bruno Haible  <bruno@clisp.org>
9829
9830         mbrtowc: Work around native Windows bug.
9831         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
9832         guess when no suitable locale for testing was found.
9833         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
9834
9835 2011-02-13  Bruno Haible  <bruno@clisp.org>
9836
9837         mbsinit: Work around mingw bug.
9838         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
9839         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
9840         Windows.
9841         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
9842
9843 2011-02-13  Bruno Haible  <bruno@clisp.org>
9844
9845         mbsinit: Don't crash for a NULL argument.
9846         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
9847         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
9848
9849 2011-02-13  Bruno Haible  <bruno@clisp.org>
9850
9851         Don't interfere with a program's definition of __attribute__.
9852         * lib/stdio.in.h (__attribute__): Remove definition.
9853         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
9854         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
9855         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
9856         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
9857         * lib/string.in.h (__attribute__): Remove definition.
9858         Reported by Paul Eggert.
9859
9860 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9861
9862         stdlib: don't get in the way of non-GCC __attribute__
9863         See thread starting at
9864         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
9865         Revert previous stdlib change, installing the following instead:
9866         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
9867         to get in the way of a non-GCC compiler that supports __attribute__.
9868         (_GL_ATTRIBUTE_RETURN): New macro.
9869         (_Exit): Use it instead of __attribute__.
9870
9871 2011-02-12  Bruno Haible  <bruno@clisp.org>
9872
9873         quotearg test: Avoid test failure on mingw.
9874         * tests/test-quotearg.sh: Convert the locale identifier from native
9875         Windows syntax to Unix syntax.
9876
9877 2011-02-12  Bruno Haible  <bruno@clisp.org>
9878
9879         setlocale: Prefer gnulib's override over libintl's override.
9880         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
9881         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
9882         GNULIB_defined_setlocale is set.
9883
9884 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9885
9886         stdlib: support non-GCC __attribute__
9887
9888         Fix a serious and tricky problem encountered when attempting to
9889         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
9890         5.5, but it crashed due to memory corruption on Solaris 10 with
9891         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
9892         bits that are otherwise zero.  This tagging is optional inside
9893         Emacs but is preferred and is used when __attribute__ ((__aligned
9894         (8))) works, as it does with both recent-enough GCC and with Sun C
9895         5.11.  However, Sun C 5.11 is not GCC and does not #define
9896         __GNUC__ and __GNUC_MINOR__.
9897
9898         When I added the getloadavg module to Emacs, it brought in
9899         stdlib.in.h, which contained this fragment:
9900
9901            #ifndef __attribute__
9902            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
9903            #  define __attribute__(Spec)   /* empty */
9904            # endif
9905            #endif
9906
9907         When files that include <stdlib.h> were compiled with Sun C 5.11,
9908         the above code disabled __attribute__ ((__aligned (8))), which
9909         caused variables to not be properly aligned, which eventually led
9910         to the pointer corruption mentioned above.  (This was a bit hard
9911         to diagnose, unfortunately.)
9912
9913         Several "#define __attribute__(X) /* empty */" code snippets need
9914         to be eradicated from Gnulib to work with non-GCC compilers that
9915         support __attribute__.  The Autoconf way to do this is to test for
9916         each kind of attribute that we want support for, and selectively
9917         enable that in source code.
9918
9919         Fix this problem just for stdlib.h, by adding a test for the
9920         __noreturn__ attribute, and change stdlib.in.h to use that test
9921         when needed.  This technique can be easily generalized to the
9922         other *.in.h files and attributes, and a similar technique can be
9923         used for *.h and *.c files.  This patch is enough to solve the
9924         problem for Emacs + getloadavg, and I thought I'd publish it for
9925         feedback before undertaking further, similar fixes in other
9926         modules.
9927
9928         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
9929         because it's not needed for stdlib.h.  It merely substitutes the
9930         value directly into stdlib.h.  We may well need to #define it, or
9931         similar symbols, for other modules, but it's nice to also have an
9932         option to not #define it for applications like Emacs that do not
9933         need it.
9934
9935         * lib/stdlib.in.h (__attribute__): Do not #define.
9936         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
9937         be defined only if the _Exit module is also used.
9938         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
9939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
9940         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
9941         platforms.
9942         * modules/_Exit (Files): Add m4/attribute.m4.
9943         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
9944         * m4/attribute.m4: New file.
9945
9946 2011-02-12  Bruno Haible  <bruno@clisp.org>
9947
9948         wcsrtombs: Work around bug on native Windows.
9949         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
9950         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
9951         instead of len.
9952         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
9953
9954 2011-02-12  Bruno Haible  <bruno@clisp.org>
9955
9956         mbsrtowcs: Work around bug on native Windows.
9957         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
9958         against mingw bug.
9959         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
9960
9961 2011-02-12  Bruno Haible  <bruno@clisp.org>
9962
9963         Avoid setlocale bugs in tests.
9964         * modules/btowc (Dependencies): Add setlocale.
9965         * modules/c-strcase (Dependencies): Likewise.
9966         * modules/mbmemcasecmp (Dependencies): Likewise.
9967         * modules/mbmemcasecoll (Dependencies): Likewise.
9968         * modules/mbrtowc (Dependencies): Likewise.
9969         * modules/mbscasecmp (Dependencies): Likewise.
9970         * modules/mbscasestr (Dependencies): Likewise.
9971         * modules/mbschr (Dependencies): Likewise.
9972         * modules/mbscspn (Dependencies): Likewise.
9973         * modules/mbsinit (Dependencies): Likewise.
9974         * modules/mbsncasecmp (Dependencies): Likewise.
9975         * modules/mbsnrtowcs (Dependencies): Likewise.
9976         * modules/mbspbrk (Dependencies): Likewise.
9977         * modules/mbspcasecmp (Dependencies): Likewise.
9978         * modules/mbsrchr (Dependencies): Likewise.
9979         * modules/mbsrtowcs (Dependencies): Likewise.
9980         * modules/mbsspn (Dependencies): Likewise.
9981         * modules/mbsstr (Dependencies): Likewise.
9982         * modules/nl_langinfo (Dependencies): Likewise.
9983         * modules/quotearg (Dependencies): Likewise.
9984         * modules/unicase/locale-language (Dependencies): Likewise.
9985         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
9986         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
9987         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
9988         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
9989         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
9990         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
9991         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
9992         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
9993         * modules/vasnprintf-posix (Dependencies): Likewise.
9994         * modules/wcrtomb (Dependencies): Likewise.
9995         * modules/wcsnrtombs (Dependencies): Likewise.
9996         * modules/wcsrtombs (Dependencies): Likewise.
9997
9998 2011-02-12  Bruno Haible  <bruno@clisp.org>
9999
10000         setlocale: Workaround native Windows bug.
10001         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10002         succeeds but sets LC_CTYPE to "C", report a failure.
10003         * tests/test-setlocale2.sh: New file.
10004         * tests/test-setlocale2.c: New file.
10005         * modules/setlocale-tests (Files): Add the new files.
10006         (Makefile.am): Enable test-setlocale2.sh test.
10007         * doc/posix-functions/setlocale.texi: Mention workaround.
10008
10009 2011-02-11  Bruno Haible  <bruno@clisp.org>
10010
10011         Tests for module 'setlocale'.
10012         * modules/setlocale-tests: New file.
10013         * tests/test-setlocale1.sh: New file.
10014         * tests/test-setlocale1.c: New file.
10015
10016         New module 'setlocale'.
10017         * lib/locale.in.h (setlocale): New declaration.
10018         * lib/setlocale.c: New file, based on
10019         gettext/gettext-runtime/intl/setlocale.c.
10020         * m4/setlocale.m4: New file.
10021         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10022         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10023         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10024         REPLACE_SETLOCALE.
10025         * modules/setlocale: New file.
10026         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10027         * doc/posix-functions/setlocale.texi: Mention the new module.
10028
10029 2011-02-11  Bruno Haible  <bruno@clisp.org>
10030
10031         Prepare for locale dependent tests on mingw.
10032         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10033         because it has the wrong locale encoding.
10034         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10035         French_France.1252 instead of "fr".
10036         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10037         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10038         because it has the wrong locale encoding.
10039         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10040         native Windows, try Turkish_Turkey.65001.
10041         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10042         Chinese_China.54936.
10043
10044         Prepare for locale dependent tests on mingw.
10045         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10046         differently.
10047         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10048         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10049         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10050         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10051
10052 2011-02-11  Eric Blake  <eblake@redhat.com>
10053
10054         strptime: avoid compiler warnings
10055         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10056         compiler warnings about dead code.
10057         Reported by Daniel P. Berrange.
10058
10059 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10060
10061         doc: update users.txt
10062         * users.txt: Add rcs.
10063
10064 2011-02-10  John W. Eaton  <jwe@gnu.org>
10065
10066         doc: update users.txt
10067         * users.txt: Add octave.
10068
10069 2011-02-10  Jim Meyering  <meyering@redhat.com>
10070
10071         doc: update users.txt
10072         * users.txt: Add iwhd.
10073
10074 2011-02-09  Bruno Haible  <bruno@clisp.org>
10075
10076         gnulib-tool: Make copyright notice adjustment more robust.
10077         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10078         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10079         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10080         License".
10081         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10082
10083 2011-02-06  Bruno Haible  <bruno@clisp.org>
10084
10085         New module 'towctrans'.
10086         * modules/towctrans: New file.
10087         * lib/wctype.in.h (towctrans): New declaration.
10088         * lib/towctrans.c: New file.
10089         * lib/towctrans-impl.h: New file.
10090         * m4/towctrans.m4: New file.
10091         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10092         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10093         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10094         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10095         * doc/posix-functions/towctrans.texi: Mention the new module.
10096
10097 2011-02-06  Bruno Haible  <bruno@clisp.org>
10098
10099         New module 'wctrans'.
10100         * modules/wctrans: New file.
10101         * lib/wctype.in.h (wctrans): New declaration.
10102         * lib/wctrans.c: New file.
10103         * lib/wctrans-impl.h: New file.
10104         * m4/wctrans.m4: New file.
10105         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10106         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10107         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10108         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10109         * doc/posix-functions/wctrans.texi: Mention the new module.
10110
10111 2011-02-06  Bruno Haible  <bruno@clisp.org>
10112
10113         New module 'iswctype'.
10114         * modules/iswctype: New file.
10115         * lib/wctype.in.h (iswctype): New declaration.
10116         * lib/iswctype.c: New file.
10117         * lib/iswctype-impl.h: New file.
10118         * m4/iswctype.m4: New file.
10119         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10120         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10121         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10122         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10123         * doc/posix-functions/iswctype.texi: Mention the new module and the
10124         HP-UX 11.00 problem.
10125
10126 2011-02-06  Bruno Haible  <bruno@clisp.org>
10127
10128         New module 'wctype'.
10129         * modules/wctype: Change to represent the wctype() substitute.
10130         * lib/wctype.in.h (wctype): New declaration.
10131         * lib/wctype.c: New file.
10132         * lib/wctype-impl.h: New file.
10133         * m4/wctype.m4: New file.
10134         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10135         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10136         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10137         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10138         * doc/posix-functions/wctype.texi: Mention the new module and the
10139         HP-UX 11.00 problem.
10140
10141 2011-02-06  Bruno Haible  <bruno@clisp.org>
10142
10143         wctype-h: Ensure wctype_t and wctrans_t are defined.
10144         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
10145         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10146         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10147         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
10148         HAVE_WCTRANS_T.
10149         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
10150
10151 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10152
10153         flock: fix license typo
10154
10155         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
10156         omitted.
10157
10158 2011-02-08  Bruno Haible  <bruno@clisp.org>
10159
10160         Split large sed scripts, for HP-UX sed.
10161         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
10162         to avoid HP-UX limit of 99 commands, in the near future.
10163         * modules/stdlib (Makefile.am): Likewise.
10164         * modules/unistd (Makefile.am): Likewise.
10165         * modules/wchar (Makefile.am): Likewise.
10166         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10167         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
10168         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
10169
10170 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10171             Bruno Haible  <bruno@clisp.org>
10172
10173         stdlib: improve random_r modularization
10174         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
10175         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
10176         you also need the random_r module to get this material right.
10177         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
10178         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
10179         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
10180
10181 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10182
10183         stdlib: don't depend on stdint
10184         * lib/stdlib.in.h: Don't include <stdint.h> merely because
10185         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
10186         be independent of whether stdint.h is needed.
10187         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
10188         here, instead of ...
10189         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
10190         struct random_data should be using the random_r module, not just
10191         the stdlib module (which wouldn't make sense: what package needs
10192         just struct random_data without also needing random_r?).
10193         * modules/stdlib (Depends-on): Remove stdint.
10194
10195         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
10196         See the thread rooted at
10197         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
10198         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
10199         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
10200         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
10201         __VMS)); previously it was always included (via fcntl--.h).
10202         (getloadavg): Do not use c_strtod.  Instead, approximate it by
10203         hand; this is good enough for load averages.  Also, do not use
10204         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
10205         flags directly if available and don't bother otherwise.  (Packages
10206         that need the extra reliability should use the modules that define
10207         these flags on older platforms that lack them.)
10208         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
10209         fcntl-safer.
10210
10211 2011-02-08  Jim Meyering  <meyering@redhat.com>
10212
10213         di-set.h, ino-map.h: add multiple-inclusion guard
10214         Technically, the guard is required only for ino-map.h, due to its
10215         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
10216         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
10217         * lib/ino-map.h: Likewise.
10218
10219 2011-02-06  Bruno Haible  <bruno@clisp.org>
10220
10221         iswblank: Ensure declaration on glibc systems.
10222         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
10223         * modules/iswblank (Dependencies): Add 'extensions'.
10224         * doc/posix-functions/iswblank.texi: Document the glibc problem.
10225
10226 2011-02-06  Bruno Haible  <bruno@clisp.org>
10227
10228         New module 'iswblank'.
10229         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
10230         * modules/iswblank: New file.
10231         * modules/wctype-h (Files): Remove lib/iswblank.c.
10232         (Makefile.am): Substitute GNULIB_ISWBLANK.
10233         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
10234         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
10235         (gl_WCTYPE_H_DEFAULTS): New macro.
10236         (gl_WCTYPE_H): Require it. Remove iswblank related code.
10237         * modules/iswblank-tests: New file.
10238         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
10239         * tests/test-wctype-h.c (main): Remove iswblank tests.
10240         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
10241         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
10242         of 'wctype-h'.
10243         * NEWS: Mention the change.
10244         * modules/mbchar (Depends-on): Add iswblank.
10245
10246 2011-02-08  Bruno Haible  <bruno@clisp.org>
10247
10248         di-set tests: Refactor.
10249         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
10250         unnecessary includes.
10251         (ASSERT): Remove macro.
10252         (main): Make C90 compliant by avoiding variable declaration after
10253         statement.
10254         * modules/di-set-tests (Files): Add tests/macros.h.
10255
10256 2011-02-08  Bruno Haible  <bruno@clisp.org>
10257
10258         ino-map tests: Refactor.
10259         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
10260         unnecessary includes.
10261         (ASSERT): Remove macro.
10262         (main): Make C90 compliant by avoiding variable declaration after
10263         statement.
10264         * modules/ino-map-tests (Files): Add tests/macros.h.
10265
10266 2011-02-08  Jim Meyering  <meyering@redhat.com>
10267
10268         di-set: add "const" to a cast
10269         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
10270         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
10271
10272 2011-02-06  Bruno Haible  <bruno@clisp.org>
10273
10274         Rename module 'wctype' to 'wctype-h'.
10275         * modules/wctype-h: Renamed from modules/wctype.
10276         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10277         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10278         (Files, Depends-on, Makefile.am): Update.
10279         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10280         (Files, Makefile.am): Update.
10281         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10282         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10283         * doc/posix-headers/wctype.texi: Update.
10284         * doc/posix-functions/iswalnum.texi: Update.
10285         * doc/posix-functions/iswalpha.texi: Update.
10286         * doc/posix-functions/iswblank.texi: Update.
10287         * doc/posix-functions/iswcntrl.texi: Update.
10288         * doc/posix-functions/iswdigit.texi: Update.
10289         * doc/posix-functions/iswgraph.texi: Update.
10290         * doc/posix-functions/iswlower.texi: Update.
10291         * doc/posix-functions/iswprint.texi: Update.
10292         * doc/posix-functions/iswpunct.texi: Update.
10293         * doc/posix-functions/iswspace.texi: Update.
10294         * doc/posix-functions/iswupper.texi: Update.
10295         * doc/posix-functions/iswxdigit.texi: Update.
10296         * doc/posix-functions/towlower.texi: Update.
10297         * doc/posix-functions/towupper.texi: Update.
10298         * NEWS: Mention the change.
10299         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10300         * modules/mbchar (Dependencies): Likewise.
10301         * modules/mbswidth (Dependencies): Likewise.
10302         * modules/quotearg (Dependencies): Likewise.
10303         * modules/regex (Dependencies): Likewise.
10304         * modules/wcscasecmp (Dependencies): Likewise.
10305         * modules/wcsncasecmp (Dependencies): Likewise.
10306         * modules/wcwidth (Dependencies): Likewise.
10307
10308 2011-02-06  Bruno Haible  <bruno@clisp.org>
10309
10310         New module 'wcswidth'.
10311         * modules/wcswidth: New file.
10312         * lib/wchar.in.h (wcswidth): New declaration.
10313         * lib/wcswidth.c: New file.
10314         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
10315         * m4/wcswidth.m4: New file.
10316         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
10317         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
10318         REPLACE_WCSWIDTH.
10319         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
10320         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
10321         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
10322         * doc/posix-functions/wcswidth.texi: Mention the new module.
10323
10324 2011-02-06  Bruno Haible  <bruno@clisp.org>
10325
10326         New module 'wcstok'.
10327         * modules/wcstok: New file.
10328         * lib/wchar.in.h (wcstok): New declaration.
10329         * lib/wcstok.c: New file.
10330         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
10331         * m4/wcstok.m4: New file.
10332         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
10333         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
10334         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
10335         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
10336         * doc/posix-functions/wcstok.texi: Mention the new module.
10337
10338 2011-02-06  Bruno Haible  <bruno@clisp.org>
10339
10340         New module 'wcsstr'.
10341         * modules/wcsstr: New file.
10342         * lib/wchar.in.h (wcsstr): New declaration.
10343         * lib/wcsstr.c: New file.
10344         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
10345         * m4/wcsstr.m4: New file.
10346         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10347         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
10348         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
10349         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
10350         * doc/posix-functions/wcsstr.texi: Mention the new module.
10351
10352 2011-02-06  Bruno Haible  <bruno@clisp.org>
10353
10354         New module 'wcspbrk'.
10355         * modules/wcspbrk: New file.
10356         * lib/wchar.in.h (wcspbrk): New declaration.
10357         * lib/wcspbrk.c: New file.
10358         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
10359         * m4/wcspbrk.m4: New file.
10360         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
10361         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
10362         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
10363         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
10364         * doc/posix-functions/wcspbrk.texi: Mention the new module.
10365
10366 2011-02-06  Bruno Haible  <bruno@clisp.org>
10367
10368         New module 'wcsspn'.
10369         * modules/wcsspn: New file.
10370         * lib/wchar.in.h (wcsspn): New declaration.
10371         * lib/wcsspn.c: New file.
10372         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
10373         * m4/wcsspn.m4: New file.
10374         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
10375         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
10376         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
10377         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
10378         * doc/posix-functions/wcsspn.texi: Mention the new module.
10379
10380 2011-02-06  Bruno Haible  <bruno@clisp.org>
10381
10382         New module 'wcscspn'.
10383         * modules/wcscspn: New file.
10384         * lib/wchar.in.h (wcscspn): New declaration.
10385         * lib/wcscspn.c: New file.
10386         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
10387         * m4/wcscspn.m4: New file.
10388         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
10389         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
10390         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
10391         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
10392         * doc/posix-functions/wcscspn.texi: Mention the new module.
10393
10394 2011-02-06  Bruno Haible  <bruno@clisp.org>
10395
10396         New module 'wcsrchr'.
10397         * modules/wcsrchr: New file.
10398         * lib/wchar.in.h (wcsrchr): New declaration.
10399         * lib/wcsrchr.c: New file.
10400         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
10401         * m4/wcsrchr.m4: New file.
10402         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
10403         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
10404         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
10405         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
10406         * doc/posix-functions/wcsrchr.texi: Mention the new module.
10407
10408 2011-02-06  Bruno Haible  <bruno@clisp.org>
10409
10410         New module 'wcschr'.
10411         * modules/wcschr: New file.
10412         * lib/wchar.in.h (wcschr): New declaration.
10413         * lib/wcschr.c: New file.
10414         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
10415         * m4/wcschr.m4: New file.
10416         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
10417         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
10418         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
10419         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
10420         * doc/posix-functions/wcschr.texi: Mention the new module.
10421
10422 2011-02-06  Bruno Haible  <bruno@clisp.org>
10423
10424         New module 'wcsdup'.
10425         * modules/wcsdup: New file.
10426         * lib/wchar.in.h (wcsdup): New declaration.
10427         * lib/wcsdup.c: New file.
10428         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
10429         * m4/wcsdup.m4: New file.
10430         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
10431         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
10432         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
10433         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
10434         * doc/posix-functions/wcsdup.texi: Mention the new module.
10435
10436 2011-02-06  Bruno Haible  <bruno@clisp.org>
10437
10438         New module 'wcsxfrm'.
10439         * modules/wcsxfrm: New file.
10440         * lib/wchar.in.h (wcsxfrm): New declaration.
10441         * lib/wcsxfrm.c: New file.
10442         * lib/wcsxfrm-impl.h: New file.
10443         * m4/wcsxfrm.m4: New file.
10444         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
10445         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
10446         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
10447         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
10448         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
10449
10450 2011-02-06  Bruno Haible  <bruno@clisp.org>
10451
10452         New module 'wcscoll'.
10453         * modules/wcscoll: New file.
10454         * lib/wchar.in.h (wcscoll): New declaration.
10455         * lib/wcscoll.c: New file.
10456         * lib/wcscoll-impl.h: New file.
10457         * m4/wcscoll.m4: New file.
10458         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
10459         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
10460         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
10461         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
10462         * doc/posix-functions/wcscoll.texi: Mention the new module.
10463
10464 2011-02-06  Bruno Haible  <bruno@clisp.org>
10465
10466         New module 'wcsncasecmp'.
10467         * modules/wcsncasecmp: New file.
10468         * lib/wchar.in.h (wcsncasecmp): New declaration.
10469         * lib/wcsncasecmp.c: New file.
10470         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
10471         * m4/wcsncasecmp.m4: New file.
10472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
10473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
10474         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
10475         HAVE_WCSNCASECMP.
10476         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
10477         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
10478
10479 2011-02-06  Bruno Haible  <bruno@clisp.org>
10480
10481         New module 'wcscasecmp'.
10482         * modules/wcscasecmp: New file.
10483         * lib/wchar.in.h (wcscasecmp): New declaration.
10484         * lib/wcscasecmp.c: New file.
10485         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
10486         * m4/wcscasecmp.m4: New file.
10487         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
10488         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
10489         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
10490         HAVE_WCSCASECMP.
10491         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
10492         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
10493
10494 2011-02-05  Bruno Haible  <bruno@clisp.org>
10495
10496         New module 'wcsncmp'.
10497         * modules/wcsncmp: New file.
10498         * lib/wchar.in.h (wcsncmp): New declaration.
10499         * lib/wcsncmp.c: New file.
10500         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
10501         * m4/wcsncmp.m4: New file.
10502         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
10503         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
10504         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
10505         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
10506         * doc/posix-functions/wcsncmp.texi: Mention the new module.
10507
10508 2011-02-05  Bruno Haible  <bruno@clisp.org>
10509
10510         New module 'wcscmp'.
10511         * modules/wcscmp: New file.
10512         * lib/wchar.in.h (wcscmp): New declaration.
10513         * lib/wcscmp.c: New file.
10514         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
10515         * m4/wcscmp.m4: New file.
10516         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
10517         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
10518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
10519         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
10520         * doc/posix-functions/wcscmp.texi: Mention the new module.
10521
10522 2011-02-05  Bruno Haible  <bruno@clisp.org>
10523
10524         New module 'wcsncat'.
10525         * modules/wcsncat: New file.
10526         * lib/wchar.in.h (wcsncat): New declaration.
10527         * lib/wcsncat.c: New file.
10528         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
10529         * m4/wcsncat.m4: New file.
10530         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
10531         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
10532         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
10533         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
10534         * doc/posix-functions/wcsncat.texi: Mention the new module.
10535
10536 2011-02-05  Bruno Haible  <bruno@clisp.org>
10537
10538         New module 'wcscat'.
10539         * modules/wcscat: New file.
10540         * lib/wchar.in.h (wcscat): New declaration.
10541         * lib/wcscat.c: New file.
10542         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
10543         * m4/wcscat.m4: New file.
10544         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
10545         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
10546         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
10547         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
10548         * doc/posix-functions/wcscat.texi: Mention the new module.
10549
10550 2011-02-05  Bruno Haible  <bruno@clisp.org>
10551
10552         New module 'wcpncpy'.
10553         * modules/wcpncpy: New file.
10554         * lib/wchar.in.h (wcpncpy): New declaration.
10555         * lib/wcpncpy.c: New file.
10556         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
10557         * m4/wcpncpy.m4: New file.
10558         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
10559         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
10560         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
10561         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
10562         * doc/posix-functions/wcpncpy.texi: Mention the new module.
10563
10564 2011-02-05  Bruno Haible  <bruno@clisp.org>
10565
10566         New module 'wcsncpy'.
10567         * modules/wcsncpy: New file.
10568         * lib/wchar.in.h (wcsncpy): New declaration.
10569         * lib/wcsncpy.c: New file.
10570         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
10571         * m4/wcsncpy.m4: New file.
10572         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
10573         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
10574         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
10575         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
10576         * doc/posix-functions/wcsncpy.texi: Mention the new module.
10577
10578 2011-02-05  Bruno Haible  <bruno@clisp.org>
10579
10580         New module 'wcpcpy'.
10581         * modules/wcpcpy: New file.
10582         * lib/wchar.in.h (wcpcpy): New declaration.
10583         * lib/wcpcpy.c: New file.
10584         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
10585         * m4/wcpcpy.m4: New file.
10586         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
10587         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
10588         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
10589         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
10590         * doc/posix-functions/wcpcpy.texi: Mention the new module.
10591
10592 2011-02-05  Bruno Haible  <bruno@clisp.org>
10593
10594         New module 'wcscpy'.
10595         * modules/wcscpy: New file.
10596         * lib/wchar.in.h (wcscpy): New declaration.
10597         * lib/wcscpy.c: New file.
10598         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
10599         * m4/wcscpy.m4: New file.
10600         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
10601         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
10602         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
10603         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
10604         * doc/posix-functions/wcscpy.texi: Mention the new module.
10605
10606 2011-02-05  Bruno Haible  <bruno@clisp.org>
10607
10608         New module 'wcsnlen'.
10609         * modules/wcsnlen: New file.
10610         * lib/wchar.in.h (wcsnlen): New declaration.
10611         * lib/wcsnlen.c: New file.
10612         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
10613         * m4/wcsnlen.m4: New file.
10614         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
10615         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
10616         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
10617         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
10618         * doc/posix-functions/wcsnlen.texi: Mention the new module.
10619
10620 2011-02-05  Bruno Haible  <bruno@clisp.org>
10621
10622         New module 'wcslen'.
10623         * modules/wcslen: New file.
10624         * lib/wchar.in.h (wcslen): New declaration.
10625         * lib/wcslen.c: New file.
10626         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
10627         * m4/wcslen.m4: New file.
10628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
10629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
10630         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
10631         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
10632         * doc/posix-functions/wcslen.texi: Mention the new module.
10633
10634 2011-02-05  Bruno Haible  <bruno@clisp.org>
10635
10636         New module 'wmemset'.
10637         * modules/wmemset: New file.
10638         * lib/wchar.in.h (wmemset): New declaration.
10639         * lib/wmemset.c: New file.
10640         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
10641         * m4/wmemset.m4: New file.
10642         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
10643         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
10644         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
10645         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
10646         * doc/posix-functions/wmemset.texi: Mention the new module.
10647
10648 2011-02-05  Bruno Haible  <bruno@clisp.org>
10649
10650         New module 'wmemmove'.
10651         * modules/wmemmove: New file.
10652         * lib/wchar.in.h (wmemmove): New declaration.
10653         * lib/wmemmove.c: New file.
10654         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
10655         * m4/wmemmove.m4: New file.
10656         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
10657         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
10658         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
10659         HAVE_WMEMMOVE.
10660         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
10661         * doc/posix-functions/wmemmove.texi: Mention the new module.
10662
10663 2011-02-05  Bruno Haible  <bruno@clisp.org>
10664
10665         New module 'wmemcpy'.
10666         * modules/wmemcpy: New file.
10667         * lib/wchar.in.h (wmemcpy): New declaration.
10668         * lib/wmemcpy.c: New file.
10669         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
10670         * m4/wmemcpy.m4: New file.
10671         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
10672         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
10673         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
10674         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
10675         * doc/posix-functions/wmemcpy.texi: Mention the new module.
10676
10677 2011-02-05  Bruno Haible  <bruno@clisp.org>
10678
10679         New module 'wmemcmp'.
10680         * modules/wmemcmp: New file.
10681         * lib/wchar.in.h (wmemcmp): New declaration.
10682         * lib/wmemcmp.c: New file.
10683         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
10684         * m4/wmemcmp.m4: New file.
10685         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
10686         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
10687         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
10688         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
10689         * doc/posix-functions/wmemcmp.texi: Mention the new module.
10690
10691 2011-02-07  Jim Meyering  <meyering@redhat.com>
10692
10693         di-set, ino-map: new modules, from coreutils
10694         * lib/di-set.c: New file.
10695         * lib/di-set.h: Likewise.
10696         * lib/ino-map.c: Likewise.
10697         * lib/ino-map.h: Likewise.
10698         * modules/di-set: Likewise.
10699         * modules/di-set-tests: Likewise.
10700         * modules/ino-map: Likewise.
10701         * modules/ino-map-tests: Likewise.
10702         * tests/test-di-set.c: Likewise.
10703         * tests/test-ino-map.c: Likewise.
10704
10705 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10706
10707         getloadavg: merge minor changes from Emacs
10708
10709         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
10710         (getloadavg): Use memset, not bzero.
10711
10712         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
10713         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10714         clash (bug#86).
10715
10716 2010-11-14  Bruno Haible  <bruno@clisp.org>
10717
10718         Allow multiple gnulib generated replacements to coexist.
10719         * lib/getopt.in.h (struct option): Avoid identical redefinition.
10720         * lib/inttypes.in.h (imaxdiv_t): Likewise.
10721         * lib/langinfo.in.h (nl_item): Likewise.
10722         * lib/math.in.h (_NaN, NAN): Likewise.
10723         * lib/netdb.in.h (struct addrinfo): Likewise.
10724         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
10725         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
10726         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
10727         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
10728         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
10729         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
10730         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
10731         pthread_mutexattr_init, pthread_mutexattr_settype,
10732         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
10733         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
10734         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
10735         pthread_spin_trylock, pthread_spin_unlock): Likewise.
10736         * lib/sched.in.h (struct sched_param): Likewise.
10737         * lib/se-selinux.in.h (security_class_t, security_context_t,
10738         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
10739         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
10740         lsetfilecon, fsetfilecon, security_check_context,
10741         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
10742         Likewise.
10743         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
10744         Likewise.
10745         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
10746         _gl_function_taking_int_returning_void_t, union sigval,
10747         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
10748         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
10749         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10750         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
10751         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
10752         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
10753         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
10754         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
10755         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
10756         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
10757         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
10758         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
10759         socklen_t, rpl_fd_isset): Likewise.
10760         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
10761         * lib/sys_time.in.h (struct timeval): Likewise.
10762         * lib/sys_times.in.h (struct tms): Likewise.
10763         * lib/sys_utsname.in.h (struct utsname):
10764         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
10765         * lib/unistd.in.h (getpagesize): Likewise.
10766         * lib/wchar.in.h (mbstate_t): Likewise.
10767         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10768         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
10769         towlower, towupper): Likewise.
10770         Reported by Sam Steingold <sds@gnu.org>.
10771
10772 2011-02-05  Eric Blake  <eblake@redhat.com>
10773
10774         unsetenv: work around Haiku issues
10775         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
10776         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
10777
10778 2010-12-30  Bruce Korb  <bkorb@gnu.org>
10779
10780         libposix: avoid calling error() within libposix
10781         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
10782         is defined.
10783
10784 2011-02-05  Eric Blake  <eblake@redhat.com>
10785
10786         strerror_r-posix: port to cygwin
10787         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
10788         implementation.
10789         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
10790         * tests/test-strerror_r.c (main): Fix test.
10791         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10792         issue.
10793
10794 2011-02-05  Bruno Haible  <bruno@clisp.org>
10795
10796         New module 'wmemchr'.
10797         * modules/wmemchr: New file.
10798         * lib/wchar.in.h (wmemchr): New declaration.
10799         * lib/wmemchr.c: New file.
10800         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
10801         * m4/wmemchr.m4: New file.
10802         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
10803         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
10804         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
10805         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
10806         * doc/posix-functions/wmemchr.texi: Mention the new module.
10807
10808 2011-02-04  Eric Blake  <eblake@redhat.com>
10809
10810         fdopendir: detect FreeBSD bug
10811         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
10812         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
10813
10814 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
10815
10816         stdbool: do not define HAVE_STDBOOL_H
10817         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
10818         AC_HEADER_STDBOOL.  All uses changed.  Do not define
10819         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
10820         imported from the latest Autoconf git.  It was motivated by Emacs,
10821         which uses gnulib but does not need HAVE_STDBOOL_H.
10822
10823 2011-02-04  Bruno Haible  <bruno@clisp.org>
10824
10825         wcsnrtombs: Prepare for new module wwcsnrtombs.
10826         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
10827         * lib/wcsnrtombs.c: Include it.
10828         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
10829
10830         wcsrtombs: Prepare for new module wwcsrtombs.
10831         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
10832         * lib/wcsrtombs.c: Include it.
10833         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
10834
10835         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
10836         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
10837         * lib/mbsnrtowcs.c: Include it.
10838         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
10839
10840         mbsrtowcs: Prepare for new module mbsrtowwcs.
10841         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
10842         * lib/mbsrtowcs.c: Include it.
10843         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
10844
10845 2011-02-04  Bruno Haible  <bruno@clisp.org>
10846
10847         vasnprintf: Reduce use of malloc for small format strings.
10848         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
10849         (arguments): Add room for the first 7 arguments.
10850         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
10851         (char_directives, u8_directives, u16_directives, u32_directives): Add
10852         room for the first 7 directives.
10853         * lib/printf-parse.c: Include <string.h>.
10854         (PRINTF_PARSE): Change memory handling code so that it uses the first
10855         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
10856         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
10857         Reported by Pádraig Brady <P@draigbrady.com>.
10858
10859 2011-01-31  Eric Blake  <eblake@redhat.com>
10860
10861         dup2: work around Haiku bug
10862         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
10863         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
10864         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10865         * tests/test-dup2.c (main): Enhance test.
10866
10867 2011-01-31  Simon Josefsson  <simon@josefsson.org>
10868
10869         doc: off_t is not available in eglibc 2.11.2 stdio.h.
10870         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
10871         declared by eglibc 2.11.2.
10872         * lib/stdio.in.h: Likewise.
10873
10874 2011-01-31  Eric Blake  <eblake@redhat.com>
10875
10876         ignore-value: add missing test dependency
10877         * tests/test-ignore-value.c: Revert previous change; stdio.h
10878         provides off_t.
10879         * modules/ignore-value-tests (Depends-on): Add missing dependency.
10880
10881 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
10882
10883         mktime: clarify long_int width checking
10884         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
10885         the top level, to make it clearer that the assumption about
10886         long_int width is being checked.  See
10887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
10888
10889 2011-01-30  Simon Josefsson  <simon@josefsson.org>
10890
10891         ignore-value: Fix self-test.
10892         * tests/test-ignore-value.c: Include sys/types.h for off_t.
10893
10894 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
10895
10896         TYPE_MAXIMUM: avoid theoretically undefined behavior
10897         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
10898         negative number, which the C Standard says has undefined behavior.
10899         In practice this is not a problem, but might as well do it by the book.
10900         Reported by Rich Felker and Eric Blake; see
10901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
10902         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
10903         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10904         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10905         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
10906         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10907         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
10908
10909         mktime: #undef mktime before #defining it
10910         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
10911
10912         mktime: systematically normalize tm_isdst comparisons
10913         * lib/mktime.c (isdst_differ): New function.
10914         (__mktime_internal): Use it systematically for all isdst comparisons.
10915         This completes the fix for libc BZ #6723, and removes the need for
10916         normalizing tm_isdst.  See
10917         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
10918         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
10919
10920         mktime: fix some integer overflow issues and sidestep the rest
10921
10922         This was prompted by a bug report by Benjamin Lindner for MinGW
10923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
10924         His bug is due to signed integer overflow (0 - INT_MIN), and I
10925         I scanned through mktime.c looking for other integer overflow
10926         problems, fixing all the bugs I found.
10927
10928         Although the C Standard says the resulting code is still not safe
10929         in the presence of integer overflow, in practice it should be good
10930         enough for all real-world two's-complement implementations, except
10931         for debugging environments that deliberately trap on integer
10932         overflow (e.g., gcc -ftrapv).
10933
10934         * lib/mktime.c (WRAPV): New macro.
10935         (SHR): Also check that long_int and time_t shift right in the
10936         usual way, before using the fast-but-unportable method.
10937         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
10938         used.  The code already assumed two's complement, so there's
10939         no need to test for alternatives.  All uses removed.
10940         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
10941         the C standard.  Problem reported by Rich Felker in
10942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
10943         (twos_complement_arithmetic): Also check long_int and time_t.
10944         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
10945         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
10946         (__mktime_internal): Avoid integer overflow with unary subtraction
10947         in two instances where -1 - X is an adequate replacement for -X,
10948         since the calculations are approximate.
10949
10950 2011-01-29  Eric Blake  <eblake@redhat.com>
10951
10952         mktime: avoid infinite loop
10953         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
10954         type; behavior is still undefined but portable to all known targets.
10955         Reported by Rich Felker.
10956
10957 2011-01-29  Simon Josefsson  <simon@josefsson.org>
10958
10959         rename, unlink, same-inode: Relicense.
10960         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
10961         * modules/unlink (License): Likewise.
10962         * modules/same-inode (License): Likewise.
10963
10964 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
10965
10966         mktime: avoid problems on NetBSD 5 / i386
10967         * lib/mktime.c (long_int): New type.  This works around a problem
10968         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
10969         but time_t is 64 bits, and where I expect the existing code is
10970         wrong in some cases.
10971         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
10972         (ydhms_diff): Bring back the compile-time check for wide-enough
10973         year and yday.
10974
10975         mktime: fix misspelling in comment
10976         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
10977         This merges all recent glibc changes of importance.
10978
10979 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10980
10981         move-if-change: cope with concurrent mv of identical file.
10982         * build-aux/move-if-change (CMPPROG): Accept environment
10983         variable as an override for `cmp'.
10984         (usage): Document CMPPROG.
10985         Adjust comparison to drop stdout.  Cope with failure of mv if
10986         the target file exists and is identical to the source, for
10987         parallel builds.
10988         Report from H.J. Lu against binutils in PR binutils/12283.
10989
10990 2011-01-28  Bruce Korb  <bkorb@gnu.org>
10991
10992         * users.txt: Mention sharutils.
10993
10994 2011-01-28  Simon Josefsson  <simon@josefsson.org>
10995
10996         * users.txt: Mention OATH Toolkit.
10997
10998 2011-01-27  Bruno Haible  <bruno@clisp.org>
10999
11000         Prepare for supporting FreeBSD 10.
11001         * build-aux/config.libpath: Remove handling of freebsd1*.
11002
11003 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11004
11005         Prepare for supporting FreeBSD 10.
11006         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11007         match FreeBSD 10.0.
11008
11009 2011-01-27  Bruno Haible  <bruno@clisp.org>
11010
11011         vma-iter, get-rusage-as: Add OpenBSD support.
11012         * modules/vma-iter (configure.ac): Test for mquery.
11013         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11014         * lib/vma-iter.c: Include <sys/mman.h>.
11015         (vma_iterate): Add an implementation based on mquery().
11016         * lib/resource-ext.h (get_rusage_as): Update comments.
11017         * lib/get-rusage-as.c: Likewise.
11018         * lib/get-rusage-data.c: Likewise.
11019
11020 2011-01-26  Karl Berry  <karl@gnu.org>
11021
11022         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11023         variables to make it easier to override the makeinfo program used.
11024
11025 2011-01-26  Eric Blake  <eblake@redhat.com>
11026
11027         fcntl: work around Haiku F_DUPFD bugs
11028         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11029         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11030         cloexec bit on duplication.
11031         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11032
11033 2011-01-26  Bruno Haible  <bruno@clisp.org>
11034
11035         Enable memory leak tests on AIX.
11036         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11037         * tests/test-fprintf-posix3.c (main): Likewise.
11038
11039 2011-01-26  Bruno Haible  <bruno@clisp.org>
11040
11041         Tests for module 'get-rusage-data'.
11042         * modules/get-rusage-data-tests: New file.
11043         * tests/test-get-rusage-data.c: New file.
11044
11045         New module 'get-rusage-data'.
11046         * lib/resource-ext.h (get_rusage_data): New declaration.
11047         * lib/get-rusage-data.c: New file.
11048         * modules/get-rusage-data: New file.
11049
11050 2011-01-25  Bruno Haible  <bruno@clisp.org>
11051
11052         get-rusage-as: Allow for easier testing.
11053         * lib/resource-ext.h (get_rusage_as): Add comment.
11054         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11055         (main): New function for interactive testing.
11056
11057 2011-01-25  Bruno Haible  <bruno@clisp.org>
11058
11059         vma-iter: Treat Haiku like BeOS.
11060         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11061         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11062
11063 2011-01-25  Eric Blake  <eblake@redhat.com>
11064
11065         c-stack: fix regression on cygwin when libsigsegv is present
11066         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11067
11068 2011-01-24  Bruno Haible  <bruno@clisp.org>
11069
11070         vma-iter: Avoid empty intervals.
11071         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11072         on an empty interval.
11073
11074 2011-01-24  Jim Meyering  <meyering@redhat.com>
11075
11076         u64: remove unnecessary #include
11077         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11078
11079 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11080
11081         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11082         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11083
11084 2011-01-23  Bruno Haible  <bruno@clisp.org>
11085
11086         New module 'vma-iter'.
11087         * lib/vma-iter.h: New file.
11088         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11089         * modules/vma-iter: New file.
11090         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11091         for get_rusage_as_via_iterator.
11092         (vma_iterate_callback): New function.
11093         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11094         * modules/get-rusage-as (Depends-on): Add vma-iter.
11095
11096 2011-01-23  Bruno Haible  <bruno@clisp.org>
11097
11098         uninorm: Tweak includes.
11099         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11100         Reported by Jim Meyering.
11101
11102 2011-01-23  Bruno Haible  <bruno@clisp.org>
11103
11104         get-rusage-as: Improve on NetBSD.
11105         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11106         /proc, like on FreeBSD.
11107
11108 2011-01-23  Jim Meyering  <meyering@redhat.com>
11109
11110         xreadlink.h: remove unnecessary #include
11111         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11112
11113         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11114         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11115
11116 2011-01-23  Bruno Haible  <bruno@clisp.org>
11117
11118         get-rusage-as: Fix bug.
11119         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11120         original limit when aborting the first loop.
11121
11122 2011-01-23  Bruno Haible  <bruno@clisp.org>
11123
11124         wctype: Ensure valid C syntax.
11125         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11126         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11127
11128 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11129
11130         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11131         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11132         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11133         as they are needed only for configure's test case.
11134         This removes two unnecessary symbols from config.h.
11135
11136         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11137         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11138         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11139         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11140         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11141         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11142         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11143         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11144         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11145         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11146         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11147         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11148         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11149         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11150         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11151         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11152         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11153         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11154
11155 2011-01-21  Eric Blake  <eblake@redhat.com>
11156
11157         maintainer-makefile: work with older git for submodule check
11158         * top/maint.mk (public-submodule-commit): Rewrite to avoid
11159         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
11160         Reported by Matthias Bolte.
11161
11162         bootstrap: minor portability fixes
11163         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
11164         (usage): Omit leading capital and trailing . on help phrases, per
11165         GNU Coding Standards.
11166         (check_versions, top level): Prefix messages with script name.
11167
11168 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
11169
11170         bootstrap: support --no-git option
11171         * build-aux/bootstrap: Add --no-git option, to be used when
11172         --gnulib-srcdir points to the exact desired checkout.
11173
11174 2011-01-21  Eric Blake  <eblake@redhat.com>
11175
11176         strerror_r-posix: work with glibc 2.13
11177         * lib/strerror_r.c (strerror_r): Fix return type.
11178
11179 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11180             Bruno Haible  <bruno@clisp.org>
11181
11182         uN_strstr: New unit tests.
11183         * modules/unistr/u8-strstr-tests: New file.
11184         * modules/unistr/u16-strstr-tests: New file.
11185         * modules/unistr/u32-strstr-tests: New file.
11186         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
11187         * tests/unistr/test-u8-strstr.c: New file.
11188         * tests/unistr/test-u16-strstr.c: New file.
11189         * tests/unistr/test-u32-strstr.c: New file.
11190
11191 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11192             Bruno Haible  <bruno@clisp.org>
11193
11194         Make uN_strstr functions O(n) worst-case.
11195         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
11196         16-bit and 32-bit unit cases, use the unibyte algorithm from
11197         lib/mbsstr.c.
11198         * lib/unistr/u8-strstr.c: Include <string.h>.
11199         (UNIT_IS_UINT8_T): New macro.
11200         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
11201         (U_STRLEN, U_STRNLEN): New macros.
11202         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
11203         (U_STRLEN, U_STRNLEN): New macros.
11204         * modules/unistr/u8-strstr (Depends-on): Add strstr.
11205         (configure.ac): Update required libunistring version.
11206         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
11207         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
11208         malloca.
11209         (configure.ac): Update required libunistring version.
11210         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
11211         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
11212         malloca.
11213         (configure.ac): Update required libunistring version.
11214
11215 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11216             Bruno Haible  <bruno@clisp.org>
11217
11218         Prepare for faster uN_strstr functions.
11219         * lib/str-kmp.h: Support definable UNITs.
11220         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
11221         needle_len argument.
11222         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
11223         * lib/mbscasestr.c (mbscasestr): Likewise.
11224
11225 2011-01-21  Pádraig Brady <P@draigBrady.com>
11226
11227         malloca-tests: make faster by unsetting MALLOC_PERTURB_
11228         * tests/test-malloca.c (main): Unset the environment variable
11229         to greatly speed up the test.
11230         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
11231         * modules/malloca-tests: Depend on unsetenv.
11232
11233 2011-01-21  Pádraig Brady <P@draigBrady.com>
11234
11235         ignore-value: remove stdint dependency
11236         * lib/ignore-value.h: Remove <stdint.h>
11237         * modules/ignore-value: Remove stdint dependency.
11238
11239 2011-01-21  Jim Meyering  <meyering@redhat.com>
11240
11241         maint.mk: adjust variable name to be consistent with other gl_ vars
11242         * top/maint.mk (gl_public_submodule_commit): Rename the variable
11243         to be lower case.
11244
11245 2011-01-20  Jim Meyering  <meyering@redhat.com>
11246
11247         maint.mk: make "check" depend on public-submodule-commit by default
11248         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
11249
11250 2011-01-20  Bruno Haible  <bruno@clisp.org>
11251
11252         mbfile, mbiter: Complete change from 2008-12-21.
11253         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
11254         * m4/mbiter.m4 (gl_MBITER): Likewise.
11255
11256 2011-01-20  Jim Meyering  <meyering@redhat.com>
11257
11258         init.sh: insert space between each function name and "()"
11259         * tests/init.sh: Make it a little easier to see that a function's
11260         name is "warn_", and not "warn" when looking at the first part of
11261         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
11262
11263 2011-01-20  Jim Meyering  <meyering@redhat.com>
11264
11265         mountlist: clean up code formatting
11266         * lib/mountlist.c (read_file_system_list): Split a long line,
11267         correct bracing style, use NULL in place of "(struct statfs *)0",
11268         don't parenthesize return value, add spaces around "=" and after
11269         ";-in-for-stmt".
11270
11271 2011-01-14  Markus Duft <mduft@gentoo.org>
11272
11273         mountlist: add support for Interix
11274         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11275         Apply statvfs to all entries of /dev/fs.
11276         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11277         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11278
11279 2011-01-20  Jim Meyering  <meyering@redhat.com>
11280
11281         maint.mk: improve the public-submodule-commit rule
11282         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11283         to suppress printing of its commands... unless V=1.
11284         Add git submodule's --quiet option to suppress printing of e.g.,
11285         "Entering gnulib" output.
11286         "cd" into $(srcdir) before running git submodule.
11287
11288 2011-01-20  Bruno Haible  <bruno@clisp.org>
11289
11290         include_next: Fix bug introduced on 2011-01-18.
11291         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11292         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11293         ac_cv_header_... variable if the second argument is not 'check'.
11294         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11295         gl_NEXT_HEADERS_INTERNAL.
11296
11297 2011-01-20  Bruno Haible  <bruno@clisp.org>
11298
11299         Allow the user to avoid the GNULIB_TEST_* macros.
11300         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11301         Suggested by Paul Eggert.
11302
11303 2011-01-14  Jim Meyering  <meyering@redhat.com>
11304
11305         bootstrap: avoid failure when there is no .gitmodules file
11306         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11307         has been assigned to, even when its value is the empty string.
11308         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
11309         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
11310         Reported by John W. Eaton <jwe@gnu.org>.
11311
11312 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11313
11314         assume <ctype.h>, ..., <time.h> exist
11315         For years gnulib has been assuming the existence of the headers
11316         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
11317         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
11318         them, since they don't appear to be needed.
11319         * README (Portability guidelines): Document this.
11320         * lib/flock.c: Assume <fcntl.h> exists.
11321         * lib/regex_internal.h: Assume <locale.h> exists.
11322         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
11323         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
11324         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
11325         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
11326         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
11327         * m4/regex.m4 (gl_REGEX): Likewise.
11328         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
11329         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
11330         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
11331         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
11332         * tests/test-argp.c: Likewise.
11333         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
11334
11335         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
11336         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
11337         AA_APPLE_UNIVERSAL_BUILD.  See
11338         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
11339         * NEWS: Document this.
11340
11341 2011-01-19  Eric Blake  <eblake@redhat.com>
11342
11343         c-stack: assume stack overflow if SA_SIGINFO unsupported
11344         * lib/c-stack.c (SIGACTION_WORKS): Rename...
11345         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
11346         sigaction will work.
11347         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
11348         behavior match Linux.
11349         * tests/test-c-stack.c (main): Prefer NULL for pointers.
11350
11351         stdbool-tests: accomodate Haiku
11352         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
11353
11354         binary-io: fix O_TEXT on Haiku
11355         * modules/binary-io (Depends-on): Add fcntl-h.
11356         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
11357         than blindly undefining O_TEXT.
11358         Reported by Scott McCreary.
11359
11360 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11361
11362         include_next: do not check for standard headers like stddef.h
11363
11364         I found this problem when modifying Emacs to use gnulib.
11365         I noticed that it added HAVE_STDDEF_H to config.h, even though
11366         gnulib always assumes <stddef.h> exists as per README and this
11367         symbol is unnecessary.
11368         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
11369         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
11370         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
11371         faster for headers like stddef.h that are known to exist.
11372         (gl_CHECK_NEXT_HEADERS): Use it.
11373         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
11374         rather than gl_CHECK_NEXT_HEADERS.
11375         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
11376         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
11377
11378 2011-01-18  Eric Blake  <eblake@redhat.com>
11379
11380         ansi-c++-opt: skip C++ dependency style if C++ is unused
11381         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
11382         tests when we know C++ compilation is not desired.
11383         Reported by Scott McCreary.
11384
11385 2011-01-18  Bruno Haible  <bruno@clisp.org>
11386
11387         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
11388         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
11389         (main): Perform test also when getrlimit and setrlimit don't exist or
11390         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
11391         limiting the address space size using setrlimit, compare the address
11392         space size before and after the the test.
11393         * tests/test-dprintf-posix2.c: Likewise.
11394         * tests/test-fprintf-posix3.sh: Update skip messages.
11395         * tests/test-dprintf-posix2.sh: Likewise.
11396         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
11397         * modules/dprintf-posix-tests (Depends-on): Likewise.
11398         Reported by Bruce Korb <bkorb@gnu.org> and
11399         Gary V. Vaughan <gary@gnu.org>.
11400
11401 2011-01-18  Bruno Haible  <bruno@clisp.org>
11402
11403         get-rusage-as: Improvement for Cygwin.
11404         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
11405         areas that are merely reserved.
11406
11407 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11408
11409         strftime: remove dependencies on multibyte modules
11410
11411         strftime depended on mbrlen, mbsinit, and wchar, but these modules
11412         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
11413         only if __osf__ is defined, and I suspect OSF doesn't need these
11414         other modules.  If my guess is wrong, we'll need to come up with a
11415         variant of strftime that doesn't need the multibyte modules.
11416
11417         I discovered this problem when attempting modify Emacs to use the
11418         strftime module.  With the previous gnulib, this caused Emacs to
11419         need 31 new files, ranging from lib/config.charset to
11420         m4/wint_t.m4.  This was overkill and I expect would be offputting
11421         to the Emacs maintainers.  After this change, only 6 new files are
11422         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
11423         stdbool.m4, and tm_gmtoff.m4.
11424
11425         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
11426         Suggested by Bruno Haible in
11427         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
11428         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
11429         and do not check for wchar.h.
11430         * modules/strftime (Files): Remove m4/mbstate_t.m4.
11431         (Depends-on): Remove mbrlen, mbsinit, wchar.
11432
11433 2011-01-18  Bruno Haible  <bruno@clisp.org>
11434
11435         Tests for module 'get-rusage-as'.
11436         * modules/get-rusage-as-tests: New file.
11437         * tests/test-get-rusage-as.c: New file.
11438
11439         New module 'get-rusage-as'.
11440         * modules/get-rusage-as: New file.
11441         * lib/resource-ext.h: New file.
11442         * lib/get-rusage-as.c: New file.
11443
11444 2011-01-17  Eric Blake  <eblake@redhat.com>
11445
11446         sigaction: relax license from LGPLv3+ to LGPLv2+
11447         * modules/sigaction (License): Relax to LGPLv2+.
11448
11449 2011-01-14  Bruno Haible  <bruno@clisp.org>
11450
11451         filemode: Make function declarations usable in C++ mode.
11452         * lib/filemode.h: Enclose function declarations in extern "C" block.
11453         Reported by John W. Eaton <jwe@gnu.org>.
11454
11455 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
11456
11457         save-cwd: no longer include "xgetcwd.h"
11458         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
11459         This avoids a compilation failure in projects that use save-cwd
11460         without also using the xgetcwd module.
11461
11462 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11463
11464         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
11465         This is so that a program like Emacs, which needs only dtoastr,
11466         does not have to bother with distributing and compiling ftoastr
11467         and ldtoastr.
11468         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
11469         * modules/dtoastr, modules/ldtoastr: New files.
11470         * modules/ftoastr: Now works just for 'float'.
11471         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
11472         (Makefile.am): Remove ftoastr.h (not needed and no effect),
11473         dtoastr.c, ldtoastr.c.
11474
11475 2011-01-11  Jim Meyering  <meyering@redhat.com>
11476
11477         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
11478         There is no need to work around the lack of the fchdir function,
11479         since gnulib can now provide a replacement when required.
11480         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
11481         * modules/save-cwd (Depends-on): Add fchdir.
11482
11483 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11484
11485         openat, save-cwd: avoid xmalloc
11486
11487         This removes a direct (but undocumented) dependency of openat on
11488         xalloc, along with an indirect dependency via save-cwd.  It also
11489         removes a dependency of save-cwd on xgetcwd, and thereby
11490         indirectly on xalloc.  This change causes the openat substitute
11491         to fall back on save_cwd when memory is tight, and for save_cwd to
11492         fail instead of dying when memory is tight, but that's good enough.
11493         Problem and initial idea for fix reported by Bastien Roucaries in
11494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
11495
11496         * lib/openat-proc.c: Include stdlib.h (for malloc), not
11497         xalloc.h (for xmalloc).
11498         (openat_proc_name): Use malloc, not xmalloc.
11499         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
11500         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
11501
11502         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
11503         This avoids heap allocation for file names whose lengths are in
11504         the range 512..1023, with the upper bound increasing to at most
11505         4031 depending on the platform's PATH_MAX.  (We do not want
11506         pathmax.h here as it might supply a non-constant PATH_MAX.)
11507         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
11508         Perhaps they should be moved to malloca.h?
11509         (OPENAT_BUFFER_SIZE): Use them.
11510
11511 2011-01-10  Bruno Haible  <bruno@clisp.org>
11512
11513         doc: Update users.txt.
11514         * users.txt: Add recutils.
11515
11516 2011-01-09  Karl Berry  <karl@gnu.org>
11517
11518         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
11519
11520         * doc/configmake.texi: New file.
11521         * doc/gnulib.texi: Include it.
11522         * modules/configmake: Move documentation from here.
11523
11524 2011-01-09  Bruno Haible  <bruno@clisp.org>
11525
11526         Update to Unicode 6.0.0.
11527         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
11528         (get_lbp): Update for Unicode 6.0.0.
11529         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
11530         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
11531         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
11532         U+11001, U+11038..U+11046. Remove U+06DE.
11533         (uc_width): Fix bounds of planes.
11534         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11535         lib/uniwidth/width.c.
11536         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
11537         trailing whitespace removed.
11538         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
11539         without comments, but with the original copyright notice.
11540         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
11541         * lib/unicase/ignorable.h: Likewise.
11542         * lib/unicase/tocasefold.h: Likewise.
11543         * lib/unicase/tolower.h: Likewise.
11544         * lib/unicase/totitle.h: Likewise.
11545         * lib/unicase/toupper.h: Likewise.
11546         * lib/unictype/bidi_of.h: Likewise.
11547         * lib/unictype/blocks.h: Likewise.
11548         * lib/unictype/categ_C.h: Likewise.
11549         * lib/unictype/categ_Cn.h: Likewise.
11550         * lib/unictype/categ_L.h: Likewise.
11551         * lib/unictype/categ_Ll.h: Likewise.
11552         * lib/unictype/categ_Lm.h: Likewise.
11553         * lib/unictype/categ_Lo.h: Likewise.
11554         * lib/unictype/categ_Lu.h: Likewise.
11555         * lib/unictype/categ_M.h: Likewise.
11556         * lib/unictype/categ_Mc.h: Likewise.
11557         * lib/unictype/categ_Me.h: Likewise.
11558         * lib/unictype/categ_Mn.h: Likewise.
11559         * lib/unictype/categ_N.h: Likewise.
11560         * lib/unictype/categ_Nd.h: Likewise.
11561         * lib/unictype/categ_No.h: Likewise.
11562         * lib/unictype/categ_P.h: Likewise.
11563         * lib/unictype/categ_Po.h: Likewise.
11564         * lib/unictype/categ_S.h: Likewise.
11565         * lib/unictype/categ_Sc.h: Likewise.
11566         * lib/unictype/categ_Sk.h: Likewise.
11567         * lib/unictype/categ_Sm.h: Likewise.
11568         * lib/unictype/categ_So.h: Likewise.
11569         * lib/unictype/categ_of.h: Likewise.
11570         * lib/unictype/combining.h: Likewise.
11571         * lib/unictype/ctype_alnum.h: Likewise.
11572         * lib/unictype/ctype_alpha.h: Likewise.
11573         * lib/unictype/ctype_graph.h: Likewise.
11574         * lib/unictype/ctype_lower.h: Likewise.
11575         * lib/unictype/ctype_print.h: Likewise.
11576         * lib/unictype/ctype_punct.h: Likewise.
11577         * lib/unictype/ctype_upper.h: Likewise.
11578         * lib/unictype/decdigit.h: Likewise.
11579         * lib/unictype/digit.h: Likewise.
11580         * lib/unictype/numeric.h: Likewise.
11581         * lib/unictype/pr_alphabetic.h: Likewise.
11582         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11583         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11584         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11585         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11586         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11587         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11588         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11589         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11590         * lib/unictype/pr_case_ignorable.h: Likewise.
11591         * lib/unictype/pr_cased.h: Likewise.
11592         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
11593         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
11594         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
11595         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
11596         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
11597         * lib/unictype/pr_combining.h: Likewise.
11598         * lib/unictype/pr_composite.h: Likewise.
11599         * lib/unictype/pr_currency_symbol.h: Likewise.
11600         * lib/unictype/pr_decimal_digit.h: Likewise.
11601         * lib/unictype/pr_deprecated.h: Likewise.
11602         * lib/unictype/pr_format_control.h: Likewise.
11603         * lib/unictype/pr_grapheme_base.h: Likewise.
11604         * lib/unictype/pr_grapheme_extend.h: Likewise.
11605         * lib/unictype/pr_grapheme_link.h: Likewise.
11606         * lib/unictype/pr_id_continue.h: Likewise.
11607         * lib/unictype/pr_id_start.h: Likewise.
11608         * lib/unictype/pr_ideographic.h: Likewise.
11609         * lib/unictype/pr_lowercase.h: Likewise.
11610         * lib/unictype/pr_math.h: Likewise.
11611         * lib/unictype/pr_numeric.h: Likewise.
11612         * lib/unictype/pr_other_alphabetic.h: Likewise.
11613         * lib/unictype/pr_other_id_continue.h: Likewise.
11614         * lib/unictype/pr_other_math.h: Likewise.
11615         * lib/unictype/pr_punctuation.h: Likewise.
11616         * lib/unictype/pr_sentence_terminal.h: Likewise.
11617         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11618         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11619         * lib/unictype/pr_unified_ideograph.h: Likewise.
11620         * lib/unictype/pr_uppercase.h: Likewise.
11621         * lib/unictype/pr_xid_continue.h: Likewise.
11622         * lib/unictype/pr_xid_start.h: Likewise.
11623         * lib/unictype/scripts.h: Likewise.
11624         * lib/unictype/scripts_byname.gperf: Likewise.
11625         * lib/unictype/sy_java_ident.h: Likewise.
11626         * lib/unigbrk/gbrkprop.h: Likewise.
11627         * lib/unilbrk/lbrkprop1.h: Likewise.
11628         * lib/unilbrk/lbrkprop2.h: Likewise.
11629         * lib/uninorm/decomposition-table2.h: Likewise.
11630         * lib/uniwbrk/wbrkprop.h: Likewise.
11631         * tests/unicase/test-cased.c: Likewise.
11632         * tests/unicase/test-ignorable.c: Likewise.
11633         * tests/unicase/test-uc_tolower.c: Likewise.
11634         * tests/unicase/test-uc_totitle.c: Likewise.
11635         * tests/unicase/test-uc_toupper.c: Likewise.
11636         * tests/unictype/test-categ_C.c: Likewise.
11637         * tests/unictype/test-categ_Cn.c: Likewise.
11638         * tests/unictype/test-categ_L.c: Likewise.
11639         * tests/unictype/test-categ_Ll.c: Likewise.
11640         * tests/unictype/test-categ_Lm.c: Likewise.
11641         * tests/unictype/test-categ_Lo.c: Likewise.
11642         * tests/unictype/test-categ_Lu.c: Likewise.
11643         * tests/unictype/test-categ_M.c: Likewise.
11644         * tests/unictype/test-categ_Mc.c: Likewise.
11645         * tests/unictype/test-categ_Me.c: Likewise.
11646         * tests/unictype/test-categ_Mn.c: Likewise.
11647         * tests/unictype/test-categ_N.c: Likewise.
11648         * tests/unictype/test-categ_Nd.c: Likewise.
11649         * tests/unictype/test-categ_No.c: Likewise.
11650         * tests/unictype/test-categ_P.c: Likewise.
11651         * tests/unictype/test-categ_Po.c: Likewise.
11652         * tests/unictype/test-categ_S.c: Likewise.
11653         * tests/unictype/test-categ_Sc.c: Likewise.
11654         * tests/unictype/test-categ_Sk.c: Likewise.
11655         * tests/unictype/test-categ_Sm.c: Likewise.
11656         * tests/unictype/test-categ_So.c: Likewise.
11657         * tests/unictype/test-ctype_alnum.c: Likewise.
11658         * tests/unictype/test-ctype_alpha.c: Likewise.
11659         * tests/unictype/test-ctype_graph.c: Likewise.
11660         * tests/unictype/test-ctype_lower.c: Likewise.
11661         * tests/unictype/test-ctype_print.c: Likewise.
11662         * tests/unictype/test-ctype_punct.c: Likewise.
11663         * tests/unictype/test-ctype_upper.c: Likewise.
11664         * tests/unictype/test-decdigit.h: Likewise.
11665         * tests/unictype/test-digit.h: Likewise.
11666         * tests/unictype/test-numeric.h: Likewise.
11667         * tests/unictype/test-pr_alphabetic.c: Likewise.
11668         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11669         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
11670         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
11671         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11672         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11673         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11674         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11675         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11676         * tests/unictype/test-pr_case_ignorable.c: Likewise.
11677         * tests/unictype/test-pr_cased.c: Likewise.
11678         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
11679         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
11680         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
11681         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
11682         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
11683         * tests/unictype/test-pr_combining.c: Likewise.
11684         * tests/unictype/test-pr_composite.c: Likewise.
11685         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11686         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11687         * tests/unictype/test-pr_deprecated.c: Likewise.
11688         * tests/unictype/test-pr_format_control.c: Likewise.
11689         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11690         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11691         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11692         * tests/unictype/test-pr_id_continue.c: Likewise.
11693         * tests/unictype/test-pr_id_start.c: Likewise.
11694         * tests/unictype/test-pr_ideographic.c: Likewise.
11695         * tests/unictype/test-pr_lowercase.c: Likewise.
11696         * tests/unictype/test-pr_math.c: Likewise.
11697         * tests/unictype/test-pr_numeric.c: Likewise.
11698         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11699         * tests/unictype/test-pr_other_id_continue.c: Likewise.
11700         * tests/unictype/test-pr_other_math.c: Likewise.
11701         * tests/unictype/test-pr_punctuation.c: Likewise.
11702         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11703         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11704         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11705         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11706         * tests/unictype/test-pr_uppercase.c: Likewise.
11707         * tests/unictype/test-pr_xid_continue.c: Likewise.
11708         * tests/unictype/test-pr_xid_start.c: Likewise.
11709         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
11710         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
11711         changes.
11712         * lib/unictype/categ_Cc.h: Likewise.
11713         * lib/unictype/categ_Cf.h: Likewise.
11714         * lib/unictype/categ_Co.h: Likewise.
11715         * lib/unictype/categ_Cs.h: Likewise.
11716         * lib/unictype/categ_Lt.h: Likewise.
11717         * lib/unictype/categ_Nl.h: Likewise.
11718         * lib/unictype/categ_Pc.h: Likewise.
11719         * lib/unictype/categ_Pd.h: Likewise.
11720         * lib/unictype/categ_Pe.h: Likewise.
11721         * lib/unictype/categ_Pf.h: Likewise.
11722         * lib/unictype/categ_Pi.h: Likewise.
11723         * lib/unictype/categ_Ps.h: Likewise.
11724         * lib/unictype/categ_Z.h: Likewise.
11725         * lib/unictype/categ_Zl.h: Likewise.
11726         * lib/unictype/categ_Zp.h: Likewise.
11727         * lib/unictype/categ_Zs.h: Likewise.
11728         * lib/unictype/ctype_blank.h: Likewise.
11729         * lib/unictype/ctype_cntrl.h: Likewise.
11730         * lib/unictype/ctype_digit.h: Likewise.
11731         * lib/unictype/ctype_space.h: Likewise.
11732         * lib/unictype/ctype_xdigit.h: Likewise.
11733         * lib/unictype/mirror.h: Likewise.
11734         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11735         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11736         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11737         * lib/unictype/pr_bidi_control.h: Likewise.
11738         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11739         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11740         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11741         * lib/unictype/pr_bidi_pdf.h: Likewise.
11742         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11743         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11744         * lib/unictype/pr_dash.h: Likewise.
11745         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11746         * lib/unictype/pr_diacritic.h: Likewise.
11747         * lib/unictype/pr_extender.h: Likewise.
11748         * lib/unictype/pr_hex_digit.h: Likewise.
11749         * lib/unictype/pr_hyphen.h: Likewise.
11750         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11751         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11752         * lib/unictype/pr_ignorable_control.h: Likewise.
11753         * lib/unictype/pr_iso_control.h: Likewise.
11754         * lib/unictype/pr_join_control.h: Likewise.
11755         * lib/unictype/pr_left_of_pair.h: Likewise.
11756         * lib/unictype/pr_line_separator.h: Likewise.
11757         * lib/unictype/pr_logical_order_exception.h: Likewise.
11758         * lib/unictype/pr_non_break.h: Likewise.
11759         * lib/unictype/pr_not_a_character.h: Likewise.
11760         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
11761         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
11762         * lib/unictype/pr_other_id_start.h: Likewise.
11763         * lib/unictype/pr_other_lowercase.h: Likewise.
11764         * lib/unictype/pr_other_uppercase.h: Likewise.
11765         * lib/unictype/pr_paired_punctuation.h: Likewise.
11766         * lib/unictype/pr_paragraph_separator.h: Likewise.
11767         * lib/unictype/pr_pattern_syntax.h: Likewise.
11768         * lib/unictype/pr_pattern_white_space.h: Likewise.
11769         * lib/unictype/pr_private_use.h: Likewise.
11770         * lib/unictype/pr_quotation_mark.h: Likewise.
11771         * lib/unictype/pr_radical.h: Likewise.
11772         * lib/unictype/pr_soft_dotted.h: Likewise.
11773         * lib/unictype/pr_space.h: Likewise.
11774         * lib/unictype/pr_titlecase.h: Likewise.
11775         * lib/unictype/pr_variation_selector.h: Likewise.
11776         * lib/unictype/pr_white_space.h: Likewise.
11777         * lib/unictype/pr_zero_width.h: Likewise.
11778         * lib/unictype/sy_c_ident.h: Likewise.
11779         * lib/unictype/sy_c_whitespace.h: Likewise.
11780         * lib/unictype/sy_java_whitespace.h: Likewise.
11781         * lib/uninorm/composition-table.gperf: Likewise.
11782         * lib/uninorm/decomposition-table1.h: Likewise.
11783         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
11784         LB8.
11785         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
11786         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
11787         * modules/unictype/*: Bump version number of expected libunistring
11788         version.
11789
11790 2011-01-09  Bruno Haible  <bruno@clisp.org>
11791
11792         Update to Unicode 5.2.0.
11793         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
11794         trailing whitespace removed.
11795
11796 2011-01-09  Bruno Haible  <bruno@clisp.org>
11797
11798         New Unicode character properties, from Unicode 5.2.0.
11799         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
11800         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
11801         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
11802         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
11803         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
11804         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
11805         uc_is_property_cased, uc_is_property_case_ignorable,
11806         uc_is_property_changes_when_lowercased,
11807         uc_is_property_changes_when_uppercased,
11808         uc_is_property_changes_when_titlecased,
11809         uc_is_property_changes_when_casefolded,
11810         uc_is_property_changes_when_casemapped): New declarations.
11811         * lib/unictype/pr_byname.gperf: Add the new properties.
11812         * modules/unictype/property-byname (Depends-on): Depend on the new
11813         properties modules.
11814         * modules/unictype/property-all (Depends-on): Likewise.
11815         * MODULES.html.sh (Unicode string functions): Add
11816         unictype/property-case-ignorable, unictype/property-cased,
11817         unictype/property-changes-when-casefolded,
11818         unictype/property-changes-when-casemapped,
11819         unictype/property-changes-when-lowercased,
11820         unictype/property-changes-when-titlecased,
11821         unictype/property-changes-when-uppercased.
11822
11823         New module 'unictype/property-changes-when-casemapped'.
11824         * modules/unictype/property-changes-when-casemapped: New file.
11825         * lib/unictype/pr_changes_when_casemapped.c: New file.
11826         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
11827         generated by gen-uni-tables.
11828         * modules/unictype/property-changes-when-casemapped-tests: New file.
11829         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
11830         automatically generated by gen-uni-tables.
11831
11832         New module 'unictype/property-changes-when-casefolded'.
11833         * modules/unictype/property-changes-when-casefolded: New file.
11834         * lib/unictype/pr_changes_when_casefolded.c: New file.
11835         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
11836         generated by gen-uni-tables.
11837         * modules/unictype/property-changes-when-casefolded-tests: New file.
11838         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
11839         automatically generated by gen-uni-tables.
11840
11841         New module 'unictype/property-changes-when-titlecased'.
11842         * modules/unictype/property-changes-when-titlecased: New file.
11843         * lib/unictype/pr_changes_when_titlecased.c: New file.
11844         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
11845         generated by gen-uni-tables.
11846         * modules/unictype/property-changes-when-titlecased-tests: New file.
11847         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
11848         automatically generated by gen-uni-tables.
11849
11850         New module 'unictype/property-changes-when-uppercased'.
11851         * modules/unictype/property-changes-when-uppercased: New file.
11852         * lib/unictype/pr_changes_when_uppercased.c: New file.
11853         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
11854         generated by gen-uni-tables.
11855         * modules/unictype/property-changes-when-uppercased-tests: New file.
11856         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
11857         automatically generated by gen-uni-tables.
11858
11859         New module 'unictype/property-changes-when-lowercased'.
11860         * modules/unictype/property-changes-when-lowercased: New file.
11861         * lib/unictype/pr_changes_when_lowercased.c: New file.
11862         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
11863         generated by gen-uni-tables.
11864         * modules/unictype/property-changes-when-lowercased-tests: New file.
11865         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
11866         automatically generated by gen-uni-tables.
11867
11868         New module 'unictype/property-case-ignorable'.
11869         * modules/unictype/property-case-ignorable: New file.
11870         * lib/unictype/pr_case_ignorable.c: New file.
11871         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
11872         by gen-uni-tables.
11873         * modules/unictype/property-case-ignorable-tests: New file.
11874         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
11875         generated by gen-uni-tables.
11876
11877         New module 'unictype/property-cased'.
11878         * modules/unictype/property-cased: New file.
11879         * lib/unictype/pr_cased.c: New file.
11880         * lib/unictype/pr_cased.h: New file, automatically generated by
11881         gen-uni-tables.
11882         * modules/unictype/property-cased-tests: New file.
11883         * tests/unictype/test-pr_cased.c: New file, automatically generated by
11884         gen-uni-tables.
11885
11886 2011-01-09  Bruno Haible  <bruno@clisp.org>
11887
11888         Update to Unicode 5.2.0.
11889         * lib/gen-uni-tables.c (output_predicate, output_category,
11890         output_combclass, output_bidi_category, output_decimal_digit_test,
11891         output_decimal_digit, output_digit_test, output_digit,
11892         output_numeric_test, output_numeric, output_mirror, output_scripts,
11893         output_scripts_byname, output_blocks, output_ident_category): Fix
11894         comment header.
11895         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
11896         get_wbp.
11897         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
11898         items.
11899         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
11900         Changes_When_Lowercased, Changes_When_Uppercased,
11901         Changes_When_Titlecased, Changes_When_Casefolded,
11902         Changes_When_Casemapped.
11903         (is_property_alphabetic, is_property_default_ignorable_code_point):
11904         Update for Unicode 5.2.0.
11905         (is_property_cased, is_property_case_ignorable,
11906         is_property_changes_when_lowercased,
11907         is_property_changes_when_uppercased,
11908         is_property_changes_when_titlecased,
11909         is_property_changes_when_casefolded,
11910         is_property_changes_when_casemapped): New functions.
11911         (output_properties): Output also the properties cased, case_ignorable,
11912         changes_when_lowercased, changes_when_uppercased,
11913         changes_when_titlecased, changes_when_casefolded,
11914         changes_when_casemapped.
11915         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
11916         Unicode TR#11 revision 17 -> 19.
11917         (LBP_CP): New enumeration value.
11918         (LBP_*): Adjust values accordingly.
11919         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11920         TR#14 revision 22 -> 24.
11921         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
11922         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
11923         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11924         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
11925         is_WBP_MIDLETTER.
11926         (output_composition_tables): Allow for 24 bits instead of 16 bits in
11927         the code1 and code2 of each composition rule.
11928         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
11929         * lib/unicase/ignorable.h: Likewise.
11930         * lib/unicase/tocasefold.h: Likewise.
11931         * lib/unicase/tolower.h: Likewise.
11932         * lib/unicase/totitle.h: Likewise.
11933         * lib/unicase/toupper.h: Likewise.
11934         * lib/unictype/bidi_of.h: Likewise.
11935         * lib/unictype/blocks.h: Likewise.
11936         * lib/unictype/categ_C.h: Likewise.
11937         * lib/unictype/categ_Cf.h: Likewise.
11938         * lib/unictype/categ_Cn.h: Likewise.
11939         * lib/unictype/categ_L.h: Likewise.
11940         * lib/unictype/categ_Ll.h: Likewise.
11941         * lib/unictype/categ_Lm.h: Likewise.
11942         * lib/unictype/categ_Lo.h: Likewise.
11943         * lib/unictype/categ_Lu.h: Likewise.
11944         * lib/unictype/categ_M.h: Likewise.
11945         * lib/unictype/categ_Mc.h: Likewise.
11946         * lib/unictype/categ_Mn.h: Likewise.
11947         * lib/unictype/categ_N.h: Likewise.
11948         * lib/unictype/categ_Nd.h: Likewise.
11949         * lib/unictype/categ_Nl.h: Likewise.
11950         * lib/unictype/categ_No.h: Likewise.
11951         * lib/unictype/categ_P.h: Likewise.
11952         * lib/unictype/categ_Pd.h: Likewise.
11953         * lib/unictype/categ_Po.h: Likewise.
11954         * lib/unictype/categ_S.h: Likewise.
11955         * lib/unictype/categ_Sc.h: Likewise.
11956         * lib/unictype/categ_So.h: Likewise.
11957         * lib/unictype/categ_of.h: Likewise.
11958         * lib/unictype/combining.h: Likewise.
11959         * lib/unictype/ctype_alnum.h: Likewise.
11960         * lib/unictype/ctype_alpha.h: Likewise.
11961         * lib/unictype/ctype_graph.h: Likewise.
11962         * lib/unictype/ctype_lower.h: Likewise.
11963         * lib/unictype/ctype_print.h: Likewise.
11964         * lib/unictype/ctype_punct.h: Likewise.
11965         * lib/unictype/ctype_upper.h: Likewise.
11966         * lib/unictype/decdigit.h: Likewise.
11967         * lib/unictype/digit.h: Likewise.
11968         * lib/unictype/numeric.h: Likewise.
11969         * lib/unictype/pr_alphabetic.h: Likewise.
11970         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11971         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11972         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11973         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11974         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11975         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11976         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11977         * lib/unictype/pr_combining.h: Likewise.
11978         * lib/unictype/pr_composite.h: Likewise.
11979         * lib/unictype/pr_currency_symbol.h: Likewise.
11980         * lib/unictype/pr_dash.h: Likewise.
11981         * lib/unictype/pr_decimal_digit.h: Likewise.
11982         * lib/unictype/pr_deprecated.h: Likewise.
11983         * lib/unictype/pr_diacritic.h: Likewise.
11984         * lib/unictype/pr_extender.h: Likewise.
11985         * lib/unictype/pr_grapheme_base.h: Likewise.
11986         * lib/unictype/pr_grapheme_extend.h: Likewise.
11987         * lib/unictype/pr_grapheme_link.h: Likewise.
11988         * lib/unictype/pr_id_continue.h: Likewise.
11989         * lib/unictype/pr_id_start.h: Likewise.
11990         * lib/unictype/pr_ideographic.h: Likewise.
11991         * lib/unictype/pr_ignorable_control.h: Likewise.
11992         * lib/unictype/pr_logical_order_exception.h: Likewise.
11993         * lib/unictype/pr_lowercase.h: Likewise.
11994         * lib/unictype/pr_numeric.h: Likewise.
11995         * lib/unictype/pr_other_alphabetic.h: Likewise.
11996         * lib/unictype/pr_punctuation.h: Likewise.
11997         * lib/unictype/pr_sentence_terminal.h: Likewise.
11998         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11999         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12000         * lib/unictype/pr_unified_ideograph.h: Likewise.
12001         * lib/unictype/pr_uppercase.h: Likewise.
12002         * lib/unictype/pr_xid_continue.h: Likewise.
12003         * lib/unictype/pr_xid_start.h: Likewise.
12004         * lib/unictype/pr_zero_width.h: Likewise.
12005         * lib/unictype/scripts.h: Likewise.
12006         * lib/unictype/scripts_byname.gperf: Likewise.
12007         * lib/unictype/sy_java_ident.h: Likewise.
12008         * lib/unigbrk/gbrkprop.h: Likewise.
12009         * lib/unilbrk/lbrkprop1.h: Likewise.
12010         * lib/unilbrk/lbrkprop2.h: Likewise.
12011         * lib/unilbrk/lbrktables.h: Likewise.
12012         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12013         LBP_CP. Implement rule LB30.
12014         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12015         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12016         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12017         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12018         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12019         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12020         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12021         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12022         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12023         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12024         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12025         bits instead of 16 bits in the code1 and code2 of each composition
12026         rule.
12027         (uc_composition): Update for Unicode 5.2.0.
12028         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12029         * lib/uninorm/decomposition-table2.h: Likewise.
12030         * lib/uniwbrk/wbrkprop.h: Likewise.
12031         * tests/unicase/test-cased.c: Likewise.
12032         * tests/unicase/test-ignorable.c: Likewise.
12033         * tests/unicase/test-uc_tolower.c: Likewise.
12034         * tests/unicase/test-uc_totitle.c: Likewise.
12035         * tests/unicase/test-uc_toupper.c: Likewise.
12036         * tests/unictype/test-categ_C.c: Likewise.
12037         * tests/unictype/test-categ_Cf.c: Likewise.
12038         * tests/unictype/test-categ_Cn.c: Likewise.
12039         * tests/unictype/test-categ_L.c: Likewise.
12040         * tests/unictype/test-categ_Ll.c: Likewise.
12041         * tests/unictype/test-categ_Lm.c: Likewise.
12042         * tests/unictype/test-categ_Lo.c: Likewise.
12043         * tests/unictype/test-categ_Lu.c: Likewise.
12044         * tests/unictype/test-categ_M.c: Likewise.
12045         * tests/unictype/test-categ_Mc.c: Likewise.
12046         * tests/unictype/test-categ_Mn.c: Likewise.
12047         * tests/unictype/test-categ_N.c: Likewise.
12048         * tests/unictype/test-categ_Nd.c: Likewise.
12049         * tests/unictype/test-categ_Nl.c: Likewise.
12050         * tests/unictype/test-categ_No.c: Likewise.
12051         * tests/unictype/test-categ_P.c: Likewise.
12052         * tests/unictype/test-categ_Pd.c: Likewise.
12053         * tests/unictype/test-categ_Po.c: Likewise.
12054         * tests/unictype/test-categ_S.c: Likewise.
12055         * tests/unictype/test-categ_Sc.c: Likewise.
12056         * tests/unictype/test-categ_So.c: Likewise.
12057         * tests/unictype/test-ctype_alnum.c: Likewise.
12058         * tests/unictype/test-ctype_alpha.c: Likewise.
12059         * tests/unictype/test-ctype_graph.c: Likewise.
12060         * tests/unictype/test-ctype_lower.c: Likewise.
12061         * tests/unictype/test-ctype_print.c: Likewise.
12062         * tests/unictype/test-ctype_punct.c: Likewise.
12063         * tests/unictype/test-ctype_upper.c: Likewise.
12064         * tests/unictype/test-decdigit.h: Likewise.
12065         * tests/unictype/test-digit.h: Likewise.
12066         * tests/unictype/test-numeric.h: Likewise.
12067         * tests/unictype/test-pr_alphabetic.c: Likewise.
12068         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12069         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12070         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12071         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12072         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12073         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12074         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12075         * tests/unictype/test-pr_combining.c: Likewise.
12076         * tests/unictype/test-pr_composite.c: Likewise.
12077         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12078         * tests/unictype/test-pr_dash.c: Likewise.
12079         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12080         * tests/unictype/test-pr_deprecated.c: Likewise.
12081         * tests/unictype/test-pr_diacritic.c: Likewise.
12082         * tests/unictype/test-pr_extender.c: Likewise.
12083         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12084         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12085         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12086         * tests/unictype/test-pr_id_continue.c: Likewise.
12087         * tests/unictype/test-pr_id_start.c: Likewise.
12088         * tests/unictype/test-pr_ideographic.c: Likewise.
12089         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12090         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12091         * tests/unictype/test-pr_lowercase.c: Likewise.
12092         * tests/unictype/test-pr_numeric.c: Likewise.
12093         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12094         * tests/unictype/test-pr_punctuation.c: Likewise.
12095         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12096         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12097         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12098         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12099         * tests/unictype/test-pr_uppercase.c: Likewise.
12100         * tests/unictype/test-pr_xid_continue.c: Likewise.
12101         * tests/unictype/test-pr_xid_start.c: Likewise.
12102         * tests/unictype/test-pr_zero_width.c: Likewise.
12103         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12104         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12105         changed behaviour: line breaking is now disallowed between a letter
12106         or '=' and '('.
12107         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12108         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12109         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12110         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12111         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12112         lib/uniwidth/width.c.
12113         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12114         without comments, but with the original copyright notice.
12115         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12116         changes.
12117         * lib/unictype/categ_Cc.h: Likewise.
12118         * lib/unictype/categ_Co.h: Likewise.
12119         * lib/unictype/categ_Cs.h: Likewise.
12120         * lib/unictype/categ_Lt.h: Likewise.
12121         * lib/unictype/categ_Me.h: Likewise.
12122         * lib/unictype/categ_Pc.h: Likewise.
12123         * lib/unictype/categ_Pe.h: Likewise.
12124         * lib/unictype/categ_Pf.h: Likewise.
12125         * lib/unictype/categ_Pi.h: Likewise.
12126         * lib/unictype/categ_Ps.h: Likewise.
12127         * lib/unictype/categ_Sk.h: Likewise.
12128         * lib/unictype/categ_Sm.h: Likewise.
12129         * lib/unictype/categ_Z.h: Likewise.
12130         * lib/unictype/categ_Zl.h: Likewise.
12131         * lib/unictype/categ_Zp.h: Likewise.
12132         * lib/unictype/categ_Zs.h: Likewise.
12133         * lib/unictype/ctype_blank.h: Likewise.
12134         * lib/unictype/ctype_cntrl.h: Likewise.
12135         * lib/unictype/ctype_digit.h: Likewise.
12136         * lib/unictype/ctype_space.h: Likewise.
12137         * lib/unictype/ctype_xdigit.h: Likewise.
12138         * lib/unictype/mirror.h: Likewise.
12139         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12140         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12141         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12142         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12143         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12144         * lib/unictype/pr_bidi_control.h: Likewise.
12145         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12146         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12147         * lib/unictype/pr_bidi_pdf.h: Likewise.
12148         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12149         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12150         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12151         * lib/unictype/pr_format_control.h: Likewise.
12152         * lib/unictype/pr_hex_digit.h: Likewise.
12153         * lib/unictype/pr_hyphen.h: Likewise.
12154         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12155         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12156         * lib/unictype/pr_iso_control.h: Likewise.
12157         * lib/unictype/pr_join_control.h: Likewise.
12158         * lib/unictype/pr_left_of_pair.h: Likewise.
12159         * lib/unictype/pr_line_separator.h: Likewise.
12160         * lib/unictype/pr_math.h: Likewise.
12161         * lib/unictype/pr_non_break.h: Likewise.
12162         * lib/unictype/pr_not_a_character.h: Likewise.
12163         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12164         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12165         * lib/unictype/pr_other_id_continue.h: Likewise.
12166         * lib/unictype/pr_other_id_start.h: Likewise.
12167         * lib/unictype/pr_other_lowercase.h: Likewise.
12168         * lib/unictype/pr_other_math.h: Likewise.
12169         * lib/unictype/pr_other_uppercase.h: Likewise.
12170         * lib/unictype/pr_paired_punctuation.h: Likewise.
12171         * lib/unictype/pr_paragraph_separator.h: Likewise.
12172         * lib/unictype/pr_pattern_syntax.h: Likewise.
12173         * lib/unictype/pr_pattern_white_space.h: Likewise.
12174         * lib/unictype/pr_private_use.h: Likewise.
12175         * lib/unictype/pr_quotation_mark.h: Likewise.
12176         * lib/unictype/pr_radical.h: Likewise.
12177         * lib/unictype/pr_soft_dotted.h: Likewise.
12178         * lib/unictype/pr_space.h: Likewise.
12179         * lib/unictype/pr_titlecase.h: Likewise.
12180         * lib/unictype/pr_variation_selector.h: Likewise.
12181         * lib/unictype/pr_white_space.h: Likewise.
12182         * lib/unictype/sy_c_ident.h: Likewise.
12183         * lib/unictype/sy_c_whitespace.h: Likewise.
12184         * lib/unictype/sy_java_whitespace.h: Likewise.
12185         * modules/uni*/*: Bump version number of expected libunistring version.
12186         Reported by Simon Josefsson.
12187
12188 2011-01-09  Karl Heuer  <kwzh@gnu.org>
12189
12190         useless-if-before-free: fix typo in --help and make the internal,
12191         automatic version date update process work once again.
12192         --help output contained a NUL character instead of the
12193         backslash-zero that was intended.  Also, the "must lie within
12194         the first 8 lines" line is on line 9, and hence not getting
12195         automatically updated.
12196         * build-aux/useless-if-before-free: Fix the former by adding a
12197         backslash, and the latter by condensing the three lines of what-it-does
12198         to a single line, leaving one line of slack for the future.
12199
12200 2011-01-09  Bruno Haible  <bruno@clisp.org>
12201
12202         uniwidth/width: Fix width of U+1D173..U+1D17A.
12203         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
12204         symbolic_width, output_width_property_test): New functions.
12205         (main): Invoke output_nonspacing_property, output_width_property_test.
12206         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
12207         U+1D173..U+1D17A.
12208         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
12209         1.
12210         * modules/uniwidth/*: Bump version number of expected libunistring
12211         version.
12212         * modules/unilbrk/*: Likewise.
12213
12214 2011-01-08  Bruno Haible  <bruno@clisp.org>
12215
12216         uninorm tests: Preserve copyright of Unicode data file.
12217         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
12218         Mention modifications.
12219
12220 2011-01-08  Bruno Haible  <bruno@clisp.org>
12221
12222         gen-uni-tables: Prepare for Unicode 5.2.0.
12223         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
12224         (debug_output_lbp, output_lbp): Update.
12225
12226 2011-01-08  Bruno Haible  <bruno@clisp.org>
12227
12228         unilbrk: Clarify gen-uni-tables.c code.
12229         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
12230         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
12231         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
12232
12233 2011-01-07  Bruno Haible  <bruno@clisp.org>
12234
12235         strtod: Restore errno when successfully parsing Infinity or NaN.
12236         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
12237         restore the original errno.
12238
12239 2011-01-07  Bruno Haible  <bruno@clisp.org>
12240
12241         remove test: Avoid failure on HP-UX 11.
12242         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
12243
12244 2011-01-07  Bruno Haible  <bruno@clisp.org>
12245
12246         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
12247         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
12248         error code.
12249
12250 2011-01-07  Pádraig Brady <P@draigBrady.com>
12251
12252         ignore-value: fixup comments, and add Eric Blake
12253         as an author since he rewrote the macros.
12254         * lib/ignore-value.h (ignore_value):  State that
12255         we now support aggregates.  Also specify exactly
12256         when the GCC warn_unused_result feature was added.
12257
12258 2011-01-06  Eric Blake  <eblake@redhat.com>
12259
12260         ignore-value: support aggregate types
12261         * lib/ignore-value.h (ignore_value): Provide separate gcc
12262         definition.
12263         * modules/ignore-value-tests: New test module.
12264         * tests/test-ignore-value.c: New test.
12265
12266         maint.mk: improve sc_prohibit_strcmp regex
12267         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
12268         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
12269         definition of STRNEQ.
12270
12271         signal: work around Haiku issue with SIGBUS
12272         * lib/siglist.h: Add comment.
12273         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12274         strsignal's favoring of SIGSEGV.
12275         * tests/test-signal.c (main): Avoid test failure.
12276         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12277         Reported by Scott McCreary.
12278
12279         maint.mk: add pre-release check to ensure submodule commits are public
12280         * top/maint.mk (public-submodule-commit): New rule.
12281         (submodule-checks): New variable.
12282         (alpha beta stable): Depend on the variable.
12283
12284 2011-01-05  Pádraig Brady <P@draigBrady.com>
12285         and Jim Meyering  <meyering@redhat.com>
12286
12287         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12288         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12289         (ATTRIBUTE_DEPRECATED): Define.
12290         (_ignore_case): New function.
12291         (ignore_value): New macro, to replace the old function.
12292         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12293         * modules/ignore-value (Depends-on): Add stdint.
12294
12295 2011-01-04  Eric Blake  <eblake@redhat.com>
12296
12297         doc: regenerate INSTALL
12298         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12299         @firstparagraphindent support, now that autoconf dropped it.
12300         (INSTALL_PRELUDE): Reinstate old macro.
12301         * doc/install.texi: Resync from autoconf.
12302         * doc/INSTALL: Reflect recent autoconf update.
12303         * doc/INSTALL.ISO: Likewise.
12304         * doc/INSTALL.UTF-8: Likewise.
12305         Reported by Karl Berry.
12306
12307 2011-01-04  Bruce Korb  <address@hidden>
12308
12309         git-version-gen: avoid a sub-shell
12310         * build-aux/git-version-gen: Redirect stderr in `...` via
12311         "exec 2>...", rather than via an added sub-shell.
12312
12313 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
12314
12315         git-version-gen: use (...) rather than sh -c '...'
12316         * build-aux/git-version-gen: Rather than hard-coding a shell's name
12317         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
12318
12319 2011-01-03  Jim Meyering  <meyering@redhat.com>
12320
12321         git-version-gen: convert leading TABs to spaces
12322         * build-aux/git-version-gen: Expand leading TABs.
12323
12324         git-version-gen: handle failed "git rev-list"
12325         * build-aux/git-version-gen: Rather than leaking a "fatal" error
12326         from git and proceeding as if it had succeeded but printed no SHA1
12327         checksums, suppress the diagnostic and handle the failure.
12328         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
12329
12330         git-version-gen: include command name in one more diagnostic
12331         * build-aux/git-version-gen: When the required .tarball-version file
12332         was missing or unreadable, you might see the diagnostic from "cat",
12333         but no trace of the name of the invoking script.  Now, you still see
12334         the diagnostic from cat, but also get one from "git-version-gen: ".
12335         Inspired by a patch from Bruce Korb.
12336
12337         update-copyright: adjust test to match changed code
12338         * tests/test-update-copyright.sh: Change test's expected output
12339         to match new actual output.
12340
12341 2011-01-02  Bruno Haible  <bruno@clisp.org>
12342
12343         getlogin_r: Avoid test failure on HP-UX 11.
12344         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
12345         ERANGE when the second argument is zero.
12346         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
12347         portability problem.
12348
12349 2011-01-02  Bruce Korb  <bkorb@gnu.org>
12350
12351         * build-aux/update-copyright: doc Simon's changes
12352
12353 2011-01-02  Simon Josefsson  <simon@josefsson.org>
12354
12355         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
12356         environment variable.
12357
12358 2011-01-02  Bruno Haible  <bruno@clisp.org>
12359
12360         unigbrk: Avoid gcc warnings.
12361         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
12362         unused variable.
12363         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
12364         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
12365         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
12366         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
12367         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
12368         Change type of first argument to 'const char *'.
12369         (main): Remove unused variable.
12370         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
12371         type of first argument to 'const char *'.
12372         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
12373         Likewise.
12374         (main): Change type of variable 's'.
12375         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
12376         to 'int'.
12377
12378 2011-01-02  Bruno Haible  <bruno@clisp.org>
12379
12380         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
12381         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
12382         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
12383         bug.
12384         * lib/pwrite.c: Undo 2010-12-31 patch.
12385         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
12386
12387 2011-01-02  Bruno Haible  <bruno@clisp.org>
12388
12389         pread: Fix test whether it works.
12390         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
12391
12392 2011-01-02  Bruno Haible  <bruno@clisp.org>
12393
12394         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
12395         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
12396         ends in "6". Don't require a specific month name. Try also the locale
12397         names found on HP-UX 11 and Solaris 7.
12398
12399 2011-01-02  Bruno Haible  <bruno@clisp.org>
12400
12401         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
12402         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
12403         C linkage.
12404         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
12405
12406 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12407
12408         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
12409         for consistency, since the "cluster" term is not used elsewhere.
12410         * lib/unigbrk.in.h: Update name.
12411         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
12412         * lib/unigbrk/u16-grapheme-next.c: Update name.
12413         * lib/unigbrk/u16-grapheme-prev.c: Update name.
12414         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
12415         * lib/unigbrk/u32-grapheme-next.c: Update name.
12416         * lib/unigbrk/u32-grapheme-prev.c: Update name.
12417         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
12418         * lib/unigbrk/u8-grapheme-next.c: Update name.
12419         * lib/unigbrk/u8-grapheme-prev.c: Update name.
12420         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
12421         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
12422         Suggested by Bruno Haible.
12423
12424 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12425
12426         Remove module 'u8-grapheme-len' as too redundant with
12427         'u8-grapheme-next'.
12428         * modules/unigbrk/u8-grapheme-len: Delete file.
12429         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
12430         * lib/unigbrk.in.h: Remove prototype for deleted function.
12431         * lib/unigbrk/u8-grapheme-len.c: Delete file.
12432         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
12433
12434         Remove module 'u16-grapheme-len' as too redundant with
12435         'u16-grapheme-next'.
12436         * modules/unigbrk/u16-grapheme-len: Delete file.
12437         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
12438         * lib/unigbrk.in.h: Remove prototype for deleted function.
12439         * lib/unigbrk/u16-grapheme-len.c: Delete file.
12440         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
12441
12442         Remove module 'u32-grapheme-len' as too redundant with
12443         'u32-grapheme-next'.
12444         * modules/unigbrk/u32-grapheme-len: Delete file.
12445         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
12446         * lib/unigbrk.in.h: Remove prototype for deleted function.
12447         * lib/unigbrk/u32-grapheme-len.c: Delete file.
12448         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
12449
12450         Suggested by Bruno Haible.
12451
12452 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12453
12454         * unigbrk.in.h: Fix typo: "ben" => "been".
12455         Reported by Bruno Haible.
12456
12457 2011-01-01  Jim Meyering  <meyering@redhat.com>
12458
12459         maint: update almost all copyright ranges to include 2011
12460         Run the new "make update-copyright" rule.
12461
12462 2011-01-01  Jim Meyering  <meyering@redhat.com>
12463
12464         maint: update-copyright: exempt doc/INSTALL*
12465         * Makefile (update-copyright): Also exclude doc/INSTALL*,
12466         since they are generated.  Suggested by Bruno Haible.
12467
12468 2011-01-01  Jim Meyering  <meyering@redhat.com>
12469
12470         maint: refine the update-copyright rule
12471         * Makefile (update-copyright): Also exclude any file that includes
12472         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
12473         code that merely generates the comment.
12474
12475 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12476
12477         New module 'u8-grapheme-len'.
12478         * modules/unigbrk/u8-grapheme-len: New file.
12479         * modules/unigbrk/u8-grapheme-len-tests: New file.
12480         * lib/unigbrk.in.h: Add prototype for new function.
12481         * lib/unigbrk/u8-grapheme-len.c: New file.
12482         * tests/unigbrk/test-u8-grapheme-len.c: New file.
12483
12484         New module 'u16-grapheme-len'.
12485         * modules/unigbrk/u16-grapheme-len: New file.
12486         * modules/unigbrk/u16-grapheme-len-tests: New file.
12487         * lib/unigbrk.in.h: Add prototype for new function.
12488         * lib/unigbrk/u16-grapheme-len.c: New file.
12489         * tests/unigbrk/test-u16-grapheme-len.c: New file.
12490
12491         New module 'u32-grapheme-len'.
12492         * modules/unigbrk/u32-grapheme-len: New file.
12493         * modules/unigbrk/u32-grapheme-len-tests: New file.
12494         * lib/unigbrk.in.h: Add prototype for new function.
12495         * lib/unigbrk/u32-grapheme-len.c: New file.
12496         * tests/unigbrk/test-u32-grapheme-len.c: New file.
12497
12498         New module 'u8-grapheme-next'.
12499         * modules/unigbrk/u8-grapheme-next: New file.
12500         * modules/unigbrk/u8-grapheme-next-tests: New file.
12501         * lib/unigbrk.in.h: Add prototype for new function.
12502         * lib/unigbrk/u8-grapheme-next.c: New file.
12503         * tests/unigbrk/test-u8-grapheme-next.c: New file.
12504
12505         New module 'u16-grapheme-next'.
12506         * modules/unigbrk/u16-grapheme-next: New file.
12507         * modules/unigbrk/u16-grapheme-next-tests: New file.
12508         * lib/unigbrk.in.h: Add prototype for new function.
12509         * lib/unigbrk/u16-grapheme-next.c: New file.
12510         * tests/unigbrk/test-u16-grapheme-next.c: New file.
12511
12512         New module 'u32-grapheme-next'.
12513         * modules/unigbrk/u32-grapheme-next: New file.
12514         * modules/unigbrk/u32-grapheme-next-tests: New file.
12515         * lib/unigbrk.in.h: Add prototype for new function.
12516         * lib/unigbrk/u32-grapheme-next.c: New file.
12517         * tests/unigbrk/test-u32-grapheme-next.c: New file.
12518
12519         New module 'u8-grapheme-prev'.
12520         * modules/unigbrk/u8-grapheme-prev: New file.
12521         * modules/unigbrk/u8-grapheme-prev-tests: New file.
12522         * lib/unigbrk.in.h: Add prototype for new function.
12523         * lib/unigbrk/u8-grapheme-prev.c: New file.
12524         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
12525
12526         New module 'u16-grapheme-prev'.
12527         * modules/unigbrk/u16-grapheme-prev: New file.
12528         * modules/unigbrk/u16-grapheme-prev-tests: New file.
12529         * lib/unigbrk.in.h: Add prototype for new function.
12530         * lib/unigbrk/u16-grapheme-prev.c: New file.
12531         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
12532
12533         New module 'u32-grapheme-prev'.
12534         * modules/unigbrk/u32-grapheme-prev: New file.
12535         * modules/unigbrk/u32-grapheme-prev-tests: New file.
12536         * lib/unigbrk.in.h: Add prototype for new function.
12537         * lib/unigbrk/u32-grapheme-prev.c: New file.
12538         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
12539
12540         New module 'u8-grapheme-breaks'.
12541         * modules/unigbrk/u8-grapheme-breaks: New file.
12542         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
12543         * lib/unigbrk.in.h: Add prototype for new function.
12544         * lib/unigbrk/u8-grapheme-breaks.c: New file.
12545         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
12546
12547         New module 'u16-grapheme-breaks'.
12548         * modules/unigbrk/u16-grapheme-breaks: New file.
12549         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
12550         * lib/unigbrk.in.h: Add prototype for new function.
12551         * lib/unigbrk/u16-grapheme-breaks.c: New file.
12552         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
12553
12554         New module 'u32-grapheme-breaks'.
12555         * modules/unigbrk/u32-grapheme-breaks: New file.
12556         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
12557         * lib/unigbrk.in.h: Add prototype for new function.
12558         * lib/unigbrk/u32-grapheme-breaks.c: New file.
12559         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
12560
12561         New module 'ulc-grapheme-breaks'.
12562         * modules/unigbrk/ulc-grapheme-breaks: New file.
12563         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
12564         * m4/locale-ar.m4: New file.
12565         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
12566         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
12567         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
12568
12569 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12570
12571         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
12572         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
12573         modified how this file was generated before I initially submitted
12574         the module, but failed to regenerate it.  This meant that several
12575         of the level2 entries were wrong.
12576         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
12577         Remove the division-by-2 that is folded into the table now that
12578         gbrkprop.h has been regenerated properly.  Now -1 entries are
12579         handled correctly.
12580
12581         New module 'unigbrk/uc-gbrk-prop-tests'.
12582         * modules/unigbrk/uc-gbrk-prop-tests: New file.
12583         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
12584         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
12585         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
12586
12587 2011-01-01  Bruno Haible  <bruno@clisp.org>
12588
12589         Avoid use of hexadecimal escapes.
12590         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
12591         instead of hexadecimal escapes.
12592
12593 2011-01-01  Jim Meyering  <meyering@redhat.com>
12594
12595         maint: new rule to update copyright year ranges
12596         * Makefile (update-copyright): New rule.
12597
12598         maint: indent with TABs in Makefile
12599         * Makefile: Expand leading sequences of spaces to TABs
12600
12601         version-etc: update the copyright year it reports
12602         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
12603
12604 2010-12-31  Bruno Haible  <bruno@clisp.org>
12605
12606         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
12607         * lib/isfinite.c (zerof, zerod, zerol): New variables.
12608         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
12609         zero.
12610
12611 2010-12-31  Bruno Haible  <bruno@clisp.org>
12612
12613         pwrite: Work around HP-UX 11.11 bug.
12614         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
12615         works and set REPLACE_PWRITE if not.
12616         * lib/pwrite.c (pwrite): Add an implementation that uses the system
12617         function.
12618         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
12619
12620 2010-12-31  Bruno Haible  <bruno@clisp.org>
12621
12622         pread: Work around HP-UX 11 bugs.
12623         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
12624         and set REPLACE_PREAD if not.
12625         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
12626
12627 2010-12-31  Eric Blake  <eblake@redhat.com>
12628
12629         nl_langinfo: fix YESEXPR on Irix 6.5
12630         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
12631         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
12632         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
12633         it.
12634
12635 2010-12-31  Bruno Haible  <bruno@clisp.org>
12636
12637         iconv: Document HP-UX 11 bug.
12638         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
12639
12640 2010-12-31  Bruno Haible  <bruno@clisp.org>
12641
12642         ldexpl: Fix link error on HP-UX 11.
12643         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
12644         LDEXPL_LIBM, using $ISNANL_LIBM.
12645
12646 2010-12-31  Eric Blake  <eblake@redhat.com>
12647
12648         ftello: avoid compilation failure with SunStudio c89
12649         * lib/ftello.c (ftello): Use lseek, not llseek.
12650
12651         tests: avoid failing coreutils tests on cygwin
12652         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
12653         (create_exe_shims_): Return 0 when skipping.
12654
12655 2010-12-31  Bruno Haible  <bruno@clisp.org>
12656
12657         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
12658         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
12659
12660 2010-12-31  Bruno Haible  <bruno@clisp.org>
12661
12662         waitpid: Fix link error in C++ mode.
12663         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
12664
12665 2010-12-31  Bruno Haible  <bruno@clisp.org>
12666
12667         isnan: Use GCC built-ins when possible.
12668         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
12669         __builtin_isnan.
12670         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
12671         (isnan): Define using GCC built-ins for GCC >= 4.0.
12672
12673 2010-12-31  Bruno Haible  <bruno@clisp.org>
12674
12675         isnand: Fix mistake.
12676         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
12677         __builtin_isnand.
12678
12679 2010-12-31  Bruno Haible  <bruno@clisp.org>
12680
12681         open: Avoid C++ error on HP-UX 11.
12682         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
12683
12684 2010-12-31  Bruno Haible  <bruno@clisp.org>
12685
12686         time_r: Add missing declarations on HP-UX 11.
12687         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
12688         instead of HAVE_LOCALTIME_R.
12689         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
12690         HAVE_LOCALTIME_R always.
12691         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
12692         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
12693         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
12694         HAVE_LOCALTIME_R.
12695         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
12696         * doc/posix-functions/localtime_r.texi: Likewise.
12697
12698 2010-12-29  Eric Blake  <eblake@redhat.com>
12699
12700         mountlist: tweak previous commit
12701         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
12702         Reported by Paul Eggert.
12703
12704         mountlist: fix local drive detection on cygwin
12705         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
12706         that works for cygwin.
12707
12708 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12709
12710         ftoastr, snprintf: ftoastr + snprintf module
12711         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
12712         since the snprintf module now should be good enough here.
12713         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
12714         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
12715         and gl_MODULE_INDICATOR([snprintf]), but the former enables
12716         GNULIB_SNPRINTF only for the test directory, and the latter
12717         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
12718         seems to suffice by itself.
12719
12720 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12721
12722         alloca: one step towards thread-safety
12723         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
12724         need for a static variable.  All callers changed.  This does not
12725         make the alloca replacement thread-safe, but it's one step.
12726
12727         tests: minor indenting change
12728         * tests/init.sh: Sync from coreutils housekeeping patch
12729         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
12730         to keep lines within 80 columns.
12731
12732 2010-12-28  Jim Meyering  <meyering@redhat.com>
12733
12734         regex: don't infloop on persistent failing calloc
12735         * lib/regexec.c (build_trtable): Return failure indication upon
12736         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
12737         In glibc, this was fixed for version 2.13:
12738         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
12739
12740 2010-12-28  Bruno Haible  <bruno@clisp.org>
12741             Paul Eggert <eggert@cs.ucla.edu>
12742
12743         linkat: Make implementation robust against system behaviour variations.
12744         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
12745         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
12746         way, and to -2 if it needs a generic runtime test.
12747         * lib/linkat.c (solaris_optimized_link_immediate,
12748         solaris_optimized_link_follow): New functions.
12749         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
12750         (check_same_link): Use it.
12751
12752 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
12753
12754         New module 'unigbrk/base'.
12755         * modules/unigbrk/base: New file.
12756         * lib/unigbrk.in.h: New file.
12757
12758         New module 'unigbrk/uc-gbrk-prop'.
12759         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
12760         * modules/unigbrk/uc-gbrk-prop: New file.
12761         * lib/unigbrk/gbrkprop.h: New file.
12762         * lib/unigbrk/uc-gbrk-prop.c: New file.
12763
12764         New module 'unigbrk/uc-is-grapheme-break'.
12765         * modules/unigbrk/uc-is-grapheme-break: New file.
12766         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
12767         * lib/unigbrk/uc-is-grapheme-break.c: New file.
12768         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
12769         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
12770         * tests/unigbrk/GraphemeBreakTest.txt: New file.
12771
12772         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
12773
12774 2010-12-27  Bruno Haible  <bruno@clisp.org>
12775
12776         linkat test: Avoid failure on Solaris 11 2010-11.
12777         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
12778
12779 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12780
12781         utimens: work around glibc rounding bug on more platforms
12782         * lib/utimens.c (fdutimens): Work around rounding bug even if
12783         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
12784         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
12785
12786 2010-12-27  Bruno Haible  <bruno@clisp.org>
12787
12788         select tests: Improve comments.
12789         * tests/test-select.c (do_select): Add comments.
12790
12791 2010-12-27  Bruno Haible  <bruno@clisp.org>
12792
12793         select tests: Safer way of handling timeout.
12794         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
12795         at every invocation.
12796
12797 2010-12-27  Bruno Haible  <bruno@clisp.org>
12798
12799         select tests: Use 'bool' where appropriate.
12800         * tests/test-select.c (connect_to_socket): Change argument type to
12801         'bool'.
12802
12803 2010-12-27  Bruno Haible  <bruno@clisp.org>
12804
12805         select tests: Use existing modules.
12806         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
12807         (configure.ac): Don't test for unistd.h.
12808         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
12809         declared in <unistd.h>.
12810
12811 2010-12-27  Bruno Haible  <bruno@clisp.org>
12812
12813         mbrtowc: Work around a Solaris 7 bug.
12814         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
12815         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
12816         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
12817         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
12818         MBRTOWC_NULL_ARG1_BUG.
12819         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
12820         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
12821         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
12822         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
12823
12824 2010-12-27  Jim Meyering  <meyering@redhat.com>
12825
12826         read-file.c: tweak syntax
12827         * lib/read-file.c (fread_file): Remove space after "*" in function
12828         definitions.
12829
12830 2010-12-27  Bruno Haible  <bruno@clisp.org>
12831
12832         times test: Avoid gcc warnings on OSF/1.
12833         * tests/test-times.c (main): Cast printf arguments from clock_t to
12834         'long int'.
12835
12836 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12837
12838         utimens: work around glibc rounding bug on older Linux kernels
12839         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
12840         on Linux with a glibc whose utimes might not work, then work
12841         around a longstanding glibc bug involving rounding rather than
12842         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
12843         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
12844
12845 2010-12-26  Bruno Haible  <bruno@clisp.org>
12846
12847         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
12848         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
12849         _GL_CXXALIAS_SYS.
12850         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12851
12852 2010-12-26  Bruno Haible  <bruno@clisp.org>
12853
12854         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
12855         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
12856         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12857         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
12858         looking for the declaration.
12859         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
12860         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
12861         problem.
12862         * doc/posix-functions/inet_pton.texi: Likewise.
12863
12864 2010-12-26  Bruno Haible  <bruno@clisp.org>
12865
12866         arpa_inet: Use the common idioms with C++ support.
12867         * lib/arpa_inet.in.h: Include c++defs.h.
12868         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
12869         support.
12870         * modules/arpa_inet (Depends-on): Add c++defs.
12871         (Makefile.am): Substitute the contents of c++defs.h.
12872         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
12873         * modules/arpa_inet-c++-tests: New file.
12874         * tests/test-arpa_inet-c++.cc: New file.
12875
12876 2010-12-25  Bruno Haible  <bruno@clisp.org>
12877
12878         Fix more C++ link errors on Solaris 8.
12879         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
12880         $(LIB_EACCESS).
12881         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
12882         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
12883         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
12884         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
12885         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
12886
12887 2010-12-25  Bruno Haible  <bruno@clisp.org>
12888
12889         printf-posix: Fix link error when a non-GCC compiler is used.
12890         * lib/stdio.in.h (printf): When not using GCC, override printf
12891         correctly.
12892         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12893
12894 2010-12-25  Bruno Haible  <bruno@clisp.org>
12895
12896         strerror_r-posix: Update doc.
12897         * doc/posix-functions/strerror_r.texi: Update doc about the return
12898         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
12899
12900 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
12901
12902         utimens: simplify the logic of the previous change
12903         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
12904         This should not affect whether the test succeeds or fails.
12905
12906         utimens: configure better on hosts with NFS clock skew
12907         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
12908         uses the clock of the local host.  It might use the clock of the
12909         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
12910         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
12911
12912 2010-12-25  Bruno Haible  <bruno@clisp.org>
12913
12914         ptsname test: Avoid failure on Solaris.
12915         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
12916         open a pseudo-terminal; don't use BSD-style ptys.
12917         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
12918
12919 2010-12-25  Bruno Haible  <bruno@clisp.org>
12920
12921         ptsname: Avoid ERANGE failure on some systems.
12922         * lib/ptsname.c (buffer): Increase size.
12923
12924 2010-12-25  Bruno Haible  <bruno@clisp.org>
12925
12926         rename, renameat: Avoid test failures at NFS mounted locations.
12927         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
12928         so that subsequent mkdir calls succeed.
12929
12930 2010-12-25  Bruno Haible  <bruno@clisp.org>
12931
12932         iswblank: Fix C++ link error on Solaris 8.
12933         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
12934         _GL_FUNCDECL_SYS.
12935
12936 2010-12-25  Bruno Haible  <bruno@clisp.org>
12937
12938         unistd: Fix C++ link error on Solaris 8.
12939         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
12940
12941 2010-12-25  Bruno Haible  <bruno@clisp.org>
12942
12943         readlink doc: Mention an old glibc bug.
12944         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
12945
12946 2010-12-25  Bruno Haible  <bruno@clisp.org>
12947
12948         fcntl-h: Fix for use of C++ on glibc systems.
12949         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12950         also on glibc systems in C++ mode.
12951         Reported by Gary V. Vaughan <gary@gnu.org>.
12952
12953 2010-12-25  Bruno Haible  <bruno@clisp.org>
12954
12955         roundl-ieee: Make it work on OSF/1 5.1 with cc.
12956         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
12957
12958 2010-12-25  Bruno Haible  <bruno@clisp.org>
12959
12960         truncl-ieee: Make it work on OSF/1 5.1 with cc.
12961         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
12962         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
12963         test whether truncl works according to ISO C 99 with IEC 60559.
12964         * m4/truncl-ieee.m4: New file.
12965         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
12966         m4/signbit.m4.
12967         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
12968
12969 2010-12-25  Bruno Haible  <bruno@clisp.org>
12970
12971         ceill-ieee: Make it work on OSF/1 5.1 with cc.
12972         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
12973         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
12974         test whether ceill works according to ISO C 99 with IEC 60559.
12975         * m4/ceill-ieee.m4: New file.
12976         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
12977         m4/signbit.m4.
12978         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
12979
12980 2010-12-25  Bruno Haible  <bruno@clisp.org>
12981
12982         Ensure all prerequisites of <wchar.h> are included.
12983         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
12984         before <wchar.h>.
12985         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12986         gl_MBRLEN_NUL_RETVAL): Likewise.
12987         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12988         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
12989         AC_FUNC_MBRTOWC): Likewise.
12990         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12991         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
12992         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12993         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12994         Likewise.
12995         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12996         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
12997         (gl_WCHAR_H): Improve comments.
12998         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12999
13000 2010-12-25  Bruno Haible  <bruno@clisp.org>
13001
13002         strtok_r: Fix C syntax error in autoconf macro.
13003         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13004         characters in test program.
13005
13006 2010-12-24  Bruno Haible  <bruno@clisp.org>
13007
13008         ceil, trunc, round: Fix gcc warnings.
13009         * lib/ceil.c (MIN): Undefine before redefining.
13010         * lib/trunc.c (MIN): Likewise.
13011         * lib/round.c (MIN): Likewise.
13012         Include <math.h> first.
13013
13014 2010-12-24  Bruno Haible  <bruno@clisp.org>
13015
13016         select tests: Avoid failures on OSF/1 5.1.
13017         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13018         failure of closing the last socket; it may fail with ECONNRESET.
13019
13020 2010-12-24  Eric Blake  <eblake@redhat.com>
13021
13022         stdint: avoid HP-UX 10.20 preprocessor bug
13023         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13024         than #if.
13025         * tests/test-floor2.c (main): Likewise.
13026         Reported by Peter O'Gorman.
13027
13028         pipe: make obsoletion transition easier
13029         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13030         * modules/pipe (Files): Include revived file.
13031         (Include): Drop reference, to mirror getdate's behavior.
13032
13033 2010-12-24  Bruno Haible  <bruno@clisp.org>
13034
13035         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13036         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13037         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13038         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13039
13040 2010-12-24  Bruno Haible  <bruno@clisp.org>
13041
13042         gethostname: Ensure declaration on NonStop Kernel.
13043         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13044         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13045
13046 2010-12-24  Bruno Haible  <bruno@clisp.org>
13047
13048         sys_select: Ensure all necessary types on NonStop Kernel.
13049         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13050         include <sys/time.h>.
13051         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13052         NonStop Kernel.
13053         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13054
13055 2010-12-24  Bruno Haible  <bruno@clisp.org>
13056
13057         sys_select: Remove unneeded include.
13058         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13059         have <sys/select.h>.
13060
13061 2010-12-24  Bruno Haible  <bruno@clisp.org>
13062
13063         gethostname: Provide a fallback for HOST_NAME_MAX.
13064         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13065         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13066         instead.
13067         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13068
13069 2010-12-24  Bruno Haible  <bruno@clisp.org>
13070
13071         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13072         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13073         (SA_RESTART): Likewise.
13074         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13075
13076 2010-12-24  Bruno Haible  <bruno@clisp.org>
13077
13078         signal: Define NSIG.
13079         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13080         * tests/test-signal.c (nsig): New variable.
13081         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13082
13083 2010-12-24  Bruno Haible  <bruno@clisp.org>
13084
13085         rename, renameat: Avoid test failures on OSF/1 5.1.
13086         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13087         alternative error codes.
13088         * tests/test-renameat.c (main): Likewise.
13089
13090 2010-12-24  Bruno Haible  <bruno@clisp.org>
13091
13092         *printf: Detect large precisions bug on Solaris 10/SPARC.
13093         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13094         by Paul Eggert.
13095         * tests/test-snprintf-posix.h (test_function): Add this test code here
13096         too.
13097         * tests/test-sprintf-posix.h (test_function): Likewise.
13098         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13099         * tests/test-vasprintf-posix.c (test_function): Likewise.
13100         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13101         around by gnulib.
13102         * doc/posix-functions/printf.texi: Likewise.
13103         * doc/posix-functions/snprintf.texi: Likewise.
13104         * doc/posix-functions/sprintf.texi: Likewise.
13105         * doc/posix-functions/vfprintf.texi: Likewise.
13106         * doc/posix-functions/vprintf.texi: Likewise.
13107         * doc/posix-functions/vsnprintf.texi: Likewise.
13108         * doc/posix-functions/vsprintf.texi: Likewise.
13109         * doc/posix-functions/dprintf.texi: Undo last commit.
13110         * doc/posix-functions/vdprintf.texi: Likewise.
13111
13112 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13113
13114         tests: port test-fdutimensat.c to Solaris 8
13115         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13116         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13117         On Solaris 8, it fails with errno == ENOSYS, because there is no
13118         futimens (so it can't use the fd), and there is no lutimens (so it
13119         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13120
13121         vsnprintf: make more consistent with snprintf; doc fixes
13122
13123         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13124         the byte count return problem was promoted from the snprintf-posix
13125         to the snprintf module.
13126         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13127         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13128         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13129         * tests/test-snprintf.c (main): Check the byte count returned.
13130         * tests/test-vsnprintf.c (main): Likewise.
13131
13132 2010-12-23  Eric Blake  <eblake@redhat.com>
13133
13134         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13135         * modules/sigpipe (License): Relax license.
13136
13137 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13138
13139         doc: document Solaris printf bug with large float precisions
13140         * doc/posix-functions/dprintf.texi (dprintf):
13141         * doc/posix-functions/fprintf.texi (fprintf):
13142         * doc/posix-functions/printf.texi (printf):
13143         * doc/posix-functions/snprintf.texi (snprintf):
13144         * doc/posix-functions/sprintf.texi (sprintf):
13145         * doc/posix-functions/vdprintf.texi (vdprintf):
13146         * doc/posix-functions/vfprintf.texi (vfprintf):
13147         * doc/posix-functions/vprintf.texi (vprintf):
13148         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13149         * doc/posix-functions/vsprintf.texi (vsprintf):
13150         Mention that these functions mishandle large floating point
13151         precisions on Solaris 10.  The same bug is also present in Solaris
13152         8, and I assume earlier.  This causes "cd gnulib-tests; make
13153         check" to fail on Solaris 8 (and I assume, later) when building
13154         the latest coreutils, in test-vasprintf-posix's call to
13155         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
13156         the wide flavors (e.g., wprintf) so this patch just updates the
13157         documentation for the narrow ones.
13158
13159         test-posixtm.c: add two tests
13160         * tests/test-posixtm.c: Add two tests, to highlight the
13161         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
13162         around this bug; this is merely to document it.
13163
13164 2010-12-22  Bruno Haible  <bruno@clisp.org>
13165
13166         getlogin_r: Work around portability problem on OSF/1.
13167         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
13168         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
13169         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
13170         test for a truncated result.
13171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
13172         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
13173         * modules/getlogin_r (Depends-on): Add memchr.
13174         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
13175
13176 2010-12-22  Bruno Haible  <bruno@clisp.org>
13177
13178         ptsname: Avoid test failure on OSF/1 5.1.
13179         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
13180         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
13181         (same_slave): New function.
13182         (main): Use it to compare ptsname's result with the expected file name.
13183
13184 2010-12-22  Bruno Haible  <bruno@clisp.org>
13185
13186         Port extended stdio modules to HP NonStop Kernel.
13187         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
13188         macros.
13189         * lib/fbufmode.c: Update comments.
13190         * lib/fflush.c: Likewise.
13191         * lib/fpurge.c: Likewise.
13192         * lib/freadable.c: Likewise.
13193         * lib/freadahead.c: Likewise.
13194         * lib/freading.c: Likewise.
13195         * lib/freadptr.c: Likewise.
13196         * lib/freadseek.c: Likewise.
13197         * lib/fseeko.c: Likewise.
13198         * lib/fseterr.c: Likewise.
13199         * lib/fwritable.c: Likewise.
13200         * lib/fwriting.c: Likewise.
13201         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13202
13203 2010-12-22  Bruno Haible  <bruno@clisp.org>
13204
13205         ttyname_r: Work around bug on OSF/1 5.1.
13206         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
13207         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
13208         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
13209         present.
13210         * lib/ttyname_r.c (ttyname_r): Update comments.
13211
13212 2010-12-22  Bruno Haible  <bruno@clisp.org>
13213
13214         round: Implement result sign according to IEEE 754.
13215         * lib/round.c (MIN, MINUS_ZERO): New macros.
13216         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
13217         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
13218         * tests/test-round-ieee.c (main): Likewise.
13219         * tests/test-roundl-ieee.c (main): Likewise.
13220
13221         trunc: Implement result sign according to IEEE 754.
13222         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
13223         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
13224         * tests/test-trunc2.c: Include minus-zero.h.
13225         (MINUS_ZERO): New macro.
13226         (trunc_reference): Keep in sync with lib/trunc.c.
13227         * tests/test-truncf2.c: Include minus-zero.h.
13228         (MINUS_ZERO): New macro.
13229         (truncf_reference): Keep in sync with lib/trunc.c.
13230         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
13231         * tests/test-trunc-ieee.c (main): Likewise.
13232         * tests/test-truncl-ieee.c (main): Likewise.
13233
13234         ceil: Implement result sign according to IEEE 754.
13235         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
13236         (FUNC): Return -0.0 for -1 < x < 0.
13237         * tests/test-ceil2.c: Include minus-zero.h.
13238         (MINUS_ZERO): New macro.
13239         (ceil_reference): Keep in sync with lib/ceil.c.
13240         * tests/test-ceilf2.c: Include minus-zero.h.
13241         (MINUS_ZERO): New macro.
13242         (ceilf_reference): Keep in sync with lib/ceil.c.
13243         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
13244         * tests/test-ceil-ieee.c (main): Likewise.
13245         * tests/test-ceill-ieee.c (main): Likewise.
13246
13247         floor: Implement result sign according to IEEE 754.
13248         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
13249         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
13250         * tests/test-floorf2.c (floorf_reference): Likewise.
13251         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
13252         * tests/test-floor-ieee.c (main): Likewise.
13253         * tests/test-floorl-ieee.c (main): Likewise.
13254
13255 2010-12-22  Bruno Haible  <bruno@clisp.org>
13256
13257         getaddrinfo: Update doc.
13258         * doc/posix-functions/gai_strerror.texi: Return type is also different
13259         on AIX and HP-UX.
13260
13261 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13262
13263         getaddrinfo, inet_ntop: Update doc for Solaris.
13264         * doc/posix-functions/gai_strerror.texi: Return type is also an
13265         issue on Solaris 9 and earlier.
13266         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
13267         on Solaris 10 and earlier.
13268
13269 2010-12-21  Bruno Haible  <bruno@clisp.org>
13270
13271         New module 'roundl-ieee'.
13272         * modules/roundl-ieee: New file.
13273         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13274         test whether roundl works according to ISO C 99 with IEC 60559.
13275         * m4/roundl-ieee.m4: New file.
13276         * modules/roundl-ieee-tests: New file.
13277         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13278         * tests/test-roundl.c (main): Remove signbit tests.
13279         * modules/roundl-tests (Depends-on): Remove signbit.
13280         * doc/posix-functions/roundl.texi: Mention the new module.
13281
13282 2010-12-21  Bruno Haible  <bruno@clisp.org>
13283
13284         New module 'truncl-ieee'.
13285         * modules/truncl-ieee: New file.
13286         * modules/truncl-ieee-tests: New file.
13287         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13288         * tests/test-truncl.c (main): Remove signbit tests.
13289         * modules/truncl-tests (Depends-on): Remove signbit.
13290         * doc/posix-functions/truncl.texi: Mention the new module.
13291
13292 2010-12-21  Bruno Haible  <bruno@clisp.org>
13293
13294         New module 'ceill-ieee'.
13295         * modules/ceill-ieee: New file.
13296         * modules/ceill-ieee-tests: New file.
13297         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13298         * tests/test-ceill.c (main): Remove signbit tests.
13299         * modules/ceill-tests (Depends-on): Remove signbit.
13300         * doc/posix-functions/ceill.texi: Mention the new module.
13301
13302 2010-12-21  Bruno Haible  <bruno@clisp.org>
13303
13304         New module 'floorl-ieee'.
13305         * modules/floorl-ieee: New file.
13306         * modules/floorl-ieee-tests: New file.
13307         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13308         * tests/test-floorl.c (main): Remove signbit tests.
13309         * modules/floorl-tests (Depends-on): Remove signbit.
13310         * doc/posix-functions/floorl.texi: Mention the new module.
13311
13312 2010-12-21  Bruno Haible  <bruno@clisp.org>
13313
13314         New module 'round-ieee'.
13315         * modules/round-ieee: New file.
13316         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
13317         whether round works according to ISO C 99 with IEC 60559.
13318         * m4/round-ieee.m4: New file.
13319         * modules/round-ieee-tests: New file.
13320         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
13321         * tests/test-round1.c (main): Remove signbit tests.
13322         * modules/round-tests (Depends-on): Remove 'signbit'.
13323         * doc/posix-functions/round.texi: Mention the new module.
13324
13325 2010-12-21  Bruno Haible  <bruno@clisp.org>
13326
13327         New module 'trunc-ieee'.
13328         * modules/trunc-ieee: New file.
13329         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
13330         whether trunc works according to ISO C 99 with IEC 60559.
13331         * m4/trunc-ieee.m4: New file.
13332         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
13333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
13334         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
13335         * modules/trunc-ieee-tests: New file.
13336         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
13337         * tests/test-trunc1.c (main): Remove signbit tests.
13338         * modules/trunc-tests (Depends-on): Remove 'signbit'.
13339         * doc/posix-functions/trunc.texi: Mention the new module.
13340
13341 2010-12-21  Bruno Haible  <bruno@clisp.org>
13342
13343         New module 'ceil-ieee'.
13344         * modules/ceil-ieee: New file.
13345         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
13346         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
13347         ISO C 99 with IEC 60559.
13348         * m4/ceil-ieee.m4: New file.
13349         * modules/ceil (Files): Add lib/ceil.c.
13350         (Depends-on): Add 'float'.
13351         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13352         * lib/math.in.h (ceil): New declaration.
13353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
13354         REPLACE_CEIL.
13355         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
13356         * modules/ceil-ieee-tests: New file.
13357         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
13358         * tests/test-math-c++.cc: Check the signature of 'ceil'.
13359         * doc/posix-functions/ceil.texi: Mention the new module.
13360
13361 2010-12-21  Bruno Haible  <bruno@clisp.org>
13362
13363         New module 'floor-ieee'.
13364         * modules/floor-ieee: New file.
13365         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
13366         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
13367         ISO C 99 with IEC 60559.
13368         * m4/floor-ieee.m4: New file.
13369         * modules/floor (Files): Add lib/floor.c.
13370         (Depends-on): Add 'float'.
13371         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13372         * lib/math.in.h (floor): New declaration.
13373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
13374         REPLACE_FLOOR.
13375         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
13376         * modules/floor-ieee-tests: New file.
13377         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
13378         * tests/test-math-c++.cc: Check the signature of 'floor'.
13379         * doc/posix-functions/floor.texi: Mention the new module.
13380
13381 2010-12-21  Bruno Haible  <bruno@clisp.org>
13382
13383         New module 'roundf-ieee'.
13384         * modules/roundf-ieee: New file.
13385         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
13386         test whether roundf works according to ISO C 99 with IEC 60559.
13387         * m4/roundf-ieee.m4: New file.
13388         * modules/roundf-ieee-tests: New file.
13389         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
13390         * tests/test-roundf1.c (main): Remove signbit tests.
13391         * modules/roundf-tests (Depends-on): Remove 'signbit'.
13392         * doc/posix-functions/roundf.texi: Mention the new module.
13393
13394 2010-12-21  Bruno Haible  <bruno@clisp.org>
13395
13396         New module 'truncf-ieee'.
13397         * modules/truncf-ieee: New file.
13398         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
13399         test whether truncf works according to ISO C 99 with IEC 60559.
13400         * m4/truncf-ieee.m4: New file.
13401         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
13402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
13403         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
13404         * modules/truncf-ieee-tests: New file.
13405         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
13406         * tests/test-truncf1.c (main): Remove signbit tests.
13407         * modules/truncf-tests (Depends-on): Remove 'signbit'.
13408         * doc/posix-functions/truncf.texi: Mention the new module.
13409
13410 2010-12-21  Bruno Haible  <bruno@clisp.org>
13411
13412         New module 'ceilf-ieee'.
13413         * modules/ceilf-ieee: New file.
13414         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
13415         test whether ceilf works according to ISO C 99 with IEC 60559.
13416         * m4/ceilf-ieee.m4: New file.
13417         * modules/ceilf-ieee-tests: New file.
13418         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
13419         * tests/test-ceilf1.c (main): Remove signbit tests.
13420         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
13421         * doc/posix-functions/ceilf.texi: Mention the new module.
13422
13423 2010-12-21  Bruno Haible  <bruno@clisp.org>
13424
13425         New module 'floorf-ieee'.
13426         * modules/floorf-ieee: New file.
13427         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
13428         test whether floorf works according to ISO C 99 with IEC 60559.
13429         * m4/floorf-ieee.m4: New file.
13430         * modules/floorf-ieee-tests: New file.
13431         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
13432         * tests/test-floorf1.c (main): Remove signbit tests.
13433         * modules/floorf-tests (Depends-on): Remove 'signbit'.
13434         * doc/posix-functions/floorf.texi: Mention the new module.
13435
13436 2010-12-21  Bruno Haible  <bruno@clisp.org>
13437
13438         Support for minus zero in autoconf macros.
13439         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
13440         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
13441         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
13442         * tests/minus-zero.h: Update comments.
13443
13444 2010-12-21  Bruno Haible  <bruno@clisp.org>
13445
13446         Tests for module 'ceil'.
13447         * modules/ceil-tests: New file.
13448         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
13449         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
13450
13451 2010-12-21  Bruno Haible  <bruno@clisp.org>
13452
13453         Tests for module 'floor'.
13454         * modules/floor-tests: New file.
13455         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
13456         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
13457
13458 2010-12-21  Bruno Haible  <bruno@clisp.org>
13459
13460         math: Fix indentation.
13461         * lib/math.in.h (floorf): Fix indentation.
13462
13463 2010-12-21  Bruno Haible  <bruno@clisp.org>
13464
13465         Fix cross-compilation guesses on Solaris.
13466         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
13467         not match "solaris2.10".
13468         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13469         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
13470         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13471
13472 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13473
13474         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
13475         This fixes a problem observed with the latest coreutils snapshot
13476         that caused a test to fail on Solaris 8.  src/csplit.c's call
13477         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
13478         earlier, instead of returning the number of bytes that would have
13479         been generated; this causes csplit to incorrectly report memory
13480         exhaustion.
13481         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
13482         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
13483         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
13484         comments to match.
13485         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
13486         Fix typo in matching older versions of Solaris: "solaris2.10"
13487         is matched by the shell pattern "solaris2.[0-9]*".  This matters
13488         only for guessing while cross-compiling.
13489         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
13490
13491 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13492
13493         ftoastr: fix comment again
13494         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13495         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
13496         Also, simplify example a bit by using flags = 0.
13497
13498 2010-12-20  Bruno Haible  <bruno@clisp.org>
13499
13500         round*, trunc*: Update documentation regarding glibc.
13501         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
13502         * doc/posix-functions/round.texi: Likewise.
13503         * doc/posix-functions/roundl.texi: Likewise.
13504         * doc/posix-functions/truncf.texi: Likewise.
13505         * doc/posix-functions/trunc.texi: Likewise.
13506         * doc/posix-functions/truncl.texi: Likewise.
13507
13508 2010-12-20  Bruno Haible  <bruno@clisp.org>
13509
13510         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
13511         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
13512         * doc/posix-functions/round.texi: Likewise.
13513         * doc/posix-functions/roundl.texi: Likewise.
13514
13515 2010-12-20  Bruno Haible  <bruno@clisp.org>
13516
13517         ttyname_r: Add missing declaration on HP-UX 11.
13518         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
13519         HAVE_TTYNAME_R.
13520         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
13521         declared. Set HAVE_TTYNAME_R always.
13522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13523         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
13524         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
13525         HAVE_TTYNAME_R.
13526         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
13527
13528 2010-12-20  Bruno Haible  <bruno@clisp.org>
13529
13530         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
13531         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
13532         * doc/posix-functions/getlogin_r.texi: Likewise.
13533         * tests/test-getlogin.c: Include <errno.h>.
13534         (main): Avoid test failure on HP-UX 11.11.
13535         * tests/test-getlogin_r.c (main): Likewise.
13536
13537 2010-12-20  Bruno Haible  <bruno@clisp.org>
13538
13539         getlogin_r: Add missing declaration on HP-UX 11.
13540         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
13541         declared also when it exists as a function.
13542         * doc/posix-functions/getlogin_r.texi: Document this workaround.
13543
13544 2010-12-20  Bruno Haible  <bruno@clisp.org>
13545
13546         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
13547         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
13548         through wcrtomb.
13549
13550 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13551
13552         ftoastr: fix comment
13553         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13554         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
13555
13556 2010-12-19  Bruno Haible  <bruno@clisp.org>
13557
13558         isnan: Ensure it is a macro.
13559         * lib/math.in.h (isnan): Define as a macro if not already a macro.
13560         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
13561         Solaris.
13562
13563 2010-12-19  Bruno Haible  <bruno@clisp.org>
13564
13565         ldexpl test: Fix link error on OSF/1 5.1.
13566         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
13567
13568 2010-12-19  Bruno Haible  <bruno@clisp.org>
13569
13570         wctype: Make it work in C++ mode on OSF/1 5.1.
13571         * lib/wctype.in.h (iswblank): Declare but not define here.
13572         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
13573         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
13574         * modules/wctype (Files): Add lib/iswblank.c.
13575
13576 2010-12-19  Bruno Haible  <bruno@clisp.org>
13577
13578         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
13579         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
13580         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
13581
13582 2010-12-19  Bruno Haible  <bruno@clisp.org>
13583
13584         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
13585         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
13586         _POSIX_PII_SOCKET.
13587         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
13588         * doc/posix-functions/recvfrom.texi: Likewise.
13589         * doc/posix-functions/send.texi: Likewise.
13590         * doc/posix-functions/sendto.texi: Likewise.
13591
13592 2010-12-19  Bruno Haible  <bruno@clisp.org>
13593
13594         tcgetsid: Add missing declaration on OSF/1 5.1.
13595         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
13596         HAVE_TCGETSID.
13597         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
13598         Don't set HAVE_TCGETSID.
13599         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
13600         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
13601         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
13602         HAVE_TCGETSID.
13603         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
13604
13605 2010-12-19  Bruno Haible  <bruno@clisp.org>
13606
13607         stdio: Fix problem with popen() declaration on OSF/1 5.1.
13608         * lib/stdio.in.h: During the include_next statement, let recursive
13609         includes of this file include only the system header file.
13610
13611 2010-12-19  Bruno Haible  <bruno@clisp.org>
13612
13613         iconv_open: Fix regression from 2010-12-04.
13614         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
13615         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
13616
13617 2010-12-19  Bruno Haible  <bruno@clisp.org>
13618
13619         stdbool test: Avoid a gcc warning.
13620         * tests/test-stdbool.c (main): Fail if e1 is false.
13621         Reported by Jim Meyering.
13622
13623 2010-12-19  Jim Meyering  <meyering@redhat.com>
13624
13625         setenv: restore to working order
13626         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
13627         mistakenly removed.
13628         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
13629         HAVE_SETENV.
13630         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
13631         HAVE_SETENV.
13632
13633 2010-12-19  Bruno Haible  <bruno@clisp.org>
13634
13635         Document some different function declarations on OSF/1 5.1.
13636         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
13637         * doc/posix-functions/inet_ntop.texi: Likewise.
13638         * doc/posix-functions/gethostname.texi: Likewise.
13639         * lib/unistd.in.h (gethostname): Update comment.
13640
13641 2010-12-19  Bruno Haible  <bruno@clisp.org>
13642
13643         doc: Mention vasprintf-posix module.
13644         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
13645         the 'vasprintf-posix' module.
13646         * doc/glibc-functions/vasprintf.texi: Likewise.
13647
13648 2010-12-19  Bruno Haible  <bruno@clisp.org>
13649
13650         unsetenv: Add missing declaration on OSF/1 5.1.
13651         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
13652         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
13653         Don't set HAVE_UNSETENV. In the test program, set _BSD.
13654         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
13655         not HAVE_UNSETENV.
13656         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
13657         HAVE_UNSETENV.
13658         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
13659
13660 2010-12-19  Bruno Haible  <bruno@clisp.org>
13661
13662         setenv: Add missing declaration on OSF/1 5.1.
13663         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
13664         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
13665         declared. Don't set HAVE_SETENV.
13666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
13667         not HAVE_SETENV.
13668         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
13669         HAVE_SETENV.
13670         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
13671
13672 2010-12-19  Bruno Haible  <bruno@clisp.org>
13673
13674         nl_langinfo tests: Avoid gcc warning.
13675         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
13676
13677 2010-12-19  Bruno Haible  <bruno@clisp.org>
13678
13679         mknod: Avoid error in C++ mode on OSF/1 with GCC.
13680         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
13681         _GL_CXXALIAS_SYS.
13682
13683 2010-12-19  Bruno Haible  <bruno@clisp.org>
13684
13685         stdbool: Relax test.
13686         * tests/test-stdbool.c (e): Don't require that casts from a variable's
13687         address to 'bool' work in static initializer, for compilers other than
13688         GCC.
13689
13690 2010-12-19  Bruno Haible  <bruno@clisp.org>
13691
13692         ftello: Add missing declaration on OSF/1 5.1.
13693         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
13694         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
13695         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
13696         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
13697         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
13698
13699 2010-12-19  Bruno Haible  <bruno@clisp.org>
13700
13701         fseeko: Add missing declaration on OSF/1 5.1.
13702         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
13703         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
13704         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
13705         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
13706         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
13707
13708 2010-12-19  Bruno Haible  <bruno@clisp.org>
13709
13710         fchdir: Add missing declaration on OSF/1 5.1.
13711         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
13712         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
13713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
13714         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
13715         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
13716
13717 2010-12-19  Bruno Haible  <bruno@clisp.org>
13718
13719         relocatable-prog-wrapper: Separate from relocatable-prog.
13720         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
13721         uninstall-relocwrapper rule here.
13722         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
13723         Reported by Ian Beckwith <ianb@erislabs.net>.
13724
13725 2010-12-19  Bruno Haible  <bruno@clisp.org>
13726
13727         unistr/u8-mbsnlen: Add missing dependency.
13728         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
13729         Reported by Ian Beckwith <ianb@erislabs.net>.
13730
13731 2010-12-19  Bruno Haible  <bruno@clisp.org>
13732
13733         iconv: Make it possible again to use this module without 'iconv-h'.
13734         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
13735         if it is not defined.
13736         Reported by Ian Beckwith <ianb@erislabs.net>.
13737
13738 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13739
13740         acl: port to Solaris 8 when copying from tmpfs to ufs
13741         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
13742         error number.  Problem observed on Solaris 8 with latest
13743         coreutils, with "mv A B", where A is on a tmpfs file system and B
13744         is on a ufs file system.  This caused coreutils' mv/part-symlink
13745         test to fail.
13746
13747         tests: set fail=0 at start
13748         * tests/init.sh (setup_): Move fail=0 initialization here ...
13749         (mktempd_): ... from here, so that tests can rely on fail being
13750         set to 0 initially.  This fixes a problem in coreutils; see:
13751         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
13752
13753 2010-12-18  Bruno Haible  <bruno@clisp.org>
13754
13755         memmem-simple: Stylistic changes.
13756         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
13757         Fix preprocessor directive indentation.
13758
13759 2010-12-15  Pádraig Brady <P@draigBrady.com>
13760
13761         memmem, memmem-simple: reorganize and expand empty needle check
13762         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
13763         functional checks to memmem-simple so that one has a fully functional
13764         memmem by using just this module.
13765         Restrict the performance only check to the memmem module.
13766         Also expand the empty needle check to ensure the correct
13767         pointer is returned, not just a non NULL pointer.
13768         * doc/glibc-functions/memmem.texi: Rearrange the portability
13769         documentation to correlate with the rearranged checks.
13770         Clarify exactly how the memmem and memmem-simple modules
13771         relate to each other.
13772
13773 2010-12-15  Pádraig Brady <P@draigBrady.com>
13774             Bruno Haible  <bruno@clisp.org>
13775
13776         Improve cross-compilation guesses for uClibc.
13777         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
13778         that uClibc does not have the glibc bug.
13779         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
13780         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
13781
13782 2010-12-14  Eric Blake  <eblake@redhat.com>
13783
13784         configmake: provide fallbacks for oldest supported autotools
13785         * m4/configmake.m4: New file.
13786         * modules/configmake (Files): Ship it.
13787         (configure.ac): Use it to guarantee fallbacks.
13788
13789 2010-12-13  Pádraig Brady <P@draigBrady.com>
13790
13791         read-file: Improve handling of large files
13792         * lib/read-file.c (fread_file): Minimize realloc()s
13793         for regular files, and better manage sizes around SIZE_MAX.
13794
13795 2010-12-13  Eric Blake  <eblake@redhat.com>
13796
13797         cloexec, fcntl: relax license
13798         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
13799         consent from all contributors.
13800         * modules/fcntl (License): Likewise.
13801
13802 2010-12-10  Bruno Haible  <bruno@clisp.org>
13803
13804         Tests for module 'pipe-posix'.
13805         * modules/pipe-posix-tests: New file.
13806         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
13807
13808 2010-12-10  Bruno Haible  <bruno@clisp.org>
13809
13810         pipe-posix: Make it work in C++ mode.
13811         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
13812         (pipe): Use common idiom, not a macro definition.
13813         * lib/pipe.c: New file.
13814         * m4/pipe.m4: New file.
13815         * modules/pipe-posix (Description): Enhance.
13816         (Files): Add lib/pipe.c, m4/pipe.m4.
13817         (configure.ac): Invoke gl_FUNC_PIPE.
13818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
13819         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
13820         * tests/test-unistd-c++.cc: Check the signature of pipe.
13821
13822 2010-12-10  Bruno Haible  <bruno@clisp.org>
13823
13824         Rename module 'pipe' to 'spawn-pipe'.
13825         * modules/spawn-pipe: New file, renamed from modules/pipe.
13826         (Files, configure.ac, Makefile.am): Update.
13827         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
13828         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
13829         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
13830         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
13831         "spawn-pipe.h" instead of "pipe.h".
13832         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
13833         to gl_SPAWN_PIPE.
13834         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
13835         (Files, Makefile.am): Update.
13836         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
13837         Update.
13838         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
13839         Include "spawn-pipe.h" instead of "pipe.h".
13840         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
13841         * lib/javacomp.c: Likewise.
13842         * lib/javaversion.c: Likewise.
13843         * lib/pipe-filter-gi.c: Likewise.
13844         * lib/pipe-filter-ii.c: Likewise.
13845         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
13846         * modules/javacomp (Depends-on): Likewise.
13847         * modules/javaversion (Depends-on): Likewise.
13848         * modules/pipe-filter-gi (Depends-on): Likewise.
13849         * modules/pipe-filter-ii (Depends-on): Likewise.
13850         * MODULES.html.sh (Executing programs): Update.
13851         * NEWS: Mention the change.
13852
13853 2010-12-10  Eric Blake  <eblake@redhat.com>
13854
13855         pipe-posix: new module
13856         * modules/pipe-posix: New file.
13857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
13858         (gl_UNISTD_H): Check for declaration.
13859         * modules/unistd (Makefile.am): Substitute it.
13860         * lib/unistd.in.h (pipe): Provide it for mingw.
13861         * doc/posix-functions/pipe.texi (pipe): Update documentation.
13862         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
13863
13864 2010-12-07  Bruno Haible  <bruno@clisp.org>
13865
13866         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
13867         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
13868         u8_strcmp_gnu.
13869         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
13870
13871 2010-12-06  Bruno Haible  <bruno@clisp.org>
13872
13873         Update internal documentation.
13874         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
13875
13876 2010-12-04  Bruno Haible  <bruno@clisp.org>
13877
13878         Put more information about failed tests into the test return codes.
13879         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
13880         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
13881         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13882         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13883         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
13884         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13885         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13886         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13887         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
13888         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13889         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
13890         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13891         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13892         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13893         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
13894         returns a bit mask.
13895         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
13896         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
13897         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
13898         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
13899         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13900         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13901         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13902         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13903         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13904         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13905         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13906         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13907         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13908         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13909         * m4/link.m4 (gl_FUNC_LINK): Likewise.
13910         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13911         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
13912         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
13913         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13914         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
13915         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13916         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13917         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
13918         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13919         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13920         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
13921         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
13922         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13923         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13924         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
13925         gl_PRINTF_PRECISION): Likewise.
13926         * m4/regex.m4 (gl_REGEX): Likewise.
13927         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
13928         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13929         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
13930         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13931         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13932         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13933         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13934         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
13935         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13936         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13937         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13938         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
13939         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13940         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
13941         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13942         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13943         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
13944         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13945         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13946         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
13947         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
13948         enumerated value.
13949         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
13950
13951 2010-12-04  Bruno Haible  <bruno@clisp.org>
13952
13953         Update for Solaris 11 2010-11.
13954         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
13955         Express, released in November 2010.
13956
13957 2010-12-04  Bruno Haible  <bruno@clisp.org>
13958
13959         nproc: Relax license.
13960         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
13961         and Paul Eggert.
13962         Requested by Ludovic Courtès <ludo@gnu.org>.
13963
13964 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
13965
13966         utimecmp: fine-grained src to nearby coarse-grained dest
13967
13968         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
13969         and the source is on a file system with higher-resolution time
13970         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
13971         not work, and the time stamps are close together, the algorithm to
13972         determine the exact resolution from the read-back mtime was buggy:
13973         it had a "!=" where it should have had an "==".  This bug has been
13974         in the code ever since it was introduced to gnulib.
13975         Problem reported by Dan Jacobson in
13976         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
13977
13978 2010-11-30  Bruno Haible  <bruno@clisp.org>
13979
13980         strerror_r-posix: Fix autoconf test.
13981         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
13982
13983 2010-11-28  Bruno Haible  <bruno@clisp.org>
13984             Paul Eggert  <eggert@cs.ucla.edu>
13985
13986         Tests for module 'getdomainname'.
13987         * modules/getdomainname-tests: New file.
13988         * tests/test-getdomainname.c: New file, based on
13989         tests/test-gethostname.c.
13990
13991 2010-11-28  Bruno Haible  <bruno@clisp.org>
13992             Paul Eggert  <eggert@cs.ucla.edu>
13993
13994         getdomainname: Use the system function when possible.
13995         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
13996         (getdomainname): Replace if needed. Provide the declaration if it is
13997         missing. Don't use _GL_CXXALIAS_SYS_CAST.
13998         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
13999         (getdomainname): When the system has getdomainname, call the system
14000         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14001         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14002         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14003         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14004         the function if its second argument is of type 'int' or if it is found
14005         in libnsl.
14006         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14007         <sys/systeminfo.h> and sysinfo().
14008         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14010         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14011         HAVE_GETDOMAINNAME.
14012         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14013         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14014         * doc/glibc-functions/getdomainname.texi: Document the problems with
14015         the getdomainname declaration.
14016
14017 2010-11-28  Bruno Haible  <bruno@clisp.org>
14018
14019         sys_socket: Ensure ss_family field on AIX.
14020         * lib/sys_socket.in.h (ss_family): New macro definition.
14021         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14022         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14023         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14024         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14025         * modules/sys_socket (Makefile.am): Substitute
14026         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14027         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14028
14029 2010-11-27  Bruno Haible  <bruno@clisp.org>
14030
14031         readline: Improve configure output.
14032         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14033         "checking for readline..." result understandable.
14034
14035 2010-11-27  Bruno Haible  <bruno@clisp.org>
14036
14037         *printf-posix: Detect a bug on Solaris 10/x86.
14038         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14039         for floating-point output.
14040         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14041         directive.
14042         * tests/test-snprintf-posix.h (test_function): Likewise.
14043         * tests/test-sprintf-posix.h (test_function): Likewise.
14044         * tests/test-vasprintf-posix.c (test_function): Likewise.
14045         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14046         * doc/posix-functions/printf.texi: Likewise.
14047         * doc/posix-functions/snprintf.texi: Likewise.
14048         * doc/posix-functions/sprintf.texi: Likewise.
14049         * doc/posix-functions/vfprintf.texi: Likewise.
14050         * doc/posix-functions/vprintf.texi: Likewise.
14051         * doc/posix-functions/vsnprintf.texi: Likewise.
14052         * doc/posix-functions/vsprintf.texi: Likewise.
14053         * doc/glibc-functions/obstack_printf.texi: Likewise.
14054         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14055
14056 2010-11-27  Bruno Haible  <bruno@clisp.org>
14057
14058         Fix link error when module libunistring-optional is in use.
14059         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14060         * modules/striconveha-tests (Makefile.am): Likewise.
14061
14062 2010-11-27  Bruno Haible  <bruno@clisp.org>
14063
14064         regex: Mention link dependencies.
14065         * modules/regex (Link): New section.
14066         * modules/rpmatch (Link): Likewise.
14067         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14068
14069 2010-11-27  Bruno Haible  <bruno@clisp.org>
14070
14071         ftoastr: Fix compilation error on Solaris.
14072         * lib/ftoastr.c: Include <config.h>.
14073
14074 2010-11-27  Bruno Haible  <bruno@clisp.org>
14075
14076         getloadavg: Update documentation.
14077         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14078
14079 2010-11-27  Bruno Haible  <bruno@clisp.org>
14080
14081         sys_socket: Fix test whether the functions are declared.
14082         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14083         not <sys/select.h>.
14084
14085 2010-11-27  Bruno Haible  <bruno@clisp.org>
14086
14087         getpass: Make sure to get system declaration on some platforms.
14088         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14089         gl_USE_SYSTEM_EXTENSIONS.
14090         * modules/getpass (Depends-on): Add extensions.
14091
14092 2010-11-26  Bruno Haible  <bruno@clisp.org>
14093
14094         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14095         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14096         'iconv' module is present.
14097         (ICONV_CONST): New macro.
14098         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14099         ICONV_CONST.
14100         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14101         set ICONV_CONST.
14102         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14103         here.
14104         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14105         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14106         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14107         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14108         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14109         present.
14110
14111 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14112
14113         ftoastr: comment fix
14114         * lib/ftoastr.c: "little" -> "little or no" in comment
14115
14116 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14117
14118         stdint: port to GCC 4.3 + OSX + Octave
14119         On this platform, stdint.h is buggy and defines int64_t to long
14120         long int.  The replacement defined it to long int, causing
14121         problems with C++ style name mangling.  Instead, trust the system
14122         definition if INT64_MAX is defined, and likewise for the unsigned
14123         variant.   Problem reported by Jarno Rajahalme in
14124         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14125         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14126         and don't mess with int64_t and INT64_MAX in this case.
14127         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14128
14129 2010-11-24  Bruno Haible  <bruno@clisp.org>
14130
14131         doc: Corrections regarding MacOS X 10.4 and 10.5.
14132         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14133         MacOS X.
14134         Reported by Simon Josefsson.
14135
14136 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14137
14138         Uninstall ".bin" files installed by relocwrapper.
14139         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14140         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14141         unless it is already there.
14142
14143 2010-11-21  Bruno Haible  <bruno@clisp.org>
14144
14145         Update for NetBSD 5.0.
14146         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14147         NetBSD; the test fails on NetBSD 5.0.
14148         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14149         about NetBSD.
14150
14151 2010-11-21  Bruno Haible  <bruno@clisp.org>
14152
14153         Update for HP-UX 11.23 and HP-UX 11.31.
14154         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
14155         HP-UX.
14156
14157 2010-11-21  Bruno Haible  <bruno@clisp.org>
14158
14159         Update for MacOS X 10.5.
14160         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14161         MacOS X; the test fails on MacOS X 10.5.8.
14162         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14163         about MacOS X.
14164
14165 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
14166
14167         bootstrap: add bootstrap_sync option.
14168         See discussion at
14169         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
14170         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
14171         * build-aux/bootstrap: Accept --bootstrap-sync to update
14172         bootstrap if it is not identical to the local gnulib's
14173         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
14174         enable this by default.  Accept --no-bootstrap-sync to disable
14175         it.
14176
14177 2010-11-20  Bruno Haible  <bruno@clisp.org>
14178
14179         Ensure that <features.h> is included before __GLIBC__ is tested.
14180         * lib/printf-parse.h: Include <features.h>.
14181         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
14182         Reported by Mike Frysinger <vapier@gentoo.org>.
14183
14184         Ensure that <features.h> is included before __GLIBC__ is tested.
14185         * lib/wchar.in.h: Include <features.h>.
14186         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
14187         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
14188         Reported by Mike Frysinger <vapier@gentoo.org>.
14189
14190         Ensure that <features.h> is included before __GLIBC__ is tested.
14191         * lib/arpa_inet.in.h: Include <features.h>.
14192         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
14193         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
14194         Reported by Mike Frysinger <vapier@gentoo.org>.
14195
14196         Ensure that <features.h> is included before __GLIBC__ is tested.
14197         * build-aux/link-warning.h: Include <features.h>.
14198         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
14199         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
14200         Reported by Mike Frysinger <vapier@gentoo.org>.
14201
14202         Ensure that <features.h> is included before __GLIBC__ is tested.
14203         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
14204         Reported by Mike Frysinger <vapier@gentoo.org>.
14205
14206 2010-11-20  Bruno Haible  <bruno@clisp.org>
14207
14208         memmem: Fix autoconf test.
14209         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
14210
14211 2010-11-20  Bruno Haible  <bruno@clisp.org>
14212
14213         Port to uClibc.
14214         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
14215         * lib/fcntl.in.h: Likewise.
14216         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
14217         * lib/mbrtowc.c (mbrtowc): Likewise.
14218         * lib/relocatable.c (find_shared_library_fullname): Likewise.
14219         * lib/strerror_r.c: Likewise.
14220         * lib/unistr/u8-strnlen.c: Likewise.
14221         * lib/vasnprintf.c (decimal_point_char): Likewise.
14222         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14223         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14224         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14225         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14226         * tests/test-sigaction.c (handler, main): Likewise.
14227         * lib/freading.h: Treat uClibc like a non-glibc platform.
14228         * lib/freading.c: Likewise.
14229         * lib/gettext.h: Likewise.
14230         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
14231         Likewise.
14232         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
14233         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14234         * lib/propername.c (proper_name_utf8): Likewise.
14235         * lib/spawn.in.h: Likewise.
14236         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
14237         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
14238         mem_cd_iconveh_internal): Likewise.
14239         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
14240         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14241         strstr, strcasestr): Likewise.
14242         * lib/unicodeio.c (unicode_to_mb): Likewise.
14243         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
14244         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
14245         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
14246         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
14247         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
14248         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
14249         * lib/unistr/u8-stpncpy.c: Likewise.
14250         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14251         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
14252         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14253         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14254         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14255         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
14256         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
14257         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
14258         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14259         Likewise.
14260         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14261         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14262         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14263         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14264         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14265         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14266         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14267         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14268         * tests/test-getopt.h (OPTIND_MIN): Likewise.
14269         * tests/test-striconveha.c (main): Likewise.
14270         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14271         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
14272         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
14273         * doc/posix-functions/getline.texi: Likewise.
14274         Reported by Mike Frysinger <vapier@gentoo.org>.
14275
14276 2010-11-20  Bruno Haible  <bruno@clisp.org>
14277
14278         nproc: Fix condition.
14279         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14280         HAVE_PTHREAD_AFFINITY_NP.
14281
14282 2010-11-20  Bruno Haible  <bruno@clisp.org>
14283
14284         Fix a comment.
14285         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14286
14287 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14288
14289         ftoastr: don't assume snprintf
14290         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14291         Implement a subset of snprintf here, by using sprintf safely.
14292         * modules/ftoastr (Depends-on): Remove snprintf.
14293
14294 2010-11-19  Jim Meyering  <meyering@redhat.com>
14295
14296         test-rename.h: fix compilation failure
14297         * tests/test-rename.h (test_rename): Add omitted "}".
14298
14299 2010-11-17  Jim Meyering  <meyering@redhat.com>
14300
14301         maint.mk: add a URL discussing the no-@acronym policy
14302         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14303
14304 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14305
14306         ftoastr: depend on snprintf, improve comments
14307         * lib/ftoastr.c: Also mention Loitsch's draft.
14308         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
14309         needed in the current implementation, but it might simplify
14310         speeding up the code later.
14311         * modules/ftoastr: Depend on snprintf; this improves portability.
14312         Suggested by Bruno Haible in the same email.
14313
14314         ftoastr: port to hosts lacking strtof and strtold
14315         Problem reported by Bruno Haible in
14316         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14317         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
14318         environment and strtold (and presumably strtof) are not available.
14319         * modules/ftoastr (Files): Add m4/c-strtod.m4.
14320         (configure.ac): Require gl_C99_STRTOLD.
14321
14322 2010-11-18  Bruno Haible  <bruno@clisp.org>
14323
14324         c-strtold: Avoid link error on AIX 7.
14325         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
14326         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
14327         (gl_C_STRTOLD): Test whether strtold_l exists.
14328         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14329
14330 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14331
14332         intprops: new macro INT_BITS_STRLEN_BOUND
14333         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
14334         ftoastr.h.  This exposes an internal of intprops.h that was formerly
14335         not exposed.  Also, it uses a slightly tighter bound than before;
14336         though this makes no practical difference, we might as well be as
14337         tight as we easily can.
14338
14339         ftoastr: new module, for lossless conversion of floats to short strings
14340         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
14341         * modules/ftoastr: New files.
14342
14343 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14344
14345         bootstrap: port to Solaris sed
14346         * build-aux/bootstrap (get_version): Port to Solaris sed.
14347         See Ralf Wildenhues's note in
14348         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
14349
14350 2010-11-14  Jim Meyering  <meyering@redhat.com>
14351
14352         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
14353         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
14354         and move definition closer to sole use.
14355
14356 2010-11-13  Jim Meyering  <meyering@redhat.com>
14357
14358         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
14359         Now we require at least autoconf-2.59, which means the work-around
14360         is no longer needed.
14361         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
14362         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14363         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14364         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14365         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14366
14367 2010-11-13  Bruno Haible  <bruno@clisp.org>
14368
14369         rename, renameat: Avoid test failures at NFS mounted locations.
14370         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
14371         functions.
14372         (test_rename): Use assert_nonexistent.
14373         * tests/test-rename.c: Include <dirent.h>.
14374         * tests/test-renameat.c: Likewise.
14375         Reported by Gary V. Vaughan <gary@gnu.org>.
14376
14377         rename, renameat: Document Linux bug with NFS
14378         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
14379         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
14380         * doc/posix-functions/renameat.texi: Likewise.
14381         Suggested by Eric Blake.
14382
14383 2010-11-13  Bruno Haible  <bruno@clisp.org>
14384
14385         rename test: Add comments.
14386         * tests/test-rename.h (test_rename): Add structure and comments.
14387
14388 2010-11-13  Eric Blake  <eblake@redhat.com>
14389
14390         maintainer-makefile: cover a few more files
14391         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
14392         scripts generated within C files, for libvirt.
14393
14394 2010-11-13  Bruno Haible  <bruno@clisp.org>
14395
14396         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
14397         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
14398         character, return the number of bytes that belong together, not always
14399         1.
14400         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
14401         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
14402         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
14403         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
14404         number of bytes of an invalid character.
14405         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
14406         (main): Invoke it.
14407         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
14408         results.
14409         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
14410         malformed byte sequences.
14411         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
14412         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
14413         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
14414         Reported by Ben Pfaff and Paolo Bonzini.
14415
14416 2010-11-13  Bruno Haible  <bruno@clisp.org>
14417
14418         openat: Work around glibc bug with fchownat() and empty file names.
14419         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
14420         (gl_FUNC_FCHOWNAT): Invoke it.
14421         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
14422         * doc/posix-functions/fchownat.texi: Document the glibc bug.
14423         Reported by Gary V. Vaughan <gary@gnu.org>.
14424
14425 2010-11-13  Bruno Haible  <bruno@clisp.org>
14426
14427         openat: Ensure autoconf macro ordering.
14428         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
14429         gl_USE_SYSTEM_EXTENSIONS.
14430         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
14431
14432 2010-11-13  Bruno Haible  <bruno@clisp.org>
14433
14434         Update comments.
14435         * lib/unistr/u8-check.c: Update file name in comments.
14436         * lib/unistr/u8-mblen.c: Likewise.
14437         * lib/unistr/u8-prev.c: Likewise.
14438         * lib/unistr/u8-strmblen.c: Likewise.
14439         * lib/unistr/u8-strmbtouc.c: Likewise.
14440
14441 2010-11-13  Jim Meyering  <meyering@redhat.com>
14442
14443         tests: avoid test failure on Solaris 10 due to lack of PATH export
14444         * tests/test-update-copyright.sh: Don't forget to export PATH.
14445
14446         init.sh: ensure that IFS is defined, just in case...
14447         * tests/init.sh (setup_): Ensure that IFS is defined,
14448         so that saving and restoring it works as expected.  This
14449         appears to be useful at least for an old version of dash
14450         from a long time ago (RH 6).  See here for details:
14451         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
14452
14453         maint.mk: tighten "test a == b" check
14454         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
14455         test to files that contain something like #!/bin/sh.
14456         Without this, coreutils would get two false positives in
14457         the comments of C source files.
14458
14459 2010-11-12  Eric Blake  <eblake@redhat.com>
14460
14461         bootstrap: fix typo in previous attempt
14462         * build-aux/bootstrap (buildreq): Correct the grouping.
14463         Reported by Paul Eggert.
14464
14465         maintainer-makefile: prohibit test x == x
14466         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
14467         Based on a report by Matthias Bolte.
14468
14469         bootstrap: allow FreeBSD gzip
14470         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
14471         which has no '.' and goes to stderr.
14472         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
14473         Reported by Matthias Bolte.
14474
14475         maintainer-makefile: check for i18n setup
14476         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
14477         will likely work.
14478
14479 2010-11-12  Bruno Haible  <bruno@clisp.org>
14480
14481         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
14482         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
14483         * lib/nanosleep.c (nanosleep): Likewise.
14484
14485 2010-11-11  Bruno Haible  <bruno@clisp.org>
14486
14487         fcntl-h: Fix for use of C++ on glibc systems.
14488         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14489         also on glibc systems in C++ mode.
14490         Reported by Gary V. Vaughan <gary@gnu.org>.
14491
14492 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14493
14494         mknod: avoid false failure with dash
14495         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
14496
14497 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
14498
14499         unlink: Fix "is it should" typo in diagnostic.
14500         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
14501         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
14502
14503 2010-11-11  Bruno Haible  <bruno@clisp.org>
14504
14505         Tests for module 'strerror_r-posix'.
14506         * modules/strerror_r-posix-tests: New file.
14507         * tests/test-strerror_r.c: New file.
14508         * tests/test-string-c++.cc: Check the signature of strerror_r.
14509
14510         New module 'strerror_r-posix'.
14511         * lib/string.in.h (strerror_r): New declaration.
14512         * lib/strerror_r.c: New file.
14513         * m4/strerror_r.m4: New file.
14514         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
14515         of strerror_r.
14516         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
14517         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14518         * modules/strerror_r-posix: New file.
14519         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
14520         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14521         * doc/posix-functions/strerror_r.texi: Mention the new module and the
14522         portability problems.
14523
14524 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
14525
14526         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
14527         line is also considered for output. Quoted function name in shell
14528         command, so temporary files for functions like MyClass::operator()
14529         are removed correctly without errors.
14530
14531 2010-11-09  Bruno Haible  <bruno@clisp.org>
14532
14533         * doc/posix-functions/strerror.texi: List more failing platforms.
14534
14535         * doc/posix-functions/strerror.texi: Add a comment.
14536
14537 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14538
14539         fdopendir: fix bug on MacOS X when low on file descriptors
14540
14541         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
14542         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
14543         All callers changed.
14544         (fdopendir): Invoke save_cwd at the top level, not after using
14545         multiple dup() calls to use up file descriptors.  Then retry
14546         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
14547         less than the maximum number of open file descriptors, because
14548         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
14549         on Mac OS X 10.6.4 for tar 1.24
14550         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
14551         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
14552         and for tar 1.25
14553         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
14554
14555 2010-11-07  Bruno Haible  <bruno@clisp.org>
14556
14557         vasnprintf: Support I flag on glibc systems.
14558         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
14559         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
14560         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
14561         snprintf function.
14562         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
14563         glibc systems.
14564         * tests/test-vasnprintf-posix3.c: New file.
14565         * modules/vasnprintf-posix-tests (Files): Add it.
14566         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
14567
14568 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14569
14570         [html] Fix copy/paste bug: Use unique name for compiler warnings.
14571         * MODULES.html.sh: For compiler warnings, use name
14572         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
14573
14574 2010-11-05  Eric Blake  <eblake@redhat.com>
14575
14576         ceil, floor: avoid spurious failure with icc
14577         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
14578         [denormals-as-zero] when optimizing without -mieee-fp option.
14579         * tests/test-floorf2.c (floorf_reference): Likewise.
14580         * tests/test-ceilf1.c (dummy): New function.
14581         (main): Use it to outsmart icc's optimization.
14582         * tests/test-floorf1.c (dummy, main): Likewise.
14583
14584         tests: require working signbit
14585         * modules/ceilf-tests (Depends-on): Add signbit.
14586         * modules/ceill-tests (Depends-on): Likewise.
14587         * modules/floorf-tests (Depends-on): Likewise.
14588         * modules/floorl-tests (Depends-on): Likewise.
14589         * modules/round-tests (Depends-on): Likewise.
14590         * modules/roundf-tests (Depends-on): Likewise.
14591         * modules/roundl-tests (Depends-on): Likewise.
14592         * modules/trunc-tests (Depends-on): Likewise.
14593         * modules/truncf-tests (Depends-on): Likewise.
14594         * modules/truncl-tests (Depends-on): Likewise.
14595
14596         strtod: work around icc bug
14597         * lib/strtod.c (minus_zero): Define to working value.
14598         (strtod): Use it to avoid icc bug.
14599
14600         copysign: enhance tests
14601         * modules/copysign-tests (Files): Add minus-zero.h.
14602         * tests/test-copysign.c (main): Also test zeros.
14603
14604 2010-11-04  Eric Blake  <eblake@redhat.com>
14605
14606         ceil, floor, round, trunc: enhance tests of -0
14607         * tests/test-ceilf1.c (main): Ensure correct sign of result.
14608         * tests/test-ceill.c (main): Likewise.
14609         * tests/test-floorf1.c (main): Likewise.
14610         * tests/test-floorl.c (main): Likewise.
14611         * tests/test-round1.c (main): Likewise.
14612         * tests/test-roundf1.c (main): Likewise.
14613         * tests/test-roundl.c (main): Likewise.
14614         * tests/test-trunc1.c (main): Likewise.
14615         * tests/test-truncf1.c (main): Likewise.
14616         * tests/test-truncl.c (main): Likewise.
14617
14618 2010-11-04  Eric Blake  <eblake@redhat.com>
14619
14620         frexp, tests: work around ICC bug with -zero
14621         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
14622         works with more compilers.
14623         * tests/minus-zero.h: New file.
14624         * modules/ceilf-tests (Files): Include it.
14625         * modules/ceill-tests (Files): Likewise.
14626         * modules/floorf-tests (Files): Likewise.
14627         * modules/floorl-tests (Files): Likewise.
14628         * modules/frexp-nolibm-tests (Files): Likewise.
14629         * modules/frexp-tests (Files): Likewise.
14630         * modules/frexpl-nolibm-tests (Files): Likewise.
14631         * modules/frexpl-tests (Files): Likewise.
14632         * modules/isnan-tests (Files): Likewise.
14633         * modules/isnand-nolibm-tests (Files): Likewise.
14634         * modules/isnand-tests (Files): Likewise.
14635         * modules/isnanf-nolibm-tests (Files): Likewise.
14636         * modules/isnanf-tests (Files): Likewise.
14637         * modules/isnanl-nolibm-tests (Files): Likewise.
14638         * modules/isnanl-tests (Files): Likewise.
14639         * modules/round-tests (Files): Likewise.
14640         * modules/roundf-tests (Files): Likewise.
14641         * modules/roundl-tests (Files): Likewise.
14642         * modules/ldexpl-tests (Files): Likewise.
14643         * modules/signbit-tests (Files): Likewise.
14644         * modules/snprintf-posix-tests (Files): Likewise.
14645         * modules/sprintf-posix-tests (Files): Likewise.
14646         * modules/strtod-tests (Files): Likewise.
14647         * modules/trunc-tests (Files): Likewise.
14648         * modules/truncf-tests (Files): Likewise.
14649         * modules/truncl-tests (Files): Likewise.
14650         * modules/vsnprintf-posix-tests (Files): Likewise.
14651         * modules/vsprintf-posix-tests (Files): Likewise.
14652         * modules/vasnprintf-posix-tests (Files): Likewise.
14653         * modules/vasprintf-posix-tests (Files): Likewise.
14654         * tests/test-ceilf1.c (main): Use it.
14655         * tests/test-ceill.c (main): Likewise.
14656         * tests/test-floorf1.c (main): Likewise.
14657         * tests/test-floorl.c (main): Likewise.
14658         * tests/test-frexp.c (main): Likewise.
14659         * tests/test-frexpl.c (main): Likewise.
14660         * tests/test-isnan.c (main): Likewise.
14661         * tests/test-isnand.h (main): Likewise.
14662         * tests/test-isnanf.h (main): Likewise.
14663         * tests/test-isnanl.h (main): Likewise.
14664         * tests/test-ldexpl.c (main): Likewise.
14665         * tests/test-round.c (main): Likewise.
14666         * tests/test-roundf.c (main): Likewise.
14667         * tests/test-roundl.c (main): Likewise.
14668         * tests/test-signbit.c (test_signbitf, test_signbitd)
14669         (test_signbitl): Likewise.
14670         * tests/test-snprintf-posix.h (test_function): Likewise.
14671         * tests/test-sprintf-posix.h (test_function): Likewise.
14672         * tests/test-strtod.c (main): Likewise.
14673         * tests/test-trunc1.c (main): Likewise.
14674         * tests/test-truncf1.c (main): Likewise.
14675         * tests/test-truncl.c (main): Likewise.
14676
14677         isnanl: work around icc bug
14678         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
14679
14680 2010-11-03  Eric Blake  <eblake@redhat.com>
14681
14682         tests: fix compiler warnings
14683         * tests/test-getopt.h (test_getopt): Fix condition.
14684         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14685         * tests/test-pipe2.c (main): Likewise.
14686         * tests/test-quotearg-simple.c (main): Avoid icc warning.
14687
14688         utimens: fix broken m4 test
14689         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
14690
14691 2010-10-28  Bruno Haible  <bruno@clisp.org>
14692
14693         posix_spawn*, getdtablesize: Relax license.
14694         * modules/posix_spawn (License): Change to LGPLv2+.
14695         * modules/posix_spawnp (License): Likewise.
14696         * modules/posix_spawn-internal (License): Likewise.
14697         * modules/posix_spawnattr_init (License): Likewise.
14698         * modules/posix_spawnattr_getflags (License): Likewise.
14699         * modules/posix_spawnattr_setflags (License): Likewise.
14700         * modules/posix_spawnattr_getpgroup (License): Likewise.
14701         * modules/posix_spawnattr_setpgroup (License): Likewise.
14702         * modules/posix_spawnattr_getschedparam (License): Likewise.
14703         * modules/posix_spawnattr_setschedparam (License): Likewise.
14704         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
14705         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
14706         * modules/posix_spawnattr_getsigdefault (License): Likewise.
14707         * modules/posix_spawnattr_setsigdefault (License): Likewise.
14708         * modules/posix_spawnattr_getsigmask (License): Likewise.
14709         * modules/posix_spawnattr_setsigmask (License): Likewise.
14710         * modules/posix_spawnattr_destroy (License): Likewise.
14711         * modules/posix_spawn_file_actions_init (License): Likewise.
14712         * modules/posix_spawn_file_actions_addclose (License): Likewise.
14713         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
14714         * modules/posix_spawn_file_actions_addopen (License): Likewise.
14715         * modules/posix_spawn_file_actions_destroy (License): Likewise.
14716         * modules/getdtablesize (License): Likewise.
14717         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
14718
14719 2010-10-26  Bruno Haible  <bruno@clisp.org>
14720
14721         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
14722         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
14723         Cygwin and mingw.
14724         Suggested by Eric Blake.
14725
14726 2010-10-26  Bruno Haible  <bruno@clisp.org>
14727
14728         stdio: Work around compilation error due to renameat() on Solaris 10.
14729         * lib/stdio.in.h: Include <unistd.h> on Solaris.
14730         * lib/renameat.c: Don't include <unistd.h> here.
14731         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
14732         Reported by Paul Eggert and Eric Blake.
14733
14734 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
14735
14736         renameat: port to Solaris 10, which declares renameat in unistd.h
14737
14738         * lib/renameat.c: Include unistd.h before stdio.h, because
14739         Solaris 10 declares renameat in unistd.h.  Problem encountered
14740         when building GNU tar 1.24 on Solaris 10.
14741
14742 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14743
14744         fdopendir: fix C89 compilation
14745         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
14746         compilers.
14747
14748 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
14749
14750         inttostr: simplify by removing unnecessary redundancy
14751         * lib/anytostr.c: Don't include verify.h.
14752         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
14753         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
14754         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
14755         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
14756         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
14757         Likewise.
14758         * modules/inttostr (Depends-on): Remove 'verify'.
14759
14760 2010-10-23  Bruno Haible  <bruno@clisp.org>
14761
14762         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
14763         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
14764         Reported by Eric Blake.
14765
14766 2010-10-23  Bruno Haible  <bruno@clisp.org>
14767
14768         Tests: Fix LOCALE_JA on MirBSD 10.
14769         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
14770         to an UTF-8 locale.
14771         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
14772         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14773         Reported by Eric Blake.
14774
14775 2010-10-21  Bruno Haible  <bruno@clisp.org>
14776
14777         nl_langinfo test: Avoid test failure on NetBSD 5.
14778         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
14779         Reported by Eric Blake.
14780
14781 2010-10-21  Eric Blake  <eblake@redhat.com>
14782
14783         c-stack: work around libsigsegv 2.8 bug
14784         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
14785         overflow on at least PowerPC64.
14786
14787 2010-10-17  Bruno Haible  <bruno@clisp.org>
14788
14789         userspec: Drop redundant file.
14790         * modules/userspec (Files): Remove lib/inttostr.h.
14791
14792 2010-10-17  Bruno Haible  <bruno@clisp.org>
14793
14794         nl_langinfo tests: Silence some warnings.
14795         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
14796         Reported by Jim Meyering.
14797
14798 2010-10-17  Bruno Haible  <bruno@clisp.org>
14799
14800         Make use of GCC's attribute __alloc_size__.
14801         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
14802         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
14803         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
14804         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
14805         __alloc_size__.
14806         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
14807         Suggested by Jim Meyering.
14808
14809 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
14810
14811         bootstrap: anchor .gitignore entries.
14812         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
14813         with...
14814         (insert_vc_ignore): ... this new function, which prepends `/' to
14815         all .gitignore entries before passing them to
14816         insert_sorted_if_absent.
14817
14818 2010-10-16  Bruno Haible  <bruno@clisp.org>
14819
14820         nextafter: Fix configure check.
14821         * modules/nextafter (configure.ac): Correct expected prototype.
14822
14823 2010-10-16  Bruno Haible  <bruno@clisp.org>
14824
14825         termios: Update documentation.
14826         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
14827
14828 2010-10-16  Bruno Haible  <bruno@clisp.org>
14829
14830         tests: Make them compile with TinyCC.
14831         * tests/test-strstr.c (main): Remove parentheses around array
14832         initializer.
14833
14834 2010-10-15  Eric Blake  <eblake@redhat.com>
14835
14836         ignore-value: make header idempotent
14837         * lib/ignore-value.h: Add double-inclusion guards.
14838         Reported by Stefan Berger.
14839
14840 2010-10-15  Jim Meyering  <meyering@redhat.com>
14841
14842         GNUmakefile: handle "stable" target, not "major"
14843         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
14844         lists in maint.mk and announce-gen.  Without this, "make stable"
14845         would fail to ensure that $(VERSION) is up to date.
14846
14847 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
14848
14849         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
14850         & co.
14851
14852 2010-10-14  Bruno Haible  <bruno@clisp.org>
14853
14854         vasnprintf: Don't set errno to 0.
14855         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
14856         block that sets it to 0.
14857         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
14858
14859 2010-10-14  Bruno Haible  <bruno@clisp.org>
14860
14861         socketlib: Fix.
14862         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
14863         gl_PREREQ_SYS_H_WINSOCK2.
14864         Reported by Ian Beckwith <ianb@erislabs.net>.
14865
14866 2010-10-13  Jim Meyering  <meyering@redhat.com>
14867
14868         test-select-stdin.c: avoid warn_unused_result warnings
14869         * tests/test-select-stdin.c: Include "macros.h".
14870         ASSERT that read and fflush succeed.
14871
14872 2010-10-13  Jim Meyering  <meyering@redhat.com>
14873
14874         git-version-gen: do require git-VC'd files in cwd
14875         * build-aux/git-version-gen: Reject a git version string
14876         if there are no commits associated with the current directory.
14877         This avoids an unlikely false-positive (unrelated dir whose parent
14878         repository also contains a tag matching v*), as pointed out
14879         by Giuseppe Scrivano in
14880         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
14881
14882 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
14883
14884         argv-iter: omit nonconforming declaration
14885         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
14886         enum arg_iter_err declaration, which doesn't conform to C99.
14887         Solaris 10 cc warns about this.
14888
14889 2010-10-13  Eric Blake  <eblake@redhat.com>
14890
14891         termios: fix compilation on mingw
14892         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
14893         (gl_TERMIOS_H): Adjust it on mingw.
14894         * modules/termios (Makefile.am): Substitute new key.
14895         * lib/termios.in.h (includes): Make include_next conditional.
14896         * doc/posix-headers/termios.texi (termios.h): Update
14897         documentation.
14898         Reported by Daniel P. Berrange.
14899
14900 2010-10-13  Jim Meyering  <meyering@redhat.com>
14901
14902         git-version-gen: don't require that .git/ be in the current dir
14903         * build-aux/git-version-gen: Adjust this script so that it works
14904         when run from any working directory beneath the top-level .git/-
14905         containing directory.  Inspired by a patch from Giuseppe Scrivano,
14906         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
14907
14908         test-select: avoid warn_unused_result warnings
14909         * tests/test-select.c: Include "macros.h".
14910         ASSERT that each call to read, write, and pipe succeeds.
14911         While not technically required, also check each "close".
14912         * modules/select-tests (Files): Add tests/macros.h.
14913
14914         test-symlinkat: remove declaration of unused local
14915         * tests/test-symlinkat.c (main): Remove unused local, "buf".
14916
14917         test-inttostr: avoid shadowing warnings
14918         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
14919         and use malloc rather than the stack for the same reason as
14920         mentioned in the comment justifying the other allocation.
14921
14922 2010-10-11  Bruno Haible  <bruno@clisp.org>
14923
14924         stdlib: Allow multiple gnulib generated replacements to coexist.
14925         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
14926         Reported by Sam Steingold <sds@gnu.org>.
14927
14928 2010-10-11  Jim Meyering  <meyering@redhat.com>
14929
14930         fix a documentation typo
14931         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
14932
14933 2010-10-11  Eric Blake  <eblake@redhat.com>
14934
14935         futimens: work around Solaris 11 bug
14936         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
14937         * tests/test-futimens.h (test_futimens): Enhance, rather than
14938         weaken test.
14939         * doc/posix-functions/futimens.texi (futimens): Document the bug.
14940
14941 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
14942
14943         Indentation.
14944         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
14945         higher-level operators more to the left.
14946
14947 2010-10-11  Jim Meyering  <meyering@redhat.com>
14948
14949         test-futimens: avoid unwarranted test failure on Solaris 5.11
14950         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
14951         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
14952         because it tries to dereference the NULL name argument.
14953
14954 2010-10-11  Bruno Haible  <bruno@clisp.org>
14955
14956         Indentation.
14957         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
14958         indentation.
14959
14960 2010-10-11  Jim Meyering  <meyering@redhat.com>
14961
14962         spawn.in.h: make indentation consistent with parentheses
14963         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
14964         Make indentation consistent with parentheses.
14965
14966 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
14967
14968         Fix mismatched parens in previous commit
14969         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
14970         parens.
14971
14972 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14973
14974         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
14975
14976         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
14977         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
14978         * lib/malloca.c: Include "verify.h".
14979         (verify1): Remove, replacing with a verify call.
14980         * lib/relocwrapper.c (verify1): Likewise.
14981         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
14982         Likewise.
14983         * modules/malloca (Depends-on): Add 'verify'.
14984         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
14985         * modules/vasnprintf (Depends-on): Add 'verify'.
14986         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14987         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14988         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14989         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14990         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14991         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14992         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14993
14994         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
14995
14996         Formerly the style was sometimes 2*X - 1, because the C standard
14997         was wrongly thought to disallow ?: in integral constant expressions.
14998         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
14999         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15000         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15001         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15002         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15003         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15004         verify that time_t cannot be floating.
15005
15006 2010-10-08  Eric Blake  <eblake@redhat.com>
15007
15008         time: enforce recent POSIX ruling that time_t is integral
15009         * lib/time.in.h (__time_t_must_be_integral): Detect any
15010         problematic systems, allowing the rest of gnulib to assume POSIX.
15011
15012 2010-10-08  Jim Meyering  <meyering@redhat.com>
15013
15014         fdopendir: fix a bug on systems lacking openat and /proc support
15015         OpenBSD 4.7 is one such system.  The most noticeable effect was
15016         failure of any application making nontrivial use of fts: rm, du,
15017         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15018           ./rm: traversal failed: `a': Bad file descriptor
15019         Debugging that, you see that even though FD 6 was closed just
15020         prior to the opendir call in fd_clone_opendir, its resulting
15021         dir->dd_fd was 8, rather than the expected value of 6:
15022
15023         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15024         93                close (fd);
15025         (gdb) n
15026         94                dir = fd_clone_opendir (dupfd);
15027         (gdb) n
15028         95                saved_errno = errno;
15029         (gdb) p dir->dd_fd
15030         $11 = 8
15031
15032         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15033         The problem is that on OpenBSD, fd_clone_opendir has to resort
15034         to using the old-style save/restore CWD mechanism, due to its
15035         lack of openat/proc support, and *that* would steal the FD (6)
15036         that opendir was supposed to use.
15037
15038         The fix is to squirrel away the desired FD so that save_cwd uses a
15039         different one, and then free the dest FD right before calling opendir.
15040         That guarantees opendir will use the required file descriptor.
15041
15042         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15043
15044 2010-10-08  Bruno Haible  <bruno@clisp.org>
15045
15046         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15047         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15048
15049 2010-10-08  Bruno Haible  <bruno@clisp.org>
15050
15051         nanosleep: Make replacement POSIX compliant.
15052         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15053         is out of range.
15054         Reported by Jim Meyering.
15055
15056 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15057
15058         bootstrap: add hook for altering gnulib.mk, for Bison
15059         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15060         the Bison bootstrapping process can rewrite file names and variables
15061         in this file before later parts of 'bootstrap' use the file.
15062         Bison wants to include lib/gnulib.mk from the top-level makefile,
15063         so it needs the file names in this file to be relative to the top
15064         level, not relative to lib; plus it needs variable names to be
15065         rewritten.
15066         (slurp): Use the new function.
15067
15068         bootstrap: reformat for readability
15069         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15070
15071 2010-10-08  Eric Blake  <eblake@redhat.com>
15072
15073         docs: update cygwin progress
15074         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15075         1.7.7.
15076         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15077         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15078         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15079         * doc/posix-functions/carg.texi (carg): Likewise.
15080         * doc/posix-functions/cargf.texi (cargf): Likewise.
15081         * doc/posix-functions/casin.texi (casin): Likewise.
15082         * doc/posix-functions/casinf.texi (casinf): Likewise.
15083         * doc/posix-functions/casinh.texi (casinh): Likewise.
15084         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15085         * doc/posix-functions/catan.texi (catan): Likewise.
15086         * doc/posix-functions/catanf.texi (catanf): Likewise.
15087         * doc/posix-functions/catanh.texi (catanh): Likewise.
15088         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15089         * doc/posix-functions/ccos.texi (ccos): Likewise.
15090         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15091         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15092         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15093         * doc/posix-functions/cexp.texi (cexp): Likewise.
15094         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15095         * doc/posix-functions/cimag.texi (cimag): Likewise.
15096         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15097         * doc/posix-functions/clog.texi (clog): Likewise.
15098         * doc/posix-functions/clogf.texi (clogf): Likewise.
15099         * doc/posix-functions/conj.texi (conj): Likewise.
15100         * doc/posix-functions/conjf.texi (conjf): Likewise.
15101         * doc/posix-functions/cpow.texi (cpow): Likewise.
15102         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15103         * doc/posix-functions/cproj.texi (cproj): Likewise.
15104         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15105         * doc/posix-functions/creal.texi (creal): Likewise.
15106         * doc/posix-functions/crealf.texi (crealf): Likewise.
15107         * doc/posix-functions/csin.texi (csin): Likewise.
15108         * doc/posix-functions/csinf.texi (csinf): Likewise.
15109         * doc/posix-functions/csinh.texi (csinh): Likewise.
15110         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15111         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15112         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15113         * doc/posix-functions/ctan.texi (ctan): Likewise.
15114         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15115         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15116         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15117         * doc/posix-headers/complex.texi (complex.h): Likewise.
15118
15119 2010-10-07  Jim Meyering  <meyering@redhat.com>
15120
15121         parse-datetime: avoid compilation failure on OpenBSD 4.7
15122         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15123         This works around a compilation failure on OpenBSD 4.7:
15124         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15125
15126 2010-10-07  Eric Blake  <eblake@redhat.com>
15127
15128         docs: update cygwin progress
15129         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15130         1.7.6.
15131         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15132         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15133         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15134         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15135         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15136         Likewise.
15137         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15138         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15139         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15140         Likewise.
15141         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15142         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15143         Likewise.
15144         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
15145         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
15146         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
15147         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
15148         Likewise.
15149         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
15150         Likewise.
15151         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
15152
15153         docs: update parse-datetime history
15154         * doc/parse-datetime.texi (Authors of parse_datetime): Better
15155         documentation of this function's history and alternatives.
15156
15157         cygwin: use more robust version check
15158         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
15159         exclude an eventual cygwin 1.9.1.
15160         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15161         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15162         (gl_FUNC_STRCASESTR): Likewise.
15163         Reported by Bruno Haible.
15164
15165 2010-10-06  Bruno Haible  <bruno@clisp.org>
15166
15167         string, sys_select: Avoid #including large headers unless necessary.
15168         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
15169         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
15170         OSF/1, BeOS, Haiku.
15171         Reported by Jim Meyering.
15172
15173 2010-10-05  Eric Blake  <eblake@redhat.com>
15174
15175         memmem, strstr, strcasestr: fix bug with long periodic needle
15176         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
15177         periodic needle having false positive.
15178         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
15179         and cygwin 1.7.7.
15180         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
15181         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15182         (gl_FUNC_STRCASESTR): Likewise.
15183         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15184         * tests/test-memmem.c (main): Expose the bug.
15185         * tests/test-strcasestr.c (main): Likewise.
15186         * tests/test-strstr.c (main): Likewise.
15187         * tests/test-c-strcasestr.c (main): Likewise.
15188         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
15189         * doc/posix-functions/strstr.texi (strstr): Likewise.
15190         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15191         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
15192
15193 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15194
15195         parse-datetime: do some more renaming
15196         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
15197         parse_datetime, not get_date.  Mention the renaming.
15198         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
15199         in comments.
15200         * m4/bison.m4: Likewise.
15201
15202 2010-10-05  Eric Blake  <eblake@redhat.com>
15203
15204         parse-datetime: better name than get_date
15205         * NEWS: Reword the deprecation notice.
15206         * modules/get_date: Rename to modules/parse-datetime.
15207         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
15208         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
15209         * lib/get_date.y: Rename to lib/parse-datetime.y.
15210         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
15211         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
15212         * doc/getdate.texi: Provide fallback wrapper.
15213         * lib/getdate.h: Move guts, and wrap...
15214         * lib/parse-datetime.h: ...new file.
15215         * lib/parse-datetime.y (get_date): Rename...
15216         (parse_datetime): ...to this.
15217         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
15218         (gl_PARSE_DATETIME): ...to this.
15219         * doc/posix-functions/getdate.texi (get_date): Provide fallback
15220         documentation.
15221         * modules/getdate (Files): Provide fallback docs and header.
15222         (Notice, Depends-on): Update references.
15223         * tests/test-parse-datetime.c: Likewise.
15224         * DEPENDENCIES: Likewise.
15225         * MODULES.html.sh (Date and time <time.h>): Likewise.
15226         * doc/parse-datetime.texi (Date input formats)
15227         (Authors of parse_datetime): Likewise.
15228         * modules/parse-datetime (Files, configure.ac, Makefile.am)
15229         (Include): Likewise.
15230         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
15231         * gnulib-tool: Likewise.
15232         * m4/bison.m4 (gl_BISON): Likewise.
15233         Suggested by Bruno Haible.
15234
15235 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15236
15237         more ports to Solaris tr, which needs [] around ranges
15238         * gnulib-tool: Solaris tr needs [] around ranges.
15239         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15240         * tests/test-pipe-filter-gi1.c (main): Likewise.
15241         * tests/test-pipe-filter-ii1.c (main): Likewise.
15242
15243 2010-10-05  Eric Blake  <eblake@redhat.com>
15244
15245         bootstrap: fix Solaris regression
15246         * build-aux/bootstrap (check_versions): Solaris tr still needs []
15247         around ranges.
15248         Reported by Pádraig Brady.
15249
15250         bootstrap: work with pkg-config
15251         * build-aux/bootstrap (check_versions): Also transliterate - in
15252         prerequisite name.
15253         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
15254         prerequisites that were already found, to avoid confusion.
15255         Reported by Justin Clift.
15256
15257         faccessat: remove unused wrappers
15258         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
15259         presence of these wrappers dragged in -lgen on Solaris.
15260         Reported by Clemens Brogi; fix suggested by Paul Eggert.
15261
15262 2010-10-05  Jim Meyering  <meyering@redhat.com>
15263
15264         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
15265         * Makefile (sc_pragma_columns): New syntax-check rule.
15266
15267 2010-10-04  Bruno Haible  <bruno@clisp.org>
15268
15269         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
15270         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
15271         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
15272         Reported by Bruce Korb and Eric Blake.
15273
15274 2010-10-04  Bruno Haible  <bruno@clisp.org>
15275
15276         threadlib: Make option --with-libpth-prefix work.
15277         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15278         use $LIBPTH, not just -lpth.
15279
15280 2010-10-04  Bruno Haible  <bruno@clisp.org>
15281
15282         Avoid line length limitation from HP NonStop system header files.
15283         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15284         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15285         * lib/ctype.in.h: Likewise.
15286         * lib/dirent.in.h: Likewise.
15287         * lib/errno.in.h: Likewise.
15288         * lib/fcntl.in.h: Likewise.
15289         * lib/float.in.h: Likewise.
15290         * lib/getopt.in.h: Likewise.
15291         * lib/iconv.in.h: Likewise.
15292         * lib/inttypes.in.h: Likewise.
15293         * lib/langinfo.in.h: Likewise.
15294         * lib/locale.in.h: Likewise.
15295         * lib/math.in.h: Likewise.
15296         * lib/netdb.in.h: Likewise.
15297         * lib/netinet_in.in.h: Likewise.
15298         * lib/poll.in.h: Likewise.
15299         * lib/pthread.in.h: Likewise.
15300         * lib/pty.in.h: Likewise.
15301         * lib/sched.in.h: Likewise.
15302         * lib/se-selinux.in.h: Likewise.
15303         * lib/search.in.h: Likewise.
15304         * lib/signal.in.h: Likewise.
15305         * lib/spawn.in.h: Likewise.
15306         * lib/stdarg.in.h: Likewise.
15307         * lib/stddef.in.h: Likewise.
15308         * lib/stdint.in.h: Likewise.
15309         * lib/stdio.in.h: Likewise.
15310         * lib/stdlib.in.h: Likewise.
15311         * lib/string.in.h: Likewise.
15312         * lib/strings.in.h: Likewise.
15313         * lib/sys_file.in.h: Likewise.
15314         * lib/sys_ioctl.in.h: Likewise.
15315         * lib/sys_select.in.h: Likewise.
15316         * lib/sys_socket.in.h: Likewise.
15317         * lib/sys_stat.in.h: Likewise.
15318         * lib/sys_time.in.h: Likewise.
15319         * lib/sys_times.in.h: Likewise.
15320         * lib/sys_utsname.in.h: Likewise.
15321         * lib/sys_wait.in.h: Likewise.
15322         * lib/sysexits.in.h: Likewise.
15323         * lib/termios.in.h: Likewise.
15324         * lib/time.in.h: Likewise.
15325         * lib/unistd.in.h: Likewise.
15326         * lib/wchar.in.h: Likewise.
15327         * lib/wctype.in.h: Likewise.
15328         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
15329         * modules/ctype (Makefile.am): Likewise.
15330         * modules/dirent (Makefile.am): Likewise.
15331         * modules/errno (Makefile.am): Likewise.
15332         * modules/fcntl-h (Makefile.am): Likewise.
15333         * modules/float (Makefile.am): Likewise.
15334         * modules/getopt-posix (Makefile.am): Likewise.
15335         * modules/iconv-h (Makefile.am): Likewise.
15336         * modules/inttypes (Makefile.am): Likewise.
15337         * modules/langinfo (Makefile.am): Likewise.
15338         * modules/locale (Makefile.am): Likewise.
15339         * modules/math (Makefile.am): Likewise.
15340         * modules/netdb (Makefile.am): Likewise.
15341         * modules/netinet_in (Makefile.am): Likewise.
15342         * modules/poll-h (Makefile.am): Likewise.
15343         * modules/pthread (Makefile.am): Likewise.
15344         * modules/pty (Makefile.am): Likewise.
15345         * modules/sched (Makefile.am): Likewise.
15346         * modules/search (Makefile.am): Likewise.
15347         * modules/selinux-h (Makefile.am): Likewise.
15348         * modules/signal (Makefile.am): Likewise.
15349         * modules/spawn (Makefile.am): Likewise.
15350         * modules/stdarg (Makefile.am): Likewise.
15351         * modules/stddef (Makefile.am): Likewise.
15352         * modules/stdint (Makefile.am): Likewise.
15353         * modules/stdio (Makefile.am): Likewise.
15354         * modules/stdlib (Makefile.am): Likewise.
15355         * modules/string (Makefile.am): Likewise.
15356         * modules/strings (Makefile.am): Likewise.
15357         * modules/sys_file (Makefile.am): Likewise.
15358         * modules/sys_ioctl (Makefile.am): Likewise.
15359         * modules/sys_select (Makefile.am): Likewise.
15360         * modules/sys_socket (Makefile.am): Likewise.
15361         * modules/sys_stat (Makefile.am): Likewise.
15362         * modules/sys_time (Makefile.am): Likewise.
15363         * modules/sys_times (Makefile.am): Likewise.
15364         * modules/sys_utsname (Makefile.am): Likewise.
15365         * modules/sys_wait (Makefile.am): Likewise.
15366         * modules/sysexits (Makefile.am): Likewise.
15367         * modules/termios (Makefile.am): Likewise.
15368         * modules/time (Makefile.am): Likewise.
15369         * modules/unistd (Makefile.am): Likewise.
15370         * modules/wchar (Makefile.am): Likewise.
15371         * modules/wctype (Makefile.am): Likewise.
15372
15373 2010-10-04  Bruno Haible  <bruno@clisp.org>
15374
15375         read-file tests: Avoid a test failure on NonStop Kernel.
15376         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
15377         a regular file.
15378         Reported by Joachim Schmitz <schmitz@hp.com>.
15379
15380 2010-10-03  Bruno Haible  <bruno@clisp.org>
15381
15382         gnulib-tool: Fixes for --create-testdir with --libtool.
15383         * gnulib-tool (func_get_automake_snippet): Don't augment
15384         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
15385         an executable.
15386         (func_create_testdir): Handle module 'alloca' like func_import.
15387         Reported by Bruce Korb <bruce.korb@gmail.com>.
15388
15389 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
15390
15391         Avoid some lines longer than 80 characters.
15392         * lib/stdint.in.h: Break long comment lines.
15393         * lib/math.in.h: Likewise.
15394         (_GL_NUM_UINT_WORDS): New macro, for readability.
15395         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
15396         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
15397         * lib/stdlib.in.h: Likewise.
15398         * lib/spawn.in.h: Likewise.
15399         * lib/sys_socket.in.h: Update an URL.
15400         * lib/sys_stat.in.h: Break long line.
15401
15402 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
15403
15404         Improve pmccabe2html.
15405         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
15406         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
15407         when the sources change. Remove the line in the HTML about "Used
15408         ranges" (which implied that there might be other unused ranges),
15409         rename "Resume" to "Summary" (easier to understand for more users).
15410         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
15411         styles, and some unnecessary blank lines.
15412
15413 2010-10-03  Bruno Haible  <bruno@clisp.org>
15414             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15415
15416         acl: Add support for ACLs on NonStop Kernel.
15417         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
15418         Check whether the function aclsort() exists.
15419         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
15420         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
15421         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15422         (acl_nontrivial [HAVE_ACLSORT]: New function.
15423         (file_has_acl): Implement for NonStop Kernel.
15424         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15425         (qset_acl): Implement for NonStop Kernel.
15426         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
15427         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15428         (main): Implement for NonStop Kernel.
15429         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
15430         Kernel. Handle this flavor.
15431         * tests/test-set-mode-acl.sh: Likewise.
15432         * tests/test-copy-acl.sh: Likewise.
15433         * tests/test-copy-file.sh: Likewise.
15434
15435 2010-10-03  Bruno Haible  <bruno@clisp.org>
15436
15437         Info about ACLs on NonStop Kernel.
15438         * doc/acl-resources.txt: Add info about NonStop Kernel.
15439         References by Joachim Schmitz <schmitz@hp.com>.
15440
15441 2010-10-02  Bruno Haible  <bruno@clisp.org>
15442
15443         Define missing EDQUOT on NonStop Kernel.
15444         * lib/errno.in.h (EDQUOT): Assign a value if missing.
15445         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
15446         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
15447         missing.
15448         * doc/posix-headers/errno.texi: Mention the NSK bug.
15449         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
15450         Reported by Joachim Schmitz <schmitz@hp.com>.
15451
15452 2010-10-02  Bruno Haible  <bruno@clisp.org>
15453
15454         Update doc for POSIX:2008.
15455         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
15456         Update URL of POSIX specification.
15457
15458 2010-10-02  Bruno Haible  <bruno@clisp.org>
15459
15460         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
15461         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
15462         from gnulib, not from Automake.
15463
15464 2010-10-02  Bruno Haible  <bruno@clisp.org>
15465
15466         New module 'system-posix'.
15467         * modules/system-posix: New file.
15468         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
15469         module is present.
15470         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
15471         GNULIB_SYSTEM_POSIX.
15472         * modules/stdlib (Depends-on): Remove sys_wait.
15473         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
15474         * doc/posix-functions/system.texi: Mention the new module.
15475         * doc/posix-headers/stdlib.texi: Likewise.
15476         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
15477         define test_sys_wait_macros to a no-op.
15478         Reported by Sam Steingold <sds@gnu.org>.
15479
15480 2010-09-30  Bruno Haible  <bruno@clisp.org>
15481
15482         More renaming from 'getdate' to 'get_date'.
15483         * doc/get_date.texi: Renamed from doc/getdate.texi.
15484         * modules/get_date (Files): Update.
15485         * MODULES.html.sh (Date and time <time.h>): Update.
15486         * DEPENDENCIES: Update.
15487         * gnulib-tool: Update comment.
15488         * m4/bison.m4 (gl_BISON): Likewise.
15489         * m4/get_date.m4 (gl_GET_DATE): Likewise.
15490
15491 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
15492
15493         bootstrap: support ACLOCAL_FLAGS during aclocal
15494         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
15495         can add additional -I dir for third-party .m4 files.
15496
15497 2010-09-30  Eric Blake  <eblake@redhat.com>
15498
15499         bootstrap: use glibtoolize on MacOS
15500         * build-aux/bootstrap (check_versions): Convert libtool into
15501         libtoolize.
15502         (tool search): Move libtool check earlier, and look for
15503         glibtoolize for MacOS.
15504         (gnulib_tool_options): Auto-add --libtool when appropriate.
15505         Reported by Justin Clift.
15506
15507         poll: fix typo that broke test on MacOS
15508         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
15509         Reported by Justin Clift.
15510
15511         getdate: rename to get_date
15512         Note: getdate.h is not renamed, to minimize client impact.
15513         * modules/getdate: Mark obsolete.  Move old contents...
15514         * modules/get_date: ...to new module name.
15515         * modules/getdate-tests: Move...
15516         * modules/get_date-tests: ...here.
15517         * m4/getdate.m4: Move...
15518         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
15519         * lib/getdate.y: Move...
15520         * lib/get_date.y: ...here.
15521         * tests/test-getdate.c: Move...
15522         * tests/test-get_date.c: ...here.
15523         * doc/posix-functions/getdate.texi (getdate): Update name.
15524         * NEWS: Mention the change.
15525
15526 2010-09-29  Bruno Haible  <bruno@clisp.org>
15527
15528         Separate the module 'waitpid' from the module 'sys_wait'.
15529         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
15530         present.
15531         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
15532         gl_MODULE_INDICATOR_FOR_TESTS.
15533         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
15534         * modules/sys_wait (Depends-on): Remove waitpid.
15535         (Makefile.am): Substitute GNULIB_WAITPID.
15536         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
15537         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
15538         signature only if the 'waitpid' module is present.
15539         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
15540         * NEWS: Mention the change.
15541         * modules/grantpt (Depends-on): Add waitpid.
15542         * modules/wait-process (Depends-on): Likewise.
15543
15544 2010-09-29  Bruno Haible  <bruno@clisp.org>
15545
15546         More tests for module 'sys_wait'.
15547         * modules/sys_wait-c++-tests: New file.
15548         * tests/test-sys_wait-c++.cc: New file.
15549         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
15550         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15551
15552 2010-09-29  Bruno Haible  <bruno@clisp.org>
15553
15554         New module 'waitpid'.
15555         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
15556         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
15557         Don't include <process.h>.
15558         (waitpid): Declare only, using modern idiom.
15559         * m4/waitpid.m4: New file.
15560         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
15561         * modules/waitpid: New file.
15562         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
15563         (Makefile.am): Update.
15564         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15565
15566 2010-09-28  Bruno Haible  <bruno@clisp.org>
15567
15568         poll: Assume ANSI C.
15569         * lib/poll.c (poll): Use an ANSI C declaration.
15570
15571 2010-09-28  Bruno Haible  <bruno@clisp.org>
15572
15573         poll-h: Create poll.h on all platforms.
15574         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
15575         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
15576         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
15577         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
15578         (gl_REPLACE_POLL_H): Don't set POLL_H.
15579         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
15580         * modules/poll-h (Depends-on): Add include_next.
15581         (Makefile.am): Create poll.h unconditionally. Substitute also
15582         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
15583
15584 2010-09-28  Bruno Haible  <bruno@clisp.org>
15585
15586         Tests for module 'poll-h'.
15587         * modules/poll-h-c++-tests: New file.
15588         * tests/test-poll-h-c++.cc: New file.
15589
15590         Tests for module 'poll-h'.
15591         * modules/poll-h-tests: New file.
15592         * tests/test-poll-h.c: New file.
15593
15594 2010-09-28  Bruno Haible  <bruno@clisp.org>
15595
15596         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
15597         * modules/poll-h (Depends-on): Add 'extensions'.
15598
15599 2010-09-28  Bruno Haible  <bruno@clisp.org>
15600
15601         New module 'poll-h'.
15602         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
15603         (poll): Use modern idiom.
15604         * modules/poll-h: New file.
15605         * modules/poll (Files): Remove lib/poll.in.h.
15606         (Depends-on): Add poll-h.
15607         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
15608         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
15609         * m4/poll_h.m4: New file.
15610         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
15611         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
15612         and invoke gl_REPLACE_POLL_H.
15613         * lib/poll.c: Use common idiom.
15614         * tests/test-poll.c: Likewise.
15615         * doc/posix-headers/poll.texi: Mention the poll-h module.
15616         Suggested by Eric Blake.
15617
15618 2010-09-26  Bruno Haible  <bruno@clisp.org>
15619
15620         sys_wait: Implement WSTOPSIG.
15621         * lib/sys_wait.in.h (WSTOPSIG): New macro.
15622         Reported by Simon Josefsson.
15623
15624 2010-09-26  Simon Josefsson  <simon@josefsson.org>
15625
15626         stdlib, sys_wait: Avoid compilation error on mingw.
15627         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
15628
15629 2010-09-26  Bruno Haible  <bruno@clisp.org>
15630
15631         stdlib tests: Avoid code duplication.
15632         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
15633         * modules/sys_wait-tests (Files): Likewise.
15634         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
15635         * tests/test-stdlib.c: Include test-sys_wait.h.
15636         (main): Invoke test_sys_wait_macros.
15637         * tests/test-sys_wait.c: Include test-sys_wait.h.
15638         (main): Invoke test_sys_wait_macros.
15639
15640 2010-09-25  Simon Josefsson  <simon@josefsson.org>
15641
15642         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
15643         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
15644         sure Windows sockets are working before calling getaddrinfo.
15645         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
15646         * doc/gnulib.texi (Windows sockets): Fix typo.
15647
15648 2010-09-25  Bruno Haible  <bruno@clisp.org>
15649
15650         Tests for module 'regex-quote'.
15651         * modules/regex-quote-tests: New file.
15652         * tests/test-regex-quote.c: New file.
15653
15654         New module 'regex-quote'.
15655         * lib/regex-quote.h: New file.
15656         * lib/regex-quote.c: New file.
15657         * modules/regex-quote: New file.
15658         Suggested by Reuben Thomas <rrt@sc3d.org>.
15659
15660 2010-09-24  Bruno Haible  <bruno@clisp.org>
15661
15662         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
15663         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
15664
15665 2010-09-23  Bruno Haible  <bruno@clisp.org>
15666
15667         setenv: Relax license.
15668         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
15669         Blake.
15670         Requested by Eric Blake.
15671
15672 2010-09-22  Bruno Haible  <bruno@clisp.org>
15673
15674         termios: Relax license.
15675         * modules/termios (License): Change to LGPLv2+.
15676         Requested by Eric Blake.
15677
15678 2010-09-22  Bruno Haible  <bruno@clisp.org>
15679
15680         threadlib: Allow the package to change the default to 'no'.
15681         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
15682         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
15683         Reported by Paul Eggert.
15684
15685 2010-09-22  Pádraig Brady  <P@draigbrady.com>
15686             Bruno Haible  <bruno@clisp.org>
15687
15688         Fix endless loop in mbmemcasecoll.
15689         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
15690         byte.
15691         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
15692
15693 2010-09-22  Bruno Haible  <bruno@clisp.org>
15694
15695         Tests for module 'memcoll'.
15696         * modules/memcoll-tests: New file.
15697         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
15698
15699         memcoll, xmemcoll: Clarify size vs. length.
15700         * modules/memcoll.c (memcoll0): Clarify specification.
15701         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
15702         passed to collate_error.
15703
15704 2010-09-22  Bruno Haible  <bruno@clisp.org>
15705
15706         Tests for module 'memcasecmp'.
15707         * modules/memcasecmp-tests: New file.
15708         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
15709
15710 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15711
15712         * lib/pthread.in.h: Add split double-inclusion guard, and include
15713         system <pthread.h> if there is one.  Use @@-style as in other
15714         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
15715         pthread.h doesn't.
15716         (pthread_mutexattr_destroy, pthread_mutexattr_init):
15717         (pthread_mutexattr_settype, pthread_mutex_trylock):
15718         New static inline functions, if there's no system <pthread.h>.
15719         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
15720         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
15721         Approximate with mutexes if the system lacks spinlocks, as in
15722         MacOS.
15723         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
15724         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
15725         @@-style.  Check for spinlocks separately.
15726         (gl_PTHREAD_DEFAULTS): New macro.
15727         * modules/pthread: Redo to use a more typical style for in.h files.
15728
15729 2010-09-21  Eric Blake  <eblake@redhat.com>
15730
15731         net_if: enhance tests
15732         * tests/test-net_if.c (main): Move signature checks earlier.
15733         Print failures to stderr.
15734         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
15735         Document the bug that we do not yet fix.
15736
15737 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15738
15739         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
15740         about gnulib, not GSS.
15741
15742 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15743
15744         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
15745         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
15746         for Emacs.
15747         * build-aux/pmccabe2html: Make Makefile.am example code more
15748         cut-and-paste friendly.
15749
15750 2010-09-21  Simon Josefsson  <simon@josefsson.org>
15751
15752         * tests/test-net_if.c: New file.
15753         * modules/net_if-tests: New file.
15754
15755 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15756
15757         pthread: add pthread_spin_destroy
15758         * lib/pthread.in.h (pthread_spin_destroy): New function.
15759
15760 2010-09-19  Bruno Haible  <bruno@clisp.org>
15761
15762         gnulib-tool: Fix --help output.
15763         * gnulib-tool (func_usage): Fix help message.
15764         Reported by Reuben Thomas <rrt@sc3d.org>.
15765
15766 2010-09-18  Jim Meyering  <meyering@redhat.com>
15767
15768         maint.mk: avoid unexpanded \n in two diagnostics
15769         * top/maint.mk (sc_prohibit_always_true_header_tests):
15770         Don't use a literal \n in a halt=... assignment.  It would not be
15771         expanded, and the two \n bytes would appear in the diagnostic output
15772         rather than the desired newline.  Use halt=$$(printf ... instead.
15773         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15774
15775 2010-09-18  Bruno Haible  <bruno@clisp.org>
15776
15777         netinet_in: Doc tweak.
15778         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
15779         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15780
15781 2010-09-18  Jim Meyering  <meyering@redhat.com>
15782
15783         init.sh: correct an outdated comment
15784         * tests/init.sh (create_exe_shims_):  s/function/alias/
15785
15786         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
15787         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
15788         a file named "*.exe" is removed between the glob expansion and the
15789         processing of that oddly named file.
15790
15791 2010-09-17  Eric Blake  <eblake@redhat.com>
15792
15793         mirbsd: add some more support
15794         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
15795         in BSD family.
15796         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
15797         devices as OpenBSD.
15798         * m4/host-os.m4 (mirbsd): Add MirBSD.
15799
15800         tests: fix unportable assumption on sys/wait.h
15801         * tests/test-sys_wait.c (main): Relax test.
15802         * tests/test-stdlib.c (main): Likewise.
15803
15804         init.sh: accomodate directory with no .exes
15805         * tests/init.sh: Accomodate directory containing only scripts.
15806
15807         tests: avoid compiler warning
15808         * tests/test-stdlib.c (main): Use the variable.
15809
15810         fdutimens, fdutimensat: update signature, again
15811         * lib/utimens.h (gl_futimens): Delete, and move signature...
15812         (fdutimens): ...here.
15813         (fdutimensat): Rearrange signature.
15814         (lutimensat): Rename variable for clarity.
15815         * lib/fdutimensat.c (fdutimensat): Update signature.
15816         * lib/utimens.c (fdutimens): Likewise.
15817         (gl_futimens): Delete.
15818         (utimens, lutimens): Update callers.
15819         * lib/futimens.c (futimens): Likewise.
15820         * tests/test-fdutimensat.c: Likewise.
15821         * tests/test-utimens.c: Likewise.
15822         * tests/test-futimens.h: Update comment.
15823         * NEWS: Mention this.
15824         Suggested by Paul Eggert.
15825
15826 2010-09-17  Bruno Haible  <bruno@clisp.org>
15827
15828         Take over the maintenance of some older macros from Autoconf.
15829         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
15830         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
15831         GNU Autoconf.
15832         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
15833         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
15834
15835 2010-09-17  Eric Blake  <eblake@redhat.com>
15836
15837         fdutimensat: drop atflag validation
15838         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
15839         with valid fd, to close a race scenario where futimens is
15840         unsupported and FILE was replaced by a symlink.
15841         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
15842         accordingly.
15843         Suggested by Paul Eggert.
15844
15845 2010-09-16  Bruno Haible  <bruno@clisp.org>
15846
15847         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
15848         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
15849
15850 2010-09-16  Bruno Haible  <bruno@clisp.org>
15851
15852         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
15853         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
15854         login_tty exists.
15855         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15856
15857 2010-09-16  Bruno Haible  <bruno@clisp.org>
15858
15859         login_tty: Make the replacement code work on BSD systems.
15860         * lib/login_tty.c: Include <sys/ioctl.h>.
15861         (login_tty): Use ioctl TIOCSCTTY when available.
15862         * modules/login_tty (Depends-on): Add sys_ioctl.
15863         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15864
15865 2010-09-16  Bruno Haible  <bruno@clisp.org>
15866
15867         login_tty: Stricter unit test.
15868         * modules/login_tty-tests (Depends-on): Add tcgetsid.
15869         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
15870         and tcgetsid() after login_tty.
15871         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15872
15873 2010-09-16  Bruno Haible  <bruno@clisp.org>
15874
15875         New module 'tcgetsid'.
15876         * lib/tcgetsid.c: New file.
15877         * m4/tcgetsid.m4: New file.
15878         * modules/tcgetsid: New file.
15879         * modules/termios (Depends-on): Add c++defs, warn-on-use.
15880         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
15881         GNULIB_TCGETSID, HAVE_TCGETSID.
15882         * lib/termios.in.h: Include <sys/types.h>.
15883         (tcgetsid): New declaration.
15884         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
15885         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
15886         * doc/posix-functions/tcgetsid.texi: Mention the new module.
15887         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
15888
15889 2010-09-16  Bruno Haible  <bruno@clisp.org>
15890
15891         Tests for module 'termios'.
15892         * modules/termios-c++-tests: New file.
15893         * modules/termios-tests: New file.
15894         * tests/test-termios-c++.cc: New file.
15895         * tests/test-termios.c: New file.
15896
15897         New module 'termios'.
15898         * modules/termios: New file.
15899         * lib/termios.in.h: New file.
15900         * m4/termios_h.m4: New file.
15901         * doc/posix-headers/termios.texi: Mention the new module.
15902
15903 2010-09-16  Eric Blake  <eblake@redhat.com>
15904
15905         fdutimensat: add an atflag parameter
15906         * lib/fdutimensat.c (fdutimensat): Add new parameter.
15907         * lib/utimens.h (fdutimensat): Update prototype.
15908         * tests/test-fdutimensat.c: Adjust test to match.
15909         * NEWS: Document the change.
15910         Suggested by Paul Eggert.
15911
15912 2010-09-16  Bruno Haible  <bruno@clisp.org>
15913
15914         Fix typos in comments.
15915         * lib/striconveh.h: Fix typo in comment.
15916         * lib/login_tty.c (login_tty): Likewise.
15917
15918 2010-09-15  Bruno Haible  <bruno@clisp.org>
15919
15920         stdlib: clarify MirBSD WEXITSTATUS bug
15921         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
15922         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15923
15924 2010-09-15  Eric Blake  <eblake@redhat.com>
15925
15926         stdlib: work around MirBSD WEXITSTATUS bug
15927         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
15928         * modules/stdlib (Depends-on): Add sys_wait.
15929         * tests/test-sys_wait.c (main): Enhance test.
15930         * tests/test-stdlib.c (main): Likewise.
15931         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
15932
15933         docs: mention MacOS issue with WEXITSTATUS(constant)
15934         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
15935         issue.
15936         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15937
15938         strnlen: add tests
15939         * modules/strnlen-tests: New file.
15940         * tests/test-strnlen.c: Likewise.
15941
15942 2010-09-14  Bruno Haible  <bruno@clisp.org>
15943
15944         unistr/base: Avoid link errors when module 'libunistring' is also used.
15945         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
15946         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
15947         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
15948         Declare also when HAVE_LIBUNISTRING is set.
15949         Reported by Pádraig Brady <P@draigbrady.com>.
15950
15951 2010-09-14  Eric Blake  <eblake@redhat.com>
15952
15953         test-rawmemchr: make more robust
15954         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
15955         (Depends-on, configure.ac): Add needed prerequisites to use it.
15956         * modules/memchr-tests (Files, Depends-on, configure.ac):
15957         Likewise, to avoid implicit reliance on memchr module prereqs.
15958         * tests/test-memchr.c (main): Ensure proper masking.
15959         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
15960         reads.
15961
15962         memchr: detect glibc Alpha bug
15963         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
15964         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
15965         Alpha.
15966         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
15967         * tests/test-memchr.c (main): Enhance test.
15968         Reported by Nelson H. F. Beebe.
15969
15970 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15971
15972         fts, getcwd, glob: audit for dirfd returning -1
15973         * lib/fts.c (opendir): Remove #define; no longer used.
15974         (opendirat): New arg PDIR_FD.  All callers changed.
15975         (fts_build, _opendir2): Use new opendirat to avoid the need for
15976         dirfd, or for checking whether dirfd returns a negative value.
15977         Don't use opendir; always use openat followed by fdopendir.
15978         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
15979         it.
15980         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
15981         returns -1 here.
15982         * modules/fts (Depends-on): Remove dirfd.
15983         * modules/getcwd (Depends-on): Likewise.
15984
15985 2010-09-13  Eric Blake  <eblake@redhat.com>
15986
15987         float: fix broken MirBSD header
15988         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
15989         * doc/posix-headers/float.texi (float.h): Document it.
15990
15991 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15992
15993         fts: use O_NOFOLLOW to avoid race condition when opening a directory
15994         * lib/fts.c (opendirat): New arg extra_flags.
15995         (__opendir2): Use it to avoid following symlinks when opening
15996         a directory, if symlinks are not supposed to be followed.  See
15997         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
15998
15999         fdopendir: preserve argument fd before returning
16000         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16001         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16002         (fdopendir): Use them, arranging for FD to be open to the same
16003         directory that it was when it started.  (It might be temporarily
16004         closed while fdopendir is running, so this not thread- or
16005         signal-safe.)  Be careful to do the right thing even when file
16006         descriptors are scarce and dup fails with errno == EMFILE.  See
16007         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16008
16009 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16010
16011         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16012         * NEWS: Document change.
16013         * m4/regex.m4: Disable test for regoff_t size.
16014
16015 2010-09-13  Jim Meyering  <meyering@redhat.com>
16016
16017         fts: don't operate on an invalid file descriptor after failed dup
16018         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16019         negative file descriptor.
16020
16021 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16022
16023         savedir: add streamsavedir, deprecate fdsavedir
16024         * NEWS: Mention deprecation of fdsavedir.
16025         * lib/savedir.c (streamsavedir): New extern function, whose name
16026         ends in "savedir" to be consistent with the others.  This differs
16027         from savedirstream in that it doesn't close its argument.  The
16028         next version of GNU tar will use this instead of fdsavedir, to
16029         avoid some race conditions and conserve file descriptors.
16030         (savedirstream): Reimplement as a wrapper around streamsavedir.
16031         (fdsavedir): Add a comment deprecating this function.  As far as
16032         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16033         * lib/savedir.h (streamsavedir): New decl.
16034         (fdsavedir): Add a comment deprecating this.
16035
16036 2010-09-10  Bruno Haible  <bruno@clisp.org>
16037
16038         langinfo: Fix last commit.
16039         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16040         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16041         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16042
16043 2010-09-10  Bruno Haible  <bruno@clisp.org>
16044
16045         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16046         * lib/progreloc.c (O_EXEC): Define fallback.
16047
16048 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16049
16050         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16051         * NEWS: Document recent changes to fcntl-h.
16052         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16053         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16054         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16055         Similarly for O_SEARCH; this last was already true, but not documented.
16056         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16057         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16058         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16059         Likewise.
16060         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16061         is zero, not whether it is defined.
16062         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16063         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16064         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16065
16066 2010-09-10  Bruno Haible  <bruno@clisp.org>
16067
16068         langinfo, nl_langinfo: Fix for IRIX 5.3.
16069         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16070         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16071         HAVE_LANGINFO_YESEXPR.
16072         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16073         HAVE_LANGINFO_YESEXPR.
16074         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16075         HAVE_LANGINFO_T_FMT_AMPM is 0.
16076         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16077         HAVE_LANGINFO_YESEXPR is 0.
16078         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16079         NOEXPR.
16080         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16081         * doc/posix-functions/nl_langinfo.texi: Likewise.
16082         Reported by Eric Blake.
16083
16084 2010-09-10  Bruno Haible  <bruno@clisp.org>
16085
16086         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16087         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16088         on FreeBSD 8.0 and OpenBSD 4.6.
16089         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16090         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16091         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16092         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16093         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16094         ac_includes_default.
16095         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16096
16097 2010-09-09  Eric Blake  <eblake@redhat.com>
16098
16099         strsignal: work around NetBSD bug
16100         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16101         * lib/string.in.h (includes): Likewise.
16102         * doc/posix-functions/strsignal.texi (strsignal): Document the
16103         bug.
16104         Reported by Nelson H. F. Beebe.
16105
16106         gnulib-tool: work with NetBSD /bin/sh
16107         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16108         (func_get_description, func_get_comment, func_get_status)
16109         (func_get_notice, func_get_applicability, func_get_filelist)
16110         (func_get_dependencies, func_get_autoconf_early_snippet)
16111         (func_get_autoconf_snippet, func_get_automake_snippet)
16112         (func_get_include_directive, func_get_link_directive)
16113         (func_get_license, func_get_maintainer, func_import): Avoid
16114         shell syntax errors from parsing syntax extensions.
16115
16116 2010-09-09  Bruno Haible  <bruno@clisp.org>
16117
16118         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16119         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16120         a reliable way to determine whether the 'alias' command works.
16121
16122 2010-09-08  Jim Meyering  <meyering@redhat.com>
16123
16124         init.sh: penalize a set-x-impaired shell; don't disqualify it
16125         * tests/init.sh: Too many shells corrupt application stderr when
16126         you set -x, so we can't afford to disqualify them, since at least
16127         on Irix-6.5, that would disqualify all bourne shells.
16128         Instead, use a two-pass approach.
16129         On the first pass, try to find a shell that meets the stricter
16130         condition that set -x does not corrupt stderr.
16131         If no shell meets the stricter condition, retest each candidate
16132         shell, but without that extra condition.  Finally, when
16133         VERBOSE=yes is requested and set -x might cause trouble, simply
16134         issue a warning and refrain from enabling debug output.
16135
16136 2010-09-08  Eric Blake  <eblake@redhat.com>
16137
16138         unsetenv: fix OpenBSD bug
16139         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16140         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16141         documentation.
16142         Reported by Jim Meyering.
16143
16144         strtod: work around IRIX 6.5 bug
16145         * lib/strtod.c (strtod): Reparse number on shorter string if
16146         exponent parse was invalid.
16147         * tests/test-strtod.c (main): Add check for "0x1p 2".
16148         Reported by Tom G. Christensen.
16149
16150         getopt: optimize previous patch
16151         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
16152         empty variable.  Speed up awk script.
16153         Reported by Paolo Bonzini.
16154
16155 2010-09-08  Jim Meyering  <meyering@redhat.com>
16156
16157         test.sh: disqualify shells for which set -x corrupts stderr
16158         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
16159         and OpenBSD 4.7.  They make it so with "set -x", environment settings
16160         appear in stderr output.  For example, this command:
16161             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
16162         prints "P=1" on those two systems:
16163
16164 2010-09-08  Bruno Haible  <bruno@clisp.org>
16165
16166         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16167         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
16168         commands, because some shells ignore redirections when there is an
16169         error in the command lookup.
16170         Reported by Eric Blake.
16171
16172 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
16173
16174         * lib/regex.h: Fix a mention of `regex_compile' (should be
16175         `re_compile_pattern').
16176         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
16177         (re_set_registers): Correct name of parameter in comment.
16178
16179         * doc/regex.texi: Add documentation for missing syntax flags.
16180         Remove commented-out documentation of defunct syntax option
16181         RE_NO_EMPTY_ALTS.
16182         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
16183         Add documentation of re_set_registers.
16184         Document trick to re-use a pattern buffer by setting fastmap manually.
16185         Update documentation of struct re_pattern_buffer per public members.
16186         Uncomment documentation of equivalence class operators and
16187         collating symbol operators, since they are now implemented,
16188         Explain leftmost-longest matching in relation to alternatives.
16189         Tidy documentation of substring matching.
16190         Remove POSIX documentation, which is done better in
16191         glibc, and refer the reader there. Keep BSD API documentation, as
16192         that is not readily available elsewhere.
16193
16194 2010-09-07  Eric Blake  <eblake@redhat.com>
16195
16196         getopt: handle POSIXLY_CORRECT set but not exported
16197         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
16198         export state of POSIXLY_CORRECT, due to bash set -o posix.
16199         Reported by Dustin J. Mitchell.
16200
16201 2010-09-05  Bruno Haible  <bruno@clisp.org>
16202
16203         gnulib-tool: Highlight the changed options.
16204         * gnulib-tool (func_usage): Display the --import, --add-import,
16205         --remove-import explanations in bold font.
16206
16207 2010-09-06  Karl Berry  <karl@gnu.org>
16208
16209         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
16210
16211 2010-09-05  Bruno Haible  <bruno@clisp.org>
16212
16213         uniwidth/width: Update comment.
16214         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
16215         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
16216
16217 2010-09-05  Bruno Haible  <bruno@clisp.org>
16218
16219         isinf, isnan: Relax license.
16220         * modules/isinf (License): Change from GPL to LGPL, with consent from
16221         Ben Pfaff.
16222         * modules/isnan (License): Likewise.
16223         Requested by Ludovic Courtès.
16224
16225 2010-09-04  Bruno Haible  <bruno@clisp.org>
16226
16227         gnulib-tool: Help migration from --import to --add-import or --update.
16228         * gnulib-tool: Emit a verbose error message when --import is used
16229         without any module name.
16230
16231 2010-09-04  Bruno Haible  <bruno@clisp.org>
16232
16233         Update doc about gnulib-tool.
16234         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
16235         'gnulib-tool --update' in more detail.
16236         Reported by Eric Blake.
16237
16238 2010-09-04  Bruno Haible  <bruno@clisp.org>
16239
16240         gnulib-tool: Change --import. New options --add/remove-import.
16241         * gnulib-tool: New options --add-import, --remove-import.
16242         (func_usage): Document them.
16243         (have_associative): Define always.
16244         (func_import): In import mode, don't merge the specified settings with
16245         the cached settings. Implement remove-import mode.
16246         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
16247         Explain when to use them versus --import.
16248         (Simple update): Use --add-import instead of --import.
16249         * NEWS: Mention the change.
16250
16251 2010-09-04  Bruno Haible  <bruno@clisp.org>
16252
16253         * doc/gnulib-tool.texi (Initial import): Update paragraph about
16254         separate gnulib.mk.
16255
16256 2010-09-04  Bruno Haible  <bruno@clisp.org>
16257
16258         gnulib-tool: Don't talk about CVS any more.
16259         * gnulib-tool (func_usage, func_import): Write "version control"
16260         instead of CVS.
16261
16262 2010-09-04  Jim Meyering  <meyering@redhat.com>
16263
16264         maint.mk: avoid obscure sc_copyright_check failure in coreutils
16265         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
16266         false positives (whose names may be ill-chosen) when searching
16267         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
16268         would cause a false-positive.
16269
16270         avoid coreutils "make distcheck" failure
16271         Coreutils tests with an absolute build directory name that contains
16272         a space.  Not quoting this directory name caused a failure.
16273         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16274         * tests/test-vc-list-files-cvs.sh: Likewise.
16275
16276 2010-09-04  Bruno Haible  <bruno@clisp.org>
16277
16278         gnulib-tool: Avoid error when run in a package without Makefile.am.
16279         * gnulib-tool: When collecting the m4dirs in a package that does not
16280         have a Makefile.am, eliminate those directories that contain no
16281         gnulib-cache.m4. Fix expression that counts these directories.
16282
16283 2010-09-04  Bruno Haible  <bruno@clisp.org>
16284
16285         update-copyright test: Improve output when perl is missing or too old.
16286         * tests/test-update-copyright.sh: Move test of Perl version down after
16287         the test whether Perl exists. Provide an explanation relating Perl's
16288         error message to Automake's SKIP: message.
16289
16290 2010-09-04  Bruno Haible  <bruno@clisp.org>
16291
16292         Don't augment PATH in TESTS_ENVIRONMENT.
16293         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16294         set abs_aux_dir instead of augmenting PATH.
16295         * modules/vc-list-files-tests (Makefile.am): Likewise.
16296         * tests/test-update-copyright.sh: Augment PATH here.
16297         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16298         path_prepend_.
16299         * tests/test-vc-list-files-git.sh: Likewise.
16300
16301 2010-09-04  Jim Meyering  <meyering@redhat.com>
16302
16303         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16304         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16305
16306 2010-09-04  Bruno Haible  <bruno@clisp.org>
16307
16308         strdup: Fix compilation error in C++ mode.
16309         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
16310         the macro.
16311
16312 2010-09-04  Bruno Haible  <bruno@clisp.org>
16313
16314         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
16315         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
16316         macro into a function.
16317         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16318
16319 2010-09-04  Bruno Haible  <bruno@clisp.org>
16320
16321         Set PATH_SEPARATOR the same way autoconf does.
16322         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
16323         the value of PATH_SEPARATOR the same way autoconf-generated configure
16324         scripts do.
16325         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
16326         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16327
16328 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16329
16330         Set PATH_SEPARATOR the same way autoconf does.
16331         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
16332         the same way autoconf-generated configure scripts do.
16333         * posix-modules: Likewise.
16334
16335 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16336
16337         hash: fix safe_hasher const typo
16338         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
16339         const; otherwise, there is a type error later.
16340
16341 2010-09-02  Jim Meyering  <meyering@redhat.com>
16342
16343         test-update-copyright.sh: require perl 5.8.0
16344         * tests/test-update-copyright.sh: Require 5.8.0,
16345         which Tom G. Christensen has confirmed is adequate,
16346         while 5.6.1 is not.
16347
16348 2010-09-02  Eric Blake  <eblake@redhat.com>
16349
16350         tests: init.sh improvements for re-exec'ing with zsh
16351         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
16352         -vx through shell re-exec.
16353         Reported by Tom G. Christensen.
16354
16355         wctype: fix typo in previous commit
16356         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
16357         Reported by Ludovic Courtès.
16358
16359 2010-09-02  Jim Meyering  <meyering@redhat.com>
16360
16361         test-update-copyright.sh: skip test if Perl is too old
16362         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
16363         Reported by Tom G. Christensen.
16364
16365 2010-09-02  Bruno Haible  <bruno@clisp.org>
16366
16367         wctype: Avoid compilation error on IRIX 6.5.30.
16368         * lib/wctype.in.h (iswblank): Declare with a replacement if
16369         REPLACE_ISWBLANK is set.
16370         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
16371         declared. Set REPLACE_ISWBLANK.
16372         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
16373         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
16374         * doc/posix-headers/wctype.texi: Likewise.
16375         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16376
16377 2010-09-01  Bruno Haible  <bruno@clisp.org>
16378
16379         New module 'socketlib'.
16380         * modules/socketlib: New file.
16381         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
16382         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
16383         * modules/sockets (Depends-on): Add socketlib.
16384         Suggested by Sam Steingold <sds@gnu.org>.
16385
16386 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16387
16388         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
16389
16390         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
16391         when one needs search access to a directory but not read access.
16392         On systems where it is available, it works in some cases where
16393         O_RDONLY does not, namely on directories that are searchable but
16394         not readable, and which need only to be searchable.  If O_SEARCH
16395         is not available, fall back to the traditional method of using
16396         O_RDONLY.
16397
16398         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
16399         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
16400         when opening a directory that needs only to be searchable.
16401         * lib/chdir-safer.c (chdir_no_follow): Likewise.
16402         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
16403         * lib/openat-proc.c (openat_proc_name): Likewise.
16404         * lib/openat.c (openat_needs_fchdir): Likewise.
16405         * lib/save-cwd.c (save_cwd): Likewise.
16406         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
16407
16408 2010-08-28  Bruno Haible  <bruno@clisp.org>
16409
16410         New module 'host-cpu-c-abi'.
16411         * modules/host-cpu-c-abi: New file.
16412         * m4/host-cpu-c-abi.m4: New file, based on part of
16413         clisp/src/m4/general.m4.
16414         Requested by Sam Steingold <sds@gnu.org>.
16415
16416 2010-08-31  Eric Blake  <eblake@redhat.com>
16417         and Jim Meyering  <meyering@redhat.com>
16418
16419         hash: factor, and guard against misbehaving hasher function
16420         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
16421         of table->hasher's return value.  Also protect against a hash value
16422         so large that adding it to table->bucket results in a NULL pointer.
16423         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
16424         Use it in place of open-coded check-and-abort.
16425
16426 2010-08-30  Bruno Haible  <bruno@clisp.org>
16427
16428         hash: silence spurious clang warning
16429         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
16430         Reported by Eric Blake.
16431
16432 2010-08-30  Eric Blake  <eblake@redhat.com>
16433
16434         strstr, memmem, strcasestr: avoid leaked shell message
16435         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
16436         FreeBSD.
16437         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16438         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16439
16440         tests: silence clang warning
16441         * tests/test-malloca.c (do_allocation): Avoid dead store.
16442
16443 2010-08-29  Bruno Haible  <bruno@clisp.org>
16444
16445         gettext: Fix recent mistake.
16446         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
16447
16448 2010-08-29  Bruno Haible  <bruno@clisp.org>
16449
16450         selinux-h: Offer a --without-selinux option.
16451         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
16452         --without-selinux was specified, skip all tests and define
16453         HAVE_SELINUX_SELINUX_H to 0.
16454         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
16455         set LIB_SELINUX to empty.
16456         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
16457         gl_LIBSELINUX. If --without-selinux was specified, replace
16458         selinux/context.h.
16459         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
16460
16461 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16462             Bruno Haible  <bruno@clisp.org>
16463
16464         Make the module 'realloc-gnu' work again on AIX and OSF/1.
16465         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
16466         of HAVE_REALLOC.
16467         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
16468         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
16469         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
16470         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16471
16472 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16473             Bruno Haible  <bruno@clisp.org>
16474
16475         Make the module 'calloc-gnu' work again on AIX and OSF/1.
16476         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
16477         HAVE_CALLOC.
16478         * lib/xmalloc.c: Update accordingly.
16479         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
16480         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
16481         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
16482
16483 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16484             Bruno Haible  <bruno@clisp.org>
16485
16486         Make the module 'malloc-gnu' work again on AIX and OSF/1.
16487         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
16488         HAVE_MALLOC.
16489         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
16490         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
16491         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16492
16493 2010-08-29  Bruno Haible  <bruno@clisp.org>
16494
16495         Update modules list.
16496         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16497         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
16498         (String handling <string.h>): Add astrxfrm.
16499         (File system functions): Add readlinkat.
16500
16501 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16502
16503         Tests for module 'realloc-gnu'.
16504         * modules/realloc-gnu-tests: New file.
16505         * tests/test-realloc-gnu.c: New file.
16506
16507         Tests for module 'calloc-gnu'.
16508         * modules/calloc-gnu-tests: New file.
16509         * tests/test-calloc-gnu.c: New file.
16510
16511         Tests for module 'malloc-gnu'.
16512         * modules/malloc-gnu-tests: New file.
16513         * tests/test-malloc-gnu.c: New file.
16514
16515 2010-08-28  Bruno Haible  <bruno@clisp.org>
16516
16517         Rename module 'realloc' -> 'realloc-gnu'.
16518         * modules/realloc-gnu: New file, copied from modules/realloc.
16519         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
16520         obsolete.
16521         * modules/mgetgroups (Depends-on): Update.
16522         * doc/posix-functions/realloc.texi: Update.
16523         * NEWS: Mention the change.
16524
16525         Rename module 'calloc' -> 'calloc-gnu'.
16526         * modules/calloc-gnu: New file, copied from modules/calloc.
16527         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
16528         obsolete.
16529         * doc/posix-functions/calloc.texi: Update.
16530         * NEWS: Mention the change.
16531
16532         Rename module 'malloc' -> 'malloc-gnu'.
16533         * modules/malloc-gnu: New file, copied from modules/malloc.
16534         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
16535         obsolete.
16536         * modules/argp (Depends-on): Update.
16537         * modules/regex (Depends-on): Update.
16538         * doc/posix-functions/malloc.texi: Update.
16539         * NEWS: Mention the change.
16540
16541 2010-08-28  Eric Blake  <eblake@redhat.com>
16542
16543         pread, pwrite: add missing dependency
16544         * modules/pread (Depends-on): Add extensions.
16545         * modules/pwrite (Depends-on): Likewise.
16546
16547 2010-08-28  Bruno Haible  <bruno@clisp.org>
16548
16549         unistr/u*-strchr: Fix tests dependencies.
16550         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
16551         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
16552         Reported by Ian Beckwith <ianb@erislabs.net>.
16553
16554 2010-08-28  Bruno Haible  <bruno@clisp.org>
16555
16556         read-file: Don't occupy too much unused memory.
16557         * lib/read-file.c (fread_file): Shrink the buffer at the end.
16558
16559 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
16560             Eric Blake  <eblake@redhat.com>
16561             Bruno Haible  <bruno@clisp.org>
16562
16563         read-file: Avoid memory reallocations with regular files.
16564         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
16565         (fread_file): With regular files, use the remaining length as the
16566         initial buffer size.  Check against overflow.
16567         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
16568         sys_stat.
16569
16570 2010-08-28  Bruno Haible  <bruno@clisp.org>
16571
16572         ftello: Relax license.
16573         * modules/ftello (License): Relax to LGPLv2+.
16574         Reported by Eric Blake.
16575
16576 2010-08-28  Bruno Haible  <bruno@clisp.org>
16577
16578         Avoid relocwrapper link errors due to gnulib replacement functions.
16579         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
16580         function.
16581         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16582
16583 2010-08-28  Bruno Haible  <bruno@clisp.org>
16584
16585         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
16586         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
16587         defined.
16588         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
16589         Suggested by Eric Blake.
16590
16591 2010-08-28  Bruno Haible  <bruno@clisp.org>
16592
16593         sys_socket, netdb: Ensure socklen_t gets defined.
16594         * modules/sys_socket (Depends-on): Add socklen.
16595         * modules/netdb (Depends-on): Likewise.
16596         * modules/getaddrinfo (Depends-on): Remove socklen.
16597         * modules/getsockopt (Depends-on): Likewise.
16598         * modules/setsockopt (Depends-on): Likewise.
16599         * tests/test-sys_socket.c: Check that socklen_t is defined.
16600         * tests/test-netdb.c: Likewise.
16601         * m4/socklen.m4: Update comments.
16602         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16603
16604 2010-08-27  Eric Blake  <eblake@redhat.com>
16605
16606         login_tty: add missing dependency
16607         * modules/login_tty (Depends-on): Add pty.
16608
16609 2010-08-26  Eric Blake  <eblake@redhat.com>
16610
16611         lib-symbol-versions: fix m4 quoting
16612         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
16613         format for AC_LINK_IFELSE.
16614
16615         glob: fix compile test
16616         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
16617
16618         btowc: fix missing file
16619         * modules/btowc (Files): Also ship locale-fr.m4.
16620
16621         lseek: fix link test
16622         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
16623         AC_LINK_IFELSE.
16624
16625         include_next: silence autoconf 2.68 warning
16626         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
16627         AC_COMPILE_IFELSE as special.
16628         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
16629         autoconf < 2.68.
16630
16631         acl: fix compilation test
16632         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
16633         AC_COMPILE_IFELSE.
16634
16635 2010-08-26  Bruno Haible  <bruno@clisp.org>
16636
16637         Modernize AC_TRY_RUN invocations.
16638         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
16639         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16640         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
16641         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
16642         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
16643         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16644         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16645         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16646         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16647         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16648         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16649         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16650         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16651         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16652         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16653         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16654         gl_MBRLEN_NUL_RETVAL): Likewise.
16655         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16656         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
16657         Likewise.
16658         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16659         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16660         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16661         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16662         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
16663         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
16664         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
16665         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
16666         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
16667         Likewise.
16668         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16669         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
16670         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16671         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16672         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16673         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16674         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16675         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
16676         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16677         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16678
16679 2010-08-26  Bruno Haible  <bruno@clisp.org>
16680
16681         Modernize AC_TRY_LINK invocations.
16682         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
16683         AC_TRY_LINK.
16684         * m4/argp.m4 (gl_ARGP): Likewise.
16685         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
16686         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16687         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
16688         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16689         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16690         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
16691         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
16692         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
16693         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16694         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16695         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16696         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
16697         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
16698         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16699         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16700         * m4/hostent.m4 (gl_HOSTENT): Likewise.
16701         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16702         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
16703         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16704         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
16705         Likewise.
16706         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
16707         Likewise.
16708         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
16709         Likewise.
16710         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16711         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
16712         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
16713         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
16714         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
16715         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16716         * m4/servent.m4 (gl_SERVENT): Likewise.
16717         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
16718         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
16719         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
16720         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
16721         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16722         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16723         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16724         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16725         * modules/tsearch-tests (configure.ac): Likewise.
16726
16727 2010-08-26  Bruno Haible  <bruno@clisp.org>
16728
16729         Modernize AC_TRY_COMPILE invocations.
16730         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
16731         AC_TRY_COMPILE.
16732         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
16733         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
16734         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16735         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
16736         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16737         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16738         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16739         * m4/lock.m4 (gl_LOCK): Likewise.
16740         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
16741         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16742         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
16743         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
16744         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16745         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
16746         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16747         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
16748         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16749         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16750         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16751         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16752         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
16753         extraneous semicolon.
16754
16755 2010-08-26  Jim Meyering  <meyering@redhat.com>
16756
16757         stat-time: relax license LGPL
16758         * modules/stat-time (License): Change from GPL to LGPL,
16759         with consent from all contributors, for use in libguile.
16760         Requested by Ludovic Courtès.
16761
16762 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
16763
16764         poll: return immediately on POLLHUP.
16765         * lib/poll.c (poll): Always set timeout before wait_timeout is
16766         computed.
16767
16768 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16769
16770         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
16771         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
16772         rmdir ("dir/.//"), unlinkat.
16773
16774 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16775
16776         stdbool: avoid spurious failure with modern xlc
16777         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
16778
16779 2010-08-24  Bruno Haible  <bruno@clisp.org>
16780
16781         getloadavg: simplify code
16782         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
16783         gl_have_func. Update comments.
16784
16785 2010-08-24  Eric Blake  <eblake@redhat.com>
16786
16787         getloadavg: don't define SVR4 on cygwin
16788         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
16789         only define SVR4 when -lkvm is required.
16790         Reported by Yaakov Selkowitz.
16791
16792 2010-08-24  Bruno Haible  <bruno@clisp.org>
16793
16794         priv-set: fix comment
16795         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
16796
16797 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16798
16799         priv-set: fix comments
16800         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
16801         to match code, as suggested by David Bartley in:
16802         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
16803
16804 2010-08-23  Eric Blake  <eblake@redhat.com>
16805
16806         stdbool: avoid rejecting clang
16807         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
16808         * tests/test-stdbool.c: Enable more tests if using the system
16809         <stdbool.h> instead of the gnulib replacement.
16810         (main): Move xlc bug test to a runtime test for all compilers.
16811         Reported by Anders Kaseorg.
16812
16813         argz: fix shell quoting issue
16814         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
16815         Reported by Charles Wilson.
16816
16817 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
16818             Erik Faye-Lund <kusmabite@gmail.com>
16819
16820         poll, select: handle ERROR_BROKEN_PIPE.
16821         * lib/poll.c (win32_compute_revents): Return POLLHUP when
16822         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
16823         * lib/select.c (win32_compute_revents): Do not mark a pipe
16824         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
16825
16826 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
16827
16828         fts: allow compilation with C++
16829         * lib/fts_.h: Specify extern "C" linkage with C++.
16830
16831 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16832
16833         Fix gnulib-tool sed script de-commentation for AIX sed.
16834         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
16835         sed.
16836
16837 2010-08-17  Eric Blake  <eblake@redhat.com>
16838
16839         test-stddef: test for (some) offsetof bugs
16840         * tests/test-stddef.c: Enhance test to ensure correct type of
16841         offsetof.
16842         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
16843         that we are not fixing at this time.
16844
16845 2010-08-15  Bruno Haible  <bruno@clisp.org>
16846
16847         stpncpy: Allow stpncpy to be defined as a macro.
16848         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
16849         if it's already correctly declared.
16850         * lib/string.in.h (stpncpy): Undefine before redefining.
16851         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
16852
16853 2010-08-14  Bruno Haible  <bruno@clisp.org>
16854
16855         Rename module 'memxfrm' to 'amemxfrm'.
16856         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
16857         (amemxfrm): Renamed from memxfrm.
16858         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
16859         (amemxfrm): Renamed from memxfrm.
16860         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
16861         * NEWS: Mention the change.
16862         * MODULES.html.sh (String handling <string.h>): Update.
16863         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
16864         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
16865         * lib/unicase/u16-casexfrm.c: Likewise.
16866         * lib/unicase/u32-casexfrm.c: Likewise.
16867         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
16868         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
16869         * lib/uninorm/u16-normxfrm.c: Likewise.
16870         * lib/uninorm/u32-normxfrm.c: Likewise.
16871         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
16872         memxfrm.
16873         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
16874         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
16875         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
16876         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
16877         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
16878         Suggested by Paul Eggert.
16879
16880 2010-08-14  Bruno Haible  <bruno@clisp.org>
16881
16882         Tests for module 'astrxfrm'.
16883         * modules/astrxfrm-tests: New file.
16884         * tests/test-astrxfrm.c: New file.
16885
16886         New module 'astrxfrm'.
16887         * lib/astrxfrm.h: New file.
16888         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
16889         * modules/astrxfrm: New file.
16890
16891 2010-08-14  Reuben Thomas <rrt@sc3d.org>
16892
16893         regex: Tweak doc.
16894         * doc/regex.texi (Overview): Don't mention regex.c.
16895         (GNU Regular Expression Compiling): Likewise.
16896         (Match-end-of-line Operator): Mention 'not_eol'.
16897
16898 2010-08-14  Brian Gough  <bjg@gnu.org>
16899             Bruno Haible  <bruno@clisp.org>
16900
16901         git-merge-changelog: add doc relating to use with bzr and hg.
16902         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
16903
16904 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
16905
16906         pthread: fix pthread.h creation for srcdir != builddir
16907         * modules/pthread (Makefile.am): Fix the rule to work also in a
16908         non-srcdir build.
16909
16910 2010-08-13  Karl Berry  <karl@gnu.org>
16911
16912         * doc/regex.texi (Predefined Syntaxes): @smallexample.
16913         * doc/posix-*/*: force line break before @url of POSIX
16914         specifications.
16915         Suggested by Werner Lemberg.
16916
16917 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16918
16919         strtod: fix const diagnostic
16920         * lib/strtod.c (strtod): Don't assign const char * to char *,
16921         as this elicits a warning from GCC when warnings are enabled.
16922
16923 2010-08-10  Pádraig Brady <P@draigbrady.com>
16924         and Eric Blake  <eblake@redhat.com>
16925
16926         copy-acl: ignore ENOTSUP on HP-UX
16927         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
16928         so that it is available for HP-UX.
16929         * lib/copy-acl.c (qcopy_acl): Use it.
16930         Reported by Patrick M. Callahan.
16931
16932 2010-08-10  Eric Blake  <eblake@redhat.com>
16933
16934         open, chown: relax license
16935         * modules/open (License): Change to LGPLv2+, with consent by all
16936         authors, for use in augeas.
16937         * modules/chown (License): Likewise.
16938         * modules/lchown (Likewise): Likewise.
16939         Requested by Adam Stokes.
16940
16941 2010-08-09  Karl Berry  <karl@gnu.org>
16942
16943         * build-aux/ar-lib: new file, import from Automake.
16944         * config/srclist.txt: autocheck for updates.
16945
16946 2010-08-09  Eric Blake  <eblake@redhat.com>
16947
16948         readlinkat: adjust client modules
16949         * modules/areadlinkat (Depends-on): Use readlinkat, not
16950         symlinkat.
16951         * modules/areadlinkat-with-size (Depends-on): Likewise.
16952
16953         mknod: be more vocal about danger of running tests as root
16954         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
16955         root, since that is just asking for problems.
16956         Suggested by Bruno Haible, based on a report by Rainer Tammer.
16957
16958         readlinkat: split into its own module
16959         * modules/symlinkat: Split readlinkat...
16960         * modules/readlinkat: ...into separate module.
16961         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
16962         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
16963         * lib/symlinkat.c (readlinkat): Move...
16964         * lib/readlinkat.c: ...into new file.
16965         * modules/symlinkat-tests: Split readlinkat test...
16966         * modules/readlinkat-tests: ...into separate module.
16967         * tests/test-symlinkat.c: Split...
16968         * tests/test-readlinkat.c: ...into new file.
16969         * NEWS: Document the split.
16970         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16971         * lib/unistd.in.h (readlinkat): Likewise.
16972         Suggested by Bruno Haible.
16973
16974 2010-08-08  Bruno Haible  <bruno@clisp.org>
16975
16976         memxfrm: Speed up.
16977         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
16978         that usually only one call to strxfrm is necessary for each string
16979         part.
16980         Reported by Paul Eggert <eggert@cs.ucla.edu>.
16981
16982 2010-08-07  Karl Berry  <karl@gnu.org>
16983
16984         * doc/posix-headers/limits.texi,
16985         * doc/posix-functions/malloc.texi,
16986         * doc/posix-functions/strsignal.texi: missing @item.
16987         * doc/ld-version-script.texi: spurious leading i.
16988         * doc/regex.texi (Interval Operators): no commas inside @var.
16989
16990 2010-08-01  Bruno Haible  <bruno@clisp.org>
16991
16992         Integrate the regex documentation.
16993         * doc/gnulib.texi: Define 'cn' index.
16994         (Regular expressions): New a chapter that includes regex.texi and
16995         regexprops-generic.texi.
16996         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
16997         syntax.
16998
16999         Whitespace cleanup.
17000         * doc/regex.texi: Remove trailing spaces.
17001
17002         Add regex documentation.
17003         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17004         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17005         Written by Kathy A. Hargreaves and Karl Berry.
17006
17007 2010-08-01  Bruno Haible  <bruno@clisp.org>
17008
17009         link: Update documentation.
17010         * doc/posix-functions/link.texi: Update regarding Solaris.
17011
17012 2010-07-31  Bruno Haible  <bruno@clisp.org>
17013
17014         Update modules list.
17015         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17016         (String handling <string.h>): Add memcmp2, memxfrm.
17017         (Container data structures): Add xlist, xsublist, xoset.
17018         (Core language properties): Add alignof, unused-parameter.
17019         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17020         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17021         (Unibyte characters <ctype.h>): New section.
17022         (String handling <string.h>): New section.
17023         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17024         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17025         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17026         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17027         tan, tanh, tanl, y0, y1, yn.
17028         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17029         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17030         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17031         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17032         unlockpt, vdprintf, vdprintf-posix.
17033         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17034         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17035         xconcat-filename.
17036         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17037         getdtablesize, pipe2, pipe2-safer.
17038         (Security): New section.
17039         (Networking functions): Add accept4.
17040         (Signal handling): Add sigpipe.
17041         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17042         mbmemcasecoll.
17043         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17044         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17045         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17046         pipe-filter-ii.
17047         (Misc): Add argp-version-etc, login_tty, parse-duration.
17048
17049 2010-07-31  Bruno Haible  <bruno@clisp.org>
17050
17051         Improve doc in MODULES.html.
17052         * modules/linkat (Description): Add the word "function".
17053         * modules/mkfifo (Description): Likewise.
17054         * modules/mknod (Description): Likewise.
17055         * modules/remove (Description): Likewise.
17056         * modules/renameat (Description): Likewise.
17057         * modules/stat (Description): Likewise.
17058         * modules/symlink (Description): Likewise.
17059         * modules/unlink (Description): Likewise.
17060
17061 2010-07-31  Bruno Haible  <bruno@clisp.org>
17062
17063         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17064         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17065         option --enable/disable-c++ instead of --enable/disable-cxx.
17066         * NEWS: Mention the change.
17067
17068 2010-07-31  Bruno Haible  <bruno@clisp.org>
17069
17070         readlink, areadlink: Relax test a bit.
17071         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17072         alternative to ENOTDIR.
17073         * tests/test-areadlink.h (test_areadlink): Likewise.
17074         Reported by Rainer Tammer.
17075
17076 2010-07-31  Bruno Haible  <bruno@clisp.org>
17077
17078         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17079         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17080         character, perform the search using U_STRCHR.
17081         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17082         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17083         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17084         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17085         Suggested by Paolo Bonzini.
17086
17087 2010-07-31  Bruno Haible  <bruno@clisp.org>
17088
17089         unistr/u*-strstr: Fix dependencies.
17090         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17091         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17092         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17093
17094 2010-07-31  Bruno Haible  <bruno@clisp.org>
17095
17096         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17097         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17098         the beginning of the loop.
17099         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17100         cases in 'switch' statement.
17101
17102         unistr/u8-strchr: Fix several bugs.
17103         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17104         the string. When not found, return NULL, not a pointer near the end.
17105
17106         More tests for unistr/u8-strchr.
17107         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17108         that the function does not read past the first occurrence of the byte
17109         being searched.
17110         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17111         * tests/unistr/test-u16-strchr.c (main): New function.
17112         * tests/unistr/test-u32-strchr.c (main): New function.
17113
17114 2010-07-31  Bruno Haible  <bruno@clisp.org>
17115
17116         posix-modules: Ignore backup files of documentation files.
17117         * posix-modules: grep only through files named *.texi.
17118
17119 2010-07-31  Bruno Haible  <bruno@clisp.org>
17120
17121         symlinkat: Fix documentation.
17122         * doc/posix-functions/readlinkat.texi: Fix module name.
17123
17124 2010-07-31  Bruno Haible  <bruno@clisp.org>
17125
17126         fchownat: Replace also when chown has the trailing slash bug.
17127         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17128         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17129         introduced on 2010-04-10.
17130         Reported by Rainer Tammer.
17131
17132 2010-07-31  Bruno Haible  <bruno@clisp.org>
17133
17134         linkat: Work around AIX 7.1 bug.
17135         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17136         whether linkat handles trailing slash correctly. If not, replace linkat
17137         and define LINKAT_TRAILING_SLASH_BUG.
17138         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17139         check whether (fd1,file1) points to a directory if file1 or file2 ends
17140         in a slash. Code taken from lib/link.c.
17141         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17142         Reported by Rainer Tammer.
17143
17144 2010-07-31  Bruno Haible  <bruno@clisp.org>
17145
17146         Correctly determine whether pow is available in libc on AIX 7 with xlc.
17147         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
17148         This disables an xlc optimization that was causing wrong test results.
17149         Reported by Rainer Tammer.
17150
17151 2010-07-31  Bruno Haible  <bruno@clisp.org>
17152
17153         iconv: Work around AIX 6.1..7.1 bug.
17154         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
17155         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
17156         cross-compiling, guess no on all versions of AIX.
17157         Reported by Rainer Tammer.
17158
17159 2010-07-31  Bruno Haible  <bruno@clisp.org>
17160
17161         readlink: Relax test a bit.
17162         * tests/test-readlink.h (test_readlink): Allow different errno value
17163         when readlink is called with a file name that ends in / and refers to
17164         a file.
17165         Suggested by Eric Blake.
17166         Reported by Rainer Tammer.
17167
17168 2010-07-31  Bruno Haible  <bruno@clisp.org>
17169
17170         copysign: Does not require -lm on glibc systems.
17171         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
17172         gl_COMMON_DOUBLE_MATHFUNC.
17173         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
17174
17175 2010-07-31  Bruno Haible  <bruno@clisp.org>
17176
17177         duplocale: Work around AIX 7.1 bug.
17178         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
17179         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
17180         * lib/duplocale.c (rpl_duplocale): Update comment.
17181         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
17182         Reported by Rainer Tammer.
17183
17184 2010-07-30  Bruno Haible  <bruno@clisp.org>
17185
17186         dirfd: Avoid link error on AIX 7.1.
17187         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
17188         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
17189         exist, set REPLACE_DIRFD.
17190         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
17191         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
17192         * doc/posix-functions/dirfd.texi: Update.
17193         Reported by Rainer Tammer.
17194
17195 2010-07-30  Eric Blake  <eblake@redhat.com>
17196
17197         strtod: next round of AIX fixes
17198         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
17199         exponent.
17200         * tests/test-strtod.c (main): Enhance tests.
17201         * doc/posix-functions/strtod.texi (strtod): Document next bug.
17202         Reported by Rainer Tammer.
17203
17204         futimens: fix configure check
17205         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
17206         Reported by Bruno Haible.
17207
17208 2010-07-30  Bruno Haible  <bruno@clisp.org>
17209
17210         getline: Update regarding AIX.
17211         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
17212         Reported by Rainer Tammer.
17213
17214 2010-07-30  Bruno Haible  <bruno@clisp.org>
17215
17216         wcwidth: Drop replacement on AIX 7.
17217         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
17218         AIX 7.
17219         Reported by Rainer Tammer.
17220
17221 2010-07-30  Bruno Haible  <bruno@clisp.org>
17222
17223         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
17224         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
17225         a 'char *'.
17226         Reported by Rainer Tammer.
17227
17228 2010-07-30  Bruno Haible  <bruno@clisp.org>
17229
17230         unlink: Update regarding AIX.
17231         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
17232         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
17233         Reported by Rainer Tammer.
17234
17235 2010-07-30  Bruno Haible  <bruno@clisp.org>
17236
17237         symlink: Update regarding AIX.
17238         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
17239         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
17240         Reported by Rainer Tammer.
17241
17242 2010-07-30  Bruno Haible  <bruno@clisp.org>
17243
17244         strndup: Update regarding AIX.
17245         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
17246         AIX 7.
17247         Reported by Rainer Tammer.
17248
17249 2010-07-30  Bruno Haible  <bruno@clisp.org>
17250
17251         stat: Update regarding AIX.
17252         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
17253         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
17254         Reported by Rainer Tammer.
17255
17256 2010-07-30  Bruno Haible  <bruno@clisp.org>
17257
17258         truncl: Fix autoconf test.
17259         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
17260         whether truncl works.
17261         Reported by Rainer Tammer.
17262
17263 2010-07-30  Bruno Haible  <bruno@clisp.org>
17264
17265         round: Update regarding AIX.
17266         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
17267         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
17268         Reported by Rainer Tammer.
17269
17270 2010-07-30  Bruno Haible  <bruno@clisp.org>
17271
17272         rename: Update regarding AIX.
17273         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17274         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17275         Reported by Rainer Tammer.
17276
17277 2010-07-30  Bruno Haible  <bruno@clisp.org>
17278
17279         printf.m4: Update regarding AIX.
17280         * m4/printf.m4: Update comments regarding AIX.
17281         Reported by Rainer Tammer.
17282
17283 2010-07-30  Bruno Haible  <bruno@clisp.org>
17284
17285         iconv: Update regarding AIX.
17286         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17287         AIX 7.
17288         Reported by Rainer Tammer.
17289
17290 2010-07-30  Bruno Haible  <bruno@clisp.org>
17291
17292         getopt: Update regarding AIX.
17293         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17294         no on AIX.
17295         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17296         Reported by Rainer Tammer.
17297
17298 2010-07-30  Bruno Haible  <bruno@clisp.org>
17299
17300         ldexpl; Update regarding AIX.
17301         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17302         on AIX 7.
17303         Reported by Rainer Tammer.
17304
17305 2010-07-30  Bruno Haible  <bruno@clisp.org>
17306
17307         frexpl: Update regarding AIX.
17308         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
17309         on AIX 7.
17310         Reported by Rainer Tammer.
17311
17312 2010-07-30  Bruno Haible  <bruno@clisp.org>
17313
17314         open, fopen: Update regarding AIX.
17315         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
17316         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17317         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
17318         * doc/posix-functions/fopen.texi: Likewise.
17319         Reported by Rainer Tammer.
17320
17321 2010-07-30  Bruno Haible  <bruno@clisp.org>
17322
17323         chown: Update doc regarding AIX.
17324         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
17325         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
17326         Reported by Rainer Tammer.
17327
17328 2010-07-30  Eric Blake  <eblake@redhat.com>
17329
17330         strtod: fix bug in replacement function on AIX
17331         * lib/strtod.c (strtod): Special case broken "0x" parse in
17332         underlying strtod.
17333         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
17334         * doc/posix-functions/strtod.texi (strtod): Likewise.
17335         Reported by Rainer Tammer.
17336
17337 2010-07-30  Bruno Haible  <bruno@clisp.org>
17338
17339         mbrlen: Fix cross-compilation guess for AIX.
17340         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
17341         guess. Leftover from 2008-12-22.
17342
17343 2010-07-30  Bruno Haible  <bruno@clisp.org>
17344
17345         mbrtowc: Fix cross-compilation guess for AIX.
17346         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
17347         guess. Leftover from 2008-12-21.
17348
17349 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
17350
17351         init.sh: work around trap limitation of some shells
17352         * tests/init.sh (setup_): Move exit trap outside of shell function.
17353
17354 2010-07-29  Eric Blake  <eblake@redhat.com>
17355
17356         strtod: aid debugging
17357         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
17358         understanding why strtod is rejected.
17359
17360 2010-07-28  Bruno Haible  <bruno@clisp.org>
17361
17362         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
17363         * lib/unistr/u8-chr.c: Include <string.h>.
17364         * tests/unistr/test-u8-chr.c: Likewise.
17365         * tests/unistr/test-u16-chr.c: Likewise.
17366         * tests/unistr/test-u32-chr.c: Likewise.
17367         * tests/unistr/test-u8-strchr.c: Likewise.
17368         * tests/unistr/test-u16-strchr.c: Likewise.
17369         * tests/unistr/test-u32-strchr.c: Likewise.
17370         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
17371         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
17372         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
17373         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
17374
17375 2010-07-28  Bruno Haible  <bruno@clisp.org>
17376
17377         Use spaces for indentation, not tabs.
17378         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17379
17380 2010-07-27  Bruno Haible  <bruno@clisp.org>
17381
17382         mbspcasecmp: Fix function specification.
17383         * lib/string.in.h (mbspcasecmp): Fix specification comment.
17384         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
17385         Reported by Eric Blake <eblake@redhat.com>.
17386
17387 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
17388
17389         timespec: use cast and not conditional, as truncation isn't possible
17390         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
17391         instead of a conditional.  Comment about the situation in more detail.
17392         This undoes most of the 2009-10-29 patch.
17393
17394 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
17395
17396         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
17397         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
17398         * lib/unistr/u8-strchr.c: Likewise.
17399         * modules/unistr/u8-chr: Depend on memchr.
17400
17401         unistr/u*-strchr: add tests
17402         * modules/unistr/u8-strchr-tests: New file.
17403         * modules/unistr/u16-strchr-tests: New file.
17404         * modules/unistr/u32-strchr-tests: New file.
17405         * tests/unistr/test-strchr.h: New file.
17406         * tests/unistr/test-u8-strchr.c: New file.
17407         * tests/unistr/test-u16-strchr.c: New file.
17408         * tests/unistr/test-u32-strchr.c: New file.
17409
17410         unistr/u*-chr: test multibyte sequences more
17411         * tests/unistr/test-chr.h: Do complete testing of the characters in the
17412         test vector.
17413         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
17414         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
17415         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
17416
17417         unistr/u*-chr: test multibyte sequences
17418         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
17419
17420         unistr/u*-chr: prepare for multibyte tests
17421         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
17422         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
17423         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
17424         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
17425         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
17426         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
17427
17428 2010-07-18  Bruno Haible  <bruno@clisp.org>
17429
17430         unistr/u8-strchr: Optimize non-ASCII argument case.
17431         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
17432         because the first byte often matches anyway.
17433         Reported by Pádraig Brady <P@draigbrady.com>.
17434
17435 2010-07-15  Karl Berry  <karl@gnu.org>
17436
17437         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
17438
17439 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
17440
17441         getcwd: on Solaris, work better if ancestors are inaccessible
17442         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
17443         buffer and size, try again with a large buffer.  This works better
17444         on Solaris, since its getcwd succeeds even if the path to the root
17445         is inaccessible, and this is helpful in common cases such as .zfs
17446         hidden directories.  Problem reported by J Chapman Flack in
17447         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
17448         Use system getcwd if it's declared, not merely if it's partly
17449         working; use the partly-working test only to avoid needless effort
17450         if the system getcwd fails.
17451         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
17452         comment that was already obsolete and is now even more obsolete.
17453         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
17454         now might call strdup.
17455
17456 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
17457
17458         pthread: Add enough so that coreutils/src/sort.c compiles.
17459         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
17460         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
17461         gnulib. Include <sched.h> and <time.h>, as per POSIX.
17462         Include <sys/types.h>, in case it defines pthread_t.
17463         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
17464         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
17465         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
17466         (pthread_rwlockattr_t, pthread_spinlock_t):
17467         New typedefs, if HAVE_PTHREAD_T is not defined.
17468         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
17469         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
17470         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
17471         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
17472         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
17473         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
17474         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
17475         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
17476         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
17477         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
17478         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
17479         New macros.
17480         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
17481         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
17482         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
17483         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
17484         (pthread_spin_unlock): New dummy functions.
17485         (pthread_create): Return EAGAIN; don't set errno.
17486         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
17487         require AC_C_INLINE.
17488         * modules/pthread (Depends-on): Add sched, time.
17489         (pthread.h): Use AM_V_GEN.
17490
17491 2010-07-13  Bruno Haible  <bruno@clisp.org>
17492
17493         striconveh: Don't malloc memory if the result buffer is sufficient.
17494         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
17495         buffer if its size is sufficient.
17496         Reported by Ludovic Courtès <ludo@gnu.org>.
17497
17498 2010-07-13  Bruno Haible  <bruno@clisp.org>
17499
17500         strtod: Add safety check.
17501         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
17502
17503 2010-07-12  Bruno Haible  <bruno@clisp.org>
17504
17505         Unify tests that set gl_cv_func_ldexpl_no_libm.
17506         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
17507         gl_FUNC_LDEXPL.
17508         (gl_FUNC_LDEXPL): Invoke it.
17509         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17510
17511 2010-07-12  Bruno Haible  <bruno@clisp.org>
17512
17513         Unify tests that set gl_cv_func_ldexp_no_libm.
17514         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
17515         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
17516         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
17517         (configure.ac): Simply invoke gl_FUNC_LDEXP.
17518         * modules/strtod (Files): Add m4/ldexp.m4.
17519
17520 2010-07-12  Bruno Haible  <bruno@clisp.org>
17521
17522         Unify tests that set gl_cv_func_frexpl_no_libm.
17523         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
17524         gl_FUNC_FREXPL_NO_LIBM.
17525         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
17526         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17527
17528 2010-07-12  Bruno Haible  <bruno@clisp.org>
17529
17530         Unify tests that set gl_cv_func_frexp_no_libm.
17531         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
17532         gl_FUNC_FREXP_NO_LIBM.
17533         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
17534         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17535
17536 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17537
17538         memcoll: clarify sizes versus lengths, document better, and tweak perf
17539         * lib/memcoll.c (strcoll_loop, memcoll0):
17540         Improve quality of descriptive comments.  Name variables
17541         consistently as to whether they are lengths (which do not include
17542         terminating null) versus sizes (which do).
17543         * lib/xmemcoll.c (xmemcoll0): Likewise.
17544         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
17545         returned when s1size == 0; this is easier to compile and saves
17546         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
17547
17548 2010-07-12  Bruno Haible  <bruno@clisp.org>
17549
17550         Tests for module '_Exit'.
17551         * modules/_Exit-tests: New file.
17552         * tests/test-_Exit.sh: New file.
17553         * tests/test-_Exit.c: New file.
17554
17555         New module '_Exit'.
17556         * lib/stdlib.in.h (__attribute__): New macro.
17557         (_Exit): New declaration.
17558         * lib/_Exit.c: New file.
17559         * m4/_Exit.m4: New file.
17560         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
17561         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
17562         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
17563         * modules/_Exit: New file.
17564         * tests/test-stdlib-c++.cc (_Exit): Check signature.
17565         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
17566
17567 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17568
17569         strtod: make it more-accurate typically, and don't require libm
17570         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
17571         Include limits.h.  Don't include string.h.
17572         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
17573         (locale_isspace): New function, so that no casts are needed to
17574         check whether *s is a space.
17575         (ldexp): Provide an unused dummy if not available.
17576         (scale_radix_exp, parse_number, underlying_strtod): New functions.
17577         (strtod): Use them.  This implementation prefers to use the
17578         underlying strtod if available, falling back on our own code
17579         only to fix known bugs.  This is more likely to produce an
17580         accurate result.  Also, it avoids the use of libm functions.
17581         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
17582         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
17583         was absent, but it caused a test failure with coreutils.
17584         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
17585         with libm.
17586         * modules/strtod (Makefile.am, Link): libm is no longer needed.
17587         * modules/strtod-tests (Makefile.am): Likewise.
17588
17589 2010-07-11  Pádraig Brady  <P@draigBrady.com>
17590             Bruno Haible  <bruno@clisp.org>
17591
17592         unistr/u8-strchr: Optimize ASCII argument case.
17593         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
17594
17595 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17596
17597         (x)memcoll: minor tweaks
17598         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
17599         is after the type that it qualifies.
17600         (memcoll0): Likewise.
17601         * lib/memcoll.h (memcoll0): Likewise.
17602         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
17603         * lib/xmemcoll.h (xmemcoll0): Likewise.
17604         * lib/memcoll.c (memcoll0): Correct the comment.  This function
17605         differs from memcoll in that the NUL byte is part of the argument.
17606         Omit the abort-checks, as performance is a real issue here.  Plus,
17607         the checks were wrong anyway (an off-by-one error).  Omit local
17608         variable 'diff', as it's a bit clearer that way.
17609         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
17610         no longer needed.
17611
17612 2010-07-08  Chen Guo <chenguo4@yahoo.com>
17613
17614         (x)memcoll: speedup when input is known to be NUL delimited
17615         * lib/memcoll.c: Include stdlib.
17616         (memcoll0): New function.
17617         (strcoll_loop): New function, refactored for use in both memcoll
17618         and memcoll0.
17619         * lib/memcoll.h (memcoll0): Add prototype.
17620         * lib/xmemcoll.c (xmemcoll0): New function.
17621         (collate_error): New function, refactored for use in both xmemcoll
17622         and xmemcoll0.
17623         * lib/xmemcoll.h (xmemcoll0): Add prototype.
17624         * m4/memcoll.m4: add inline invocation.
17625
17626 2010-07-06  Pádraig Brady  <P@draigBrady.com>
17627
17628         * build-aux/bootstrap: Remove any local translations
17629         from the translation project synchronization directory,
17630         so that local only translations are not distributed.
17631
17632 2010-07-04  Bruno Haible  <bruno@clisp.org>
17633
17634         fsusage: Clarify which code applies to which platforms.
17635         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
17636         platform.
17637         * lib/fsusage.c (get_fs_usage): Likewise.
17638
17639 2010-07-04  Bruno Haible  <bruno@clisp.org>
17640
17641         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
17642         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
17643         Reported by Martin Lambers <marlam@marlam.de>.
17644
17645 2010-07-04  Jim Meyering  <meyering@redhat.com>
17646
17647         hash: once again explicitly disallow insertion of NULL
17648         * lib/hash.c (hash_insert0): Reinstate just-removed test:
17649         inserting a NULL pointer cannot work with these functions.
17650         Add a comment with details.
17651         This reverts part of the 2010-07-01 commit, 5bef1a35
17652         "hash: extend module to deal with non-pointer keys".
17653
17654 2010-07-01  Bruno Haible  <bruno@clisp.org>
17655
17656         stdbool: Update doc.
17657         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
17658         Info from Christian Weisgerber <naddy@mips.inka.de>.
17659
17660 2010-07-01  Jim Meyering  <meyering@redhat.com>
17661
17662         hash: extend module to deal with non-pointer keys
17663         * lib/hash.c (hash_insert0): New interface, much like hash_insert
17664         but that allows insertion of non-pointer entries.
17665         Do not disallow an ENTRY value of NULL.
17666         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
17667         * lib/hash.h (hash_insert0): Declare.
17668
17669 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17670
17671         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
17672         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
17673         not present (i.e. with autoconf 2.59 and when using gettextize, not
17674         gnulib), require AC_GNU_SOURCE instead.
17675
17676 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
17677
17678         idpriv-drop: Fix tests.
17679         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
17680         not to the test-idpriv-droptemp program.
17681
17682 2010-06-29  Bruno Haible  <bruno@clisp.org>
17683
17684         string: Fix syntax error with g++ 2.96.
17685         * lib/string.in.h (__pure__): Remove definition.
17686         (_GL_ATTRIBUTE_PURE): New macro.
17687         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
17688         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
17689         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17690
17691 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
17692
17693         unitypes: Fix bug introduced on 2010-05-18.
17694         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
17695
17696 2010-06-22  Eric Blake  <eblake@redhat.com>
17697
17698         memmem: slight optimization
17699         * lib/str-two-way.h (critical_factorization): Update comments.
17700         Reduce work during factorization phase.
17701         Reported by Carlos Bueno <carlos@bueno.org>.
17702
17703 2010-06-21  Bruno Haible  <bruno@clisp.org>
17704
17705         Fix HAVE_CALLOC_POSIX misnomer.
17706         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
17707         !HAVE_CALLOC_POSIX.
17708         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
17709         HAVE_CALLOC_POSIX.
17710         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
17711         instead of HAVE_CALLOC_POSIX.
17712         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
17713         HAVE_CALLOC_POSIX.
17714
17715         Use modern idiom for calloc() replacement.
17716         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
17717         AC_FUNC_CALLOC.
17718         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
17719         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
17720         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17721         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
17722         (gl_REPLACE_CALLOC): New macro.
17723
17724 2010-06-21  Bruno Haible  <bruno@clisp.org>
17725
17726         Fix HAVE_REALLOC_POSIX misnomer.
17727         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
17728         !HAVE_REALLOC_POSIX.
17729         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
17730         HAVE_REALLOC_POSIX.
17731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
17732         instead of HAVE_REALLOC_POSIX.
17733         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
17734         HAVE_REALLOC_POSIX.
17735
17736         Use modern idiom for realloc() replacement.
17737         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
17738         AC_FUNC_REALLOC.
17739         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
17740         Autoconf's AC_FUNC_REALLOC.
17741         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17742         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
17743         (gl_REPLACE_REALLOC): New macro.
17744         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17745
17746 2010-06-21  Bruno Haible  <bruno@clisp.org>
17747
17748         Fix HAVE_MALLOC_POSIX misnomer.
17749         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
17750         !HAVE_MALLOC_POSIX.
17751         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
17752         HAVE_MALLOC_POSIX.
17753         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
17754         instead of HAVE_MALLOC_POSIX.
17755         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
17756         HAVE_MALLOC_POSIX.
17757
17758         Use modern idiom for malloc() replacement.
17759         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
17760         AC_FUNC_MALLOC.
17761         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
17762         Autoconf's AC_FUNC_MALLOC.
17763         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17764         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
17765         (gl_REPLACE_MALLOC): New macro.
17766         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17767
17768 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
17769
17770         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
17771         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
17772         This macro takes 3 arguments, not 4.
17773
17774 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
17775
17776         ipv6: fix detection under mingw
17777         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
17778         in6_addr.
17779
17780 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
17781
17782         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
17783         that strtod() works when cross-compiling to a glibc version known
17784         to work.
17785
17786 2010-06-15  Bruno Haible  <bruno@clisp.org>
17787
17788         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
17789
17790 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
17791
17792         select: Correct timeout.
17793         * lib/select.c (rpl_select): Compute wait_timeout correctly.
17794
17795 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17796
17797         git-version-gen: init shell var to avoid env var influence
17798         * build-aux/git-version-gen (v): Init shell var to empty.
17799
17800 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
17801
17802         priv-set: Don't assume that priv.h exists merely because getppriv does.
17803         See Jan Andersen's bug report about AIX 5L in
17804         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
17805         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
17806         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
17807         * lib/priv-set.h: Likewise.
17808         * tests/test-priv-set.c: Likewise.
17809
17810 2010-06-13  Bruno Haible  <bruno@clisp.org>
17811
17812         relocatable: Make it easier to test whether to install wrappers.
17813         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
17814         RELOCATABLE_VIA_WRAPPER.
17815
17816 2010-06-13  Bruno Haible  <bruno@clisp.org>
17817
17818         gnulib-tool: Display specified modules and dependencies differently.
17819         * gnulib-tool (func_show_module_list): New function.
17820         (func_import, func_create_testdir): Invoke it.
17821         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17822
17823 2010-06-13  Bruno Haible  <bruno@clisp.org>
17824
17825         gnulib-tool: Align code of func_import and func_create_testdir.
17826         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
17827         specified_modules.
17828
17829 2010-06-12  Jim Meyering  <meyering@redhat.com>
17830
17831         test-inttostr: avoid spurious failure on Solaris 9
17832         * tests/test-inttostr.c (main): Skip the test when snprintf fails
17833         to accept "%ju".  Reported by Bruno Haible.
17834
17835 2010-06-11  Jim Meyering  <meyering@redhat.com>
17836
17837         test-sys_socket: mark variables as used more readably
17838         * tests/test-sys_socket.c (main): Mark otherwise unused variables
17839         as "used" explicitly via (void) statement casts.  This is more
17840         readable than using them in an artificial return expression.
17841         Suggestion from Bruno Haible.
17842
17843 2010-06-11  Bruno Haible  <bruno@clisp.org>
17844
17845         Avoid some more warnings from "gcc -Wwrite-strings".
17846         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
17847         to 'const char *'.
17848         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
17849         * tests/test-c-strcasestr.c (main): Likewise.
17850         * tests/test-mbscasestr1.c (main): Likewise.
17851         * tests/test-mbscasestr2.c (main): Likewise.
17852         * tests/test-memmem.c (main): Likewise.
17853         * tests/test-strstr.c (main): Likewise.
17854         * tests/test-strcasestr.c (main): Likewise.
17855
17856 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17857
17858         init.sh: change framework_failure_ to fail with status 99, not 1
17859         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
17860         automake's parallel-tests rule that this is an unexpected failure,
17861         even if the test is listed in XFAIL_TESTS.
17862
17863 2010-06-11  Jim Meyering  <meyering@redhat.com>
17864
17865         test-inttostr: avoid warnings about 4-6KB literal strings
17866         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
17867         Include "macros.h", for its definition of ASSERT.
17868         (CK): s/assert/ASSERT/
17869         * modules/inttostr-tests (Files): Add macros.h.
17870
17871         init.sh: don't use $ME_ or skip_ before they are defined
17872         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
17873         their first uses.  Also hoist their companions: warn_, fail_,
17874         framework_failure_, $stderr_fileno.  Prompted by a patch from
17875         Stefano Lattarini.
17876
17877         test-sys_socket: avoid set-but-not-used warnings from gcc
17878         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
17879         avoid warning about set-but-not-used variables.
17880
17881         test-xvasprintf: avoid 'const' discard warnings
17882         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
17883         "const" when assigning from literal strings.
17884         (test_xasprintf): Add "void" in function argument list to placate
17885         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
17886
17887         tests: avoid compilation warnings in argmatch and exclude tests...
17888         in packages that define ARGMATCH_DIE_DECL, like coreutils.
17889         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
17890         Since it always exits, declare with the "noreturn" attribute.
17891         * tests/test-argmatch.c: Likewise.
17892
17893         tests: avoid 'const' discard warnings in mbsstr tests
17894         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
17895         * tests/test-mbsstr2.c (main): Likewise.
17896
17897         test-verify: avoid warning from gcc's -Wmissing-declarations
17898         * tests/test-verify.c (function): Declare to be static.
17899
17900         test-inttostr.c: include <string.h> for use of strcmp
17901         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
17902
17903         test-linkat: avoid failed assertion on "other" architectures
17904         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
17905         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
17906         sparc: https://bugs.launchpad.net/bugs/591968
17907
17908 2010-06-11  Jim Meyering  <meyering@redhat.com>
17909
17910         printf.m4: avoid autoconf's "Expanded Before Required" warning
17911         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
17912         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
17913         autoconf warning.
17914
17915 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
17916
17917         Replacement header templates are now named with ".in", not "_".
17918         * doc/gnulib-intro.texi: Correct.
17919
17920 2010-06-10  Jim Meyering  <meyering@redhat.com>
17921
17922         inttostr-tests: depend on snprintf, not snprintf-posix
17923         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
17924         snprintf-posix, to avoid this aclocal failure:
17925           missing file gnulib-tests/vasnprintf.c
17926           configure.ac:45: error: expected source file, required through \
17927           AC_LIBSOURCES, not found
17928
17929 2010-06-10  Jim Meyering  <meyering@redhat.com>
17930
17931         inttostr: add a new function, inttostr, and tests
17932         The namesake function was not available.  The existence of the
17933         template file, inttostr.c makes its addition nontrivial.
17934         * lib/anytostr.c: Rename from inttostr.c.
17935         (anytostr): Rename from inttostr.
17936         * lib/inttostr.c: New file.
17937         * modules/inttostr (Files): Add anytostr.c.
17938         (Makefile.am): Set lib_SOURCES instead of ...
17939         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
17940         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
17941         * lib/offtostr.c: Likewise.
17942         * lib/uinttostr.c: Likewise.
17943         * lib/umaxtostr.c: Likewise.
17944         * modules/inttostr-tests: New file.
17945         * tests/test-inttostr.c: New file.  Test these functions.
17946
17947 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
17948             Bruno Haible  <bruno@clisp.org>
17949
17950         Add "Extending Gnulib" chapter to manual.
17951         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
17952         chapter.
17953         (Extending Gnulib): New chapter.
17954         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
17955         chapter.
17956
17957 2010-06-09  Bruno Haible  <bruno@clisp.org>
17958
17959         Avoid relocwrapper link errors due to gnulib replacement functions.
17960         * lib/areadlink.c: Use the system's malloc, realloc functions.
17961         (areadlink): Set errno to ENOMEM explicitly.
17962         * modules/areadlink (Depends-on): Remove malloc-posix.
17963         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17964
17965 2010-06-09  Bruno Haible  <bruno@clisp.org>
17966
17967         Avoid relocwrapper link errors due to gnulib replacement functions.
17968         * lib/canonicalize-lgpl.c: Use the system's malloc function.
17969         * lib/malloca.c: Likewise.
17970         * lib/relocatable.c: Likewise.
17971         * lib/progreloc.c: Use the system's malloc, sprintf functions.
17972         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
17973         * lib/setenv.c: Use the system's malloc, realloc functions.
17974         * lib/strerror.c: Use the system's sprintf function.
17975         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17976
17977 2010-06-04  Bruno Haible  <bruno@clisp.org>
17978
17979         Prefer documented low-level autoconf macro names.
17980         * m4/lib-link.m4: Use m4_translit instead of translit.
17981         * m4/environ.m4: Likewise.
17982         * m4/mathfunc.m4: Likewise.
17983         * m4/onceonly.m4: Likewise.
17984         * m4/stdint.m4: Likewise.
17985         Suggested by Eric Blake.
17986
17987 2010-06-04  Martin Lambers  <marlam@marlam.de>
17988             Bruno Haible  <bruno@clisp.org>
17989
17990         havelib: Allow library names with '+' characters.
17991         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
17992         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
17993
17994 2010-06-09  Bruno Haible  <bruno@clisp.org>
17995
17996         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
17997         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
17998         realloc failed.
17999
18000 2010-06-08  Peter Simons  <simons@cryp.to>
18001
18002         maint.mk: make the news-check rule more configurable
18003         * top/maint.mk (news-check-lines-spec): New variable.
18004         (news-check): Use "sed -n 1,10p" in place of "head".
18005
18006 2010-06-07  Jim Meyering  <meyering@redhat.com>
18007
18008         do-release-commit-and-tag: fix typo in --help
18009         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18010
18011         regex: avoid new dead-code warning with gcc-4.6.0
18012         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18013         if-block containing a while-loop.  It's been unused for at least
18014         5 years.
18015
18016 2010-06-05  Bruno Haible  <bruno@clisp.org>
18017
18018         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18019         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18020
18021 2010-06-04  Bruno Haible  <bruno@clisp.org>
18022
18023         Update to GNU gettext 0.18.1.
18024         * modules/gettext (configure.ac): Require gettext infrastructure from
18025         version 0.18.1.
18026
18027 2010-06-03  Bruno Haible  <bruno@clisp.org>
18028
18029         Don't use AC_LIBOBJ with file names in subdirectories.
18030         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18031         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18032         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18033         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18034         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18035         gl_LIBUNISTRING_LIBSOURCE.
18036         (Makefile.am): Augment lib_SOURCES here, conditionally.
18037         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18038
18039 2010-06-03  Bruno Haible  <bruno@clisp.org>
18040
18041         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18042         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18043         expansion does not end with a newline.
18044         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18045         unnecessary newline.
18046
18047 2010-06-03  Bruno Haible  <bruno@clisp.org>
18048
18049         Reduce dependencies.
18050         * tests/test-quotearg.h: New file, extracted from
18051         tests/test-quotearg.c.
18052         * tests/test-quotearg-simple.c: New file, extracted from
18053         tests/test-quotearg.c.
18054         * tests/test-quotearg.c: Don't include <ctype.h>.
18055         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18056         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18057         use_quote_double_quotes, use_quotearg_colon): Moved to
18058         tests/test-quotearg.h.
18059         (results_g, flag_results, custom_quotes, custom_results): Moved
18060         to tests/test-quotearg-simple.c.
18061         (main): Moved the part that does not depend on gettext to
18062         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18063         performed.
18064         * modules/quotearg-simple: New file.
18065         * modules/quotearg-simple-tests: New file.
18066         * modules/quotearg (Depends-on): Add quotearg-simple.
18067         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18068         (Files): Add tests/test-quotearg.h.
18069         Reported by Paolo Bonzini.
18070
18071 2010-06-03  Bruno Haible  <bruno@clisp.org>
18072
18073         Reduce dependencies.
18074         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18075
18076 2010-06-03  Bruno Haible  <bruno@clisp.org>
18077
18078         time: Undefine more broken macros.
18079         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18080         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18081         Reported by Eric Blake.
18082
18083 2010-06-03  Bruno Haible  <bruno@clisp.org>
18084
18085         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18086         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18087         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18088         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18089         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18090         Reported by Ludovic Courtès <ludo@gnu.org>.
18091
18092 2010-06-02  Eric Blake  <eblake@redhat.com>
18093
18094         time: work with mingw + pthreads-win32 library
18095         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18096         if timespec is defined only in pthread.h.
18097         * modules/time (Makefile.am): Substitute it.
18098         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18099         <pthread.h>, when needed.
18100         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18101         from the library.
18102
18103 2010-05-31  Bruno Haible  <bruno@clisp.org>
18104
18105         Avoid expanding two macros in the wrong order.
18106         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18107         gl_LIBUNISTRING if it is defined.
18108         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18109         autoconf >= 2.64.
18110         Reported by Ludovic Courtès <ludo@gnu.org>.
18111
18112 2010-05-27  Jim Meyering  <meyering@redhat.com>
18113
18114         maint.mk: also prohibit "#undef" of always-defined symbols
18115         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18116         Allow more than one space before the symbol name.
18117         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18118         the regexp uses alternation.
18119
18120 2010-05-26  Eric Blake  <eblake@redhat.com>
18121
18122         maint.mk: avoid echo -e
18123         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18124         Convert all uses of echo -* to printf.
18125         Reported by Matthias Bolte.
18126
18127 2010-05-25  Bruno Haible  <bruno@clisp.org>
18128
18129         Update to GNU gettext 0.18, part 2.
18130         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18131         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18132
18133 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18134
18135         Add missing include in test-pwrite.c.
18136         * tests/test-pwrite.c: Include string.h, for strcmp.
18137
18138 2010-05-24  Bruno Haible  <bruno@clisp.org>
18139
18140         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18141
18142 2010-05-24  Bruno Haible  <bruno@clisp.org>
18143
18144         Don't use conversion with transliteration in u{8,16,32}_strcoll.
18145         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
18146         iconveh_error argument.
18147         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
18148         U_STRCONV_TO_LOCALE.
18149         * lib/unistr/u16-strcoll.c: Likewise.
18150         * lib/unistr/u32-strcoll.c: Likewise.
18151         * modules/unistr/u8-strcoll (Depends-on): Add
18152         uniconv/u8-strconv-to-enc, localcharset. Remove
18153         uniconv/u8-strconv-to-locale.
18154         (configure.ac): Bump version number.
18155         * modules/unistr/u16-strcoll (Depends-on): Add
18156         uniconv/u16-strconv-to-enc, localcharset. Remove
18157         uniconv/u16-strconv-to-locale.
18158         (configure.ac): Bump version number.
18159         * modules/unistr/u32-strcoll (Depends-on): Add
18160         uniconv/u32-strconv-to-enc, localcharset. Remove
18161         uniconv/u32-strconv-to-locale.
18162         (configure.ac): Bump version number.
18163
18164 2010-05-24  Bruno Haible  <bruno@clisp.org>
18165
18166         Avoid a test failure on NetBSD 5.0.
18167         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
18168         an iconv() bug.
18169
18170 2010-05-24  Bruno Haible  <bruno@clisp.org>
18171
18172         Adjust #include directive style.
18173         * modules/regex (Includes): Recommend to write <regex.h>.
18174
18175 2010-05-24  Bruno Haible  <bruno@clisp.org>
18176
18177         regex: Don't require alloca.
18178         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
18179         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
18180         only inside if (0).
18181
18182 2010-05-23  Jim Meyering  <meyering@redhat.com>
18183
18184         test-renameat.c: include <sys/stat.h>
18185         * tests/test-renameat.c: Include <sys/stat.h>; required for
18186         definition of S_IS* macros.
18187
18188 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
18189
18190         Update maintainer documentation for 'relocatable-prog' module.
18191         * doc/relocatable-maint.texi: Update.
18192         Comments by Bruno Haible.
18193
18194 2010-05-23  Bruno Haible  <bruno@clisp.org>
18195
18196         git-merge-changelog: Enable --split-merged-entry by default.
18197         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
18198         (usage): Don't mention this option any more.
18199         Reported by Ralf Wildenhues.
18200
18201 2010-05-23  Jim Meyering  <meyering@redhat.com>
18202
18203         test-pwrite: do not leave behind a test file named "out"
18204         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
18205         The trivial-looking use of init.sh is really necessary.
18206         It ensures that the temporary file, "out", is created in
18207         a temporary directory, and removed upon termination.
18208         * tests/test-pwrite.sh: Re-add file.
18209         * modules/pwrite-tests: Reference it.
18210
18211 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18212
18213         Fix output redirection buglet in init.sh.
18214         * tests/init.sh: Fix redirection of stderr.
18215
18216 2010-05-20  Simon Josefsson  <simon@josefsson.org>
18217
18218         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
18219
18220 2010-05-17  Simon Josefsson  <simon@josefsson.org>
18221
18222         * modules/valgrind-tests: New file.
18223         * m4/valgrind-tests.m4: New file.
18224         * doc/valgrind-tests.texi: New file.
18225         * doc/gnulib.texi (Running self-tests under valgrind): New
18226         section.
18227
18228 2010-05-19  Bruno Haible  <bruno@clisp.org>
18229
18230         Clean up dead code in recent commit.
18231         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
18232         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
18233         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
18234         Suggested by Paolo Bonzini.
18235
18236 2010-05-19  Bruno Haible  <bruno@clisp.org>
18237
18238         Avoid valgrind error reports from libunistring.
18239         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
18240         * modules/libunistring (Files): Add it.
18241         * modules/libunistring-optional (Files): Likewise.
18242
18243 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
18244             Bruno Haible  <bruno@clisp.org>
18245
18246         New module 'libunistring-optional'.
18247         * modules/libunistring-optional: New file.
18248         * m4/libunistring-base.m4: New file.
18249         * m4/libunistring-optional.m4: New file.
18250         * lib/unicase.in.h: Renamed from lib/unicase.h.
18251         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
18252         * lib/unictype.in.h: Renamed from lib/unictype.h.
18253         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
18254         * lib/uniname.in.h: Renamed from lib/uniname.h.
18255         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
18256         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
18257         * lib/unistr.in.h: Renamed from lib/unistr.h.
18258         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
18259         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
18260         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
18261         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
18262         gl_LIBUNISTRING. If the library was found, determine the installed
18263         version and set LIBUNISTRING_VERSION.
18264         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
18265         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
18266         handle a configuration option --with-included-libunistring.
18267         * modules/libunistring (Files): Add m4/absolute-header.m4.
18268         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
18269         Add m4/libunistring-base.m4.
18270         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18271         (Makefile.am): Build unicase.h from unicase.in.h.
18272         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
18273         Add m4/libunistring-base.m4.
18274         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18275         (Makefile.am): Build uniconv.h from uniconv.in.h.
18276         * modules/unictype/base (Files): Use unictype.in.h instead of
18277         unictype.h. Add m4/libunistring-base.m4.
18278         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18279         (Makefile.am): Build unictype.h from unictype.in.h.
18280         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18281         Add m4/libunistring-base.m4.
18282         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18283         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18284         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18285         Add m4/libunistring-base.m4.
18286         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18287         (Makefile.am): Build uniname.h from uniname.in.h.
18288         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18289         Add m4/libunistring-base.m4.
18290         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18291         (Makefile.am): Build uninorm.h from uninorm.in.h.
18292         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18293         unistdio.h. Add m4/libunistring-base.m4.
18294         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18295         (Makefile.am): Build unistdio.h from unistdio.in.h.
18296         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18297         Add m4/libunistring-base.m4.
18298         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18299         (Makefile.am): Build unistr.h from unistr.in.h.
18300         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18301         Add m4/libunistring-base.m4.
18302         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18303         (Makefile.am): Build unitypes.h from unitypes.in.h.
18304         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18305         Add m4/libunistring-base.m4.
18306         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18307         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18308         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
18309         uniwidth.h. Add m4/libunistring-base.m4.
18310         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18311         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
18312         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
18313         instead of augmenting lib_SOURCES.
18314         * modules/unicase/empty-suffix-context: Likewise.
18315         * modules/unicase/locale-language: Likewise.
18316         * modules/unicase/tolower: Likewise.
18317         * modules/unicase/totitle: Likewise.
18318         * modules/unicase/toupper: Likewise.
18319         * modules/unicase/u8-casecmp: Likewise.
18320         * modules/unicase/u8-casecoll: Likewise.
18321         * modules/unicase/u8-casefold: Likewise.
18322         * modules/unicase/u8-casexfrm: Likewise.
18323         * modules/unicase/u8-ct-casefold: Likewise.
18324         * modules/unicase/u8-ct-tolower: Likewise.
18325         * modules/unicase/u8-ct-totitle: Likewise.
18326         * modules/unicase/u8-ct-toupper: Likewise.
18327         * modules/unicase/u8-is-cased: Likewise.
18328         * modules/unicase/u8-is-casefolded: Likewise.
18329         * modules/unicase/u8-is-lowercase: Likewise.
18330         * modules/unicase/u8-is-titlecase: Likewise.
18331         * modules/unicase/u8-is-uppercase: Likewise.
18332         * modules/unicase/u8-prefix-context: Likewise.
18333         * modules/unicase/u8-suffix-context: Likewise.
18334         * modules/unicase/u8-tolower: Likewise.
18335         * modules/unicase/u8-totitle: Likewise.
18336         * modules/unicase/u8-toupper: Likewise.
18337         * modules/unicase/u16-casecmp: Likewise.
18338         * modules/unicase/u16-casecoll: Likewise.
18339         * modules/unicase/u16-casefold: Likewise.
18340         * modules/unicase/u16-casexfrm: Likewise.
18341         * modules/unicase/u16-ct-casefold: Likewise.
18342         * modules/unicase/u16-ct-tolower: Likewise.
18343         * modules/unicase/u16-ct-totitle: Likewise.
18344         * modules/unicase/u16-ct-toupper: Likewise.
18345         * modules/unicase/u16-is-cased: Likewise.
18346         * modules/unicase/u16-is-casefolded: Likewise.
18347         * modules/unicase/u16-is-lowercase: Likewise.
18348         * modules/unicase/u16-is-titlecase: Likewise.
18349         * modules/unicase/u16-is-uppercase: Likewise.
18350         * modules/unicase/u16-prefix-context: Likewise.
18351         * modules/unicase/u16-suffix-context: Likewise.
18352         * modules/unicase/u16-tolower: Likewise.
18353         * modules/unicase/u16-totitle: Likewise.
18354         * modules/unicase/u16-toupper: Likewise.
18355         * modules/unicase/u32-casecmp: Likewise.
18356         * modules/unicase/u32-casecoll: Likewise.
18357         * modules/unicase/u32-casefold: Likewise.
18358         * modules/unicase/u32-casexfrm: Likewise.
18359         * modules/unicase/u32-ct-casefold: Likewise.
18360         * modules/unicase/u32-ct-tolower: Likewise.
18361         * modules/unicase/u32-ct-totitle: Likewise.
18362         * modules/unicase/u32-ct-toupper: Likewise.
18363         * modules/unicase/u32-is-cased: Likewise.
18364         * modules/unicase/u32-is-casefolded: Likewise.
18365         * modules/unicase/u32-is-lowercase: Likewise.
18366         * modules/unicase/u32-is-titlecase: Likewise.
18367         * modules/unicase/u32-is-uppercase: Likewise.
18368         * modules/unicase/u32-prefix-context: Likewise.
18369         * modules/unicase/u32-suffix-context: Likewise.
18370         * modules/unicase/u32-tolower: Likewise.
18371         * modules/unicase/u32-totitle: Likewise.
18372         * modules/unicase/u32-toupper: Likewise.
18373         * modules/unicase/ulc-casecmp: Likewise.
18374         * modules/unicase/ulc-casecoll: Likewise.
18375         * modules/unicase/ulc-casexfrm: Likewise.
18376         * modules/uniconv/u8-conv-from-enc: Likewise.
18377         * modules/uniconv/u8-conv-to-enc: Likewise.
18378         * modules/uniconv/u8-strconv-from-enc: Likewise.
18379         * modules/uniconv/u8-strconv-from-locale: Likewise.
18380         * modules/uniconv/u8-strconv-to-enc: Likewise.
18381         * modules/uniconv/u8-strconv-to-locale: Likewise.
18382         * modules/uniconv/u16-conv-from-enc: Likewise.
18383         * modules/uniconv/u16-conv-to-enc: Likewise.
18384         * modules/uniconv/u16-strconv-from-enc: Likewise.
18385         * modules/uniconv/u16-strconv-from-locale: Likewise.
18386         * modules/uniconv/u16-strconv-to-enc: Likewise.
18387         * modules/uniconv/u16-strconv-to-locale: Likewise.
18388         * modules/uniconv/u32-conv-from-enc: Likewise.
18389         * modules/uniconv/u32-conv-to-enc: Likewise.
18390         * modules/uniconv/u32-strconv-from-enc: Likewise.
18391         * modules/uniconv/u32-strconv-from-locale: Likewise.
18392         * modules/uniconv/u32-strconv-to-enc: Likewise.
18393         * modules/uniconv/u32-strconv-to-locale: Likewise.
18394         * modules/unictype/bidicategory-byname: Likewise.
18395         * modules/unictype/bidicategory-name: Likewise.
18396         * modules/unictype/bidicategory-of: Likewise.
18397         * modules/unictype/bidicategory-test: Likewise.
18398         * modules/unictype/block-list: Likewise.
18399         * modules/unictype/block-test: Likewise.
18400         * modules/unictype/category-C: Likewise.
18401         * modules/unictype/category-Cc: Likewise.
18402         * modules/unictype/category-Cf: Likewise.
18403         * modules/unictype/category-Cn: Likewise.
18404         * modules/unictype/category-Co: Likewise.
18405         * modules/unictype/category-Cs: Likewise.
18406         * modules/unictype/category-L: Likewise.
18407         * modules/unictype/category-Ll: Likewise.
18408         * modules/unictype/category-Lm: Likewise.
18409         * modules/unictype/category-Lo: Likewise.
18410         * modules/unictype/category-Lt: Likewise.
18411         * modules/unictype/category-Lu: Likewise.
18412         * modules/unictype/category-M: Likewise.
18413         * modules/unictype/category-Mc: Likewise.
18414         * modules/unictype/category-Me: Likewise.
18415         * modules/unictype/category-Mn: Likewise.
18416         * modules/unictype/category-N: Likewise.
18417         * modules/unictype/category-Nd: Likewise.
18418         * modules/unictype/category-Nl: Likewise.
18419         * modules/unictype/category-No: Likewise.
18420         * modules/unictype/category-P: Likewise.
18421         * modules/unictype/category-Pc: Likewise.
18422         * modules/unictype/category-Pd: Likewise.
18423         * modules/unictype/category-Pe: Likewise.
18424         * modules/unictype/category-Pf: Likewise.
18425         * modules/unictype/category-Pi: Likewise.
18426         * modules/unictype/category-Po: Likewise.
18427         * modules/unictype/category-Ps: Likewise.
18428         * modules/unictype/category-S: Likewise.
18429         * modules/unictype/category-Sc: Likewise.
18430         * modules/unictype/category-Sk: Likewise.
18431         * modules/unictype/category-Sm: Likewise.
18432         * modules/unictype/category-So: Likewise.
18433         * modules/unictype/category-Z: Likewise.
18434         * modules/unictype/category-Zl: Likewise.
18435         * modules/unictype/category-Zp: Likewise.
18436         * modules/unictype/category-Zs: Likewise.
18437         * modules/unictype/category-and: Likewise.
18438         * modules/unictype/category-and-not: Likewise.
18439         * modules/unictype/category-byname: Likewise.
18440         * modules/unictype/category-name: Likewise.
18441         * modules/unictype/category-none: Likewise.
18442         * modules/unictype/category-of: Likewise.
18443         * modules/unictype/category-or: Likewise.
18444         * modules/unictype/category-test: Likewise.
18445         * modules/unictype/combining-class: Likewise.
18446         * modules/unictype/ctype-alnum: Likewise.
18447         * modules/unictype/ctype-alpha: Likewise.
18448         * modules/unictype/ctype-blank: Likewise.
18449         * modules/unictype/ctype-cntrl: Likewise.
18450         * modules/unictype/ctype-digit: Likewise.
18451         * modules/unictype/ctype-graph: Likewise.
18452         * modules/unictype/ctype-lower: Likewise.
18453         * modules/unictype/ctype-print: Likewise.
18454         * modules/unictype/ctype-punct: Likewise.
18455         * modules/unictype/ctype-space: Likewise.
18456         * modules/unictype/ctype-upper: Likewise.
18457         * modules/unictype/ctype-xdigit: Likewise.
18458         * modules/unictype/decimal-digit: Likewise.
18459         * modules/unictype/digit: Likewise.
18460         * modules/unictype/mirror: Likewise.
18461         * modules/unictype/numeric: Likewise.
18462         * modules/unictype/property-alphabetic: Likewise.
18463         * modules/unictype/property-ascii-hex-digit: Likewise.
18464         * modules/unictype/property-bidi-arabic-digit: Likewise.
18465         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
18466         * modules/unictype/property-bidi-block-separator: Likewise.
18467         * modules/unictype/property-bidi-boundary-neutral: Likewise.
18468         * modules/unictype/property-bidi-common-separator: Likewise.
18469         * modules/unictype/property-bidi-control: Likewise.
18470         * modules/unictype/property-bidi-embedding-or-override: Likewise.
18471         * modules/unictype/property-bidi-eur-num-separator: Likewise.
18472         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
18473         * modules/unictype/property-bidi-european-digit: Likewise.
18474         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
18475         * modules/unictype/property-bidi-left-to-right: Likewise.
18476         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
18477         * modules/unictype/property-bidi-other-neutral: Likewise.
18478         * modules/unictype/property-bidi-pdf: Likewise.
18479         * modules/unictype/property-bidi-segment-separator: Likewise.
18480         * modules/unictype/property-bidi-whitespace: Likewise.
18481         * modules/unictype/property-byname: Likewise.
18482         * modules/unictype/property-combining: Likewise.
18483         * modules/unictype/property-composite: Likewise.
18484         * modules/unictype/property-currency-symbol: Likewise.
18485         * modules/unictype/property-dash: Likewise.
18486         * modules/unictype/property-decimal-digit: Likewise.
18487         * modules/unictype/property-default-ignorable-code-point: Likewise.
18488         * modules/unictype/property-deprecated: Likewise.
18489         * modules/unictype/property-diacritic: Likewise.
18490         * modules/unictype/property-extender: Likewise.
18491         * modules/unictype/property-format-control: Likewise.
18492         * modules/unictype/property-grapheme-base: Likewise.
18493         * modules/unictype/property-grapheme-extend: Likewise.
18494         * modules/unictype/property-grapheme-link: Likewise.
18495         * modules/unictype/property-hex-digit: Likewise.
18496         * modules/unictype/property-hyphen: Likewise.
18497         * modules/unictype/property-id-continue: Likewise.
18498         * modules/unictype/property-id-start: Likewise.
18499         * modules/unictype/property-ideographic: Likewise.
18500         * modules/unictype/property-ids-binary-operator: Likewise.
18501         * modules/unictype/property-ids-trinary-operator: Likewise.
18502         * modules/unictype/property-ignorable-control: Likewise.
18503         * modules/unictype/property-iso-control: Likewise.
18504         * modules/unictype/property-join-control: Likewise.
18505         * modules/unictype/property-left-of-pair: Likewise.
18506         * modules/unictype/property-line-separator: Likewise.
18507         * modules/unictype/property-logical-order-exception: Likewise.
18508         * modules/unictype/property-lowercase: Likewise.
18509         * modules/unictype/property-math: Likewise.
18510         * modules/unictype/property-non-break: Likewise.
18511         * modules/unictype/property-not-a-character: Likewise.
18512         * modules/unictype/property-numeric: Likewise.
18513         * modules/unictype/property-other-alphabetic: Likewise.
18514         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
18515         * modules/unictype/property-other-grapheme-extend: Likewise.
18516         * modules/unictype/property-other-id-continue: Likewise.
18517         * modules/unictype/property-other-id-start: Likewise.
18518         * modules/unictype/property-other-lowercase: Likewise.
18519         * modules/unictype/property-other-math: Likewise.
18520         * modules/unictype/property-other-uppercase: Likewise.
18521         * modules/unictype/property-paired-punctuation: Likewise.
18522         * modules/unictype/property-paragraph-separator: Likewise.
18523         * modules/unictype/property-pattern-syntax: Likewise.
18524         * modules/unictype/property-pattern-white-space: Likewise.
18525         * modules/unictype/property-private-use: Likewise.
18526         * modules/unictype/property-punctuation: Likewise.
18527         * modules/unictype/property-quotation-mark: Likewise.
18528         * modules/unictype/property-radical: Likewise.
18529         * modules/unictype/property-sentence-terminal: Likewise.
18530         * modules/unictype/property-soft-dotted: Likewise.
18531         * modules/unictype/property-space: Likewise.
18532         * modules/unictype/property-terminal-punctuation: Likewise.
18533         * modules/unictype/property-test: Likewise.
18534         * modules/unictype/property-titlecase: Likewise.
18535         * modules/unictype/property-unassigned-code-value: Likewise.
18536         * modules/unictype/property-unified-ideograph: Likewise.
18537         * modules/unictype/property-uppercase: Likewise.
18538         * modules/unictype/property-variation-selector: Likewise.
18539         * modules/unictype/property-white-space: Likewise.
18540         * modules/unictype/property-xid-continue: Likewise.
18541         * modules/unictype/property-xid-start: Likewise.
18542         * modules/unictype/property-zero-width: Likewise.
18543         * modules/unictype/scripts: Likewise.
18544         * modules/unictype/syntax-c-ident: Likewise.
18545         * modules/unictype/syntax-c-whitespace: Likewise.
18546         * modules/unictype/syntax-java-ident: Likewise.
18547         * modules/unictype/syntax-java-whitespace: Likewise.
18548         * modules/unilbrk/u8-possible-linebreaks: Likewise.
18549         * modules/unilbrk/u8-width-linebreaks: Likewise.
18550         * modules/unilbrk/u16-possible-linebreaks: Likewise.
18551         * modules/unilbrk/u16-width-linebreaks: Likewise.
18552         * modules/unilbrk/u32-possible-linebreaks: Likewise.
18553         * modules/unilbrk/u32-width-linebreaks: Likewise.
18554         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
18555         * modules/unilbrk/ulc-width-linebreaks: Likewise.
18556         * modules/uniname/uniname: Likewise.
18557         * modules/uninorm/canonical-decomposition: Likewise.
18558         * modules/uninorm/composition: Likewise.
18559         * modules/uninorm/decomposing-form: Likewise.
18560         * modules/uninorm/decomposition: Likewise.
18561         * modules/uninorm/filter: Likewise.
18562         * modules/uninorm/nfc: Likewise.
18563         * modules/uninorm/nfd: Likewise.
18564         * modules/uninorm/nfkc: Likewise.
18565         * modules/uninorm/nfkd: Likewise.
18566         * modules/uninorm/u8-normalize: Likewise.
18567         * modules/uninorm/u8-normcmp: Likewise.
18568         * modules/uninorm/u8-normcoll: Likewise.
18569         * modules/uninorm/u8-normxfrm: Likewise.
18570         * modules/uninorm/u16-normalize: Likewise.
18571         * modules/uninorm/u16-normcmp: Likewise.
18572         * modules/uninorm/u16-normcoll: Likewise.
18573         * modules/uninorm/u16-normxfrm: Likewise.
18574         * modules/uninorm/u32-normalize: Likewise.
18575         * modules/uninorm/u32-normcmp: Likewise.
18576         * modules/uninorm/u32-normcoll: Likewise.
18577         * modules/uninorm/u32-normxfrm: Likewise.
18578         * modules/unistdio/u8-asnprintf: Likewise.
18579         * modules/unistdio/u8-asprintf: Likewise.
18580         * modules/unistdio/u8-snprintf: Likewise.
18581         * modules/unistdio/u8-sprintf: Likewise.
18582         * modules/unistdio/u8-u8-asnprintf: Likewise.
18583         * modules/unistdio/u8-u8-asprintf: Likewise.
18584         * modules/unistdio/u8-u8-snprintf: Likewise.
18585         * modules/unistdio/u8-u8-sprintf: Likewise.
18586         * modules/unistdio/u8-u8-vasnprintf: Likewise.
18587         * modules/unistdio/u8-u8-vasprintf: Likewise.
18588         * modules/unistdio/u8-u8-vsnprintf: Likewise.
18589         * modules/unistdio/u8-u8-vsprintf: Likewise.
18590         * modules/unistdio/u8-vasnprintf: Likewise.
18591         * modules/unistdio/u8-vasprintf: Likewise.
18592         * modules/unistdio/u8-vsnprintf: Likewise.
18593         * modules/unistdio/u8-vsprintf: Likewise.
18594         * modules/unistdio/u16-asnprintf: Likewise.
18595         * modules/unistdio/u16-asprintf: Likewise.
18596         * modules/unistdio/u16-snprintf: Likewise.
18597         * modules/unistdio/u16-sprintf: Likewise.
18598         * modules/unistdio/u16-u16-asnprintf: Likewise.
18599         * modules/unistdio/u16-u16-asprintf: Likewise.
18600         * modules/unistdio/u16-u16-snprintf: Likewise.
18601         * modules/unistdio/u16-u16-sprintf: Likewise.
18602         * modules/unistdio/u16-u16-vasnprintf: Likewise.
18603         * modules/unistdio/u16-u16-vasprintf: Likewise.
18604         * modules/unistdio/u16-u16-vsnprintf: Likewise.
18605         * modules/unistdio/u16-u16-vsprintf: Likewise.
18606         * modules/unistdio/u16-vasnprintf: Likewise.
18607         * modules/unistdio/u16-vasprintf: Likewise.
18608         * modules/unistdio/u16-vsnprintf: Likewise.
18609         * modules/unistdio/u16-vsprintf: Likewise.
18610         * modules/unistdio/u32-asnprintf: Likewise.
18611         * modules/unistdio/u32-asprintf: Likewise.
18612         * modules/unistdio/u32-snprintf: Likewise.
18613         * modules/unistdio/u32-sprintf: Likewise.
18614         * modules/unistdio/u32-u32-asnprintf: Likewise.
18615         * modules/unistdio/u32-u32-asprintf: Likewise.
18616         * modules/unistdio/u32-u32-snprintf: Likewise.
18617         * modules/unistdio/u32-u32-sprintf: Likewise.
18618         * modules/unistdio/u32-u32-vasnprintf: Likewise.
18619         * modules/unistdio/u32-u32-vasprintf: Likewise.
18620         * modules/unistdio/u32-u32-vsnprintf: Likewise.
18621         * modules/unistdio/u32-u32-vsprintf: Likewise.
18622         * modules/unistdio/u32-vasnprintf: Likewise.
18623         * modules/unistdio/u32-vasprintf: Likewise.
18624         * modules/unistdio/u32-vsnprintf: Likewise.
18625         * modules/unistdio/u32-vsprintf: Likewise.
18626         * modules/unistdio/ulc-asnprintf: Likewise.
18627         * modules/unistdio/ulc-asprintf: Likewise.
18628         * modules/unistdio/ulc-fprintf: Likewise.
18629         * modules/unistdio/ulc-snprintf: Likewise.
18630         * modules/unistdio/ulc-sprintf: Likewise.
18631         * modules/unistdio/ulc-vasnprintf: Likewise.
18632         * modules/unistdio/ulc-vasprintf: Likewise.
18633         * modules/unistdio/ulc-vfprintf: Likewise.
18634         * modules/unistdio/ulc-vsnprintf: Likewise.
18635         * modules/unistdio/ulc-vsprintf: Likewise.
18636         * modules/unistr/u8-check: Likewise.
18637         * modules/unistr/u8-chr: Likewise.
18638         * modules/unistr/u8-cmp: Likewise.
18639         * modules/unistr/u8-cmp2: Likewise.
18640         * modules/unistr/u8-cpy: Likewise.
18641         * modules/unistr/u8-cpy-alloc: Likewise.
18642         * modules/unistr/u8-endswith: Likewise.
18643         * modules/unistr/u8-mblen: Likewise.
18644         * modules/unistr/u8-mbsnlen: Likewise.
18645         * modules/unistr/u8-mbtouc: Likewise.
18646         * modules/unistr/u8-mbtouc-unsafe: Likewise.
18647         * modules/unistr/u8-mbtoucr: Likewise.
18648         * modules/unistr/u8-move: Likewise.
18649         * modules/unistr/u8-next: Likewise.
18650         * modules/unistr/u8-prev: Likewise.
18651         * modules/unistr/u8-set: Likewise.
18652         * modules/unistr/u8-startswith: Likewise.
18653         * modules/unistr/u8-stpcpy: Likewise.
18654         * modules/unistr/u8-stpncpy: Likewise.
18655         * modules/unistr/u8-strcat: Likewise.
18656         * modules/unistr/u8-strchr: Likewise.
18657         * modules/unistr/u8-strcmp: Likewise.
18658         * modules/unistr/u8-strcoll: Likewise.
18659         * modules/unistr/u8-strcpy: Likewise.
18660         * modules/unistr/u8-strcspn: Likewise.
18661         * modules/unistr/u8-strdup: Likewise.
18662         * modules/unistr/u8-strlen: Likewise.
18663         * modules/unistr/u8-strmblen: Likewise.
18664         * modules/unistr/u8-strmbtouc: Likewise.
18665         * modules/unistr/u8-strncat: Likewise.
18666         * modules/unistr/u8-strncmp: Likewise.
18667         * modules/unistr/u8-strncpy: Likewise.
18668         * modules/unistr/u8-strnlen: Likewise.
18669         * modules/unistr/u8-strpbrk: Likewise.
18670         * modules/unistr/u8-strrchr: Likewise.
18671         * modules/unistr/u8-strspn: Likewise.
18672         * modules/unistr/u8-strstr: Likewise.
18673         * modules/unistr/u8-strtok: Likewise.
18674         * modules/unistr/u8-to-u16: Likewise.
18675         * modules/unistr/u8-to-u32: Likewise.
18676         * modules/unistr/u8-uctomb: Likewise.
18677         * modules/unistr/u16-check: Likewise.
18678         * modules/unistr/u16-chr: Likewise.
18679         * modules/unistr/u16-cmp: Likewise.
18680         * modules/unistr/u16-cmp2: Likewise.
18681         * modules/unistr/u16-cpy: Likewise.
18682         * modules/unistr/u16-cpy-alloc: Likewise.
18683         * modules/unistr/u16-endswith: Likewise.
18684         * modules/unistr/u16-mblen: Likewise.
18685         * modules/unistr/u16-mbsnlen: Likewise.
18686         * modules/unistr/u16-mbtouc: Likewise.
18687         * modules/unistr/u16-mbtouc-unsafe: Likewise.
18688         * modules/unistr/u16-mbtoucr: Likewise.
18689         * modules/unistr/u16-move: Likewise.
18690         * modules/unistr/u16-next: Likewise.
18691         * modules/unistr/u16-prev: Likewise.
18692         * modules/unistr/u16-set: Likewise.
18693         * modules/unistr/u16-startswith: Likewise.
18694         * modules/unistr/u16-stpcpy: Likewise.
18695         * modules/unistr/u16-stpncpy: Likewise.
18696         * modules/unistr/u16-strcat: Likewise.
18697         * modules/unistr/u16-strchr: Likewise.
18698         * modules/unistr/u16-strcmp: Likewise.
18699         * modules/unistr/u16-strcoll: Likewise.
18700         * modules/unistr/u16-strcpy: Likewise.
18701         * modules/unistr/u16-strcspn: Likewise.
18702         * modules/unistr/u16-strdup: Likewise.
18703         * modules/unistr/u16-strlen: Likewise.
18704         * modules/unistr/u16-strmblen: Likewise.
18705         * modules/unistr/u16-strmbtouc: Likewise.
18706         * modules/unistr/u16-strncat: Likewise.
18707         * modules/unistr/u16-strncmp: Likewise.
18708         * modules/unistr/u16-strncpy: Likewise.
18709         * modules/unistr/u16-strnlen: Likewise.
18710         * modules/unistr/u16-strpbrk: Likewise.
18711         * modules/unistr/u16-strrchr: Likewise.
18712         * modules/unistr/u16-strspn: Likewise.
18713         * modules/unistr/u16-strstr: Likewise.
18714         * modules/unistr/u16-strtok: Likewise.
18715         * modules/unistr/u16-to-u32: Likewise.
18716         * modules/unistr/u16-to-u8: Likewise.
18717         * modules/unistr/u16-uctomb: Likewise.
18718         * modules/unistr/u32-check: Likewise.
18719         * modules/unistr/u32-chr: Likewise.
18720         * modules/unistr/u32-cmp: Likewise.
18721         * modules/unistr/u32-cmp2: Likewise.
18722         * modules/unistr/u32-cpy: Likewise.
18723         * modules/unistr/u32-cpy-alloc: Likewise.
18724         * modules/unistr/u32-endswith: Likewise.
18725         * modules/unistr/u32-mblen: Likewise.
18726         * modules/unistr/u32-mbsnlen: Likewise.
18727         * modules/unistr/u32-mbtouc: Likewise.
18728         * modules/unistr/u32-mbtouc-unsafe: Likewise.
18729         * modules/unistr/u32-mbtoucr: Likewise.
18730         * modules/unistr/u32-move: Likewise.
18731         * modules/unistr/u32-next: Likewise.
18732         * modules/unistr/u32-prev: Likewise.
18733         * modules/unistr/u32-set: Likewise.
18734         * modules/unistr/u32-startswith: Likewise.
18735         * modules/unistr/u32-stpcpy: Likewise.
18736         * modules/unistr/u32-stpncpy: Likewise.
18737         * modules/unistr/u32-strcat: Likewise.
18738         * modules/unistr/u32-strchr: Likewise.
18739         * modules/unistr/u32-strcmp: Likewise.
18740         * modules/unistr/u32-strcoll: Likewise.
18741         * modules/unistr/u32-strcpy: Likewise.
18742         * modules/unistr/u32-strcspn: Likewise.
18743         * modules/unistr/u32-strdup: Likewise.
18744         * modules/unistr/u32-strlen: Likewise.
18745         * modules/unistr/u32-strmblen: Likewise.
18746         * modules/unistr/u32-strmbtouc: Likewise.
18747         * modules/unistr/u32-strncat: Likewise.
18748         * modules/unistr/u32-strncmp: Likewise.
18749         * modules/unistr/u32-strncpy: Likewise.
18750         * modules/unistr/u32-strnlen: Likewise.
18751         * modules/unistr/u32-strpbrk: Likewise.
18752         * modules/unistr/u32-strrchr: Likewise.
18753         * modules/unistr/u32-strspn: Likewise.
18754         * modules/unistr/u32-strstr: Likewise.
18755         * modules/unistr/u32-strtok: Likewise.
18756         * modules/unistr/u32-to-u16: Likewise.
18757         * modules/unistr/u32-to-u8: Likewise.
18758         * modules/unistr/u32-uctomb: Likewise.
18759         * modules/uniwbrk/u8-wordbreaks: Likewise.
18760         * modules/uniwbrk/u16-wordbreaks: Likewise.
18761         * modules/uniwbrk/u32-wordbreaks: Likewise.
18762         * modules/uniwbrk/ulc-wordbreaks: Likewise.
18763         * modules/uniwbrk/wordbreak-property: Likewise.
18764         * modules/uniwidth/u8-strwidth: Likewise.
18765         * modules/uniwidth/u8-width: Likewise.
18766         * modules/uniwidth/u16-strwidth: Likewise.
18767         * modules/uniwidth/u16-width: Likewise.
18768         * modules/uniwidth/u32-strwidth: Likewise.
18769         * modules/uniwidth/u32-width: Likewise.
18770         * modules/uniwidth/width: Likewise.
18771         * modules/unicase/cased-tests (Makefile.am): Link all test programs
18772         with $(LIBUNISTRING).
18773         * modules/unicase/ignorable-tests: Likewise.
18774         * modules/unicase/locale-language-tests: Likewise.
18775         * modules/unicase/tolower-tests: Likewise.
18776         * modules/unicase/totitle-tests: Likewise.
18777         * modules/unicase/toupper-tests: Likewise.
18778         * modules/unicase/u8-casecmp-tests: Likewise.
18779         * modules/unicase/u8-casecoll-tests: Likewise.
18780         * modules/unicase/u8-casefold-tests: Likewise.
18781         * modules/unicase/u8-is-cased-tests: Likewise.
18782         * modules/unicase/u8-is-casefolded-tests: Likewise.
18783         * modules/unicase/u8-is-lowercase-tests: Likewise.
18784         * modules/unicase/u8-is-titlecase-tests: Likewise.
18785         * modules/unicase/u8-is-uppercase-tests: Likewise.
18786         * modules/unicase/u8-tolower-tests: Likewise.
18787         * modules/unicase/u8-totitle-tests: Likewise.
18788         * modules/unicase/u8-toupper-tests: Likewise.
18789         * modules/unicase/u16-casecmp-tests: Likewise.
18790         * modules/unicase/u16-casecoll-tests: Likewise.
18791         * modules/unicase/u16-casefold-tests: Likewise.
18792         * modules/unicase/u16-is-cased-tests: Likewise.
18793         * modules/unicase/u16-is-casefolded-tests: Likewise.
18794         * modules/unicase/u16-is-lowercase-tests: Likewise.
18795         * modules/unicase/u16-is-titlecase-tests: Likewise.
18796         * modules/unicase/u16-is-uppercase-tests: Likewise.
18797         * modules/unicase/u16-tolower-tests: Likewise.
18798         * modules/unicase/u16-totitle-tests: Likewise.
18799         * modules/unicase/u16-toupper-tests: Likewise.
18800         * modules/unicase/u32-casecmp-tests: Likewise.
18801         * modules/unicase/u32-casecoll-tests: Likewise.
18802         * modules/unicase/u32-casefold-tests: Likewise.
18803         * modules/unicase/u32-is-cased-tests: Likewise.
18804         * modules/unicase/u32-is-casefolded-tests: Likewise.
18805         * modules/unicase/u32-is-lowercase-tests: Likewise.
18806         * modules/unicase/u32-is-titlecase-tests: Likewise.
18807         * modules/unicase/u32-is-uppercase-tests: Likewise.
18808         * modules/unicase/u32-tolower-tests: Likewise.
18809         * modules/unicase/u32-totitle-tests: Likewise.
18810         * modules/unicase/u32-toupper-tests: Likewise.
18811         * modules/unicase/ulc-casecmp-tests: Likewise.
18812         * modules/unicase/ulc-casecoll-tests: Likewise.
18813         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
18814         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
18815         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
18816         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
18817         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
18818         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
18819         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
18820         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
18821         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
18822         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
18823         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
18824         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
18825         * modules/unictype/bidicategory-byname-tests: Likewise.
18826         * modules/unictype/bidicategory-name-tests: Likewise.
18827         * modules/unictype/bidicategory-of-tests: Likewise.
18828         * modules/unictype/bidicategory-test-tests: Likewise.
18829         * modules/unictype/block-list-tests: Likewise.
18830         * modules/unictype/block-of-tests: Likewise.
18831         * modules/unictype/block-test-tests: Likewise.
18832         * modules/unictype/category-C-tests: Likewise.
18833         * modules/unictype/category-Cc-tests: Likewise.
18834         * modules/unictype/category-Cf-tests: Likewise.
18835         * modules/unictype/category-Cn-tests: Likewise.
18836         * modules/unictype/category-Co-tests: Likewise.
18837         * modules/unictype/category-Cs-tests: Likewise.
18838         * modules/unictype/category-L-tests: Likewise.
18839         * modules/unictype/category-Ll-tests: Likewise.
18840         * modules/unictype/category-Lm-tests: Likewise.
18841         * modules/unictype/category-Lo-tests: Likewise.
18842         * modules/unictype/category-Lt-tests: Likewise.
18843         * modules/unictype/category-Lu-tests: Likewise.
18844         * modules/unictype/category-M-tests: Likewise.
18845         * modules/unictype/category-Mc-tests: Likewise.
18846         * modules/unictype/category-Me-tests: Likewise.
18847         * modules/unictype/category-Mn-tests: Likewise.
18848         * modules/unictype/category-N-tests: Likewise.
18849         * modules/unictype/category-Nd-tests: Likewise.
18850         * modules/unictype/category-Nl-tests: Likewise.
18851         * modules/unictype/category-No-tests: Likewise.
18852         * modules/unictype/category-P-tests: Likewise.
18853         * modules/unictype/category-Pc-tests: Likewise.
18854         * modules/unictype/category-Pd-tests: Likewise.
18855         * modules/unictype/category-Pe-tests: Likewise.
18856         * modules/unictype/category-Pf-tests: Likewise.
18857         * modules/unictype/category-Pi-tests: Likewise.
18858         * modules/unictype/category-Po-tests: Likewise.
18859         * modules/unictype/category-Ps-tests: Likewise.
18860         * modules/unictype/category-S-tests: Likewise.
18861         * modules/unictype/category-Sc-tests: Likewise.
18862         * modules/unictype/category-Sk-tests: Likewise.
18863         * modules/unictype/category-Sm-tests: Likewise.
18864         * modules/unictype/category-So-tests: Likewise.
18865         * modules/unictype/category-Z-tests: Likewise.
18866         * modules/unictype/category-Zl-tests: Likewise.
18867         * modules/unictype/category-Zp-tests: Likewise.
18868         * modules/unictype/category-Zs-tests: Likewise.
18869         * modules/unictype/category-and-not-tests: Likewise.
18870         * modules/unictype/category-and-tests: Likewise.
18871         * modules/unictype/category-byname-tests: Likewise.
18872         * modules/unictype/category-name-tests: Likewise.
18873         * modules/unictype/category-none-tests: Likewise.
18874         * modules/unictype/category-of-tests: Likewise.
18875         * modules/unictype/category-or-tests: Likewise.
18876         * modules/unictype/category-test-withtable-tests: Likewise.
18877         * modules/unictype/combining-class-tests: Likewise.
18878         * modules/unictype/ctype-alnum-tests: Likewise.
18879         * modules/unictype/ctype-alpha-tests: Likewise.
18880         * modules/unictype/ctype-blank-tests: Likewise.
18881         * modules/unictype/ctype-cntrl-tests: Likewise.
18882         * modules/unictype/ctype-digit-tests: Likewise.
18883         * modules/unictype/ctype-graph-tests: Likewise.
18884         * modules/unictype/ctype-lower-tests: Likewise.
18885         * modules/unictype/ctype-print-tests: Likewise.
18886         * modules/unictype/ctype-punct-tests: Likewise.
18887         * modules/unictype/ctype-space-tests: Likewise.
18888         * modules/unictype/ctype-upper-tests: Likewise.
18889         * modules/unictype/ctype-xdigit-tests: Likewise.
18890         * modules/unictype/decimal-digit-tests: Likewise.
18891         * modules/unictype/digit-tests: Likewise.
18892         * modules/unictype/mirror-tests: Likewise.
18893         * modules/unictype/numeric-tests: Likewise.
18894         * modules/unictype/property-alphabetic-tests: Likewise.
18895         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
18896         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
18897         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
18898         * modules/unictype/property-bidi-block-separator-tests: Likewise.
18899         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
18900         * modules/unictype/property-bidi-common-separator-tests: Likewise.
18901         * modules/unictype/property-bidi-control-tests: Likewise.
18902         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
18903         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
18904         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
18905         * modules/unictype/property-bidi-european-digit-tests: Likewise.
18906         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
18907         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
18908         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
18909         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
18910         * modules/unictype/property-bidi-pdf-tests: Likewise.
18911         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
18912         * modules/unictype/property-bidi-whitespace-tests: Likewise.
18913         * modules/unictype/property-byname-tests: Likewise.
18914         * modules/unictype/property-combining-tests: Likewise.
18915         * modules/unictype/property-composite-tests: Likewise.
18916         * modules/unictype/property-currency-symbol-tests: Likewise.
18917         * modules/unictype/property-dash-tests: Likewise.
18918         * modules/unictype/property-decimal-digit-tests: Likewise.
18919         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
18920         * modules/unictype/property-deprecated-tests: Likewise.
18921         * modules/unictype/property-diacritic-tests: Likewise.
18922         * modules/unictype/property-extender-tests: Likewise.
18923         * modules/unictype/property-format-control-tests: Likewise.
18924         * modules/unictype/property-grapheme-base-tests: Likewise.
18925         * modules/unictype/property-grapheme-extend-tests: Likewise.
18926         * modules/unictype/property-grapheme-link-tests: Likewise.
18927         * modules/unictype/property-hex-digit-tests: Likewise.
18928         * modules/unictype/property-hyphen-tests: Likewise.
18929         * modules/unictype/property-id-continue-tests: Likewise.
18930         * modules/unictype/property-id-start-tests: Likewise.
18931         * modules/unictype/property-ideographic-tests: Likewise.
18932         * modules/unictype/property-ids-binary-operator-tests: Likewise.
18933         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
18934         * modules/unictype/property-ignorable-control-tests: Likewise.
18935         * modules/unictype/property-iso-control-tests: Likewise.
18936         * modules/unictype/property-join-control-tests: Likewise.
18937         * modules/unictype/property-left-of-pair-tests: Likewise.
18938         * modules/unictype/property-line-separator-tests: Likewise.
18939         * modules/unictype/property-logical-order-exception-tests: Likewise.
18940         * modules/unictype/property-lowercase-tests: Likewise.
18941         * modules/unictype/property-math-tests: Likewise.
18942         * modules/unictype/property-non-break-tests: Likewise.
18943         * modules/unictype/property-not-a-character-tests: Likewise.
18944         * modules/unictype/property-numeric-tests: Likewise.
18945         * modules/unictype/property-other-alphabetic-tests: Likewise.
18946         * modules/unictype/property-other-default-ignorable-code-point-tests:
18947         Likewise.
18948         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
18949         * modules/unictype/property-other-id-continue-tests: Likewise.
18950         * modules/unictype/property-other-id-start-tests: Likewise.
18951         * modules/unictype/property-other-lowercase-tests: Likewise.
18952         * modules/unictype/property-other-math-tests: Likewise.
18953         * modules/unictype/property-other-uppercase-tests: Likewise.
18954         * modules/unictype/property-paired-punctuation-tests: Likewise.
18955         * modules/unictype/property-paragraph-separator-tests: Likewise.
18956         * modules/unictype/property-pattern-syntax-tests: Likewise.
18957         * modules/unictype/property-pattern-white-space-tests: Likewise.
18958         * modules/unictype/property-private-use-tests: Likewise.
18959         * modules/unictype/property-punctuation-tests: Likewise.
18960         * modules/unictype/property-quotation-mark-tests: Likewise.
18961         * modules/unictype/property-radical-tests: Likewise.
18962         * modules/unictype/property-sentence-terminal-tests: Likewise.
18963         * modules/unictype/property-soft-dotted-tests: Likewise.
18964         * modules/unictype/property-space-tests: Likewise.
18965         * modules/unictype/property-terminal-punctuation-tests: Likewise.
18966         * modules/unictype/property-test-tests: Likewise.
18967         * modules/unictype/property-titlecase-tests: Likewise.
18968         * modules/unictype/property-unassigned-code-value-tests: Likewise.
18969         * modules/unictype/property-unified-ideograph-tests: Likewise.
18970         * modules/unictype/property-uppercase-tests: Likewise.
18971         * modules/unictype/property-variation-selector-tests: Likewise.
18972         * modules/unictype/property-white-space-tests: Likewise.
18973         * modules/unictype/property-xid-continue-tests: Likewise.
18974         * modules/unictype/property-xid-start-tests: Likewise.
18975         * modules/unictype/property-zero-width-tests: Likewise.
18976         * modules/unictype/scripts-tests: Likewise.
18977         * modules/unictype/syntax-c-ident-tests: Likewise.
18978         * modules/unictype/syntax-c-whitespace-tests: Likewise.
18979         * modules/unictype/syntax-java-ident-tests: Likewise.
18980         * modules/unictype/syntax-java-whitespace-tests: Likewise.
18981         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
18982         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
18983         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
18984         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
18985         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
18986         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
18987         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
18988         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
18989         * modules/uniname/uniname-tests: Likewise.
18990         * modules/uninorm/canonical-decomposition-tests: Likewise.
18991         * modules/uninorm/compat-decomposition-tests: Likewise.
18992         * modules/uninorm/composition-tests: Likewise.
18993         * modules/uninorm/decomposing-form-tests: Likewise.
18994         * modules/uninorm/decomposition-tests: Likewise.
18995         * modules/uninorm/filter-tests: Likewise.
18996         * modules/uninorm/nfc-tests: Likewise.
18997         * modules/uninorm/nfd-tests: Likewise.
18998         * modules/uninorm/nfkc-tests: Likewise.
18999         * modules/uninorm/nfkd-tests: Likewise.
19000         * modules/uninorm/u8-normcmp-tests: Likewise.
19001         * modules/uninorm/u8-normcoll-tests: Likewise.
19002         * modules/uninorm/u16-normcmp-tests: Likewise.
19003         * modules/uninorm/u16-normcoll-tests: Likewise.
19004         * modules/uninorm/u32-normcmp-tests: Likewise.
19005         * modules/uninorm/u32-normcoll-tests: Likewise.
19006         * modules/unistdio/u8-asnprintf-tests: Likewise.
19007         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19008         * modules/unistdio/u8-vasprintf-tests: Likewise.
19009         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19010         * modules/unistdio/u8-vsprintf-tests: Likewise.
19011         * modules/unistdio/u16-asnprintf-tests: Likewise.
19012         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19013         * modules/unistdio/u16-vasprintf-tests: Likewise.
19014         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19015         * modules/unistdio/u16-vsprintf-tests: Likewise.
19016         * modules/unistdio/u32-asnprintf-tests: Likewise.
19017         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19018         * modules/unistdio/u32-vasprintf-tests: Likewise.
19019         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19020         * modules/unistdio/u32-vsprintf-tests: Likewise.
19021         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19022         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19023         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19024         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19025         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19026         * modules/unistr/u8-check-tests: Likewise.
19027         * modules/unistr/u8-chr-tests: Likewise.
19028         * modules/unistr/u8-cmp-tests: Likewise.
19029         * modules/unistr/u8-cmp2-tests: Likewise.
19030         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19031         * modules/unistr/u8-cpy-tests: Likewise.
19032         * modules/unistr/u8-mblen-tests: Likewise.
19033         * modules/unistr/u8-mbsnlen-tests: Likewise.
19034         * modules/unistr/u8-mbtouc-tests: Likewise.
19035         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19036         * modules/unistr/u8-mbtoucr-tests: Likewise.
19037         * modules/unistr/u8-move-tests: Likewise.
19038         * modules/unistr/u8-next-tests: Likewise.
19039         * modules/unistr/u8-prev-tests: Likewise.
19040         * modules/unistr/u8-set-tests: Likewise.
19041         * modules/unistr/u8-stpcpy-tests: Likewise.
19042         * modules/unistr/u8-stpncpy-tests: Likewise.
19043         * modules/unistr/u8-strcat-tests: Likewise.
19044         * modules/unistr/u8-strcmp-tests: Likewise.
19045         * modules/unistr/u8-strcoll-tests: Likewise.
19046         * modules/unistr/u8-strcpy-tests: Likewise.
19047         * modules/unistr/u8-strdup-tests: Likewise.
19048         * modules/unistr/u8-strlen-tests: Likewise.
19049         * modules/unistr/u8-strmblen-tests: Likewise.
19050         * modules/unistr/u8-strmbtouc-tests: Likewise.
19051         * modules/unistr/u8-strncat-tests: Likewise.
19052         * modules/unistr/u8-strncmp-tests: Likewise.
19053         * modules/unistr/u8-strncpy-tests: Likewise.
19054         * modules/unistr/u8-strnlen-tests: Likewise.
19055         * modules/unistr/u8-to-u16-tests: Likewise.
19056         * modules/unistr/u8-to-u32-tests: Likewise.
19057         * modules/unistr/u8-uctomb-tests: Likewise.
19058         * modules/unistr/u16-check-tests: Likewise.
19059         * modules/unistr/u16-chr-tests: Likewise.
19060         * modules/unistr/u16-cmp-tests: Likewise.
19061         * modules/unistr/u16-cmp2-tests: Likewise.
19062         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19063         * modules/unistr/u16-cpy-tests: Likewise.
19064         * modules/unistr/u16-mblen-tests: Likewise.
19065         * modules/unistr/u16-mbsnlen-tests: Likewise.
19066         * modules/unistr/u16-mbtouc-tests: Likewise.
19067         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19068         * modules/unistr/u16-mbtoucr-tests: Likewise.
19069         * modules/unistr/u16-move-tests: Likewise.
19070         * modules/unistr/u16-next-tests: Likewise.
19071         * modules/unistr/u16-prev-tests: Likewise.
19072         * modules/unistr/u16-set-tests: Likewise.
19073         * modules/unistr/u16-stpcpy-tests: Likewise.
19074         * modules/unistr/u16-stpncpy-tests: Likewise.
19075         * modules/unistr/u16-strcat-tests: Likewise.
19076         * modules/unistr/u16-strcmp-tests: Likewise.
19077         * modules/unistr/u16-strcoll-tests: Likewise.
19078         * modules/unistr/u16-strcpy-tests: Likewise.
19079         * modules/unistr/u16-strdup-tests: Likewise.
19080         * modules/unistr/u16-strlen-tests: Likewise.
19081         * modules/unistr/u16-strmblen-tests: Likewise.
19082         * modules/unistr/u16-strmbtouc-tests: Likewise.
19083         * modules/unistr/u16-strncat-tests: Likewise.
19084         * modules/unistr/u16-strncmp-tests: Likewise.
19085         * modules/unistr/u16-strncpy-tests: Likewise.
19086         * modules/unistr/u16-strnlen-tests: Likewise.
19087         * modules/unistr/u16-to-u32-tests: Likewise.
19088         * modules/unistr/u16-to-u8-tests: Likewise.
19089         * modules/unistr/u16-uctomb-tests: Likewise.
19090         * modules/unistr/u32-check-tests: Likewise.
19091         * modules/unistr/u32-chr-tests: Likewise.
19092         * modules/unistr/u32-cmp-tests: Likewise.
19093         * modules/unistr/u32-cmp2-tests: Likewise.
19094         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19095         * modules/unistr/u32-cpy-tests: Likewise.
19096         * modules/unistr/u32-mblen-tests: Likewise.
19097         * modules/unistr/u32-mbsnlen-tests: Likewise.
19098         * modules/unistr/u32-mbtouc-tests: Likewise.
19099         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19100         * modules/unistr/u32-mbtoucr-tests: Likewise.
19101         * modules/unistr/u32-move-tests: Likewise.
19102         * modules/unistr/u32-next-tests: Likewise.
19103         * modules/unistr/u32-prev-tests: Likewise.
19104         * modules/unistr/u32-set-tests: Likewise.
19105         * modules/unistr/u32-stpcpy-tests: Likewise.
19106         * modules/unistr/u32-stpncpy-tests: Likewise.
19107         * modules/unistr/u32-strcat-tests: Likewise.
19108         * modules/unistr/u32-strcmp-tests: Likewise.
19109         * modules/unistr/u32-strcoll-tests: Likewise.
19110         * modules/unistr/u32-strcpy-tests: Likewise.
19111         * modules/unistr/u32-strdup-tests: Likewise.
19112         * modules/unistr/u32-strlen-tests: Likewise.
19113         * modules/unistr/u32-strmblen-tests: Likewise.
19114         * modules/unistr/u32-strmbtouc-tests: Likewise.
19115         * modules/unistr/u32-strncat-tests: Likewise.
19116         * modules/unistr/u32-strncmp-tests: Likewise.
19117         * modules/unistr/u32-strncpy-tests: Likewise.
19118         * modules/unistr/u32-strnlen-tests: Likewise.
19119         * modules/unistr/u32-to-u16-tests: Likewise.
19120         * modules/unistr/u32-to-u8-tests: Likewise.
19121         * modules/unistr/u32-uctomb-tests: Likewise.
19122         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19123         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19124         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19125         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19126         * modules/uniwidth/u8-strwidth-tests: Likewise.
19127         * modules/uniwidth/u8-width-tests: Likewise.
19128         * modules/uniwidth/u16-strwidth-tests: Likewise.
19129         * modules/uniwidth/u16-width-tests: Likewise.
19130         * modules/uniwidth/u32-strwidth-tests: Likewise.
19131         * modules/uniwidth/u32-width-tests: Likewise.
19132         * modules/uniwidth/width-tests: Likewise.
19133
19134 2010-05-18  Richard Jones  <rjones@redhat.com>
19135
19136         doc: users.txt: list hivex
19137         * users.txt: Add hivex.
19138
19139 2010-05-18  Richard Jones  <rjones@redhat.com>
19140
19141         doc: users.txt: list febootstrap
19142         * users.txt: Add febootstrap.
19143
19144 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
19145
19146         bootstrap: fix an error when gnulib is not used as a git submodule
19147         * build-aux/bootstrap (gnulib_path): If its length is zero then
19148         assign "gnulib" to it.
19149         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
19150
19151 2010-05-16  Bruno Haible  <bruno@clisp.org>
19152
19153         Avoid autoconf warnings about AM_ICONV.
19154         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
19155         2.64.
19156
19157 2010-05-16  Bruno Haible  <bruno@clisp.org>
19158
19159         absolute-header: Make the macro usable in more situations.
19160         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
19161         from gl_ABSOLUTE_HEADER.
19162         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
19163
19164 2010-05-16  James Youngman  <jay@gnu.org>
19165
19166         doc: update users.txt
19167         * users.txt: Add CSSC.
19168
19169 2010-05-16  Jim Meyering  <meyering@redhat.com>
19170
19171         init.sh: fix an error in the previous change; add more comments
19172         * tests/init.sh: Compare exit code in loop against 9, not 2.
19173         Patch by Bruno Haible.
19174         Make the two tests more similar by adding an empty "then" clause.
19175         Add comments.
19176
19177         init.sh: avoid unnecessary shell re-exec
19178         * tests/init.sh: Improve the re-exec-required check to first test the
19179         current shell.  If it passes the test, do not search for a shell that
19180         does pass, and do not re-exec.  This test is particularly contorted to
19181         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
19182         of $(...) evokes a syntax error and causes immediate shell exit with
19183         status 2.  Bruno Haible reported that the re-exec made it impossible
19184         to single-step through any init.sh-using script.
19185
19186 2010-05-16  Bruno Haible  <bruno@clisp.org>
19187
19188         Fix collision between gnulib's and libintl's printf replacements.
19189         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
19190         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
19191         (printf): When using GNU C, map the __printf__ function to rpl_printf
19192         via __asm__. When not using GNU C, define rpl_printf instead of
19193         __printf__.
19194         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
19195         commit.
19196         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
19197         commit.
19198         * m4/asm-underscore.m4: New file.
19199         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
19200         * modules/stdio (Files): Add m4/asm-underscore.m4.
19201         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
19202         Reported by Ben Pfaff.
19203
19204 2010-05-16  Bruno Haible  <bruno@clisp.org>
19205
19206         verify: Avoid skipping the test on openSUSE 11.0.
19207         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
19208
19209 2010-05-13  Bruno Haible  <bruno@clisp.org>
19210
19211         Avoid useless warnings from G++.
19212         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
19213         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
19214         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19215
19216 2010-05-11  Jim Meyering  <meyering@redhat.com>
19217
19218         maint.mk: tweak preceding change
19219         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
19220         regexps tighter by anchoring at EOL, and make the new group "shy"
19221         for slightly decreased overhead.
19222
19223 2010-05-11  Eric Blake  <eblake@redhat.com>
19224
19225         maint.mk: gnulib doesn't guarantee NSIG
19226         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
19227
19228 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19229
19230         test-pwrite.c: Remove unused variable declaration.
19231         * tests/test-pwrite.c (main): Remove read_buf declaration.
19232
19233         Remove useless test-pwrite.sh file.
19234         * tests/test-pwrite.sh: Delete file.
19235         * modules/pwrite-tests: Remove references.
19236         Reported by Bruno Haible.
19237
19238 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19239
19240         init.sh: fix a typo
19241         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
19242
19243 2010-05-10  Jim Meyering  <meyering@redhat.com>
19244
19245         maint.mk: avoid using a temporary file in the always-defined-macros check
19246         * top/maint.mk (.re-defmac): Remove rule.
19247         (gl_trap_): Remove definition.
19248         (sc_prohibit_always-defined_macros): Rewrite not to create and
19249         depend on a temporary file.  Instead, depend on GNU grep's ability
19250         to read a list of regular expressions from stdin when given "-f -".
19251
19252 2010-05-09  Bruno Haible  <bruno@clisp.org>
19253
19254         Update to GNU gettext 0.18, part 1.
19255         * m4/gettext.m4: Update to GNU gettext 0.18.
19256         * m4/intl.m4: Likewise.
19257         * m4/po.m4: Likewise.
19258         * modules/gettext (Files): Add m4/fcntl-o.m4.
19259         (configure.ac): Require gettext infrastructure from version 0.18.
19260
19261 2010-05-09  Jim Meyering  <meyering@redhat.com>
19262
19263         init.sh: enable MALLOC_PERTURB_
19264         * tests/init.sh: Enable glibc's malloc-perturbing option.
19265
19266         maint.mk: improve sc_cross_check_PATH_usage_in_tests
19267         With my recent change in init.sh from the two-line form:
19268             -#   : ${srcdir=.}
19269             -#   . "$srcdir/init.sh"; path_prepend_ .
19270             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
19271         I noticed that using the one-line form would cause this test
19272         to fail with a false-positive, or to stop working altogether,
19273         depending on whether help-version changed or all the tests did.
19274         * top/maint.mk (_hv_regex): Remove this definition.
19275         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19276         (_hv_regex_strong): Use a stronger regex to check for conformance.
19277         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19278         Give a separate diagnostic for lack of conforming use.
19279
19280         maint.mk: prohibit definition of symbols defined by gnulib
19281         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19282         definition of symbols defined by gnulib.
19283
19284 2010-05-09  Bruno Haible  <bruno@clisp.org>
19285
19286         acl: Avoid test failure on Cygwin-hosted mingw.
19287         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19288
19289 2010-05-09  Bruno Haible  <bruno@clisp.org>
19290
19291         error: Use system's fcntl function.
19292         * lib/error.c (fcntl): Undefine.
19293
19294 2010-05-09  Jim Meyering  <meyering@redhat.com>
19295
19296         verify: adjust formatting to be more consistent
19297         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19298         argument-list '('s, and after one comma.
19299
19300 2010-05-09  Bruno Haible  <bruno@clisp.org>
19301
19302         error: More reliable output on mingw.
19303         * lib/error.c: Include <windows.h>.
19304         (is_open): New function.
19305         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19306         defined.
19307
19308 2010-05-09  Bruno Haible  <bruno@clisp.org>
19309
19310         vasnprintf: Fix syntax errors in libintl build on mingw.
19311         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
19312         pad_ourselves and prec_ourselves after use.
19313
19314 2010-05-08  Bruno Haible  <bruno@clisp.org>
19315
19316         * lib/config.charset: Update comments for Cygwin 1.7.
19317         * lib/localcharset.c: Likewise.
19318
19319 2010-05-07  Jim Meyering  <meyering@redhat.com>
19320
19321         init.sh: improve comments
19322         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
19323         . "${srcdir=.}/init.sh"; path_prepend_ .
19324         Add a note about path_prepend_ and the alternative of using
19325         TESTS_ENVIRONMENT.
19326
19327 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19328
19329         exclude: Unescape hashed patterns in wildcard mode.
19330         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
19331         to the hash list.
19332         * tests/test-exclude8.sh: New test case.
19333         * modules/exclude-tests: Add new test.
19334
19335 2010-05-05  Eric Blake  <eblake@redhat.com>
19336
19337         verify: automate tests
19338         * modules/verify-tests: New module.
19339         * tests/test-verify.sh: New file.
19340         * tests/test-verify.c: Guard each negative test with a unique id.
19341         Also avoid warning about unused left hand of comma expressions.
19342
19343 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19344
19345         Further improvements to verify.h, suggested by Eric Blake.
19346         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
19347         the GL_* versions, to avoid collision with OpenGL.
19348         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
19349         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
19350         than testing merely whether it's defined.
19351
19352         Modify verify.h to pacify gcc -Wredundant_decls.
19353         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
19354         These use the prefix "GL_" since they're likely to be useful elsewhere.
19355         We may need to break them out into a different .h file.
19356         (__COUNTER__): Define to 0 if the compiler doesn't support it.
19357         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
19358         of verify_function__.
19359
19360 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19361
19362         Tests for module pwrite.
19363         * modules/pwrite-tests: New file.
19364         * tests/test-pwrite.sh: New file.
19365         * tests/test-pwrite.c: New file.
19366
19367         New module pwrite.
19368         * lib/unistd.in.h (pwrite): New declaration.
19369         * lib/pwrite.c: New file, from glibc with modifications.
19370         * m4/pwrite.m4: New file.
19371         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
19372         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
19373         REPLACE_PWRITE.
19374         * modules/pwrite: New file.
19375         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
19376         REPLACE_PWRITE.
19377         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
19378         * doc/posix-functions/pwrite.texi: Mention the new module.
19379
19380 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19381
19382         pread: Update documentation.
19383         * doc/posix-functions/pread.texi: Mention the 'pread' module.
19384
19385 2010-05-04  Eric Blake  <eblake@redhat.com>
19386
19387         docs: update cygwin progress
19388         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
19389         this bug.
19390         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
19391         Added in cygwin 1.7.2.
19392         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
19393         Likewise.
19394         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
19395         Likewise.
19396         * doc/glibc-functions/dup3.texi (dup3): Likewise.
19397         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
19398         * doc/glibc-functions/accept4.texi (accept4): Likewise.
19399         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
19400         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
19401         Mention nproc module.
19402         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
19403         bug in cygwin 1.7.5 addition.
19404         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
19405         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
19406         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
19407         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
19408         1.7.5.
19409         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
19410         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
19411         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
19412         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
19413         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
19414         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
19415         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
19416         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
19417         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
19418         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
19419         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
19420         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
19421         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
19422         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
19423         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
19424         Likewise.
19425         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
19426         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
19427         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
19428         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
19429         Likewise.
19430         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
19431         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
19432         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
19433         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
19434         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
19435         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
19436         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
19437         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
19438         Likewise.
19439         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
19440         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
19441         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
19442         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
19443         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
19444         Likewise.
19445         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
19446         Likewise.
19447         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
19448         Likewise.
19449         * doc/glibc-functions/xdrrec_endofrecord.texi
19450         (xdrrec_endofrecord): Likewise.
19451         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
19452         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
19453         Likewise.
19454         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
19455         Likewise.
19456
19457 2010-05-04  Jim Meyering  <meyering@redhat.com>
19458
19459         gendocs.sh: make its "-s FILE" option more useful
19460         * build-aux/gendocs.sh: When honoring the -s FILE option, update
19461         $PACKAGE to reflect the probably-different basename of "FILE".
19462
19463 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19464
19465         bootstrap: don't ignore download_po_files failure
19466         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
19467         failure.
19468
19469 2010-05-03  Jim Meyering  <meyering@redhat.com>
19470
19471         maint.mk: allow to pass options to gendocs.sh
19472         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
19473         (gendocs_options_): New overridable variable.
19474
19475         gnu-web-doc-update: don't ignore configure or build failure
19476         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
19477
19478         announce-gen: backslash-escape '@'s in --help output
19479         * build-aux/announce-gen: Fix syntax errors.
19480
19481         maint.mk, announce-gen: allow project-specific announcement mail headers
19482         * top/maint.mk (translation_project_): Define default.
19483         (announcement_Cc_, announcement_mail_headers_): Likewise.
19484         (announcement): Invoke announce-gen with new --mail-headers option.
19485         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
19486
19487         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
19488         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
19489         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
19490         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
19491         line in the "err2" output file when running "make check" in verbose
19492         mode (i.e., with set -x enabled).
19493
19494 2010-05-03  Bruno Haible  <bruno@clisp.org>
19495
19496         wctob: Fix for weird platforms.
19497         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
19498         argument value.
19499
19500 2010-05-03  Jim Meyering  <meyering@redhat.com>
19501
19502         maint.mk: prohibit unwarranted use of <strings.h>
19503         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
19504         strings.h in a file that does not also use strcasecmp, strncasecmp,
19505         ffs or ffsll.
19506
19507         maint.mk: remove obsolete comments
19508         * top/maint.mk: Remove stale, commented-out rules.
19509
19510 2010-05-02  Bruno Haible  <bruno@clisp.org>
19511
19512         wcwidth: Declare also when it's aliased.
19513         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
19514         macro.
19515
19516 2010-05-02  Bruno Haible  <bruno@clisp.org>
19517
19518         Fix regression from 2010-04-25.
19519         * gnulib-tool (func_modules_transitive_closure): Check the status of
19520         all modules, not only of the tests that are of the form foo-tests where
19521         foo is a module.
19522
19523 2010-05-02  Bruno Haible  <bruno@clisp.org>
19524
19525         wctob: Work around nasty Cygwin 1.7.2 bug.
19526         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
19527         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
19528
19529 2010-05-01  Bruno Haible  <bruno@clisp.org>
19530
19531         fpurge: Sharper test.
19532         * tests/test-fpurge.c (main): Add one more ftell check.
19533         * modules/fpurge-tests (Depends-on): Add ftell.
19534         Suggested by Eric Blake.
19535
19536 2010-05-01  Bruno Haible  <bruno@clisp.org>
19537
19538         ftello: Another test.
19539         * tests/test-ftello3.c: New file.
19540         * modules/ftello-tests (Files): Add it.
19541         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19542         MOSTLYCLEANFILES.
19543
19544         ftell: Another test.
19545         * tests/test-ftell3.c: New file.
19546         * modules/ftell-tests (Files): Add it.
19547         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19548         MOSTLYCLEANFILES.
19549
19550 2010-05-01  Bruno Haible  <bruno@clisp.org>
19551
19552         ftell, ftello: Work around Solaris bug.
19553         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
19554         * lib/ftello.c: Include stdio-impl.h.
19555         (ftello): On Solaris, when _IOWRT is set, compute the result without
19556         looking at _IOREAD.
19557         * modules/ftello (Files): Add lib/stdio-impl.h.
19558         * doc/posix-functions/ftell.texi: Mention Solaris bug.
19559         * doc/posix-functions/ftello.texi: Likewise.
19560         Reported by Eric Blake.
19561
19562 2010-05-01  Bruno Haible  <bruno@clisp.org>
19563
19564         freading: Adapt to special meaning of _IOREAD flag on Solaris.
19565         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
19566         the _IOWRT flag is also set.
19567
19568 2010-05-01  Bruno Haible  <bruno@clisp.org>
19569
19570         Fix doc about a HP-UX stdio bug.
19571         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
19572         * doc/posix-functions/ftello.texi: Likewise.
19573
19574 2010-05-01  Bruno Haible  <bruno@clisp.org>
19575
19576         lseek test: Fix failure on Solaris.
19577         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
19578         output.
19579
19580 2010-04-30  Jim Meyering  <meyering@redhat.com>
19581
19582         bootstrap: don't ignore failure to generate po*/Makevars
19583         * build-aux/bootstrap (with_gettext): Don't ignore failure
19584         to create po/Makevars or runtime-po/Makevars.
19585
19586 2010-04-29  Eric Blake  <eblake@redhat.com>
19587
19588         headers: relax license to LGPLv2+
19589         * modules/fcntl-h (License): Relax license.
19590         * modules/getopt-posix (License): Likewise.
19591         * modules/locale (License): Likewise.
19592         * modules/math (License): Likewise.
19593         * modules/pty (License): Likewise.
19594         * modules/sched (License): Likewise.
19595         * modules/search (License): Likewise.
19596         * modules/spawn (License): Likewise.
19597         * modules/stdarg (License): Likewise.
19598         * modules/sysexits (License): Likewise.
19599
19600 2010-04-29  Jim Meyering  <meyering@redhat.com>
19601
19602         inttypes: relax license to LGPLv2+
19603         * modules/inttypes (License): Relax license.
19604
19605 2010-04-29  Simon Josefsson  <simon@josefsson.org>
19606
19607         * top/maint.mk (indent): Run twice to produce idempotent results.
19608
19609 2010-04-28  Bruno Haible  <bruno@clisp.org>
19610
19611         getdate: Generate getdate.c in the source directory.
19612         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
19613         MOSTLYCLEANFILES.
19614         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
19615
19616 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
19617
19618         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
19619         is not declared as a const *; avoid warnings in that case.
19620
19621 2010-04-28  Eric Blake  <eblake@redhat.com>
19622
19623         canonicalize-lgpl: avoid compiler warning
19624         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
19625         declaration' / 'extraneous semicolon' warning with some compilers.
19626         Reported by Andreas Gruenbacher.
19627
19628 2010-04-28  Jim Meyering  <meyering@redhat.com>
19629
19630         init.sh: ensure a more reliable exit status when exiting via trap
19631         * tests/init.sh (setup_): Don't rely on $? in signal handler.
19632         Inspired by patches from Dmitry V. Levin.
19633         Also trap on signal 3 (SIGQUIT).
19634
19635 2010-04-27  Bruno Haible  <bruno@clisp.org>
19636
19637         Update doc about utimes().
19638         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
19639         'utimens' module.
19640         Reported by Andreas Gruenbacher <agruen@suse.de>.
19641
19642 2010-04-27  Eric Blake  <eblake@redhat.com>
19643
19644         full-read, full-write: relax license
19645         * modules/full-read (License): Drop to LGPLv2+.
19646         * modules/full-write (License): Likewise.
19647         * modules/safe-read (License): Likewise.
19648         * modules/safe-write (License): Likewise.
19649
19650         pthread: mention library for linking
19651         * modules/pthread (Link): Mention $(LIB_PTHREAD).
19652
19653 2010-04-27  Jim Meyering  <meyering@redhat.com>
19654
19655         maint.mk: fix a bug introduced in last change
19656         * top/maint.mk (gl_assured_headers_): Now that all names are on
19657         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
19658         is not anchored to end of word, it should be adequate.
19659
19660         maint.mk: avoid side-effect in latest syntax-check
19661         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
19662         to run commands via $(shell...), and hence to incur cost only when
19663         the new rule is actually run.
19664
19665         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
19666         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
19667         and use that to create a regexp used to detect all #if HAVE_..._H uses.
19668         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
19669         (gl_assured_headers_, az_, AZ_): Define.
19670         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
19671
19672 2010-04-26  Jim Meyering  <jim@meyering.net>
19673             Bruno Haible  <bruno@clisp.org>
19674
19675         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
19676         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
19677         Prompted by an exchange with Gilles Espinasse.
19678
19679 2010-04-26  Jim Meyering  <meyering@redhat.com>
19680
19681         git-version-gen: aesthetic tweak
19682         * build-aux/git-version-gen: Use "$nl" rather than a literal,
19683         so that the command remains on a single line.
19684
19685 2010-04-26  Eric Blake  <eblake@redhat.com>
19686
19687         git-version-gen: allow use on EBCDIC hosts
19688         * build-aux/git-version-gen (dirty): Use literal rather than tying
19689         ourselves to ascii.
19690         Reported by Steve Goetze.
19691
19692 2010-04-25  Bruno Haible  <bruno@clisp.org>
19693
19694         netdb: Add support for GNULIB_POSIXCHECK.
19695         * lib/netdb.in.h: Include warn-on-use.h.
19696         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
19697         functions are used when GNULIB_POSIXCHECK is defined and the
19698         getaddrinfo module is not in use.
19699         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
19700         freeaddrinfo, gai_strerror, getnameinfo are declared.
19701         * modules/netdb (Depends-on): Add warn-on-use.
19702         (Makefile.am): Include warn-on-use.h in netdb.h.
19703
19704 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
19705
19706         build: avoid "make check" failure without .git/ directory
19707         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
19708         there is no .git/ directory.
19709
19710 2010-04-25  Bruno Haible  <bruno@clisp.org>
19711
19712         ptsname: Fix misuse of ttyname_r.
19713         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
19714         of errno.
19715
19716 2010-04-25  Bruno Haible  <bruno@clisp.org>
19717
19718         ttyname_r: Make it work on Solaris 10.
19719         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
19720         if the system function has the POSIX declaration. Test whether the
19721         function fails if the buffer is less than 128 bytes large.
19722         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
19723         system's ttyname_r function. Provide a reasonably large buffer.
19724         * modules/ttyname_r (Depends-on): Add extensions.
19725         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
19726
19727 2010-04-25  Bruno Haible  <bruno@clisp.org>
19728
19729         Use the 'extensions' module for some more functions on Solaris.
19730         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
19731         module.
19732         * doc/posix-functions/ctime_r.texi: Likewise.
19733         * doc/posix-functions/getgrgid_r.texi: Likewise.
19734         * doc/posix-functions/getgrnam_r.texi: Likewise.
19735         * doc/posix-functions/getpwnam_r.texi: Likewise.
19736         * doc/posix-functions/getpwuid_r.texi: Likewise.
19737         * doc/posix-functions/readdir_r.texi: Likewise.
19738         * doc/posix-functions/sigwait.texi: Likewise.
19739         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
19740         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
19741
19742 2010-04-25  Bruno Haible  <bruno@clisp.org>
19743
19744         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
19745         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
19746         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
19747         * lib/ttyname_r.c: Include <limits.h>.
19748         (ttyname_r): Define using the system's ttyname_r function, if it exists
19749         and not on Solaris.
19750         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
19751         set.
19752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
19753         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
19754         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
19755         Reported by Simon Josefsson.
19756
19757 2010-04-25  Bruno Haible  <bruno@clisp.org>
19758
19759         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
19760         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
19761         * doc/posix-functions/ctime_r.texi: Likewise.
19762         * doc/posix-functions/getgrgid_r.texi: Likewise.
19763         * doc/posix-functions/getgrnam_r.texi: Likewise.
19764         * doc/posix-functions/getlogin_r.texi: Likewise.
19765         * doc/posix-functions/getpwnam_r.texi: Likewise.
19766         * doc/posix-functions/getpwuid_r.texi: Likewise.
19767         * doc/posix-functions/readdir_r.texi: Likewise.
19768         * doc/posix-functions/sigwait.texi: Likewise.
19769         * doc/posix-functions/ttyname_r.texi: Likewise.
19770         Reported by Simon Josefsson.
19771
19772 2010-04-25  Bruno Haible  <bruno@clisp.org>
19773
19774         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
19775         * gnulib-tool (func_usage): Document that --with-*-tests options apply
19776         also to --create-testdir.
19777         (func_acceptable): Don't consider the status of *-tests modules here.
19778         (func_modules_transitive_closure): Consider it here, before including a
19779         test module.
19780         (func_import, func_create_testdir): Set inc_all_direct_tests,
19781         inc_all_indirect_tests.
19782         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
19783         --create-testdir and --create-megatestdir.
19784
19785 2010-04-25  Bruno Haible  <bruno@clisp.org>
19786
19787         gnulib-tool: Add --without-*-tests options.
19788         * gnulib-tool (func_usage): Document the --without-*-tests options.
19789         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
19790         excl_unportable_tests): New variables.
19791         Fail if they are specified with --import or --update.
19792         (func_acceptable): Respect the excl_*_tests variables.
19793         (func_import): Set the excl_*_tests variables to empty.
19794
19795 2010-04-25  Simon Josefsson  <simon@josefsson.org>
19796             Bruno Haible  <bruno@clisp.org>
19797
19798         Work around a MacOS X 10.4 bug with openpty.
19799         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
19800         * tests/test-openpty.c (main): Close the master side explicitly.
19801
19802 2010-04-25  Bruno Haible  <bruno@clisp.org>
19803
19804         strnlen: Fix a C++ test error on MacOS X and Solaris.
19805         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
19806         the function is not declared.
19807         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
19808         Simon Josefsson.
19809
19810 2010-04-24  Bruno Haible  <bruno@clisp.org>
19811
19812         Avoid a gcc warning.
19813         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
19814         of correct type for %08lx directive.
19815         Reported by Eric Blake.
19816
19817 2010-04-24  Bruno Haible  <bruno@clisp.org>
19818
19819         vasnprintf: Correct errno value in case of out-of-memory.
19820         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
19821         or sprintf. Use the errno value from SNPRINTF or sprintf.
19822         Reported by Ian Beckwith <ianb@erislabs.net>.
19823
19824 2010-04-24  Bruno Haible  <bruno@clisp.org>
19825
19826         ansi-c++-opt: Find correct compiler when cross-compiling.
19827         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
19828         AC_CHECK_PROGS.
19829         Reported by Simon Josefsson.
19830
19831 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
19832
19833         vc-list-files: Add support for subversion
19834         * build-aux/vc-list-files: Use "svn list" to generate the list of
19835         files controlled by subversion.
19836
19837 2010-04-23  Jim Meyering  <meyering@redhat.com>
19838
19839         vc-list-files tests: convert to use init.sh
19840         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
19841         path_prepend_.
19842         Use Exit, not exit.
19843         Use skip_ rather than open coding it.
19844         Remove trap set-up and compare definitions.
19845         * tests/test-vc-list-files-git.sh: Likewise.
19846         * modules/vc-list-files-tests (Files): Add tests/init.sh.
19847
19848 2010-04-22  Simon Josefsson  <simon@josefsson.org>
19849
19850         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
19851         backup files.
19852
19853 2010-04-21  Simon Josefsson  <simon@josefsson.org>
19854
19855         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
19856
19857 2010-04-20  Eric Blake  <eblake@redhat.com>
19858
19859         tests: be robust to ignored SIGPIPE
19860         * tests/test-select-in.sh: Consume all output.
19861         * tests/test-lseek.sh: Check correct exit status, while avoiding
19862         EPIPE.
19863
19864 2010-04-20  Simon Josefsson  <simon@josefsson.org>
19865             Bruno Haible  <bruno@clisp.org>
19866
19867         visibility: Don't use -fvisibility if it leads to a warning.
19868         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
19869         yes, don't pretend that visibility works if it leads to a warning.
19870         Reported by Mike Gran <spk121@yahoo.com>.
19871
19872 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
19873
19874         * build-aux/bootstrap: Use "git -h" for testing for supported options
19875         instead of "git --help".  The short-form option only shows a summary,
19876         and doesn't layout the full man page.  Grep for the full option name
19877         in the summary, too.
19878
19879 2010-04-19  Bruno Haible  <bruno@clisp.org>
19880
19881         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
19882         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
19883         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
19884         mention of RELOCATABLE_STRIP.
19885         Reported by Sylvain Beucler <beuc@beuc.net>.
19886
19887 2010-04-19  Bruno Haible  <bruno@clisp.org>
19888
19889         * lib/diffseq.h: Fix typo in comment.
19890         Reported by Eric Blake.
19891
19892 2010-04-19  Bruno Haible  <bruno@clisp.org>
19893
19894         ioctl: Move autoconf macro to a .m4 file.
19895         * m4/ioctl.m4: New file, extracted from modules/ioctl.
19896         * modules/ioctl (Files): Add it.
19897         (configure.ac): Simply invoke gl_FUNC_IOCTL.
19898         Reported by Ian Beckwith <ianb@erislabs.net>.
19899
19900 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
19901             Bruno Haible  <bruno@clisp.org>
19902
19903         diffseq: Accommodate use-case with abstract arrays.
19904         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
19905         is not defined.
19906         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
19907         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
19908
19909 2010-04-18  Bruno Haible  <bruno@clisp.org>
19910
19911         * doc/posix-headers/stdbool.texi: More precise wording.
19912
19913 2010-04-17  Jim Meyering  <meyering@redhat.com>
19914
19915         maint.mk: use gnu-style indentation in an embedded perl script
19916         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
19917         Rename variable: s/two/last_two_bytes/
19918
19919 2010-04-16  Eric Blake  <eblake@redhat.com>
19920
19921         test-stdbool: skip test that fails with Solaris CC
19922         * tests/test-stdbool.c (f): Skip test that causes compilation
19923         error under buggy C++ compiler.
19924         * lib/stdbool.in.h: Document the limitation.
19925         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
19926
19927         setenv: allow compilation with C++
19928         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
19929         register keyword.
19930
19931         stdint: allow test to pass with C++
19932         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
19933
19934         getopt: allow compilation with C++
19935         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
19936         struct.
19937         * lib/getopt.c (_getopt_internal_r): Use correct type.
19938         Reported by Dagobert Michelson, via Joel E. Denny.
19939
19940 2010-04-16  Bruno Haible  <bruno@clisp.org>
19941
19942         Override netdb.h always.
19943         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
19944         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
19945         Reported by Ludovic Courtès <ludo@gnu.org>.
19946
19947 2010-04-15  Bruno Haible  <bruno@clisp.org>
19948
19949         openpty: Fix mistake from 2010-03-21.
19950         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
19951         Reported by Simon Josefsson.
19952
19953 2010-04-15  Eric Blake  <eblake@redhat.com>
19954
19955         test-forkpty: fix expected signature
19956         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
19957         Reported by Simon Josefsson.
19958
19959 2010-04-15  Jim Meyering  <meyering@redhat.com>
19960
19961         maint.mk: texinfo_suffix_re_: correct the default regexp
19962         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
19963
19964         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
19965         make it configurable via texinfo_suffix_re_.
19966
19967 2010-04-14  Eric Blake  <eblake@redhat.com>
19968
19969         strtok_r: relax license to LGPLv2+
19970         * modules/strtok_r (License): Relax license.
19971         Reported by Matthias Bolte.
19972
19973 2010-04-14  Simon Josefsson  <simon@josefsson.org>
19974
19975         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
19976         version 1.4.4 by default instead of requiring the libgcrypt
19977         version used during build.  This makes it possible to use the
19978         application with older but still binary compatible libgcrypt
19979         versions.
19980
19981 2010-04-13  Eric Blake  <eblake@redhat.com>
19982
19983         getopt-gnu: match recent glibc fixes and posix ruling
19984         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
19985         '+' handling, when requesting extensions.
19986         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
19987         'W;' handling.
19988         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
19989         * doc/posix-functions/getopt.texi (getopt): Document this.
19990         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
19991         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19992         Likewise.
19993
19994         getopt: merge bug fixes from glibc
19995         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
19996         diagnostics.  Honor '+:' correctly.  Reject ';'.
19997
19998         getopt-posix: detect MacOS bug
19999         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20000         optind when missing a required argument.
20001         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20002         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20003         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20004         Likewise.
20005
20006         getopt-posix: avoid spurious failure on Solaris
20007         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20008         an indicator that setting optind=1 is sufficient for reset.
20009
20010         getopt-posix: avoid spurious failure on FreeBSD
20011         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20012         in POSIX mode, since the m4 test uses it.
20013
20014         gnulib-tool: silence warning on BSD sh
20015         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20016
20017 2010-04-13  Jim Meyering  <meyering@redhat.com>
20018
20019         doc: users.txt: GNU patch now uses gnulib
20020         * users.txt: Add patch.
20021
20022 2010-04-12  Jim Meyering  <meyering@redhat.com>
20023
20024         maint.mk: generate more concise timing data for syntax-check rules
20025         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20026         " done" from each line that reports a syntax-check test duration.
20027
20028 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20029
20030         git-version-gen: use "git update-index..." rather than "git status"
20031         * build-aux/git-version-gen: Use git update-index --refresh, not
20032         "git status".  With some versions of git, "git status" would fail
20033         to update the index and result in an unwarranted "-dirty" suffix.
20034
20035 2010-04-11  Jim Meyering  <meyering@redhat.com>
20036
20037         openat: correct formatting (no semantic change)
20038         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20039         Suggested by Bruno Haible.
20040
20041 2010-04-11  Bruno Haible  <bruno@clisp.org>
20042
20043         Stricter declaration checking in testdirs.
20044         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20045         If for_tests is true, augment AM_CPPFLAGS to define
20046         GNULIB_STRICT_CHECKING.
20047         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20048         GNULIB_STRICT_CHECKING is defined, verify that the function is
20049         declared.
20050
20051 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20052             Bruno Haible  <bruno@clisp.org>
20053
20054         libunistring: Improve configure output.
20055         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20056         Don't say "consider installing GNU libunistring" when checking again
20057         with libiconv.
20058
20059 2010-04-11  Bruno Haible  <bruno@clisp.org>
20060
20061         libunistring: Correct value of $LTLIBUNISTRING.
20062         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20063         correct the value of $LTLIBUNISTRING.
20064
20065 2010-04-11  Bruno Haible  <bruno@clisp.org>
20066
20067         havelib: Add static libraries to LIBS in the right order.
20068         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20069         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20070
20071 2010-04-11  Bruno Haible  <bruno@clisp.org>
20072
20073         libunistring: Detect libunistring also when it depends on libiconv.
20074         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20075         the second AC_LIB_HAVE_LINKFLAGS invocation.
20076
20077 2010-04-11  James Youngman  <jay@gnu.org>
20078
20079         close-stream: declare local scalars to be "const"
20080         * lib/close-stream.c (close_stream): Make boolean variables const
20081         to document the fact that we set but do not change them.
20082
20083 2010-04-11  Bruno Haible  <bruno@clisp.org>
20084
20085         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20086
20087 2010-04-11  Jim Meyering  <meyering@redhat.com>
20088
20089         maint.mk: don't include dist-check.mk
20090         * top/maint.mk: Remove bogus include directive.
20091
20092         maint.mk: improve empty-line-at-EOF check
20093         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20094         solution, rather than tail+Perl-based one.  The latter would read
20095         a few kilobytes from the end of each file, and did not handle empty
20096         files properly.
20097
20098         maint.mk: print the elapsed time for each syntax-check rule
20099         * top/maint.mk (sc_m_rules_): Save start time in a file.
20100         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20101         (local-check): Interpose the .z rules
20102
20103 2010-04-11  Jim Meyering  <meyering@redhat.com>
20104
20105         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20106         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20107         empty file with one that ends in an empty line.
20108
20109 2010-04-10  Bruno Haible  <bruno@clisp.org>
20110
20111         mkdir: Make it work on mingw64.
20112         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20113         * lib/mkdir.c: Update comment.
20114         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20115
20116 2010-04-10  Bruno Haible  <bruno@clisp.org>
20117
20118         Don't override improved macro from newer autoconf.
20119         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20120         autoconf >= 2.62.
20121         Reported by Joel E. Denny <jdenny@clemson.edu>.
20122
20123 2010-04-10  Jim Meyering  <meyering@redhat.com>
20124
20125         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20126         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20127
20128         maint.mk: correct a diagnostic
20129         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20130         in diagnostic; now use $prohibit.
20131
20132 2010-04-10  Bruno Haible  <address@hidden>
20133
20134         fchownat: Fix a C++ test error on Solaris 8.
20135         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20136         the function does not exist.
20137
20138 2010-04-10  Bruno Haible  <bruno@clisp.org>
20139
20140         vasnprintf: Add more tests.
20141         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20142         (test_function): Test converting an invalid wide string.
20143
20144         vasnprintf: Correct handling of unconvertible wide string arguments.
20145         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
20146         VASNPRINTF.
20147         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
20148         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
20149         smaller than the expected maximum need for the directive. Set errno to
20150         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
20151         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
20152         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
20153         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
20154         * modules/vasnprintf (Files): Add m4/printf.m4.
20155         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20156
20157 2010-04-10  Bruno Haible  <bruno@clisp.org>
20158
20159         vasnprintf: Fix crash in %ls directive.
20160         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
20161         string is passed as argument to %ls, with no precision and no width.
20162         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20163
20164 2010-04-10  Bruno Haible  <bruno@clisp.org>
20165
20166         vasnprintf: Fix multiple test failures on mingw.
20167         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
20168         _snprintf, or snwprintf, not _snwprintf.
20169
20170 2010-04-10  Bruno Haible  <bruno@clisp.org>
20171
20172         write: Fix a C++ test error on mingw.
20173         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
20174
20175 2010-04-10  Bruno Haible  <bruno@clisp.org>
20176
20177         vasnprintf test: Reduce code duplication.
20178         * tests/test-vasnprintf.c (test_function): New function, extracted from
20179         test_vasnprintf.
20180         (test_vasnprintf, test_asnprintf): Invoke it.
20181
20182 2010-04-10  Bruno Haible  <bruno@clisp.org>
20183
20184         strnlen: Fix warning in C++ mode on MacOS X.
20185         * lib/string.in.h (strnlen): Use the modern idiom.
20186         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
20187         defining strnlen as a macro already in <config.h>.
20188         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20189         REPLACE_STRNLEN.
20190         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
20191         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20192
20193 2010-04-08  James Youngman  <jay@gnu.org>
20194
20195         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
20196         the example.
20197
20198 2010-04-09  Jim Meyering  <meyering@redhat.com>
20199
20200         maint.mk: print better diagnostic when there is no $(_hv_file)
20201         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
20202         announce that when $(_hv_file) (aka help-version) does not exist.
20203
20204         init.sh: run tr in the "C" locale to avoid multibyte interpretation
20205         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
20206         not try to interpret its random input bytes.  Jarno Rajahalme reported
20207         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
20208         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
20209         (mktempd_): Likewise, just in case.
20210
20211         ftruncate: add two years to projected module removal date: 2012
20212         * m4/ftruncate.m4: Adjust comments.
20213
20214         ftruncate: mark module as obsolete; even MinGW provides it, now
20215         * modules/ftruncate (Status): Obsolete.
20216         (Notice): Say that.
20217         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
20218         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
20219
20220 2010-04-08  Bruno Haible  <bruno@clisp.org>
20221
20222         Fix side effects from tests-related modules.
20223         * modules/dprintf-posix (Comment): New section.
20224         * modules/fprintf-posix (Comment): Likewise.
20225         * modules/obstack-printf-posix (Comment): Likewise.
20226         * modules/printf-posix (Comment): Likewise.
20227         * modules/snprintf-posix (Comment): Likewise.
20228         * modules/sprintf-posix (Comment): Likewise.
20229         * modules/vasnprintf-posix (Comment): Likewise.
20230         * modules/vasprintf-posix (Comment): Likewise.
20231         * modules/vdprintf-posix (Comment): Likewise.
20232         * modules/vfprintf-posix (Comment): Likewise.
20233         * modules/vprintf-posix (Comment): Likewise.
20234         * modules/vsnprintf-posix (Comment): Likewise.
20235         * modules/vsprintf-posix (Comment): Likewise.
20236         * modules/xprintf-posix (Comment): Likewise.
20237         * modules/xvasprintf-posix (Comment): Likewise.
20238         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
20239         * modules/floorf-tests (Depends-on): Likewise.
20240         * modules/round-tests (Depends-on): Likewise.
20241         * modules/roundf-tests (Depends-on): Likewise.
20242         * modules/trunc-tests (Depends-on): Likewise.
20243         * modules/truncf-tests (Depends-on): Likewise.
20244         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
20245         'fprintf-posix' module is not present.
20246         * tests/test-floorf2.c (check): Likewise.
20247         * tests/test-trunc2.c (check): Likewise.
20248         * tests/test-truncf2.c (check): Likewise.
20249         * tests/test-round2.c (equal): Likewise.
20250         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20251
20252 2010-04-07  Karl Berry  <karl@gnu.org>
20253
20254         * config/srclist.txt,
20255         * config/srclistvars.sh,
20256         * config/srclist-update: doc fixes.
20257
20258 2010-04-07  Jim Meyering  <meyering@redhat.com>
20259
20260         maint.mk: add a PATH crosschecking syntax-check rule
20261         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
20262         Useful if you use a test like the one in help-version (coreutils,
20263         diffutils, grep, gzip) that ensures $(VERSION) matches what is
20264         printed by prog --version.
20265
20266 2010-04-06  Bruno Haible  <bruno@clisp.org>
20267
20268         Fix link error on mingw.
20269         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
20270         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20271
20272 2010-04-06  Bruno Haible  <bruno@clisp.org>
20273
20274         Assume rmdir exists.
20275         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20276
20277 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20278
20279         doc: update users.txt
20280         * users.txt: Add gcal.
20281
20282 2010-04-06  Jim Meyering  <meyering@redhat.com>
20283
20284         init.sh: simply unset TMPDIR rather than risking env -i
20285         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20286         although it probably works fine on all Unix-based systems, some
20287         systems (Cygwin?) cannot tolerate a totally cleared environment.
20288         Suggestion from Eric Blake.
20289
20290 2010-04-06  Jim Meyering  <meyering@redhat.com>
20291
20292         init.sh: portability fix: use env's POSIX-specified -i option not -u
20293         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20294         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20295
20296 2010-04-05  Bruno Haible  <bruno@clisp.org>
20297
20298         btowc: Work around Cygwin 1.7.2 bug.
20299         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20300         does not map NUL to 0.
20301         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20302
20303 2010-04-05  Bruno Haible  <bruno@clisp.org>
20304
20305         Make the multithread modules work on Cygwin 1.7.2.
20306         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20307         imported symbols can be declared weak, so that it returns "no" on
20308         Cygwin 1.7.2.
20309
20310 2010-04-05  Bruno Haible  <bruno@clisp.org>
20311
20312         Use the module 'strncat'.
20313         * modules/unistr/u8-strncat (Depends-on): Add strncat.
20314
20315         Tests for module 'strncat'.
20316         * modules/strncat-tests: New file.
20317         * tests/test-strncat.c: New file.
20318
20319         New module 'strncat'.
20320         * lib/string.in.h (strncat): New declaration.
20321         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20322         * m4/strncat.m4: New file, based on m4/memchr.m4.
20323         * modules/strncat: New file.
20324         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
20325         is declared.
20326         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
20327         REPLACE_STRNCAT.
20328         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
20329         REPLACE_STRNCAT.
20330         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
20331         module.
20332         * tests/test-string-c++.cc: Check signature of strncat.
20333
20334 2010-04-05  Jim Meyering  <meyering@redhat.com>
20335
20336         xstrtoumax-tests: convert to use init.sh
20337         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
20338         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20339         Use Exit, not exit.
20340         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20341
20342         xstrtoimax-tests: convert to use init.sh
20343         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
20344         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20345         Use Exit, not exit.
20346         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20347
20348 2010-04-05  Bruno Haible  <bruno@clisp.org>
20349
20350         sys_socket: Avoid #define replacements in C++ mode.
20351         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
20352         warning to the function if possible, rather than #defining the symbol
20353         to a dysfunctional alias.
20354
20355 2010-04-05  Bruno Haible  <bruno@clisp.org>
20356
20357         fseeko: Fix C++ test error on mingw.
20358         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
20359         gl_FUNC_FSEEKO.
20360         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
20361         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
20362         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
20363         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
20364
20365 2010-04-05  Bruno Haible  <bruno@clisp.org>
20366
20367         duplocale: Improve test output.
20368         * tests/test-duplocale.c (main): Print reason for skipped test.
20369
20370 2010-04-05  Bruno Haible  <bruno@clisp.org>
20371
20372         Assume rmdir exists.
20373         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
20374         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
20375
20376 2010-04-05  Bruno Haible  <bruno@clisp.org>
20377
20378         Fix link error on Solaris 8 with cc.
20379         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
20380
20381 2010-04-05  Bruno Haible  <bruno@clisp.org>
20382
20383         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20384         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
20385
20386 2010-04-05  Bruno Haible  <bruno@clisp.org>
20387
20388         vasprintf: Update documentation.
20389         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
20390
20391 2010-04-05  Bruno Haible  <bruno@clisp.org>
20392
20393         ptsname: Improve test.
20394         * tests/test-ptsname.c (main): Also try the various master names of BSD
20395         systems.
20396
20397 2010-04-05  Bruno Haible  <bruno@clisp.org>
20398
20399         memchr: Avoid a possible C++ test error.
20400         * lib/string.in.h (memchr): Provide declaration if function is missing.
20401         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
20402         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
20403         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
20404         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
20405
20406 2010-04-05  Bruno Haible  <bruno@clisp.org>
20407
20408         strtok_r: Improve idiom.
20409         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
20410         AC_LIBOBJ is used.
20411
20412 2010-04-05  Bruno Haible  <bruno@clisp.org>
20413
20414         strdup: Improve idiom.
20415         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
20416         AC_LIBOBJ is used.
20417         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
20418         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
20419         when AC_LIBOBJ is used.
20420
20421 2010-04-05  Bruno Haible  <bruno@clisp.org>
20422
20423         mbsinit, mbrtowc, wcrtomb: Improve idioms.
20424         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
20425         don't set REPLACE_MBSINIT to 1.
20426         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
20427         don't set REPLACE_MBRTOWC to 1.
20428         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
20429         exist, don't set REPLACE_MBSRTOWCS to 1.
20430         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
20431         exist, don't set REPLACE_MBSNRTOWCS to 1.
20432         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
20433         don't set REPLACE_WCRTOMB to 1.
20434         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
20435         exist, don't set REPLACE_WCSRTOMBS to 1.
20436         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
20437         exist, don't set REPLACE_WCSNRTOMBS to 1.
20438
20439 2010-04-05  Bruno Haible  <bruno@clisp.org>
20440
20441         ldexpl: Improve idiom.
20442         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
20443         make sure to set HAVE_DECL_LDEXPL to 0.
20444
20445 2010-04-05  Jim Meyering  <meyering@redhat.com>
20446
20447         xstrtol-tests: convert to use init.sh
20448         * modules/xstrtol-tests (Files): Add tests/init.sh.
20449         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20450         Use Exit, not exit.
20451         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20452
20453         atexit-tests: convert to use init.sh
20454         * modules/atexit-tests (Files): Add tests/init.sh.
20455         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20456         Use Exit, not exit.
20457         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20458
20459         init.sh: fix typo
20460         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
20461
20462         init.sh: make it easier for a test script to write to the tty, ...
20463         when using automake's parallel-tests mode.
20464         * tests/init.sh (stderr_fileno_): Define overridable variable.
20465         (warn_): New function, to use it.
20466         (fail_, skip_, framework_failure_): Use warn_.
20467
20468 2010-04-04  Bruno Haible  <bruno@clisp.org>
20469
20470         btowc: Avoid warning.
20471         * lib/btowc.c: Include <stdlib.h>.
20472         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
20473
20474 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20475             Bruno Haible  <bruno@clisp.org>
20476
20477         wchar: Port to NetBSD 1.5.
20478         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
20479         * lib/wctype.in.h (WEOF): Likewise.
20480
20481 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20482             Bruno Haible  <bruno@clisp.org>
20483
20484         Port extended stdio to NetBSD 1.5.
20485         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
20486         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
20487         older.
20488
20489 2010-04-04  Bruno Haible  <bruno@clisp.org>
20490
20491         string: Remove unused substitution.
20492         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
20493         HAVE_DECL_STRERROR.
20494         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
20495
20496 2010-04-04  Bruno Haible  <bruno@clisp.org>
20497
20498         strtod: Avoid a possible C++ test error.
20499         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
20500         set REPLACE_STRTOD.
20501
20502 2010-04-04  Bruno Haible  <bruno@clisp.org>
20503
20504         strerror: Update documentation.
20505         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
20506
20507 2010-04-04  Bruno Haible  <bruno@clisp.org>
20508
20509         stdio: Fix some C++ test errors on Solaris 8 with GCC.
20510         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
20511         _GL_CXXALIAS_SYS_CAST.
20512
20513 2010-04-04  Bruno Haible  <bruno@clisp.org>
20514
20515         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20516         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
20517         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
20518         REPLACE_FREXPL to 1.
20519         * doc/posix-functions/frexpl.texi: Update documentation.
20520
20521 2010-04-04  Bruno Haible  <bruno@clisp.org>
20522
20523         math: Fix some C++ test errors on Solaris 8 and Cygwin.
20524         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
20525
20526 2010-04-04  Bruno Haible  <bruno@clisp.org>
20527
20528         Implement nanosleep for native Windows.
20529         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
20530
20531 2010-04-04  Bruno Haible  <bruno@clisp.org>
20532
20533         math: Fix some C++ test errors on Solaris 8.
20534         * lib/math.in.h (truncf, trunc): Use simpler idiom.
20535
20536 2010-04-04  Bruno Haible  <bruno@clisp.org>
20537
20538         math: Fix some C++ test errors on Cygwin.
20539         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
20540         truncl): Provide declaration if the system does not have it.
20541         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
20542         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
20543         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
20544         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
20545         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
20546         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
20547         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
20548         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
20549         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
20550         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
20551         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
20552         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
20553         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
20554         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
20555         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
20556         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
20557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
20558         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20559         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20560         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
20561         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20562         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20563
20564 2010-04-04  Bruno Haible  <bruno@clisp.org>
20565
20566         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
20567         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
20568         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
20569         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20570         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20571         * m4/isinf.m4 (gl_ISINF): Likewise.
20572         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20573
20574 2010-04-04  Bruno Haible  <bruno@clisp.org>
20575
20576         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
20577         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20578
20579 2010-04-04  Bruno Haible  <bruno@clisp.org>
20580
20581         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
20582         * modules/tmpfile (configure.ac): Update.
20583
20584         tmpfile: Fix C++ test error on mingw.
20585         * lib/stdio.in.h (tmpfile): New declaration.
20586         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
20587         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
20588         * modules/tmpfile (Depends-on): Add stdio.
20589         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
20590         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
20591         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
20592         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
20593         REPLACE_TMPFILE.
20594         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
20595
20596 2010-04-04  Bruno Haible  <bruno@clisp.org>
20597
20598         ioctl: Fix C++ test error on mingw.
20599         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
20600         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
20601         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
20602
20603 2010-04-03  Bruno Haible  <bruno@clisp.org>
20604
20605         wcwidth: Fix C++ test error on mingw.
20606         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
20607         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
20608         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
20609
20610 2010-04-03  Bruno Haible  <bruno@clisp.org>
20611
20612         nanosleep: Fix C++ test error on mingw.
20613         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
20614         * lib/time.in.h (nanosleep): Use modern idiom.
20615         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
20616         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
20617         REPLACE_NANOSLEEP to 1.
20618         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
20619         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
20620
20621 2010-04-03  Bruno Haible  <bruno@clisp.org>
20622
20623         strptime: Fix C++ test error on mingw.
20624         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
20625         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
20626         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
20627         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
20628         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
20629         not REPLACE_STRPTIME.
20630         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
20631         REPLACE_STRPTIME.
20632
20633 2010-04-03  Bruno Haible  <bruno@clisp.org>
20634
20635         timegm: Fix C++ test error on mingw.
20636         * lib/time.in.h (timegm): Use modern idiom.
20637         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
20638         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
20639         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
20640         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
20641
20642 2010-04-03  Bruno Haible  <bruno@clisp.org>
20643
20644         timegm: Assume declaration if function exists.
20645         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
20646         if it exists. Don't clobber ac_cv_func_timegm.
20647
20648 2010-04-03  Bruno Haible  <bruno@clisp.org>
20649
20650         time_r: Fix C++ test error on mingw.
20651         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
20652         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
20653         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
20654         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
20655         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
20656
20657 2010-04-03  Bruno Haible  <bruno@clisp.org>
20658
20659         time_r: Minor updates.
20660         * modules/time_r (Description): Mention the provided functions.
20661         * lib/time_r.c: Don't include <string.h>.
20662         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
20663         * doc/posix-functions/localtime_r.texi: Likewise.
20664
20665 2010-04-03  Bruno Haible  <bruno@clisp.org>
20666
20667         time: Fix regression introduced on 2010-03-08.
20668         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
20669         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
20670
20671 2010-04-03  Jim Meyering  <meyering@redhat.com>
20672
20673         maint.mk: don't silently disable project-specific syntax-check rules
20674         * top/maint.mk (_prohibit_regexp): Define, to help people realize
20675         that they need to convert their project-specific syntax-check rules
20676         to use the new _sc_search_regexp.
20677
20678 2010-04-03  Bruno Haible  <bruno@clisp.org>
20679
20680         fchdir: Fix regression introduced on 2010-03-08.
20681         * lib/unistd.in.h (fchdir): Fix declaration.
20682         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
20683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
20684         REPLACE_FCHDIR.
20685         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
20686         REPLACE_FCHDIR.
20687
20688 2010-04-03  Bruno Haible  <bruno@clisp.org>
20689
20690         getpagesize: Fix C++ test error on mingw.
20691         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
20692         system does not declare the function.
20693         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
20694         declared.
20695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20696         HAVE_DECL_GETPAGESIZE.
20697         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
20698
20699 2010-04-03  Bruno Haible  <bruno@clisp.org>
20700
20701         stdio: Make C++ tests work on mingw.
20702         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
20703         does not declare the function.
20704
20705 2010-04-03  Bruno Haible  <bruno@clisp.org>
20706
20707         ftello: Fix C++ test error on mingw.
20708         * lib/stdio.in.h (ftello): Use modern idiom.
20709         * lib/ftello.c (ftello): Renamed from rpl_ftello.
20710         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
20711         is missing and that it needs to be replaced.
20712         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
20713         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
20714         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
20715
20716 2010-04-03  Bruno Haible  <bruno@clisp.org>
20717
20718         fseeko: Fix C++ test error on mingw.
20719         * lib/stdio.in.h (fseeko): Use modern idiom.
20720         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
20721         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
20722         is missing and that it needs to be replaced.
20723         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
20724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
20725         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
20726
20727 2010-04-03  Bruno Haible  <bruno@clisp.org>
20728
20729         mkstemp: Fix C++ test error on mingw.
20730         * lib/stdlib.in.h (mkstemp): Use modern idiom.
20731         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
20732         function is missing and that it needs to be replaced.
20733         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
20734         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
20735
20736 2010-04-03  Bruno Haible  <bruno@clisp.org>
20737
20738         stpncpy: Fix C++ test error on mingw.
20739         * lib/string.in.h (stpncpy): Use modern idiom.
20740         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
20741         function is missing and that it needs to be replaced.
20742         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20743         REPLACE_STPNCPY.
20744         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
20745
20746 2010-04-03  Bruno Haible  <bruno@clisp.org>
20747
20748         sys_stat: Fix C++ test error on mingw.
20749         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
20750         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
20751
20752 2010-04-03  Bruno Haible  <bruno@clisp.org>
20753
20754         pty: Update doc.
20755         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
20756
20757 2010-04-03  Bruno Haible  <bruno@clisp.org>
20758
20759         unistd: Fix C++ test error on mingw.
20760         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
20761
20762 2010-04-03  Bruno Haible  <bruno@clisp.org>
20763
20764         Update doc regarding mingw.
20765         * doc/glibc-functions/openpty.texi: Update regarding mingw.
20766         * doc/glibc-functions/login_tty.texi: Likewise.
20767         * doc/glibc-functions/forkpty.texi: Likewise.
20768
20769 2010-04-03  Bruno Haible  <bruno@clisp.org>
20770
20771         stdlib: Avoid compilation failure of c-strtold on mingw.
20772         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
20773
20774 2010-04-03  Bruno Haible  <bruno@clisp.org>
20775
20776         locale: Make C++ tests work on Cygwin and mingw.
20777         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
20778         cannot provide the function.
20779         Reported by Simon Josefsson.
20780
20781 2010-04-03  Bruno Haible  <bruno@clisp.org>
20782
20783         localename: Port to MacOS X 10.6.
20784         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
20785         memory layout of the locales in MacOS X 10.6 as well.
20786         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
20787
20788 2010-04-02  Bruno Haible  <bruno@clisp.org>
20789
20790         gnulib-tool: Ensure that long-running tests are executed last.
20791         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
20792         running tests after the one for the other tests.
20793
20794 2010-04-02  Bruno Haible  <bruno@clisp.org>
20795
20796         gnulib-tool: Ensure the tests in the main directory are executed first.
20797         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
20798         start with the current directory.
20799
20800 2010-04-02  Bruno Haible  <bruno@clisp.org>
20801
20802         Tests for module 'havelib', moved here from GNU gettext.
20803         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
20804         modifications.
20805         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
20806         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
20807         with modifications.
20808         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
20809         modifications.
20810         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
20811         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
20812         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
20813         with modifications.
20814         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
20815         with modifications.
20816         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
20817         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
20818         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
20819         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
20820         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
20821         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
20822         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
20823         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
20824         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
20825         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
20826         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
20827         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
20828         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
20829         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
20830         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
20831         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
20832         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
20833         with modifications.
20834         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
20835         with modifications.
20836         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
20837         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
20838         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
20839         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
20840         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
20841         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
20842         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
20843         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
20844         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
20845         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
20846         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
20847         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
20848         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
20849         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
20850         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
20851         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
20852         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
20853         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
20854         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
20855         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
20856         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
20857         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
20858         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
20859         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
20860         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
20861         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
20862         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
20863         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
20864         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
20865         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
20866         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
20867         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
20868         * tests/havelib/rpathx/rpathx.c: New file, from
20869         gettext/autoconf-lib-link.
20870         * tests/havelib/rpathx/Makefile.am: New file, from
20871         gettext/autoconf-lib-link.
20872         * tests/havelib/rpathx/configure.ac: New file, from
20873         gettext/autoconf-lib-link with modifications.
20874         * tests/havelib/rpathy/rpathy.c: New file, from
20875         gettext/autoconf-lib-link.
20876         * tests/havelib/rpathy/Makefile.am: New file, from
20877         gettext/autoconf-lib-link.
20878         * tests/havelib/rpathy/configure.ac: New file, from
20879         gettext/autoconf-lib-link with modifications.
20880         * tests/havelib/rpathz/rpathz.c: New file, from
20881         gettext/autoconf-lib-link.
20882         * tests/havelib/rpathz/Makefile.am: New file, from
20883         gettext/autoconf-lib-link.
20884         * tests/havelib/rpathz/configure.ac: New file, from
20885         gettext/autoconf-lib-link with modifications.
20886         * tests/havelib/rpathlx/usex.c: New file, from
20887         gettext/autoconf-lib-link.
20888         * tests/havelib/rpathlx/Makefile.am: New file, from
20889         gettext/autoconf-lib-link.
20890         * tests/havelib/rpathlx/configure.ac: New file, from
20891         gettext/autoconf-lib-link with modifications.
20892         * tests/havelib/rpathly/usey.c: New file, from
20893         gettext/autoconf-lib-link.
20894         * tests/havelib/rpathly/Makefile.am: New file, from
20895         gettext/autoconf-lib-link.
20896         * tests/havelib/rpathly/configure.ac: New file, from
20897         gettext/autoconf-lib-link with modifications.
20898         * tests/havelib/rpathlz/usez.c: New file, from
20899         gettext/autoconf-lib-link.
20900         * tests/havelib/rpathlz/Makefile.am: New file, from
20901         gettext/autoconf-lib-link.
20902         * tests/havelib/rpathlz/configure.ac: New file, from
20903         gettext/autoconf-lib-link with modifications.
20904         * tests/havelib/rpathlyx/usey.c: New file, from
20905         gettext/autoconf-lib-link.
20906         * tests/havelib/rpathlyx/Makefile.am: New file, from
20907         gettext/autoconf-lib-link.
20908         * tests/havelib/rpathlyx/configure.ac: New file, from
20909         gettext/autoconf-lib-link with modifications.
20910         * tests/havelib/rpathlzyx/usez.c: New file, from
20911         gettext/autoconf-lib-link.
20912         * tests/havelib/rpathlzyx/Makefile.am: New file, from
20913         gettext/autoconf-lib-link.
20914         * tests/havelib/rpathlzyx/configure.ac: New file, from
20915         gettext/autoconf-lib-link with modifications.
20916         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
20917         with modifications.
20918
20919 2010-04-02  Bruno Haible  <bruno@clisp.org>
20920
20921         gnulib-tool: Create distributed built sources also for the tests.
20922         * gnulib-tool (func_create_testdir): Also generate distributed built
20923         sources in the tests directory.
20924
20925 2010-04-02  Bruno Haible  <bruno@clisp.org>
20926
20927         gnulib-tool: Obey user's environment variables.
20928         * gnulib-tool (func_create_testdir): When creating built sources,
20929         respect the environment variables for autoconf, automake, etc. given by
20930         the user.
20931
20932 2010-04-02  Bruno Haible  <bruno@clisp.org>
20933
20934         gnulib-tool: Provide the value of --m4-base to modules.
20935         * gnulib-tool (func_import, func_create_testdir): Emit a definition
20936         of gl_m4_base.
20937
20938 2010-04-02  Eric Blake  <eblake@redhat.com>
20939
20940         maint.mk: fix some fallout
20941         * NEWS: Document the incompatible change, and its effect on cfg.mk.
20942         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
20943
20944 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
20945
20946         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
20947         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
20948         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
20949         (sc_cast_of_x_alloc_return_value): Likewise.
20950         (sc_cast_of_alloca_return_value): Likewise.
20951         (sc_space_tab): Likewise.
20952         (sc_prohibit_atoi_atof): Likewise.
20953         (sc_prohibit_magic_number_exit): Likewise.
20954         (sc_error_exit_success): Likewise.
20955         (sc_file_system): Likewise.
20956         (sc_prohibit_have_config_h): Likewise.
20957         (sc_require_config_h): Likewise.
20958         (sc_prohibit_HAVE_MBRTOWC): Likewise.
20959         (sc_obsolete_symbols): Likewise.
20960         (sc_changelog): Likewise.
20961         (sc_program_name): Likewise.
20962         (sc_the_the): Likewise.
20963         (sc_trailing_blank): Likewise.
20964         (sc_two_space_separator_in_usage): Likewise.
20965         (sc_useless_cpp_parens): Likewise.
20966         (sc_GPL_version): Likewise.
20967         (sc_GFDL_version): Likewise.
20968         (sc_texinfo_acronym): Likewise.
20969         (sc_prohibit_cvs_keyword): Likewise.
20970         (sc_prohibit_stat_st_blocks): Likewise.
20971         (sc_prohibit_S_IS_definition): Likewise.
20972         (sc_redundant_const): Likewise.
20973         (sc_makefile_TAB_only_indentation): Likewise.
20974         (sc_m4_quote_check): Likewise.
20975         (sc_makefile_path_separator_check): Likewise.
20976         (sc_copyright_check): Likewise.
20977         (sc_Wundef_boolean): Likewise.
20978         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20979
20980         maint.mk: match 0 or more whitespace-before-function-call '('
20981         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
20982         that have zero or two-and-more spaces between the function name
20983         and the open parenthesis.
20984         (sc_error_message_warn_fatal): Likewise.
20985         (sc_error_message_uppercase): Likewise.
20986         (sc_error_message_period): Likewise.
20987
20988 2010-03-31  Eric Blake  <eblake@redhat.com>
20989
20990         maint.mk: check for [ as well as test
20991         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
20992         Based on a libvirt report by Matthias Bolte.
20993
20994         gnumakefile: don't squelch _version output
20995         * top/GNUmakefile (_version): Create one-shot dependency rather
20996         than using $(shell) when version must be regenerated.
20997         (_autoreconf): Run verbosely, by default.
20998
20999         sys_time: avoid compiler warnings
21000         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21001         unconditional, fixing regression from 2010-03-29.
21002         Reported by Simon Josefsson.
21003
21004 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21005
21006         maint.mk: s/_header_without_use/_sc_header_without_use/
21007         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21008         (sc_prohibit_assert_without_use): Use the new name.
21009         (sc_prohibit_close_stream_without_use): Likewise.
21010         (sc_prohibit_getopt_without_use): Likewise.
21011         (sc_prohibit_quotearg_without_use): Likewise.
21012         (sc_prohibit_quote_without_use): Likewise.
21013         (sc_prohibit_long_options_without_use): Likewise.
21014         (sc_prohibit_inttostr_without_use): Likewise.
21015         (sc_prohibit_ignore_value_without_use): Likewise.
21016         (sc_prohibit_error_without_use): Likewise.
21017         (sc_prohibit_xalloc_without_use): Likewise.
21018         (sc_prohibit_hash_without_use): Likewise.
21019         (sc_prohibit_hash_pjw_without_use): Likewise.
21020         (sc_prohibit_safe_read_without_use): Likewise.
21021         (sc_prohibit_argmatch_without_use): Likewise.
21022         (sc_prohibit_canonicalize_without_use): Likewise.
21023         (sc_prohibit_root_dev_ino_without_use): Likewise.
21024         (sc_prohibit_openat_without_use): Likewise.
21025         (sc_prohibit_c_ctype_without_use): Likewise.
21026         (sc_prohibit_signal_without_use): Likewise.
21027         (sc_prohibit_intprops_without_use): Likewise.
21028
21029 2010-03-30  Eric Blake  <eblake@redhat.com>
21030
21031         maint: improve module indicators
21032         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21033         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21034         columns, and avoid extra macro expansion.
21035
21036         fdopendir: work around FreeBSD bug
21037         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21038         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21039         * modules/dirent (Makefile.am): Substitute it.
21040         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21041         declaration.
21042         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21043         fix.
21044         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21045
21046 2010-03-29  Bruno Haible  <bruno@clisp.org>
21047
21048         Emit #pragma system_header after the inclusion guard, not before.
21049         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21050         guard that spans the entire file, not before. This enables an
21051         optimization in GCC's preprocessor.
21052         * lib/ctype.in.h: Likewise.
21053         * lib/dirent.in.h: Likewise.
21054         * lib/errno.in.h: Likewise.
21055         * lib/float.in.h: Likewise.
21056         * lib/getopt.in.h: Likewise.
21057         * lib/iconv.in.h: Likewise.
21058         * lib/langinfo.in.h: Likewise.
21059         * lib/locale.in.h: Likewise.
21060         * lib/math.in.h: Likewise.
21061         * lib/netdb.in.h: Likewise.
21062         * lib/netinet_in.in.h: Likewise.
21063         * lib/pty.in.h: Likewise.
21064         * lib/sched.in.h: Likewise.
21065         * lib/se-selinux.in.h: Likewise.
21066         * lib/search.in.h: Likewise.
21067         * lib/spawn.in.h: Likewise.
21068         * lib/stdarg.in.h: Likewise.
21069         * lib/stdint.in.h: Likewise.
21070         * lib/string.in.h: Likewise.
21071         * lib/strings.in.h: Likewise.
21072         * lib/sys_file.in.h: Likewise.
21073         * lib/sys_ioctl.in.h: Likewise.
21074         * lib/sys_time.in.h: Likewise.
21075         * lib/sys_times.in.h: Likewise.
21076         * lib/sys_utsname.in.h: Likewise.
21077         * lib/sys_wait.in.h: Likewise.
21078         * lib/sysexits.in.h: Likewise.
21079         * lib/wctype.in.h: Likewise.
21080
21081 2010-03-28  James Youngman  <jay@gnu.org>
21082
21083         save-cwd: don't leak a file descriptor when the caller execs.
21084         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21085         saved file descriptor.
21086         * modules/save-cwd (Depends-on): Depend on cloexec.
21087
21088 2010-03-29  Bruno Haible  <bruno@clisp.org>
21089
21090         Remove vestiges of fts-lgpl module.
21091         * lib/fts_.h: Assume GNULIB_FTS is 1.
21092         * lib/fts.c: Likewise.
21093         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21094
21095 2010-03-28  Bruno Haible  <bruno@clisp.org>
21096
21097         Fix definition of tests witness macro.
21098         * gnulib-tool (func_import): Fix definition of witness macro.
21099
21100 2010-03-28  Bruno Haible  <bruno@clisp.org>
21101
21102         Fix ioctl's protoype on glibc systems.
21103         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21104         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21105         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21106         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21107         signature. If not, arrange to replace the ioctl function.
21108         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21109         REPLACE_IOCTL.
21110         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21111         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21112         Reported by Ludovic Courtès <ludo@gnu.org>.
21113
21114 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21115
21116         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21117         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21118         made it so grep -r --include=GLOB* ... did not work.
21119
21120 2010-03-26  Jim Meyering  <meyering@redhat.com>
21121             Eric Blake  <eblake@redhat.com>
21122
21123         maint.mk: prohibit use of test's -o and -a operators
21124         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21125
21126 2010-03-28  Bruno Haible  <bruno@clisp.org>
21127
21128         Remove unused GNULIB_XYZ macro definitions.
21129         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21130         invocation.
21131
21132 2010-03-28  Bruno Haible  <bruno@clisp.org>
21133
21134         Mark privileged tests modules.
21135         * modules/idpriv-drop-tests (Status): New section.
21136         * modules/idpriv-droptemp-tests (Status): New section.
21137
21138 2010-03-28  Bruno Haible  <bruno@clisp.org>
21139
21140         Split C++ tests into separate tests modules.
21141         * modules/dirent-c++-tests: New file, extracted from
21142         modules/dirent-tests.
21143         * modules/dirent-tests: Depend on it.
21144         * modules/fcntl-h-c++-tests: New file, extracted from
21145         modules/fcntl-h-tests.
21146         * modules/fcntl-h-tests: Depend on it.
21147         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
21148         * modules/glob-tests: Depend on it.
21149         * modules/iconv-h-c++-tests: New file, extracted from
21150         modules/iconv-h-tests.
21151         * modules/iconv-h-tests: Depend on it.
21152         * modules/langinfo-c++-tests: New file, extracted from
21153         modules/langinfo-tests.
21154         * modules/langinfo-tests: Depend on it.
21155         * modules/locale-c++-tests: New file, extracted from
21156         modules/locale-tests.
21157         * modules/locale-tests: Depend on it.
21158         * modules/math-c++-tests: New file, extracted from modules/math-tests.
21159         * modules/math-tests: Depend on it.
21160         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
21161         * modules/pty-tests: Depend on it.
21162         * modules/search-c++-tests: New file, extracted from
21163         modules/search-tests.
21164         * modules/search-tests: Depend on it.
21165         * modules/signal-c++-tests: New file, extracted from
21166         modules/signal-tests.
21167         * modules/signal-tests: Depend on it.
21168         * modules/spawn-c++-tests: New file, extracted from
21169         modules/spawn-tests.
21170         * modules/spawn-tests: Depend on it.
21171         * modules/stdio-c++-tests: New file, extracted from
21172         modules/stdio-tests.
21173         * modules/stdio-tests: Depend on it.
21174         * modules/stdlib-c++-tests: New file, extracted from
21175         modules/stdlib-tests.
21176         * modules/stdlib-tests: Depend on it.
21177         * modules/string-c++-tests: New file, extracted from
21178         modules/string-tests.
21179         * modules/string-tests: Depend on it.
21180         * modules/sys_ioctl-c++-tests: New file, extracted from
21181         modules/sys_ioctl-tests.
21182         * modules/sys_ioctl-tests: Depend on it.
21183         * modules/sys_select-c++-tests: New file, extracted from
21184         modules/sys_select-tests.
21185         * modules/sys_select-tests: Depend on it.
21186         * modules/sys_socket-c++-tests: New file, extracted from
21187         modules/sys_socket-tests.
21188         * modules/sys_socket-tests: Depend on it.
21189         * modules/sys_stat-c++-tests: New file, extracted from
21190         modules/sys_stat-tests.
21191         * modules/sys_stat-tests: Depend on it.
21192         * modules/sys_time-c++-tests: New file, extracted from
21193         modules/sys_time-tests.
21194         * modules/sys_time-tests: Depend on it.
21195         * modules/time-c++-tests: New file, extracted from modules/time-tests.
21196         * modules/time-tests: Depend on it.
21197         * modules/unistd-c++-tests: New file, extracted from
21198         modules/unistd-tests.
21199         * modules/unistd-tests: Depend on it.
21200         * modules/wchar-c++-tests: New file, extracted from
21201         modules/wchar-tests.
21202         * modules/wchar-tests: Depend on it.
21203         * modules/wctype-c++-tests: New file, extracted from
21204         modules/wctype-tests.
21205         * modules/wctype-tests: Depend on it.
21206         Reported by Simon Josefsson.
21207
21208 2010-03-28  Bruno Haible  <bruno@clisp.org>
21209
21210         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
21211         * gnulib-tool (func_exists_module): New function, extracted from
21212         func_verify_module.
21213         (func_verify_module): Use it.
21214         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
21215         'foo' only if 'foo' exists.
21216         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
21217         module.
21218
21219 2010-03-28  Bruno Haible  <bruno@clisp.org>
21220
21221         gnulib-tool: Add support for special categories of tests.
21222         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
21223         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
21224         (func_usage): Document them.
21225         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
21226         inc_unportable_tests, inc_all_tests): New variables.
21227         (func_acceptable): Consider these variables.
21228         (func_modules_transitive_closure): Make it work when the 'Status' field
21229         consists of multiple words.
21230         (func_import): Store and restore the values of inc_cxx_tests,
21231         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
21232         inc_all_tests in gnulib-comp.m4.
21233         (func_create_testdir): Set inc_all_tests to true.
21234         * doc/gnulib.texi (Extra tests modules): New section.
21235         Suggested by Jim Meyering.
21236
21237 2010-03-28  Bruno Haible  <bruno@clisp.org>
21238
21239         ansi-c++-opt: Allow turning off the C++ build by default.
21240         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
21241         gl_CXX_CHOICE_DEFAULT_NO is defined.
21242         Requested by Eric Blake.
21243
21244 2010-03-28  Bruno Haible  <bruno@clisp.org>
21245
21246         unistd: Avoid #define replacements in C++ mode.
21247         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
21248         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
21249         setsockopt, shutdown, select): In C++, attach a warning to the function
21250         if possible, rather than #defining the symbol to a dysfunctional alias.
21251         Reported by John W. Eaton <jwe@gnu.org>.
21252
21253 2010-03-28  Bruno Haible  <bruno@clisp.org>
21254
21255         Fix link errors on mingw.
21256         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21257         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
21258         $(LIBSOCKET).
21259         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
21260         $(LIBSOCKET).
21261
21262 2010-03-28  Bruno Haible  <bruno@clisp.org>
21263             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21264
21265         lib-ignore: Determine different options for different compilers.
21266         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
21267         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
21268         Add comments.
21269         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
21270         * NEWS: Mention the change.
21271
21272 2010-03-27  Bruno Haible  <bruno@clisp.org>
21273
21274         Remove unused GNULIB_XYZ macro definitions.
21275         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21276         * modules/fseek (configure.ac): Likewise.
21277         * modules/ioctl (configure.ac): Likewise.
21278         * modules/open (configure.ac): Likewise.
21279         * modules/stdlib-safer (configure.ac): Likewise.
21280
21281 2010-03-27  Bruno Haible  <bruno@clisp.org>
21282
21283         Add a remark about certain modules.
21284         * modules/malloc (Comment): New section.
21285         * modules/realloc (Comment): Likewise.
21286         * modules/sigpipe (Comment): Likewise.
21287
21288 2010-03-27  Bruno Haible  <bruno@clisp.org>
21289
21290         Resolve conflict between the two kinds of module indicators.
21291         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21292         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21293         * modules/canonicalize (configure.ac): Invoke
21294         gl_MODULE_INDICATOR_FOR_TESTS.
21295         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21296         GNULIB_XYZ.
21297         * tests/test-dirent-c++.cc: Likewise.
21298         * tests/test-dirent-safer.c: Likewise.
21299         * tests/test-dup2.c: Likewise.
21300         * tests/test-fchdir.c: Likewise.
21301         * tests/test-fcntl-h-c++.cc: Likewise.
21302         * tests/test-getopt.c: Likewise.
21303         * tests/test-getopt.h: Likewise.
21304         * tests/test-langinfo-c++.cc: Likewise.
21305         * tests/test-locale-c++.cc: Likewise.
21306         * tests/test-math-c++.cc: Likewise.
21307         * tests/test-pty-c++.cc: Likewise.
21308         * tests/test-search-c++.cc: Likewise.
21309         * tests/test-signal-c++.cc: Likewise.
21310         * tests/test-spawn-c++.cc: Likewise.
21311         * tests/test-stdio-c++.cc: Likewise.
21312         * tests/test-stdlib-c++.cc: Likewise.
21313         * tests/test-string-c++.cc: Likewise.
21314         * tests/test-sys_ioctl-c++.cc: Likewise.
21315         * tests/test-sys_select-c++.cc: Likewise.
21316         * tests/test-sys_socket-c++.cc: Likewise.
21317         * tests/test-sys_stat-c++.cc: Likewise.
21318         * tests/test-sys_time-c++.cc: Likewise.
21319         * tests/test-time-c++.cc: Likewise.
21320         * tests/test-unistd-c++.cc: Likewise.
21321         * tests/test-wchar-c++.cc: Likewise.
21322         * tests/uninorm/test-u8-nfc.c: Likewise.
21323         * tests/uninorm/test-u8-nfd.c: Likewise.
21324         * tests/uninorm/test-u8-nfkc.c: Likewise.
21325         * tests/uninorm/test-u8-nfkd.c: Likewise.
21326         * tests/uninorm/test-u16-nfc.c: Likewise.
21327         * tests/uninorm/test-u16-nfd.c: Likewise.
21328         * tests/uninorm/test-u16-nfkc.c: Likewise.
21329         * tests/uninorm/test-u16-nfkd.c: Likewise.
21330         * tests/uninorm/test-u32-nfc.c: Likewise.
21331         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21332         * tests/uninorm/test-u32-nfd.c: Likewise.
21333         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21334         * tests/uninorm/test-u32-nfkc.c: Likewise.
21335         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21336         * tests/uninorm/test-u32-nfkd.c: Likewise.
21337         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21338         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21339
21340 2010-03-27  Bruno Haible  <bruno@clisp.org>
21341
21342         Distinguish two kinds of module indicators.
21343         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
21344         gl_MODULE_INDICATOR.
21345         (gl_MODULE_INDICATOR): New macro.
21346         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21347         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
21348         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21349         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21350         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21351         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21352         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21353         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21354         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21355         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21356         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21357         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21358         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21359         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21360         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21361         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21362         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21363         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21364         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21365         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21366         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21367         * modules/cloexec (configure.ac): Likewise.
21368         * modules/getopt-gnu (configure.ac): Likewise.
21369         * modules/uninorm/u8-normalize (configure.ac): Likewise.
21370         * modules/uninorm/u16-normalize (configure.ac): Likewise.
21371         * modules/uninorm/u32-normalize (configure.ac): Likewise.
21372         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
21373
21374 2010-03-27  Bruno Haible  <bruno@clisp.org>
21375
21376         New module description field 'Comment'.
21377         * gnulib-tool: New option --extract-comment.
21378         (func_usage): Document it.
21379         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
21380         (func_get_comment): New function.
21381         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
21382
21383 2010-03-27  Bruno Haible  <bruno@clisp.org>
21384
21385         Addendum to 2010-02-07 commit.
21386         * gnulib-tool (func_usage): Document --extract-applicability option.
21387
21388 2010-03-27  Bruno Haible  <bruno@clisp.org>
21389
21390         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
21391         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
21392         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
21393         rather than link errors.
21394
21395 2010-03-27  Bruno Haible  <bruno@clisp.org>
21396
21397         Avoid side effects from tests-related modules on the compilation of lib.
21398         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
21399         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
21400         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
21401         parameter. Emit into AM_CPPFLAGS a definition of the designated C
21402         macro.
21403         (func_import): Define a witness macro. Assign it a value that depends
21404         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
21405         tests-related modules.
21406         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
21407         Reported by Jim Meyering.
21408
21409 2010-03-27  Bruno Haible  <bruno@clisp.org>
21410
21411         Factorize common .m4 code.
21412         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
21413         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
21414         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
21415         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
21416         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21417         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
21418         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
21419         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21420         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21421         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21422         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
21423         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21424         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21425         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21426         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21427         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
21428         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21429         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21430         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21431         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
21432         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
21433         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21434         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21435         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21436         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21437         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21438         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
21439         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
21440         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
21441         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21442         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21443         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21444
21445 2010-03-27  Bruno Haible  <bruno@clisp.org>
21446
21447         Fix a compilation error on Cygwin with g++ >= 4.3.
21448         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
21449         if it is undefined or if we alias it to chmod.
21450         (lstat): Don't warn about the use of this function if it is undefined
21451         or if we alias it to stat.
21452         Reported by Simon Josefsson.
21453
21454 2010-03-27  Bruno Haible  <bruno@clisp.org>
21455
21456         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
21457         * modules/getlogin (configure.ac): Update.
21458
21459         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
21460         * modules/getlogin_r (configure.ac): Update.
21461
21462         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
21463         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
21464         * modules/inet_ntop (configure.ac): Update.
21465
21466         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
21467         * modules/inet_pton (configure.ac): Update.
21468
21469         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
21470         * modules/mbslen (configure.ac): Update.
21471
21472         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
21473         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
21474         * modules/forkpty (configure.ac): Update.
21475         * modules/openpty (configure.ac): Update.
21476
21477 2010-03-26  Simon Josefsson  <simon@josefsson.org>
21478
21479         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
21480         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
21481
21482 2010-03-25  Eric Blake  <eblake@redhat.com>
21483
21484         maint: use pragma consistently across replacement headers
21485         * lib/ctype.in.h (system_header): Hoist for consistent placement.
21486         * lib/dirent.in.h (system_header): Likewise.
21487         * lib/errno.in.h (system_header): Likewise.
21488         * lib/float.in.h (system_header): Likewise.
21489         * lib/getopt.in.h (system_header): Likewise.
21490         * lib/iconv.in.h (system_header): Likewise.
21491         * lib/inttypes.in.h (system_header): Likewise.
21492         * lib/langinfo.in.h (system_header): Likewise.
21493         * lib/locale.in.h (system_header): Likewise.
21494         * lib/math.in.h (system_header): Likewise.
21495         * lib/netdb.in.h (system_header): Likewise.
21496         * lib/netinet_in.in.h (system_header): Likewise.
21497         * lib/pty.in.h (system_header): Likewise.
21498         * lib/sched.in.h (system_header): Likewise.
21499         * lib/se-selinux.in.h (system_header): Likewise.
21500         * lib/search.in.h (system_header): Likewise.
21501         * lib/spawn.in.h (system_header): Likewise.
21502         * lib/stdarg.in.h (system_header): Likewise.
21503         * lib/stdint.in.h (system_header): Likewise.
21504         * lib/string.in.h (system_header): Likewise.
21505         * lib/strings.in.h (system_header): Likewise.
21506         * lib/sys_file.in.h (system_header): Likewise.
21507         * lib/sys_ioctl.in.h (system_header): Likewise.
21508         * lib/sys_socket.in.h (system_header): Likewise.
21509         * lib/sys_times.in.h (system_header): Likewise.
21510         * lib/sys_utsname.in.h (system_header): Likewise.
21511         * lib/sys_wait.in.h (system_header): Likewise.
21512         * lib/sysexits.in.h (system_header): Likewise.
21513         * lib/unistd.in.h (system_header): Likewise.
21514         * lib/wctype.in.h (system_header): Likewise.
21515
21516         arpa/inet: fix mingw compilation warning
21517         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
21518         Reported by Matthew Bolte.
21519
21520 2010-03-25  Bruno Haible  <bruno@clisp.org>
21521
21522         Avoid collision between gnulib wrapper and libintl wrapper.
21523         * lib/printf.c (printf): Don't define if a printf wrapper is already
21524         defined in intl/printf.c.
21525         Reported by Michel Boaventura <michel@michelboaventura.com>.
21526
21527 2010-03-25  Bruno Haible  <bruno@clisp.org>
21528
21529         Use ANSI C.
21530         * lib/readutmp.h (getutent): Provide ANSI C prototype.
21531
21532 2010-03-25  Bruno Haible  <bruno@clisp.org>
21533
21534         Minor formatting changes.
21535         * lib/acosl.c: Insert space before function argument list.
21536         * lib/argz.c: Likewise.
21537         * lib/asinl.c: Likewise.
21538         * lib/expl.c: Likewise.
21539         * lib/gen-uni-tables.c: Likewise.
21540         * lib/gettext.h: Likewise.
21541         * lib/glthread/lock.h: Likewise.
21542         * lib/tanl.c: Likewise.
21543         * lib/uniname/uniname.c: Likewise.
21544         * tests/test-idpriv-drop.c: Likewise.
21545         * tests/test-idpriv-droptemp.c: Likewise.
21546         * tests/test-lock.c: Likewise.
21547         * tests/test-tls.c: Likewise.
21548         * lib/argp-help.c: Insert space before function-like macro argument
21549         list.
21550         * lib/memcmp.c: Likewise.
21551         * tests/test-base64.c: Likewise.
21552         * lib/localename.c: Insert space before sizeof's argument list.
21553         * lib/safe-alloc.h: Likewise.
21554         * lib/file-set.h: Insert space before macro argument list.
21555         * tests/test-argp.c: Likewise.
21556         * lib/argp-namefrob.h: Insert space before function parameter list.
21557         * lib/getaddrinfo.c: Likewise.
21558         * lib/netdb.in.h: Likewise.
21559         * lib/parse-duration.h: Likewise.
21560         * lib/parse-duration.c: Likewise.
21561         * lib/poll.c: Likewise.
21562         * lib/select.c: Likewise.
21563         * lib/trim.h: Likewise.
21564         * tests/test-usleep.c: Likewise.
21565         * lib/ldexpl.c: Insert space before function parameter list and before
21566         function argument list.
21567         * lib/logl.c: Likewise.
21568         * lib/sqrtl.c: Likewise.
21569         * lib/trim.c: Likewise.
21570         * lib/cosl.c: Use GNU style indentation. Insert space before function
21571         argument list.
21572         * lib/sinl.c: Likewise.
21573         * lib/tsearch.c: Insert space after 'for'.
21574         Reported by Jim Meyering.
21575
21576 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
21577
21578         * maint.mk (sc_Wundef_boolean): Check for the presence of the
21579         config header before grepping, as it's not present before
21580         autoreconf/configure are run.  Reported by Simon Josefsson.
21581
21582 2010-03-23  Bruno Haible  <bruno@clisp.org>
21583
21584         pt_chown: Make it work with automake < 1.11.
21585         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
21586         Reported by Simon Josefsson.
21587
21588 2010-03-23  Bruno Haible  <bruno@clisp.org>
21589
21590         pt_chown: Don't depend on GPLed modules.
21591         * lib/pt_chown.c: Don't include idpriv.h.
21592         (main): Don't drop privileges.
21593         * modules/pt_chown (Depends-on): Remove idpriv-drop.
21594         Reported by Simon Josefsson.
21595
21596 2010-03-24  Simon Josefsson  <simon@josefsson.org>
21597
21598         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
21599         suggestions from karl@freefriends.org (Karl Berry).
21600
21601 2010-03-22  Eric Blake  <eblake@redhat.com>
21602
21603         gethostname: further tweaks
21604         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
21605         are overriding gethostname.
21606         Suggested by Bruno Haible.
21607
21608 2010-03-21  Bruno Haible  <bruno@clisp.org>
21609
21610         Fix comments.
21611         * lib/forkpty.c (rpl_forkpty): Fix comment.
21612         * lib/openpty.c (rpl_openpty): Likewise.
21613         Reported by Eric Blake.
21614
21615 2010-03-22  Eric Blake  <eblake@redhat.com>
21616
21617         gethostname: fix build on mingw
21618         * lib/unistd.in.h (includes): Work around fact that mingw
21619         <winsock2.h> re-includes <unistd.h>, by avoiding any
21620         redeclarations if we are being included by <winsock2.h>.
21621         Reported by Matthias Bolte.
21622
21623 2010-03-21  Bruno Haible  <bruno@clisp.org>
21624
21625         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21626         * lib/forkpty.c (forkpty): New replacement function, from glibc with
21627         modifications.
21628         * lib/pty.in.h (forkpty): Update declaration. Add comments.
21629         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
21630         provide the replacement.
21631         * modules/forkpty (Depends-on): Add openpty, login_tty.
21632         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
21633         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
21634         * doc/glibc-functions/forkpty.texi: More supported platforms.
21635         * config/srclist.txt: Add forkpty.c (commented).
21636
21637 2010-03-21  Bruno Haible  <bruno@clisp.org>
21638
21639         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
21640         (Makefile.am): Verify that PTY_LIB is defined.
21641
21642         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
21643
21644 2010-03-21  Bruno Haible  <bruno@clisp.org>
21645
21646         Tests for module 'login_tty'.
21647         * modules/login_tty-tests: New file.
21648         * tests/test-login_tty.c: New file.
21649
21650         New module 'login_tty'.
21651         * lib/login_tty.c: New file.
21652         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
21653         * modules/login_tty: New file.
21654         * doc/glibc-functions/login_tty.texi: Mention the new module.
21655
21656 2010-03-21  Bruno Haible  <bruno@clisp.org>
21657
21658         login_tty: Documentation.
21659         * doc/glibc-functions/login_tty.texi: New file.
21660         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
21661
21662 2010-03-21  Bruno Haible  <bruno@clisp.org>
21663
21664         pty: Consistent macro naming.
21665         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
21666         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
21667         * modules/pty (configure.ac): Update.
21668
21669 2010-03-21  Bruno Haible  <bruno@clisp.org>
21670
21671         Tests for openpty: Make stricter.
21672         * tests/test-openpty.c (main): Add test of canonical processing and
21673         erase.
21674         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
21675
21676         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21677         * lib/openpty.c (openpty): New replacement function.
21678         * lib/pty.in.h: Include <termios.h>.
21679         (openpty): Update declaration. Add comments.
21680         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
21681         is not declared, arrange to provide the replacement. Check for _getpty
21682         and posix_openpt.
21683         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
21684         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
21685         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
21686         * modules/pty-tests (test_pty_c___LDADD): New variable.
21687         * doc/glibc-functions/openpty.texi: More supported platforms.
21688
21689 2010-03-21  Bruno Haible  <bruno@clisp.org>
21690
21691         setenv: Tweaks.
21692         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
21693         the test program.
21694         * doc/posix-functions/setenv.texi: Update platforms list.
21695
21696 2010-03-21  Bruno Haible  <bruno@clisp.org>
21697
21698         New module 'unlockpt'.
21699         * lib/unlockpt.c: New file, from glibc with modifications.
21700         * m4/unlockpt.m4: New file.
21701         * modules/unlockpt: New file.
21702         * lib/stdlib.in.h (unlockpt): New declaration.
21703         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
21704         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
21705         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
21706         HAVE_UNLOCKPT.
21707         * doc/posix-functions/unlockpt.texi: Mention the new module.
21708         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
21709         * config/srclist.txt: Add unlockpt.c (commented).
21710
21711 2010-03-21  Jim Meyering  <meyering@redhat.com>
21712
21713         maint.mk: prohibit inclusion of "intprops.h" without use
21714         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
21715
21716 2010-03-21  Bruno Haible  <bruno@clisp.org>
21717
21718         New module 'grantpt'.
21719         * lib/grantpt.c: New file, from glibc with modifications.
21720         * m4/grantpt.m4: New file.
21721         * modules/grantpt: New file.
21722         * lib/stdlib.in.h (grantpt): New declaration.
21723         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
21724         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
21725         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
21726         HAVE_GRANTPT.
21727         * doc/posix-functions/grantpt.texi: Mention the new module.
21728         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
21729         * config/srclist.txt: Add grantpt.c (commented).
21730
21731 2010-03-21  Bruno Haible  <bruno@clisp.org>
21732
21733         New module 'pt_chown'.
21734         * lib/pt_chown.c: New file, from glibc with modifications.
21735         * lib/pty-private.h: New file, from glibc with modifications.
21736         * modules/pt_chown: New file.
21737         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
21738
21739 2010-03-21  Bruno Haible  <bruno@clisp.org>
21740
21741         Tests for module 'ptsname'.
21742         * modules/ptsname-tests: New file.
21743         * tests/test-ptsname.c: New file.
21744
21745         New module 'ptsname'.
21746         * lib/ptsname.c: New file, from glibc with modifications.
21747         * m4/ptsname.m4: New file.
21748         * modules/ptsname: New file.
21749         * lib/stdlib.in.h (ptsname): New declaration.
21750         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
21751         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
21752         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
21753         HAVE_PTSNAME.
21754         * doc/posix-functions/ptsname.texi: Mention the new module.
21755         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
21756         * config/srclist.txt: Add ptsname.c (commented).
21757
21758 2010-03-21  Bruno Haible  <bruno@clisp.org>
21759
21760         Tests for module 'ttyname_r'.
21761         * modules/ttyname_r-tests: New file.
21762         * tests/test-ttyname_r.c: New file.
21763
21764         New module 'ttyname_r'.
21765         * lib/ttyname_r.c: New file.
21766         * m4/ttyname_r.m4: New file.
21767         * modules/ttyname_r: New file.
21768         * lib/unistd.in.h (ttyname_r): New declaration.
21769         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
21770         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
21771         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
21772         HAVE_TTYNAME_R.
21773         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
21774         * doc/posix-functions/ttyname_r.texi: Mention the new module.
21775
21776 2010-03-20  Bruno Haible  <bruno@clisp.org>
21777
21778         signal: Undefine macro definitions in C++ mode.
21779         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
21780         sigfillset): Undefine macro definitions from the system header in C++
21781         mode.
21782         Reported by John W. Eaton <jwe@gnu.org>.
21783
21784 2010-03-20  Bruno Haible  <bruno@clisp.org>
21785
21786         Ensure no #include statements inside extern "C" { ... }.
21787         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
21788         contain #include statements.
21789         * lib/time.in.h: Likewise.
21790
21791 2010-03-20  Bruno Haible  <bruno@clisp.org>
21792
21793         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
21794         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
21795         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
21796         Reported by John W. Eaton <jwe@gnu.org>.
21797
21798 2010-03-20  Bruno Haible  <bruno@clisp.org>
21799
21800         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
21801         Reported by Jim Meyering.
21802
21803 2010-03-20  Bruno Haible  <bruno@clisp.org>
21804
21805         pipe: Set errno upon failure.
21806         * lib/pipe.h: Specify that when -1 is returned, errno is set.
21807         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
21808         errno value in error message.
21809
21810 2010-03-20  Bruno Haible  <bruno@clisp.org>
21811             Jim Meyering  <meyering@redhat.com>
21812
21813         lchown: Avoid "unused variable" warning.
21814         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
21815
21816 2010-03-20  Bruno Haible  <bruno@clisp.org>
21817
21818         Work around unlink() bug on MacOS X 10.5.6.
21819         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
21820         attempting to unlink a parent directory.
21821         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
21822         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
21823         activate for the replacement function.
21824         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
21825
21826 2010-03-20  Bruno Haible  <bruno@clisp.org>
21827
21828         Fix link errors on Solaris 8.
21829         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
21830         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
21831
21832 2010-03-19  Jim Meyering  <meyering@redhat.com>
21833
21834         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
21835         The _LIBC implementation of build_range_exp correctly honors the
21836         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
21837         However, the non-_LIBC implementation would ignore that syntax-bit
21838         flag and return REG_ERANGE unconditionally.
21839         This change makes it honor that flag.
21840         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
21841         Make two pointer parameters "const".
21842         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
21843         (parse_bracket_exp): Update caller.
21844
21845         regex.m4: correct the reversed range endpoint ([b-a]) test
21846         * m4/regex.m4: When requiring that [b-a] evoke failure,
21847         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
21848         test pass once again for x86-based systems.
21849
21850 2010-03-19  Bruno Haible  <bruno@clisp.org>
21851
21852         scandir: Fix link error on Solaris 8.
21853         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
21854         macros.
21855
21856 2010-03-19  Bruno Haible  <bruno@clisp.org>
21857
21858         getusershell: Fix documentation.
21859         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
21860         module.
21861         * doc/glibc-functions/setusershell.texi: Likewise.
21862
21863         getusershell: Provide declaration, missing on Solaris 9.
21864         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
21865         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
21866         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
21867         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
21868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21869         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
21870         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
21871         HAVE_GETUSERSHELL.
21872         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
21873
21874 2010-03-19  Bruno Haible  <bruno@clisp.org>
21875
21876         wctype: Provide iswblank function.
21877         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
21878         exists and is fine.
21879         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
21880         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
21881         * tests/test-wctype.c (main): Re-enable the iswblank tests.
21882         * doc/posix-functions/iswblank.texi: Update.
21883
21884 2010-03-19  Bruno Haible  <bruno@clisp.org>
21885
21886         Tests of module 'pty' in C++ mode.
21887         * modules/pty-tests: New file.
21888         * tests/test-pty-c++.cc: New file.
21889         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21890
21891 2010-03-19  Eric Blake  <eblake@redhat.com>
21892
21893         logb: fix documentation
21894         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
21895         1.5 declaration bug.
21896
21897         forkpty, openpty: prefer glibc's const-safe prototype
21898         * lib/forkpty.c (rpl_forkpty): New file.
21899         * lib/openpty.c (rpl_openpty): Likewise.
21900         * modules/forkpty (Files): Distribute it.
21901         * modules/openpty (Files): Likewise.
21902         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
21903         check...
21904         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
21905         replacement for for non-const BSD signature.
21906         * modules/pty (Makefile.am): Substitute witnesses.
21907         * lib/pty.in.h (forkpty, openpty): Declare replacements.
21908         * tests/test-forkpty.c: Update signature check.
21909         * tests/test-openpty.c: Likewise.
21910         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
21911         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21912
21913         forkpty, openpty: split functions into new modules
21914         * modules/pty (Makefile.am): Substitute new witnesses.
21915         (Libraries): Move library detection...
21916         * modules/forkpty: ...into new module.
21917         * modules/openpty: Another new module.
21918         * modules/pty-tests: Rename and split...
21919         * modules/forkpty-tests: ...to this...
21920         * modules/openpty-tests: ...and this.
21921         * tests/test-pty.c: Rename and split...
21922         * tests/test-forkpty.c: ...to this...
21923         * tests/test-openpty.c: ...and this.
21924         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
21925         (gl_PTY): Split library searching...
21926         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
21927         (gl_FORKPTY, gl_OPENPTY): New macros.
21928         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
21929         * NEWS: Mention the split.
21930         * MODULES.html.sh (Misc): Document the modules.
21931         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
21932         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21933
21934         pty: improve replacement header
21935         * lib/pty.in.h: New file.
21936         * modules/pty (Files): Ship it.
21937         (Makefile.am): Always build replacement.
21938         * m4/pty.m4: Rename...
21939         * m4/pty_h.m4: ...to this.
21940         (gl_PTY): Modernize setting of witness macros; update check of
21941         forkpty to take proper advantage of cache.
21942         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
21943
21944         getopt: avoid compiler warning
21945         * lib/getopt.c (attribute_hidden): Remove unused macro.
21946
21947 2010-03-18  Bruno Haible  <bruno@clisp.org>
21948
21949         Fix link errors on Solaris 8.
21950         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
21951         * modules/search-tests (test_search_c___LDADD): Likewise.
21952         * modules/signal-tests (test_signal_c___LDADD): Likewise.
21953         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
21954         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
21955         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
21956         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
21957         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
21958         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
21959
21960 2010-03-18  Bruno Haible  <bruno@clisp.org>
21961
21962         Fix bug introduced on 2010-03-14.
21963         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
21964         (gl_SPAWN_H): Require it.
21965         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
21966         Reported by Simon Josefsson.
21967
21968 2010-03-18  Bruno Haible  <bruno@clisp.org>
21969
21970         Fix typo introduced on 2009-12-31.
21971         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
21972         posix_spawn_file_actions_adddup2.
21973
21974 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
21975         and Eric Blake  <eblake@redhat.com>
21976
21977         test-vc-list-files-git: make more robust
21978         * tests/test-vc-list-files-git.sh: Unset problematic environment
21979         variables.  Chain commands together.
21980
21981 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
21982
21983         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
21984         `AC_CHECK_DECL' invocation.
21985
21986 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
21987
21988         * lib/inttostr.c (inttostr): Make sure the invocation of verify
21989         appears before executable statements. Suggested by Petr Sumbera
21990         <Petr.Sumbera@Sun.COM>.
21991
21992 2010-03-14  Bruno Haible  <bruno@clisp.org>
21993
21994         * tests/test-flock.c (test_exclusive): Comment out a test that causes
21995         portability problems. Instead use a simpler test.
21996         (main): Check that invalid arguments are rejected only on Linux.
21997
21998 2010-03-14  Bruno Haible  <bruno@clisp.org>
21999
22000         Fix bug introduced on 2009-12-31.
22001         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22002         gl_PREREQ_SYS_H_WINSOCK2 always.
22003         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22004         SYS_SOCKET_H variable.
22005         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22006         Update comments.
22007         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22008         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22009         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22010         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22011         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22012
22013 2010-03-14  Bruno Haible  <bruno@clisp.org>
22014
22015         Fix values returned by sinl, cosl.
22016         * lib/trigl.h: Add specification comments.
22017         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22018         that combines the values from the precomputed table with the values of
22019         the Chebyshev polynomials.
22020
22021 2010-03-14  Bruno Haible  <bruno@clisp.org>
22022
22023         Fix compilation error when modules 'posix_spawn[p]' are not used.
22024         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22025         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22026
22027 2010-03-14  Bruno Haible  <bruno@clisp.org>
22028
22029         Fix compilation error on mingw when module 'time_r' is not used.
22030         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22031         is 1.
22032         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22033         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22034         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22035         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22036
22037 2010-03-14  Bruno Haible  <bruno@clisp.org>
22038
22039         Fix compilation error with Sun C.
22040         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22041         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22042         instead of GCC specific ULONG_LONG_MAX.
22043         * lib/xstrtoll.c: Likewise.
22044         * lib/xstrtoull.c: Likewise.
22045
22046 2010-03-13  Bruno Haible  <bruno@clisp.org>
22047
22048         Allow the user to disable C++ code and tests.
22049         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22050         (gl_PROG_ANSI_CXX): Require it.
22051
22052 2010-03-13  Bruno Haible  <bruno@clisp.org>
22053
22054         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22055         cases.
22056
22057 2010-03-13  Bruno Haible  <bruno@clisp.org>
22058
22059         Test that gnulib does not break the standard C++ headers.
22060         * tests/test-locale-c++2.cc: New file.
22061         * modules/locale-tests (Files): Add it.
22062         (Makefile.am): Compile it for test-locale-c++.
22063         * tests/test-math-c++2.cc: New file.
22064         * modules/math-tests (Files): Add it.
22065         (Makefile.am): Compile it for test-math-c++.
22066         * tests/test-signal-c++2.cc: New file.
22067         * modules/signal-tests (Files): Add it.
22068         (Makefile.am): Compile it for test-signal-c++.
22069         * tests/test-stdio-c++2.cc: New file.
22070         * modules/stdio-tests (Files): Add it.
22071         (Makefile.am): Compile it for test-stdio-c++.
22072         * tests/test-stdlib-c++2.cc: New file.
22073         * modules/stdlib-tests (Files): Add it.
22074         (Makefile.am): Compile it for test-stdlib-c++.
22075         * tests/test-string-c++2.cc: New file.
22076         * modules/string-tests (Files): Add it.
22077         (Makefile.am): Compile it for test-string-c++.
22078         * tests/test-time-c++2.cc: New file.
22079         * modules/time-tests (Files): Add it.
22080         (Makefile.am): Compile it for test-time-c++.
22081         Reported by John W. Eaton <jwe@gnu.org>.
22082
22083 2010-03-13  Bruno Haible  <bruno@clisp.org>
22084
22085         * gnulib-tool (func_usage): Clarify which options are available for
22086         --create-testdir and --create-megatestdir.
22087
22088 2010-03-13  Bruno Haible  <bruno@clisp.org>
22089
22090         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22091         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22092         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22093         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22094         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22095         when appropriate.
22096         Reported by Jim Meyering.
22097
22098 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22099
22100         * gnulib-tool (func_import): Explain origin of code.
22101
22102 2010-03-12  Bruno Haible  <bruno@clisp.org>
22103
22104         Fix problem with automake's definition of CXXLINK.
22105         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22106         Reported by Simon Josefsson and Ludovic Courtès.
22107
22108 2010-03-12  Bruno Haible  <bruno@clisp.org>
22109
22110         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22111         stable releases.
22112
22113 2010-03-11  Bruno Haible  <bruno@clisp.org>
22114
22115         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22116         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22117         whether the system provides one variant or multiple variants of the
22118         function.
22119         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22120         C++ compilers.
22121         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22122         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22123         Reported by Jim Meyering.
22124
22125 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22126
22127         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22128
22129 2010-03-08  Bruno Haible  <bruno@clisp.org>
22130
22131         gnulib-tool: Add support for --libtool in --create-testdir.
22132         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22133         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22134
22135 2010-03-08  Eric Blake  <eblake@redhat.com>
22136
22137         gnulib-tool.texi: mention possibility of git submodule
22138         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22139         submodules.
22140         * doc/.gitignore: Ignore another generated file.
22141
22142 2010-03-08  Karl Berry  <karl@gnu.org>
22143
22144         * doc/gnulib-tool.texi (VCS Issues): Mention third option
22145         of committing gnulib files while skipping others.
22146
22147 2010-03-07  Bruno Haible  <bruno@clisp.org>
22148
22149         Tests of module 'wctype' in C++ mode.
22150         * tests/test-wctype-c++.cc: New file.
22151         * modules/wctype-tests (Files): Add it and tests/signature.h.
22152         (Depends-on): Add ansi-c++-opt.
22153         (Makefile.am): Arrange to compile and run test-wctype-c++.
22154
22155         Tests of module 'wchar' in C++ mode.
22156         * tests/test-wchar-c++.cc: New file.
22157         * modules/wchar-tests (Files): Add it and tests/signature.h.
22158         (Depends-on): Add ansi-c++-opt.
22159         (Makefile.am): Arrange to compile and run test-wchar-c++.
22160         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
22161         gl_MODULE_INDICATOR.
22162
22163         Tests of module 'unistd' in C++ mode.
22164         * tests/test-unistd-c++.cc: New file.
22165         * modules/unistd-tests (Files): Add it and tests/signature.h.
22166         (Depends-on): Add ansi-c++-opt.
22167         (Makefile.am): Arrange to compile and run test-unistd-c++.
22168         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
22169         gl_MODULE_INDICATOR.
22170
22171         Tests of module 'time' in C++ mode.
22172         * tests/test-time-c++.cc: New file.
22173         * modules/time-tests (Files): Add it and tests/signature.h.
22174         (Depends-on): Add ansi-c++-opt.
22175         (Makefile.am): Arrange to compile and run test-time-c++.
22176         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22177
22178         Tests of module 'sys_time' in C++ mode.
22179         * tests/test-sys_time-c++.cc: New file.
22180         * modules/sys_time-tests (Files): Add it and tests/signature.h.
22181         (Depends-on): Add ansi-c++-opt.
22182         (Makefile.am): Arrange to compile and run test-sys_time-c++.
22183         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
22184         gl_MODULE_INDICATOR.
22185
22186         Tests of module 'sys_stat' in C++ mode.
22187         * tests/test-sys_stat-c++.cc: New file.
22188         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
22189         (Depends-on): Add ansi-c++-opt.
22190         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
22191         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
22192         gl_MODULE_INDICATOR.
22193
22194         Tests of module 'sys_socket' in C++ mode.
22195         * tests/test-sys_socket-c++.cc: New file.
22196         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
22197         (Depends-on): Add ansi-c++-opt.
22198         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
22199         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
22200         gl_MODULE_INDICATOR.
22201
22202         Tests of module 'sys_select' in C++ mode.
22203         * tests/test-sys_select-c++.cc: New file.
22204         * modules/sys_select-tests (Files): Add it and tests/signature.h.
22205         (Depends-on): Add ansi-c++-opt.
22206         (Makefile.am): Arrange to compile and run test-sys_select-c++.
22207         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
22208         gl_MODULE_INDICATOR.
22209
22210         Tests of module 'sys_ioctl' in C++ mode.
22211         * tests/test-sys_ioctl-c++.cc: New file.
22212         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22213         (Depends-on): Add ansi-c++-opt.
22214         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
22215         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
22216         gl_MODULE_INDICATOR.
22217
22218         Tests of module 'string' in C++ mode.
22219         * tests/test-string-c++.cc: New file.
22220         * modules/string-tests (Files): Add it and tests/signature.h.
22221         (Depends-on): Add ansi-c++-opt.
22222         (Makefile.am): Arrange to compile and run test-string-c++.
22223         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
22224         gl_MODULE_INDICATOR.
22225
22226         Tests of module 'stdlib' in C++ mode.
22227         * tests/test-stdlib-c++.cc: New file.
22228         * modules/stdlib-tests (Files): Add it and tests/signature.h.
22229         (Depends-on): Add ansi-c++-opt.
22230         (Makefile.am): Arrange to compile and run test-stdlib-c++.
22231         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
22232         gl_MODULE_INDICATOR.
22233
22234         Tests of module 'stdio' in C++ mode.
22235         * tests/test-stdio-c++.cc: New file.
22236         * modules/stdio-tests (Files): Add it and tests/signature.h.
22237         (Depends-on): Add ansi-c++-opt.
22238         (Makefile.am): Arrange to compile and run test-stdio-c++.
22239         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
22240         gl_MODULE_INDICATOR.
22241
22242         Tests of module 'spawn' in C++ mode.
22243         * tests/test-spawn-c++.cc: New file.
22244         * modules/spawn-tests (Files): Add it and tests/signature.h.
22245         (Depends-on): Add ansi-c++-opt.
22246         (Makefile.am): Arrange to compile and run test-spawn-c++.
22247         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
22248         gl_MODULE_INDICATOR.
22249
22250         Tests of module 'signal' in C++ mode.
22251         * tests/test-signal-c++.cc: New file.
22252         * modules/signal-tests (Files): Add it and tests/signature.h.
22253         (Depends-on): Add ansi-c++-opt.
22254         (Makefile.am): Arrange to compile and run test-signal-c++.
22255         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
22256         gl_MODULE_INDICATOR.
22257
22258         Tests of module 'search' in C++ mode.
22259         * tests/test-search-c++.cc: New file.
22260         * modules/search-tests (Files): Add it and tests/signature.h.
22261         (Depends-on): Add ansi-c++-opt.
22262         (Makefile.am): Arrange to compile and run test-search-c++.
22263         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
22264         gl_MODULE_INDICATOR.
22265
22266         Tests of module 'math' in C++ mode.
22267         * tests/test-math-c++.cc: New file.
22268         * modules/math-tests (Files): Add it and tests/signature.h.
22269         (Depends-on): Add ansi-c++-opt.
22270         (Makefile.am): Arrange to compile and run test-math-c++.
22271         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22272
22273         Tests of module 'locale' in C++ mode.
22274         * tests/test-locale-c++.cc: New file.
22275         * modules/locale-tests (Files): Add it and tests/signature.h.
22276         (Depends-on): Add ansi-c++-opt.
22277         (Makefile.am): Arrange to compile and run test-locale-c++.
22278         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22279         gl_MODULE_INDICATOR.
22280
22281         Tests of module 'langinfo' in C++ mode.
22282         * tests/test-langinfo-c++.cc: New file.
22283         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22284         (Depends-on): Add ansi-c++-opt.
22285         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22286         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22287         gl_MODULE_INDICATOR.
22288
22289         Tests of module 'iconv-h' in C++ mode.
22290         * tests/test-iconv-h-c++.cc: New file.
22291         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22292         (Depends-on): Add ansi-c++-opt.
22293         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22294
22295         Tests of module 'glob' in C++ mode.
22296         * tests/test-glob-c++.cc: New file.
22297         * modules/glob-tests (Files): Add it.
22298         (Depends-on): Add ansi-c++-opt.
22299         (Makefile.am): Arrange to compile and run test-glob-c++.
22300
22301         Tests of module 'fcntl-h' in C++ mode.
22302         * tests/test-fcntl-h-c++.cc: New file.
22303         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22304         (Depends-on): Add ansi-c++-opt.
22305         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22306         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22307         gl_MODULE_INDICATOR.
22308
22309         Tests of module 'dirent' in C++ mode.
22310         * tests/test-dirent-c++.cc: New file.
22311         * modules/dirent-tests (Files): Add it and tests/signature.h.
22312         (Depends-on): Add ansi-c++-opt.
22313         (Makefile.am): Arrange to compile and run test-dirent-c++.
22314         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22315         gl_MODULE_INDICATOR.
22316
22317         New module 'ansi-c++-opt'.
22318         * modules/ansi-c++-opt: New file.
22319         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
22320
22321         Document C++ namespace mode.
22322         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
22323
22324         wctype: Avoid #define replacements in C++ mode.
22325         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
22326         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
22327         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
22328         In C++, define a namespaced alias symbol.
22329         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
22330         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
22331         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
22332         rule.
22333
22334         wchar: Avoid #define replacements in C++ mode.
22335         * lib/wchar.in.h: Include c++defs.h.
22336         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
22337         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
22338         symbol.
22339         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
22340         * modules/wchar (Depends-on): Add c++defs.
22341         (Makefile.am): Update wchar.h rule.
22342
22343         unistd: Avoid #define replacements in C++ mode.
22344         * lib/unistd.in.h: Include c++defs.h.
22345         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
22346         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
22347         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
22348         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
22349         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
22350         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
22351         symbol.
22352         (environ): Update.
22353         * modules/unistd (Depends-on): Add c++defs.
22354         (Makefile.am): Update unistd.h rule.
22355
22356         time: Avoid #define replacements in C++ mode.
22357         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
22358         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
22359         define a namespaced alias symbol.
22360         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
22361         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
22362         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
22363         * modules/time (Depends-on): Add c++defs, warn-on-use.
22364         (Makefile.am): Update time.h rule.
22365         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22366         * modules/nanosleep (configure.ac): Likewise.
22367         * modules/strptime (configure.ac): Likewise.
22368         * modules/timegm (configure.ac): Likewise.
22369
22370         sys_time: Avoid #define replacements in C++ mode.
22371         * lib/sys_time.in.h: Include c++defs.h.
22372         (gettimeofday): In C++, define a namespaced alias symbol.
22373         * modules/sys_time (Depends-on): Add c++defs.
22374         (Makefile.am): Update sys/time.h rule.
22375
22376         sys_stat: Avoid #define replacements in C++ mode.
22377         * lib/sys_stat.in.h: Include c++defs.h.
22378         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
22379         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
22380         namespaced alias symbol.
22381         In C++, define a namespaced alias symbol.
22382         * modules/sys_stat (Depends-on): Add c++defs.
22383         (Makefile.am): Update sys/stat.h rule.
22384
22385         sys_socket: Avoid #define replacements in C++ mode.
22386         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
22387         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
22388         definitions also when the system has a <sys/socket.h>.
22389         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
22390         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
22391         In C++, define a namespaced alias symbol.
22392         * modules/sys_socket (Depends-on): Add c++defs.
22393         (Makefile.am): Update sys/socket.h rule.
22394
22395         sys_select: Avoid #define replacements in C++ mode.
22396         * lib/sys_select.in.h: Include c++defs.h. Enable the function
22397         definitions also when the system has a <sys/select.h>.
22398         (select): In C++, define a namespaced alias symbol.
22399         * modules/sys_select (Depends-on): Add c++defs.
22400         (Makefile.am): Update sys/select.h rule.
22401
22402         sys_ioctl: Avoid #define replacements in C++ mode.
22403         * lib/sys_ioctl.in.h: Include c++defs.h.
22404         (ioctl): In C++, define a namespaced alias symbol.
22405         * modules/sys_ioctl (Depends-on): Add c++defs.
22406         (Makefile.am): Update sys/ioctl.h rule.
22407
22408         string: Avoid #define replacements in C++ mode.
22409         * lib/string.in.h: Include c++defs.h.
22410         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
22411         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22412         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22413         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
22414         strsignal, strverscmp): In C++, define a namespaced alias symbol.
22415         * modules/string (Depends-on): Add c++defs.
22416         (Makefile.am): Update string.h rule.
22417
22418         stdlib: Avoid #define replacements in C++ mode.
22419         * lib/stdlib.in.h: Include c++defs.h.
22420         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
22421         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
22422         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
22423         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
22424         symbol.
22425         * modules/stdlib (Depends-on): Add c++defs.
22426         (Makefile.am): Update stdlib.h rule.
22427
22428         stdio: Avoid #define replacements in C++ mode.
22429         * lib/stdio.in.h: Include c++defs.h.
22430         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
22431         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
22432         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
22433         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
22434         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
22435         namespaced alias symbol.
22436         * modules/stdio (Depends-on): Add c++defs.
22437         (Makefile.am): Update stdio.h rule.
22438
22439         spawn: Avoid #define replacements in C++ mode.
22440         * lib/spawn.in.h: Include c++defs.h.
22441         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22442         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22443         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22444         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22445         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22446         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22447         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22448         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22449         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22450         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22451         In C++, define a namespaced alias symbol.
22452         * modules/spawn (Depends-on): Add c++defs.
22453         (Makefile.am): Update spawn.h rule.
22454
22455         signal: Avoid #define replacements in C++ mode.
22456         * lib/signal.in.h: Include c++defs.h.
22457         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22458         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
22459         namespaced alias symbol.
22460         * modules/signal (Depends-on): Add c++defs.
22461         (Makefile.am): Update signal.h rule.
22462
22463         search: Avoid #define replacements in C++ mode.
22464         * lib/search.in.h: Include c++defs.h.
22465         (_gl_search_compar_fn, _gl_search_action_fn): New types.
22466         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
22467         symbol.
22468         * modules/search (Depends-on): Add c++defs.
22469         (Makefile.am): Update search.h rule.
22470
22471         math: Avoid #define replacements in C++ mode.
22472         * lib/math.in.h: Include c++defs.h.
22473         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
22474         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
22475         trunc, truncl): In C++, define a namespaced alias symbol.
22476         * modules/math (Depends-on): Add c++defs.
22477         (Makefile.am): Update math.h rule.
22478
22479         locale: Avoid #define replacements in C++ mode.
22480         * lib/locale.in.h: Include c++defs.h.
22481         (duplocale): In C++, define a namespaced alias symbol.
22482         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
22483         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
22484         * modules/locale (Depends-on): Add c++defs.
22485         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
22486
22487         langinfo: Avoid #define replacements in C++ mode.
22488         * lib/langinfo.in.h: Include c++defs.h.
22489         (nl_langinfo): In C++, define a namespaced alias symbol.
22490         * modules/langinfo (Depends-on): Add c++defs.
22491         (Makefile.am): Update langinfo.h rule.
22492
22493         iconv-h: Avoid #define replacements in C++ mode.
22494         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
22495         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
22496         symbol.
22497         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22498         whenever iconv is present.
22499         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
22500         (Makefile.am): Update iconv.h rule.
22501
22502         glob: Avoid #define replacements in C++ mode.
22503         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
22504         (_gl_glob_errfunc_fn): New type.
22505         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
22506         symbol.
22507         * modules/glob (Depends-on): Add c++defs, warn-on-use.
22508         (Makefile.am): Update glob.h rule.
22509
22510         fcntl-h: Avoid #define replacements in C++ mode.
22511         * lib/fcntl.in.h: Include c++defs.h.
22512         (fcntl, open, openat): In C++, define a namespaced alias symbol.
22513         * modules/fcntl-h (Depends-on): Add c++defs.
22514         (Makefile.am): Update fcntl.h rule.
22515
22516         dirent: Avoid #define replacements in C++ mode.
22517         * lib/dirent.in.h: Include c++defs.h.
22518         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
22519         namespaced alias symbol.
22520         (dirfd): Update declaration.
22521         * modules/dirent (Depends-on): Add c++defs.
22522         (Makefile.am): Update dirent.h rule.
22523
22524         ctype: Make it usable in C++ code.
22525         * lib/ctype.in.h: Include c++defs.h.
22526         (isblank): Declare as extern "C".
22527         * modules/ctype (Depends-on): Add c++defs.
22528         (Makefile.am): Update ctype.h rule.
22529
22530         New module 'c++defs'.
22531         * modules/c++defs: New file.
22532         * build-aux/c++defs.h: New file.
22533         Reported by John W. Eaton <jwe@gnu.org>.
22534
22535 2010-03-07  Bruno Haible  <bruno@clisp.org>
22536
22537         logb: Provide missing declaration for Cygwin.
22538         * lib/math.in.h (logb): New declaration.
22539         * m4/logb.m4: New file.
22540         * modules/logb (Files): Add m4/logb.m4.
22541         (Depends-on): Add math.
22542         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
22543         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
22544         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
22545         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
22546         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
22547
22548 2010-03-07  Bruno Haible  <bruno@clisp.org>
22549
22550         Fix test-cond link error.
22551         * tests/test-cond.c: Include <stdio.h>.
22552
22553 2010-03-07  Bruno Haible  <bruno@clisp.org>
22554
22555         Fix test-dirent-safer link error.
22556         * modules/dirent-safer-tests (Makefile.am): Define
22557         test_dirent_safer_LDADD.
22558
22559 2010-03-07  Bruno Haible  <bruno@clisp.org>
22560
22561         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
22562         among default module list.
22563
22564 2010-03-07  Bruno Haible  <bruno@clisp.org>
22565
22566         Fix link error on platforms with GNU libiconv.
22567         * modules/unistr/u8-strcoll-tests (Makefile): Define
22568         test_u8_strcoll_LDADD.
22569         * modules/unistr/u16-strcoll-tests (Makefile): Define
22570         test_u16_strcoll_LDADD.
22571         * modules/unistr/u32-strcoll-tests (Makefile): Define
22572         test_u32_strcoll_LDADD.
22573
22574 2010-03-07  Bruno Haible  <bruno@clisp.org>
22575
22576         Use POSIX declarations for socket functions.
22577         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
22578         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
22579         rpl_sendto): Change declaration to match POSIX.
22580         * lib/connect.c (rpl_connect): Likewise.
22581         * lib/accept.c (rpl_accept): Likewise.
22582         * lib/bind.c (rpl_bind): Likewise.
22583         * lib/getpeername.c (rpl_getpeername): Likewise.
22584         * lib/getsockname.c (rpl_getsockname): Likewise.
22585         * lib/recv.c (rpl_recv): Likewise.
22586         * lib/send.c (rpl_send): Likewise.
22587         * lib/recvfrom.c (rpl_recvfrom): Likewise.
22588         * lib/sendto.c (rpl_sendto): Likewise.
22589
22590 2010-03-06  Bruno Haible  <bruno@clisp.org>
22591
22592         Clarify access, euidaccess, faccessat.
22593         * doc/posix-functions/faccessat.texi: Mention security problem under
22594         "Other problems", not "Portability problems".
22595         * doc/posix-functions/access.texi: Likewise. Mention a related security
22596         problem.
22597         * doc/glibc-functions/euidaccess.texi: Mention security problems.
22598         * lib/euidaccess.c: Add comments about platforms.
22599         * lib/unistd.in.h (access, euidaccess): Add warnings.
22600
22601 2010-03-07  Bruno Haible  <bruno@clisp.org>
22602
22603         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
22604         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
22605         (POSIX_SPAWN_SETSCHEDULER): Likewise.
22606         (POSIX_SPAWN_USEVFORK): Define in a way that works when
22607         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22608         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
22609         declare when POSIX_SPAWN_SETSCHEDULER is zero.
22610         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
22611         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
22612         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
22613         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
22614         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
22615         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
22616         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
22617         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
22618         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
22619         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
22620         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
22621         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
22622         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
22623         Likewise.
22624         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
22625         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
22626         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
22627         Likewise.
22628         * tests/test-spawn.c (main): Make it work when
22629         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22630
22631 2010-03-07  Bruno Haible  <bruno@clisp.org>
22632
22633         Fix incorrect Makefile.am generation in German locale.
22634         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22635         Execute sed command with character range in C locale.
22636
22637 2010-03-06  Bruno Haible  <bruno@clisp.org>
22638
22639         Tests for module 'iconv-h'.
22640         * modules/iconv-h-tests: New file.
22641         * tests/test-iconv-h.c: New file.
22642
22643         New module 'iconv-h'.
22644         * modules/iconv-h: New file.
22645         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
22646         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
22647         (configure.ac): Remove gl_ICONV_H.
22648         (Makefile.am): Remove rule for iconv.h.
22649
22650 2010-03-06  Bruno Haible  <bruno@clisp.org>
22651
22652         More consistent naming of *.m4 files.
22653         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
22654         * modules/wctype (Files): Update.
22655
22656         More consistent naming of *.m4 files.
22657         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
22658         * modules/wchar (Files): Update.
22659
22660 2010-03-06  Jim Meyering  <meyering@redhat.com>
22661
22662         euidaccess: relax license to LGPLv2+
22663         * modules/euidaccess (License): Relax to LGPLv2+.
22664
22665 2010-03-06  Bruno Haible  <bruno@clisp.org>
22666
22667         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
22668         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
22669         (Makefile.am): Augment lib_SOURCES instead.
22670
22671 2010-03-04  Jim Meyering  <meyering@redhat.com>
22672
22673         utime: remove obsolete module
22674         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
22675         unnecessary for years, and has been marked as obsolete for 10 months.
22676         * modules/utime: Remove file.
22677         * lib/utime.c: Remove file.
22678         * m4/utime.m4: Remove file.
22679         * m4/utimes-null.m4: Remove file.
22680         * doc/posix-functions/utime.texi (utime): Remove reference to
22681         the module.  Move the sole "fixed by gnulib" item into the
22682         "problems not fixed by Gnulib" list.
22683         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
22684
22685 2010-03-05  Simon Josefsson  <simon@josefsson.org>
22686
22687         * modules/exit (License): Relax license to LGPLv2+.
22688         (Status): Mark as obsolete.
22689         * NEWS: Mention deprecated 'exit' module.
22690         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
22691         of now obsolete 'exit'.
22692
22693 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22694
22695         fts-lgpl: remove unused module
22696         * modules/fts-lgpl: Remove.
22697         * MODULES.html.sh (func_all_modules): Adjust.
22698         * check-module (find_included_lib_files): Adjust.
22699         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
22700
22701 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
22702
22703         copy-acl: enhance Solaris ACL error handling
22704         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
22705         * lib/set-mode-acl.c (qset_acl): Likewise.
22706
22707 2010-03-02  Bruno Haible  <bruno@clisp.org>
22708
22709         spawn: Don't override the system defined values on FreeBSD 8.
22710         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
22711         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
22712         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
22713         if HAVE_POSIX_SPAWN is 1.
22714         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
22715
22716 2010-03-01  Bruno Haible  <bruno@clisp.org>
22717
22718         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
22719         regarding Automake.
22720
22721 2010-02-25  Bruno Haible  <bruno@clisp.org>
22722
22723         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
22724         * gnulib-tool: Define 'echo' as a function only before the ksh alias
22725         setting, not afterwards.
22726         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
22727
22728 2010-02-24  Eric Blake  <eblake@redhat.com>
22729
22730         bootstrap, git-version-gen: use timestamp
22731         * build-aux/git-version-gen (scriptversion): Force UTC.
22732         * build-aux/bootstrap (scriptversion): New variable.
22733
22734         bootstrap: allow older git
22735         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
22736         older than 1.6.4.  Requested by the libvirt project.
22737
22738 2010-02-23  Eric Blake  <eblake@redhat.com>
22739
22740         warn-on-use: work with old autoconf
22741         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
22742         AS_VAR semantics of autoconf 2.60.
22743         Reported by Bruno Haible.
22744
22745         bootstrap: improve some comments
22746         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
22747         clarification comments.
22748
22749         gettimeofday: provide correct function
22750         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
22751         when replacement is declared, otherwise provide gettimeofday.
22752         Reported by Michael Goffioul.
22753
22754 2010-02-23  Jim Meyering  <meyering@redhat.com>
22755
22756         lib-ignore: relax license to "unlimited", not LGPLv2+
22757         * modules/lib-ignore (License): Relax to "unlimited".
22758
22759 2010-02-23  Jim Meyering  <meyering@redhat.com>
22760
22761         lib-ignore: relax license to LGPLv2+
22762         * modules/lib-ignore (License): Relax to LGPLv2+.
22763
22764 2010-02-22  Eric Blake  <eblake@redhat.com>
22765
22766         lseek: avoid bash 3.2 broken pipe bug
22767         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
22768         warning from bash 3.2.
22769         Reported by Ben Pfaff, with analysis from Bruno Haible.
22770
22771         bootstrap: support non-FSF copyright holder
22772         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
22773         bootstrap.conf override of COPYRIGHT_HOLDER.
22774         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
22775
22776         bootstrap: interoperate with gettext 0.14.1
22777         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
22778
22779         bootstrap: allow for alternate submodule location
22780         * build-aux/bootstrap (gnulib_path): New variable; use instead of
22781         hardcoding submodule location.
22782         (gnulib_mk): Allow direct use of Makefile.am.
22783
22784         bootstrap: use GNULIB_SRCDIR to reduce disk usage
22785         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
22786         rather than reconfiguring where the submodule points.
22787
22788         gettimeofday: restore support for platforms that lack function
22789         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
22790         replacement if function is missing.
22791         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
22792         * modules/sys_time (Makefile.am): Substitute it.
22793         * lib/sys_time.in.h (gettimeofday): Check it.
22794         Reported by Michael Goffioul.
22795
22796 2010-02-21  Bruno Haible  <bruno@clisp.org>
22797
22798         * lib/stdio.in.h (obstack_printf): Fix typo.
22799
22800 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
22801
22802         vc-list-files: use bzr ls's -R option
22803         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
22804         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
22805
22806 2010-02-21  Jim Meyering  <meyering@redhat.com>
22807
22808         init.sh: fix EXEEXT shims to work also for names like test-prog
22809         * tests/init.sh: Re-exec a better shell, when needed.
22810         If the current shell lacks support for posix $(...), an init.sh-using
22811         test will now try to find a shell that supports that.  If EXEEXT is
22812         nonempty, we also require support for hyphen-in-alias-name and shell
22813         substitutions like ${var#glob}.  Failure to find such a shell results
22814         in a skipped test.
22815
22816 2010-02-21  Bruno Haible  <bruno@clisp.org>
22817
22818         Really work around around "broken pipe" error message from bash 3.2.
22819         * gnulib-tool (func_reset_sigpipe): Remove function.
22820         (echo): In bash 3.2, define to a function that uses printf.
22821         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
22822
22823 2010-02-20  Bruno Haible  <bruno@clisp.org>
22824
22825         Restore support for automake 1.9.6 with autoconf 2.61.
22826         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
22827         Reported by James Youngman <jay@gnu.org>.
22828
22829 2010-02-20  Bruno Haible  <bruno@clisp.org>
22830
22831         Improve *printf warning condition.
22832         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
22833         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
22834         and the function is overridden due to SIGPIPE emulation.
22835
22836 2010-02-20  Bruno Haible  <bruno@clisp.org>
22837
22838         * lib/stdio.in.h: Tweak comments.
22839
22840 2010-02-19  Bruno Haible  <bruno@clisp.org>
22841
22842         Make it easier to find modules. New gnulib-tool option '--find'.
22843         * gnulib-tool: New option --find.
22844         (func_usage): Document it.
22845         (func_sanitize_modulelist): New function, extracted from
22846         func_all_modules.
22847         (func_all_modules): Invoke it.
22848         * doc/gnulib-tool.texi (Which modules?): New node.
22849
22850 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
22851
22852         * lib/sys_select.in.h: Provide select replacement even if
22853         sys/select.h exists on a system, for Interix.
22854
22855 2010-02-18  Jim Meyering  <meyering@redhat.com>
22856
22857         init.sh: don't use $(...) just yet
22858         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
22859         to accommodate e.g., Solaris' /bin/sh.
22860
22861 2010-02-17  Bruno Haible  <bruno@clisp.org>
22862
22863         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
22864         Reported by Ludovic Courtès <ludo@gnu.org>.
22865
22866 2010-02-16  Simon Josefsson  <simon@josefsson.org>
22867
22868         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
22869         linking with -lintl.
22870
22871 2010-02-17  Simon Josefsson  <simon@josefsson.org>
22872
22873         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
22874         if not provided by the system's netdb.h.  Reported by
22875         ludo@gnu.org (Ludovic Courtès).
22876
22877 2010-02-15  Jim Meyering  <meyering@redhat.com>
22878
22879         init.sh: improve portability and efficiency
22880         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
22881         "dummy" in a for loop.
22882         Use '!', not '^' to select the complement of a character set used
22883         in a "case" statement.
22884         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
22885         Suggestions from Eric Blake.
22886
22887         init.sh: automatically accommodate programs with the .exe suffix
22888         Automatically arrange for an invocation of "prog" to execute the
22889         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
22890         may use the simpler "prog", yet still work when built on a system
22891         that requires specifying the added suffix.
22892         Do this by constructing a function named "prog" that invokes
22893         "prog.exe" for each .exe file in selected directories.
22894         * tests/init.sh (find_exe_basenames_): New function.
22895         (create_exe_shim_functions_): New function.
22896         (path_prepend_): Use it.
22897
22898         maint.mk: mark syntax-check sc_*.m rules as .PHONY
22899         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
22900         "make -t syntax-check" doesn't create a ton of sc_*.m files.
22901
22902 2010-02-14  Jim Meyering  <meyering@redhat.com>
22903
22904         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
22905         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
22906         (sc_prohibit_hash_pjw_without_use): New rule.
22907
22908         maint.mk: allow the default upload destination dir to be overridden
22909         * top/maint.mk (upload_dest_dir_): Define with a default that
22910         preserves the status quo.
22911         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
22912         Reported by Peter Simons.
22913
22914         maint.mk: prohibit inclusion of "hash.h" without_use
22915         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
22916
22917 2010-02-10  Jim Meyering  <meyering@redhat.com>
22918
22919         maint.mk: prohibit inclusion of "ignore-value.h" without_use
22920         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
22921
22922 2010-02-09  Eric Blake  <ebb9@byu.net>
22923         and Bruno Haible  <bruno@clisp.org>
22924
22925         obstack-printf-posix: ensure declaration
22926         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
22927         extracted from gl_FUNC_OBSTACK_PRINTF.
22928         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
22929         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22930         Likewise.
22931         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
22932         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
22933         0.
22934
22935 2010-02-08  Bruno Haible  <bruno@clisp.org>
22936
22937         gnulib-tool: Fix typo in 2010-02-07 commit.
22938         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
22939         Reported by Eric Blake.
22940
22941 2010-02-07  Bruno Haible  <bruno@clisp.org>
22942
22943         gnulib-tool: Fix up caching patches.
22944         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
22945         option --no-cache. Use associative arrays when supported by the shell.
22946         (sed_comments): New variable.
22947         (modcache): Renamed from do_cache.
22948         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
22949         abbreviate unnecessarily.
22950         (have_associative): New variable.
22951         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
22952         way also for ksh and zsh.
22953         (func_init_sed_convert_to_cache_statements): New function, extracted
22954         from func_cache_lookup_module. Add support for associative arrays.
22955         Don't set the c_MODULE_cached variable here. Ignore all lines before
22956         the first field header. Remove only the final newline, not all trailing
22957         newlines. Support empty fields correctly. Limit the use of 'eval' to
22958         assignments.
22959         (func_get_description, func_get_status, func_get_notice,
22960         func_get_applicability, func_get_filelist, func_get_dependencies,
22961         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
22962         func_get_automake_snippet, func_get_include_directive,
22963         func_get_link_directive, func_get_license, func_get_maintainer):
22964         Update documentation. List the unoptimized code first. Add support for
22965         associative arrays. Limit the use of 'eval' to assignments.
22966         (func_get_applicability): Undo stylistic pessimisations.
22967         (func_get_automake_snippet, func_get_include_directive): Reduce code
22968         duplication.
22969         (func_modules_transitive_closure, func_modules_add_dummy,
22970         func_modules_notice, func_modules_to_filelist, func_add_file,
22971         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
22972         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
22973         func_create_testdir, func_create_megatestdir): Update documentation.
22974
22975 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22976
22977         * gnulib-tool (func_cache_lookup_module): Store the module name
22978         belonging to the cache variable; error out if two different
22979         module names map to the same cache variable name.
22980
22981 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22982
22983         gnulib-tool: Make caching optional.
22984         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
22985         Update matching short versions of --no-changelog.
22986         (func_usage): Update.
22987         (sed_extract_cache_prog): Renamed from ...
22988         (sed_extract_prog): ... this; revert to old extraction script.
22989         (func_get_description, func_get_status)
22990         (func_get_notice, func_get_applicability, func_get_filelist)
22991         (func_get_dependencies, func_get_autoconf_early_snippet)
22992         (func_get_autoconf_snippet, func_get_automake_snippet)
22993         (func_get_include_directive, func_get_link_directive)
22994         (func_get_license, func_get_maintainer): If $do_cache is false,
22995         use old, non-caching extraction scripts.
22996         Suggestion by Bruno Haible.
22997
22998 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22999
23000         gnulib-tool: cache module metainformation.
23001         * gnulib-tool (sed_extract_prog): Match newline before each
23002         header, and rewrite header to a shell variable suffix.
23003         (func_cache_var, func_cache_lookup_module): New functions,
23004         to turn a module name into a cache variable prefix, and to
23005         look up and cache module metainformation.
23006         (func_get_description, func_get_status)
23007         (func_get_notice, func_get_applicability, func_get_filelist)
23008         (func_get_dependencies, func_get_autoconf_early_snippet)
23009         (func_get_autoconf_snippet, func_get_automake_snippet)
23010         (func_get_include_directive, func_get_link_directive)
23011         (func_get_license, func_get_maintainer): Use
23012         func_cache_lookup_module.
23013
23014 2010-02-07  Bruno Haible  <bruno@clisp.org>
23015
23016         fnctl: Fix missing dependency.
23017         * modules/fcntl (Depends-on): Add getdtablesize.
23018         Reported by John W. Eaton <jwe@gnu.org>.
23019
23020 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23021
23022         Argp: fix recognition of short alias options.
23023
23024         * lib/argp-parse.c (convert_options): Fix improper use of
23025         `|' between character values.
23026         * tests/test-argp.c (group1_option): New alias option
23027         --read (-r).
23028         (group1_parser): Special handling for 'r'.
23029         (test15): New test case.
23030         (test_fun): Add test15.
23031         * tests/test-argp-2.sh: Update expected --help and --usage
23032         outputs.
23033
23034 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23035
23036         * tests/test-argp.c: Fix indentation.
23037
23038 2010-02-04  Eric Blake  <ebb9@byu.net>
23039
23040         gettimeofday: expose type of second argument
23041         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23042         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23043         * tests/test-gettimeofday.c: Use it to silence warning.
23044         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23045         the issue.
23046
23047 2010-02-03  Jim Meyering  <meyering@redhat.com>
23048
23049         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23050         * lib/regcomp.c (TYPE_SIGNED): Define.
23051         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23052
23053         regcomp.c: avoid a new -Wshadow warning
23054         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23055
23056 2010-02-01  Jim Meyering  <meyering@redhat.com>
23057
23058         removing useless parentheses in cpp #define directives
23059         For motivation, see commit c0221df4, "define STREQ(a,b)
23060         consistently, removing useless parentheses"
23061         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23062         * lib/mountlist.c (MNT_IGNORE): Likewise.
23063         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23064
23065 2010-02-01  Eric Blake  <ebb9@byu.net>
23066
23067         sys_time: use link-warning
23068         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23069         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23070         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23071         * modules/sys_time (Depends-on): Add warn-on-use.
23072         (Makefile.am): Always build replacement.
23073         (configure.ac): Update substitutions.
23074         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23075         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23076         bother with SYS_TIME_H.
23077         * modules/gettimeofday (configure.ac): Declare indicator.
23078         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23079         in use.
23080
23081         closein-tests: silence compiler warning
23082         * tests/test-closein.c (main): Ignore fread result.
23083         * modules/closein-tests (Depends-on): Add ignore-value.
23084
23085         tests: silence warning about system return
23086         * tests/test-areadlink-with-size.c (main): Ignore system result.
23087         * tests/test-areadlink.c (main): Likewise.
23088         * tests/test-areadlinkat-with-size.c (main): Likewise.
23089         * tests/test-areadlinkat.c (main): Likewise.
23090         * tests/test-canonicalize-lgpl.c (main): Likewise.
23091         * tests/test-canonicalize.c (main): Likewise.
23092         * tests/test-chown.c (main): Likewise.
23093         * tests/test-fchownat.c (main): Likewise.
23094         * tests/test-fdutimensat.c (main): Likewise.
23095         * tests/test-fstatat.c (main): Likewise.
23096         * tests/test-futimens.c (main): Likewise.
23097         * tests/test-lchown.c (main): Likewise.
23098         * tests/test-link.c (main): Likewise.
23099         * tests/test-linkat.c (main): Likewise.
23100         * tests/test-lstat.c (main): Likewise.
23101         * tests/test-mkdir.c (main): Likewise.
23102         * tests/test-mkdirat.c (main): Likewise.
23103         * tests/test-mkfifo.c (main): Likewise.
23104         * tests/test-mkfifoat.c (main): Likewise.
23105         * tests/test-mknod.c (main): Likewise.
23106         * tests/test-readlink.c (main): Likewise.
23107         * tests/test-remove.c (main): Likewise.
23108         * tests/test-rename.c (main): Likewise.
23109         * tests/test-renameat.c (main): Likewise.
23110         * tests/test-rmdir.c (main): Likewise.
23111         * tests/test-symlink.c (main): Likewise.
23112         * tests/test-symlinkat.c (main): Likewise.
23113         * tests/test-unlink.c (main): Likewise.
23114         * tests/test-unlinkat.c (main): Likewise.
23115         * tests/test-utimens.c (main): Likewise.
23116         * tests/test-utimensat.c (main): Likewise.
23117         * modules/areadlink-tests (Depends-on): Add ignore-value.
23118         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23119         * modules/areadlinkat-tests (Depends-on): Likewise.
23120         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23121         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23122         * modules/canonicalize-tests (Depends-on): Likewise.
23123         * modules/chown-tests (Depends-on): Likewise.
23124         * modules/fdutimensat-tests (Depends-on): Likewise.
23125         * modules/futimens-tests (Depends-on): Likewise.
23126         * modules/lchown-tests (Depends-on): Likewise.
23127         * modules/link-tests (Depends-on): Likewise.
23128         * modules/linkat-tests (Depends-on): Likewise.
23129         * modules/lstat-tests (Depends-on): Likewise.
23130         * modules/mkdir-tests (Depends-on): Likewise.
23131         * modules/mkfifo-tests (Depends-on): Likewise.
23132         * modules/mkfifoat-tests (Depends-on): Likewise.
23133         * modules/mknod-tests (Depends-on): Likewise.
23134         * modules/openat-tests (Depends-on): Likewise.
23135         * modules/readlink-tests (Depends-on): Likewise.
23136         * modules/remove-tests (Depends-on): Likewise.
23137         * modules/rename-tests (Depends-on): Likewise.
23138         * modules/renameat-tests (Depends-on): Likewise.
23139         * modules/rmdir-tests (Depends-on): Likewise.
23140         * modules/symlink-tests (Depends-on): Likewise.
23141         * modules/symlinkat-tests (Depends-on): Likewise.
23142         * modules/unlink-tests (Depends-on): Likewise.
23143         * modules/utimens-tests (Depends-on): Likewise.
23144         * modules/utimensat-tests (Depends-on): Likewise.
23145
23146 2010-01-31  Bruno Haible  <bruno@clisp.org>
23147
23148         Perform the same test for many <math.h> functions.
23149         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
23150         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
23151         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
23152         of gl_MATHFUNC.
23153         * modules/acos (configure.ac): Likewise.
23154         * modules/asin (configure.ac): Likewise.
23155         * modules/atan (configure.ac): Likewise.
23156         * modules/atan2 (configure.ac): Likewise.
23157         * modules/cbrt (configure.ac): Likewise.
23158         * modules/copysign (configure.ac): Likewise.
23159         * modules/cos (configure.ac): Likewise.
23160         * modules/cosh (configure.ac): Likewise.
23161         * modules/erf (configure.ac): Likewise.
23162         * modules/erfc (configure.ac): Likewise.
23163         * modules/exp (configure.ac): Likewise.
23164         * modules/fmod (configure.ac): Likewise.
23165         * modules/hypot (configure.ac): Likewise.
23166         * modules/j0 (configure.ac): Likewise.
23167         * modules/j1 (configure.ac): Likewise.
23168         * modules/jn (configure.ac): Likewise.
23169         * modules/lgamma (configure.ac): Likewise.
23170         * modules/log (configure.ac): Likewise.
23171         * modules/log10 (configure.ac): Likewise.
23172         * modules/log1p (configure.ac): Likewise.
23173         * modules/pow (configure.ac): Likewise.
23174         * modules/remainder (configure.ac): Likewise.
23175         * modules/sin (configure.ac): Likewise.
23176         * modules/sinh (configure.ac): Likewise.
23177         * modules/tan (configure.ac): Likewise.
23178         * modules/tanh (configure.ac): Likewise.
23179         * modules/y0 (configure.ac): Likewise.
23180         * modules/y1 (configure.ac): Likewise.
23181         * modules/yn (configure.ac): Likewise.
23182         Suggested by Paolo Bonzini.
23183
23184 2010-01-31  Bruno Haible  <bruno@clisp.org>
23185
23186         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
23187
23188 2010-01-31  Bruno Haible  <bruno@clisp.org>
23189
23190         Work around getdelim() bug on FreeBSD 8.0.
23191         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
23192         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
23193         not work.
23194         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
23195         is 1.
23196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
23197         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
23198         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
23199         a non-zero size.
23200         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
23201
23202 2010-01-31  Bruno Haible  <bruno@clisp.org>
23203
23204         Work around getline() bug on FreeBSD 8.0.
23205         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
23206         and a non-zero size.
23207         * tests/test-getline.c (main): Likewise.
23208         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
23209         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
23210
23211 2010-01-28  Eric Blake  <ebb9@byu.net>
23212
23213         regex: fix build failure
23214         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
23215         platforms.
23216
23217 2010-01-28  Jim Meyering  <meyering@redhat.com>
23218
23219         regex: do not ignore memory allocation failure
23220         * lib/regex_internal.c (create_cd_newstate): Detect
23221         re_node_set_init_copy failure.   Extracted from glibc commit
23222         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23223
23224         regex: sync more white-space changes from libc
23225         * lib/regex_internal.c: White-space only changes.
23226         * lib/regexec.c: Likewise.
23227
23228         regex: add many uses of __attribute_warn_unused_result__
23229         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
23230         * lib/regexec.c: Likewise.
23231         Extracted from a messy glibc commit.
23232
23233         regcomp.c: spelling and merge-artifact from glibc
23234         * lib/regcomp.c: Merge remainder of glibc's
23235         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23236
23237         regcomp.c: sync white-space changes from glibc
23238         * lib/regcomp.c: Merge to accommodate white space
23239         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23240
23241         regcomp.c: do not ignore internal return values
23242         * lib/regcomp.c: Do not ignore internal return values.
23243         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
23244         but without its white-space changes and spelling fixes.
23245
23246         regex_internal.h: define __attribute_warn_unused_result__
23247         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
23248
23249         maint: add a syntax-check rule to check for vulnerable Makefile.in
23250         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
23251
23252 2010-01-27  Jim Meyering  <meyering@redhat.com>
23253
23254         ncftpput-ftp: clean up spaces
23255         * build-aux/ncftpput-ftp: Make Copyright line consistent.
23256         Remove trailing blanks.
23257
23258 2010-01-27  Simon Josefsson  <simon@josefsson.org>
23259
23260         * build-aux/git-version-gen: Fix copyright statement.
23261         * build-aux/gnupload: Likewise.
23262         * tests/test-arcfour.c: Likewise.
23263         * tests/test-arctwo.c: Likewise.
23264         * tests/test-count-one-bits.c: Likewise.
23265         * tests/test-crc.c: Likewise.
23266         * tests/test-des.c: Likewise.
23267         * tests/test-gc-arcfour.c: Likewise.
23268         * tests/test-gc-arctwo.c: Likewise.
23269         * tests/test-gc-des.c: Likewise.
23270         * tests/test-gc-hmac-md5.c: Likewise.
23271         * tests/test-gc-hmac-sha1.c: Likewise.
23272         * tests/test-gc-md2.c: Likewise.
23273         * tests/test-gc-md4.c: Likewise.
23274         * tests/test-gc-md5.c: Likewise.
23275         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23276         * tests/test-gc-rijndael.c: Likewise.
23277         * tests/test-gc-sha1.c: Likewise.
23278         * tests/test-gc.c: Likewise.
23279         * tests/test-gethostname.c: Likewise.
23280         * tests/test-gettimeofday.c: Likewise.
23281         * tests/test-hash.c: Likewise.
23282         * tests/test-hmac-md5.c: Likewise.
23283         * tests/test-hmac-sha1.c: Likewise.
23284         * tests/test-md2.c: Likewise.
23285         * tests/test-md4.c: Likewise.
23286         * tests/test-md5.c: Likewise.
23287         * tests/test-memchr.c: Likewise.
23288         * tests/test-memchr2.c: Likewise.
23289         * tests/test-memcmp.c: Likewise.
23290         * tests/test-memmem.c: Likewise.
23291         * tests/test-memrchr.c: Likewise.
23292         * tests/test-rawmemchr.c: Likewise.
23293         * tests/test-read-file.c: Likewise.
23294         * tests/test-rijndael.c: Likewise.
23295         * tests/test-sockets.c: Likewise.
23296         * tests/test-strchrnul.c: Likewise.
23297         * tests/test-strstr.c: Likewise.
23298         * tests/test-strtod.c: Likewise.
23299         * build-aux/ncftpput-ftp: Likewise.
23300
23301 2010-01-26  Eric Blake  <ebb9@byu.net>
23302
23303         ignore-value: update recommended header name
23304         * modules/ignore-value (Include): Only use <> for headers that
23305         exist in glibc.
23306
23307 2010-01-26  Jim Meyering  <meyering@redhat.com>
23308
23309         test-userspec.c: avoid compiler warnings
23310         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
23311         and "initialization discards qualifiers..." warnings.
23312         Put the first "uid" in its own scope, and make char* members "const".
23313
23314 2010-01-25  Bruno Haible  <bruno@clisp.org>
23315
23316         gnulib-tool: Make warning diagnostics consistent.
23317         * gnulib-tool (func_warning): New function.
23318         Use it everywhere where gnulib-tool produces output to stderr and it is
23319         not a fatal error.
23320
23321 2010-01-25  Bruno Haible  <bruno@clisp.org>
23322
23323         Fix test dependencies.
23324         * modules/xstrtol-tests (Depends-on): Add inttypes.
23325         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
23326
23327 2010-01-25 Pádraig Brady <P@draigBrady.com>
23328
23329         syntax-check: detect incorrect boolean macro values in config.h
23330         * modules/maintainer-makefile (configure.ac): Parameterize the location
23331         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
23332         The logic is from Eric Blake and the location indicated by Jim Meyering.
23333         Note the more natural CONFIG_HEADER name is prohibited by automake
23334         for backwards compatibility reasons.
23335         * top/maint.mk (sc_Wundef_boolean): New rule.
23336
23337 2010-01-25  Jim Meyering  <meyering@redhat.com>
23338
23339         bootstrap: detect MacOS 10.6's shasum, too
23340         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
23341         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
23342
23343 2010-01-23  Jim Meyering  <meyering@redhat.com>
23344
23345         xstrtoll: new module
23346         * modules/xstrtoll: New file.
23347         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
23348         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
23349         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
23350         ./configure fails if you use this module and lack "long long".
23351         * modules/xstrtoll-tests: New module.
23352         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
23353         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
23354         new init.sh-based test framework.
23355
23356 2010-01-24  Bruno Haible  <bruno@clisp.org>
23357
23358         Tests for module 'yn'.
23359         * modules/yn-tests: New file.
23360         * tests/test-yn.c: New file.
23361
23362         Tests for module 'y1'.
23363         * modules/y1-tests: New file.
23364         * tests/test-y1.c: New file.
23365
23366         Tests for module 'y0'.
23367         * modules/y0-tests: New file.
23368         * tests/test-y0.c: New file.
23369
23370         Tests for module 'tanh'.
23371         * modules/tanh-tests: New file.
23372         * tests/test-tanh.c: New file.
23373
23374         Tests for module 'tan'.
23375         * modules/tan-tests: New file.
23376         * tests/test-tan.c: New file.
23377
23378         Tests for module 'sqrt'.
23379         * modules/sqrt-tests: New file.
23380         * tests/test-sqrt.c: New file.
23381
23382         Tests for module 'sinh'.
23383         * modules/sinh-tests: New file.
23384         * tests/test-sinh.c: New file.
23385
23386         Tests for module 'sin'.
23387         * modules/sin-tests: New file.
23388         * tests/test-sin.c: New file.
23389
23390         Tests for module 'rint'.
23391         * modules/rint-tests: New file.
23392         * tests/test-rint.c: New file.
23393
23394         Tests for module 'remainder'.
23395         * modules/remainder-tests: New file.
23396         * tests/test-remainder.c: New file.
23397
23398         Tests for module 'pow'.
23399         * modules/pow-tests: New file.
23400         * tests/test-pow.c: New file.
23401
23402         Tests for module 'nextafter'.
23403         * modules/nextafter-tests: New file.
23404         * tests/test-nextafter.c: New file.
23405
23406         Tests for module 'modf'.
23407         * modules/modf-tests: New file.
23408         * tests/test-modf.c: New file.
23409
23410         Tests for module 'logb'.
23411         * modules/logb-tests: New file.
23412         * tests/test-logb.c: New file.
23413
23414         Tests for module 'log1p'.
23415         * modules/log1p-tests: New file.
23416         * tests/test-log1p.c: New file.
23417
23418         Tests for module 'log10'.
23419         * modules/log10-tests: New file.
23420         * tests/test-log10.c: New file.
23421
23422         Tests for module 'log'.
23423         * modules/log-tests: New file.
23424         * tests/test-log.c: New file.
23425
23426         Tests for module 'lgamma'.
23427         * modules/lgamma-tests: New file.
23428         * tests/test-lgamma.c: New file.
23429
23430         Tests for module 'ldexp'.
23431         * modules/ldexp-tests: New file.
23432         * tests/test-ldexp.c: New file.
23433
23434         Tests for module 'jn'.
23435         * modules/jn-tests: New file.
23436         * tests/test-jn.c: New file.
23437
23438         Tests for module 'j1'.
23439         * modules/j1-tests: New file.
23440         * tests/test-j1.c: New file.
23441
23442         Tests for module 'j0'.
23443         * modules/j0-tests: New file.
23444         * tests/test-j0.c: New file.
23445
23446         Tests for module 'hypot'.
23447         * modules/hypot-tests: New file.
23448         * tests/test-hypot.c: New file.
23449
23450         Tests for module 'fmod'.
23451         * modules/fmod-tests: New file.
23452         * tests/test-fmod.c: New file.
23453
23454         Tests for module 'fabs'.
23455         * modules/fabs-tests: New file.
23456         * tests/test-fabs.c: New file.
23457
23458         Tests for module 'exp'.
23459         * modules/exp-tests: New file.
23460         * tests/test-exp.c: New file.
23461
23462         Tests for module 'erfc'.
23463         * modules/erfc-tests: New file.
23464         * tests/test-erfc.c: New file.
23465
23466         Tests for module 'erf'.
23467         * modules/erf-tests: New file.
23468         * tests/test-erf.c: New file.
23469
23470         Tests for module 'cosh'.
23471         * modules/cosh-tests: New file.
23472         * tests/test-cosh.c: New file.
23473
23474         Tests for module 'cos'.
23475         * modules/cos-tests: New file.
23476         * tests/test-cos.c: New file.
23477
23478         Tests for module 'copysign'.
23479         * modules/copysign-tests: New file.
23480         * tests/test-copysign.c: New file.
23481
23482         Tests for module 'cbrt'.
23483         * modules/cbrt-tests: New file.
23484         * tests/test-cbrt.c: New file.
23485
23486         Tests for module 'atan2'.
23487         * modules/atan2-tests: New file.
23488         * tests/test-atan2.c: New file.
23489
23490         Tests for module 'atan'.
23491         * modules/atan-tests: New file.
23492         * tests/test-atan.c: New file.
23493
23494         Tests for module 'asin'.
23495         * modules/asin-tests: New file.
23496         * tests/test-asin.c: New file.
23497
23498         Tests for module 'acos'.
23499         * modules/acos-tests: New file.
23500         * tests/test-acos.c: New file.
23501
23502 2010-01-24  Bruno Haible  <bruno@clisp.org>
23503
23504         Fix tests for common <math.h> functions.
23505         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
23506         code snippet that references the function pointer, rather than merely
23507         calling the function. Substitute the FUNC_LIBM variable.
23508         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
23509         * modules/acos (configure.ac): Likewise.
23510         * modules/asin (configure.ac): Likewise.
23511         * modules/atan (configure.ac): Likewise.
23512         * modules/atan2 (configure.ac): Likewise.
23513         * modules/cbrt (configure.ac): Likewise.
23514         * modules/copysign (configure.ac): Likewise.
23515         * modules/cos (configure.ac): Likewise.
23516         * modules/cosh (configure.ac): Likewise.
23517         * modules/erf (configure.ac): Likewise.
23518         * modules/erfc (configure.ac): Likewise.
23519         * modules/exp (configure.ac): Likewise.
23520         * modules/fabs (configure.ac): Likewise.
23521         * modules/fmod (configure.ac): Likewise.
23522         * modules/hypot (configure.ac): Likewise.
23523         * modules/j0 (configure.ac): Likewise.
23524         * modules/j1 (configure.ac): Likewise.
23525         * modules/jn (configure.ac): Likewise.
23526         * modules/ldexp (configure.ac): Likewise.
23527         * modules/lgamma (configure.ac): Likewise.
23528         * modules/log (configure.ac): Likewise.
23529         * modules/log10 (configure.ac): Likewise.
23530         * modules/log1p (configure.ac): Likewise.
23531         * modules/logb (configure.ac): Likewise.
23532         * modules/modf (configure.ac): Likewise.
23533         * modules/nextafter (configure.ac): Likewise.
23534         * modules/pow (configure.ac): Likewise.
23535         * modules/remainder (configure.ac): Likewise.
23536         * modules/rint (configure.ac): Likewise.
23537         * modules/sin (configure.ac): Likewise.
23538         * modules/sinh (configure.ac): Likewise.
23539         * modules/tan (configure.ac): Likewise.
23540         * modules/tanh (configure.ac): Likewise.
23541         * modules/y0 (configure.ac): Likewise.
23542         * modules/y1 (configure.ac): Likewise.
23543         * modules/yn (configure.ac): Likewise.
23544
23545 2010-01-24  Bruno Haible  <bruno@clisp.org>
23546
23547         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
23548         * tests/test-acosl.c (x): New variable.
23549         (main): Store argument in x and fetch it from x.
23550         * tests/test-asinl.c (x): New variable.
23551         (main): Store argument in x and fetch it from x.
23552         * tests/test-atanl.c (x): New variable.
23553         (main): Store argument in x and fetch it from x.
23554         * tests/test-cosl.c (x): New variable.
23555         (main): Store argument in x and fetch it from x.
23556         * tests/test-expl.c (x): New variable.
23557         (main): Store argument in x and fetch it from x.
23558         * tests/test-logl.c (x): New variable.
23559         (main): Store argument in x and fetch it from x.
23560         * tests/test-sinl.c (x): New variable.
23561         (main): Store argument in x and fetch it from x.
23562         * tests/test-sqrtl.c (x): New variable.
23563         (main): Store argument in x and fetch it from x.
23564         * tests/test-tanl.c (x): New variable.
23565         (main): Store argument in x and fetch it from x.
23566
23567 2010-01-24  Bruno Haible  <bruno@clisp.org>
23568
23569         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
23570         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
23571         assignments to the initial TESTS_ENVIRONMENT.
23572         * doc/gnulib.texi (Unit test modules): Document it.
23573         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
23574         TESTS_ENVIRONMENT.
23575         * modules/btowc-tests (Makefile.am): Likewise.
23576         * modules/c-stack-tests (Makefile.am): Likewise.
23577         * modules/c-strcase-tests (Makefile.am): Likewise.
23578         * modules/copy-file-tests (Makefile.am): Likewise.
23579         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
23580         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
23581         * modules/mbrtowc-tests (Makefile.am): Likewise.
23582         * modules/mbscasecmp-tests (Makefile.am): Likewise.
23583         * modules/mbscasestr-tests (Makefile.am): Likewise.
23584         * modules/mbschr-tests (Makefile.am): Likewise.
23585         * modules/mbscspn-tests (Makefile.am): Likewise.
23586         * modules/mbsinit-tests (Makefile.am): Likewise.
23587         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
23588         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
23589         * modules/mbspbrk-tests (Makefile.am): Likewise.
23590         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
23591         * modules/mbsrchr-tests (Makefile.am): Likewise.
23592         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
23593         * modules/mbsspn-tests (Makefile.am): Likewise.
23594         * modules/mbsstr-tests (Makefile.am): Likewise.
23595         * modules/nl_langinfo-tests (Makefile.am): Likewise.
23596         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
23597         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
23598         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
23599         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
23600         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
23601         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
23602         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
23603         * modules/wcrtomb-tests (Makefile.am): Likewise.
23604         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
23605         * modules/wcsrtombs-tests (Makefile.am): Likewise.
23606         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
23607         assignments from TESTS_ENVIRONMENT.
23608         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
23609         augmentation.
23610         * modules/argp-version-etc-tests (Makefile.am): Likewise.
23611         * modules/atexit-tests (Makefile.am): Likewise.
23612         * modules/binary-io-tests (Makefile.am): Likewise.
23613         * modules/closein-tests (Makefile.am): Likewise.
23614         * modules/dprintf-posix-tests (Makefile.am): Likewise.
23615         * modules/exclude-tests (Makefile.am): Likewise.
23616         * modules/fflush-tests (Makefile.am): Likewise.
23617         * modules/fpending-tests (Makefile.am): Likewise.
23618         * modules/fprintf-posix-tests (Makefile.am): Likewise.
23619         * modules/freadahead-tests (Makefile.am): Likewise.
23620         * modules/freadptr-tests (Makefile.am): Likewise.
23621         * modules/freadseek-tests (Makefile.am): Likewise.
23622         * modules/fseek-tests (Makefile.am): Likewise.
23623         * modules/fseeko-tests (Makefile.am): Likewise.
23624         * modules/ftell-tests (Makefile.am): Likewise.
23625         * modules/ftello-tests (Makefile.am): Likewise.
23626         * modules/idpriv-drop-tests (Makefile.am): Likewise.
23627         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
23628         * modules/lseek-tests (Makefile.am): Likewise.
23629         * modules/parse-duration-tests (Makefile.am): Likewise.
23630         * modules/perror-tests (Makefile.am): Likewise.
23631         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
23632         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
23633         * modules/pipe-tests (Makefile.am): Likewise.
23634         * modules/pread-tests (Makefile.am): Likewise.
23635         * modules/printf-posix-tests (Makefile.am): Likewise.
23636         * modules/select-tests (Makefile.am): Likewise.
23637         * modules/sigpipe-tests (Makefile.am): Likewise.
23638         * modules/tsearch-tests (Makefile.am): Likewise.
23639         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
23640         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
23641         * modules/uniname/uniname-tests (Makefile.am): Likewise.
23642         * modules/uniwidth/width-tests (Makefile.am): Likewise.
23643         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
23644         * modules/version-etc-tests (Makefile.am): Likewise.
23645         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
23646         * modules/vprintf-posix-tests (Makefile.am): Likewise.
23647         * modules/xalloc-die-tests (Makefile.am): Likewise.
23648         * modules/xprintf-posix-tests (Makefile.am): Likewise.
23649         * modules/xstrtoimax-tests (Makefile.am): Likewise.
23650         * modules/xstrtol-tests (Makefile.am): Likewise.
23651         * modules/xstrtoumax-tests (Makefile.am): Likewise.
23652         * modules/yesno-tests (Makefile.am): Likewise.
23653         Suggested by Jim Meyering.
23654
23655 2010-01-24  Bruno Haible  <bruno@clisp.org>
23656
23657         More documentation.
23658         * doc/gnulib.texi (Writing modules): New chapter.
23659         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
23660         the new chapter.
23661
23662 2010-01-24  Jim Meyering  <meyering@redhat.com>
23663
23664         maint.mk: do not prepend "./" after filtering
23665         * top/maint.mk (_prepend_srcdir_prefix): New variable
23666         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
23667         "./" when $(srcdir) is ".".
23668
23669         define STREQ(a,b) consistently, removing useless parentheses
23670         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
23671         since the only risk is that "a" or "b" contains an unparenthesized
23672         comma, but if either did that, STREQ would have 3 or more arguments.
23673         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
23674         * lib/fts.c (STREQ): Remove unnecessary parentheses.
23675         * lib/hash-triple.c (STREQ): Likewise.
23676         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
23677         * lib/getugroups.c (STREQ): Likewise.
23678
23679 2010-01-23  Jim Meyering  <meyering@redhat.com>
23680
23681         maint.mk: fix syntax-check in a non-srcdir build directory
23682         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
23683         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
23684
23685 2010-01-22  Jim Meyering  <meyering@redhat.com>
23686
23687         userspec: add unit tests
23688         * tests/test-userspec.c: New file.
23689         * modules/userspec-tests: Likewise.
23690
23691 2010-01-21  Jim Meyering  <meyering@redhat.com>
23692
23693         maint.mk: handle source file names containing "." robustly
23694         * top/maint.mk (_dot_escaped_srcdir): Define.
23695         (VC_LIST): Use it in LHS of sed substitution.
23696
23697 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
23698
23699         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
23700         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
23701         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
23702         from a non-srcdir build.
23703
23704 2010-01-20  Eric Blake  <ebb9@byu.net>
23705
23706         warn-on-use: use instead of link-warning
23707         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
23708         * modules/unistd (Depends-on, Makefile.am): Likewise.
23709         * modules/arpa_inet (Depends-on): Replace link-warning with
23710         warn-on-use.
23711         (Makefile.am): Update rules accordingly.
23712         * modules/ctype (Depends-on, Makefile.am): Likewise.
23713         * modules/dirent (Depends-on, Makefile.am): Likewise.
23714         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
23715         * modules/inttypes (Depends-on, Makefile.am): Likewise.
23716         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23717         * modules/locale (Depends-on, Makefile.am): Likewise.
23718         * modules/math (Depends-on, Makefile.am): Likewise.
23719         * modules/search (Depends-on, Makefile.am): Likewise.
23720         * modules/signal (Depends-on, Makefile.am): Likewise.
23721         * modules/spawn (Depends-on, Makefile.am): Likewise.
23722         * modules/stdlib (Depends-on, Makefile.am): Likewise.
23723         * modules/string (Depends-on, Makefile.am): Likewise.
23724         * modules/strings (Depends-on, Makefile.am): Likewise.
23725         * modules/sys_file (Depends-on, Makefile.am): Likewise.
23726         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
23727         * modules/sys_select (Depends-on, Makefile.am): Likewise.
23728         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
23729         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
23730         * modules/sys_times (Depends-on, Makefile.am): Likewise.
23731         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23732         * modules/wchar (Depends-on, Makefile.am): Likewise.
23733         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
23734         should be poisoned.
23735         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
23736         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
23737         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
23738         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23739         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23740         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23741         * m4/math_h.m4 (gl_MATH_H): Likewise.
23742         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23743         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
23744         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23745         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
23746         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
23747         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
23748         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
23749         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
23750         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23751         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23752         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23753         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
23754         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23755         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23756         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23757         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23758         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
23759         GL_LINK_WARNING.
23760         * lib/ctype.in.h: Likewise.
23761         * lib/dirent.in.h: Likewise.
23762         * lib/fcntl.in.h: Likewise.
23763         * lib/inttypes.in.h: Likewise.
23764         * lib/langinfo.in.h: Likewise.
23765         * lib/locale.in.h: Likewise.
23766         * lib/math.in.h: Likewise.
23767         * lib/search.in.h: Likewise.
23768         * lib/signal.in.h: Likewise.
23769         * lib/spawn.in.h: Likewise.
23770         * lib/stdio.in.h: Likewise.
23771         * lib/stdlib.in.h: Likewise.
23772         * lib/string.in.h: Likewise.
23773         * lib/strings.in.h: Likewise.
23774         * lib/sys_file.in.h: Likewise.
23775         * lib/sys_ioctl.in.h: Likewise.
23776         * lib/sys_select.in.h: Likewise.
23777         * lib/sys_socket.in.h: Likewise.
23778         * lib/sys_stat.in.h: Likewise.
23779         * lib/sys_times.in.h: Likewise.
23780         * lib/sys_utsname.in.h: Likewise.
23781         * lib/unistd.in.h: Likewise.
23782         * lib/wchar.in.h: Likewise.
23783
23784 2010-01-20  Bruno Haible  <bruno@clisp.org>
23785
23786         Avoid duplicate -lm.
23787         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
23788         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
23789         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
23790         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
23791         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
23792         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
23793         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
23794         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
23795         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
23796         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
23797         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
23798         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23799         Reported by Paolo Bonzini.
23800
23801 2010-01-19  Bruno Haible  <bruno@clisp.org>
23802
23803         langinfo, nl_langinfo: Relicense under LGPLv2+.
23804         * modules/langinfo (License): Change to LGPLv2+.
23805         * modules/nl_langinfo (License): Likewise.
23806         Patch by David Lutterkort <lutter@redhat.com>.
23807
23808 2010-01-19  Bruno Haible  <bruno@clisp.org>
23809
23810         Avoid compilation error with cc on OSF/1 5.1.
23811         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
23812         statement, not before.
23813         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23814
23815 2010-01-18  Bruno Haible  <bruno@clisp.org>
23816
23817         Avoid a link error due to the __printf__ symbol.
23818         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
23819         and 2.6.x.
23820         (__format__, __printf__): Remove definitions.
23821         * lib/argp-fmtstream.h: Likewise.
23822         * lib/argp.h: Likewise.
23823         * lib/error.h: Likewise.
23824         * lib/vasnprintf.h: Likewise.
23825         * lib/xprintf.h: Likewise.
23826         * lib/xvasprintf.h: Likewise.
23827         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23828
23829 2010-01-18  Bruno Haible  <bruno@clisp.org>
23830
23831         Tests for module 'tanl'.
23832         * modules/tanl-tests: New file.
23833         * tests/test-tanl.c: New file.
23834
23835         Tests for module 'sqrtl'.
23836         * modules/sqrtl-tests: New file.
23837         * tests/test-sqrtl.c: New file.
23838
23839         Tests for module 'sinl'.
23840         * modules/sinl-tests: New file.
23841         * tests/test-sinl.c: New file.
23842
23843         Tests for module 'logl'.
23844         * modules/logl-tests: New file.
23845         * tests/test-logl.c: New file.
23846
23847         Tests for module 'expl'.
23848         * modules/expl-tests: New file.
23849         * tests/test-expl.c: New file.
23850
23851         Tests for module 'cosl'.
23852         * modules/cosl-tests: New file.
23853         * tests/test-cosl.c: New file.
23854
23855         Tests for module 'atanl'.
23856         * modules/atanl-tests: New file.
23857         * tests/test-atanl.c: New file.
23858
23859         Tests for module 'asinl'.
23860         * modules/asinl-tests: New file.
23861         * tests/test-asinl.c: New file.
23862
23863         Tests for module 'acosl'.
23864         * modules/acosl-tests: New file.
23865         * tests/test-acosl.c: New file.
23866
23867         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
23868         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
23869         tanl): Use the standard gnulib idiom.
23870         * lib/cosl.c: Don't include trigl.c and sincosl.c.
23871         * lib/sinl.c: Likewise.
23872         * lib/tanl.c: Don't include trigl.c.
23873         (kernel_tanl): Make static.
23874         * lib/sincosl.c: Include trigl.h first.
23875         * lib/trigl.c: Likewise.
23876         * m4/acosl.m4: New file.
23877         * m4/asinl.m4: New file.
23878         * m4/atanl.m4: New file.
23879         * m4/cosl.m4: New file.
23880         * m4/expl.m4: New file.
23881         * m4/logl.m4: New file.
23882         * m4/sinl.m4: New file.
23883         * m4/sqrtl.m4: New file.
23884         * m4/tanl.m4: New file.
23885         * m4/mathl.m4: Remove file.
23886         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
23887         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
23888         Don't initialize GNULIB_MATHL.
23889         * modules/acosl: New file.
23890         * modules/asinl: New file.
23891         * modules/atanl: New file.
23892         * modules/cosl: New file.
23893         * modules/expl: New file.
23894         * modules/logl: New file.
23895         * modules/sinl: New file.
23896         * modules/sqrtl: New file.
23897         * modules/tanl: New file.
23898         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
23899         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
23900         substitute GNULIB_MATHL.
23901         * modules/mathl: Rewritten.
23902         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
23903         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
23904         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
23905         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
23906         * doc/posix-functions/expl.texi: Mention the 'expl' module.
23907         * doc/posix-functions/logl.texi: Mention the 'logl' module.
23908         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
23909         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
23910         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
23911
23912 2010-01-18  Bruno Haible  <bruno@clisp.org>
23913
23914         sqrt: Make gl_FUNC_SQRT requirable.
23915         * m4/sqrt.m4: New file.
23916         * modules/sqrt (Files): Add it.
23917         (configure.ac): Invoke gl_FUNC_SQRT.
23918
23919 2010-01-18  Bruno Haible  <bruno@clisp.org>
23920
23921         New modules for common <math.h> functions.
23922         * m4/mathfunc.m4: New file.
23923         * modules/acos: New file.
23924         * modules/asin: New file.
23925         * modules/atan: New file.
23926         * modules/atan2: New file.
23927         * modules/cbrt: New file.
23928         * modules/copysign: New file.
23929         * modules/cos: New file.
23930         * modules/cosh: New file.
23931         * modules/erf: New file.
23932         * modules/erfc: New file.
23933         * modules/exp: New file.
23934         * modules/fabs: New file.
23935         * modules/fmod: New file.
23936         * modules/hypot: New file.
23937         * modules/j0: New file.
23938         * modules/j1: New file.
23939         * modules/jn: New file.
23940         * modules/ldexp: New file.
23941         * modules/lgamma: New file.
23942         * modules/log: New file.
23943         * modules/log10: New file.
23944         * modules/log1p: New file.
23945         * modules/logb: New file.
23946         * modules/modf: New file.
23947         * modules/nextafter: New file.
23948         * modules/pow: New file.
23949         * modules/remainder: New file.
23950         * modules/rint: New file.
23951         * modules/sin: New file.
23952         * modules/sinh: New file.
23953         * modules/sqrt: New file.
23954         * modules/tan: New file.
23955         * modules/tanh: New file.
23956         * modules/y0: New file.
23957         * modules/y1: New file.
23958         * modules/yn: New file.
23959         * doc/posix-functions/acos.texi: Mention the 'acos' module.
23960         * doc/posix-functions/asin.texi: Mention the 'asin' module.
23961         * doc/posix-functions/atan.texi: Mention the 'atan' module.
23962         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
23963         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
23964         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
23965         * doc/posix-functions/cos.texi: Mention the 'cos' module.
23966         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
23967         * doc/posix-functions/erf.texi: Mention the 'erf' module.
23968         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
23969         * doc/posix-functions/exp.texi: Mention the 'exp' module.
23970         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
23971         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
23972         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
23973         * doc/posix-functions/j0.texi: Mention the 'j0' module.
23974         * doc/posix-functions/j1.texi: Mention the 'j1' module.
23975         * doc/posix-functions/jn.texi: Mention the 'jn' module.
23976         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
23977         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
23978         * doc/posix-functions/log.texi: Mention the 'log' module.
23979         * doc/posix-functions/log10.texi: Mention the 'log10' module.
23980         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
23981         * doc/posix-functions/logb.texi: Mention the 'logb' module.
23982         * doc/posix-functions/modf.texi: Mention the 'modf' module.
23983         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
23984         * doc/posix-functions/pow.texi: Mention the 'pow' module.
23985         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
23986         * doc/posix-functions/rint.texi: Mention the 'rint' module.
23987         * doc/posix-functions/sin.texi: Mention the 'sin' module.
23988         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
23989         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
23990         * doc/posix-functions/tan.texi: Mention the 'tan' module.
23991         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
23992         * doc/posix-functions/y0.texi: Mention the 'y0' module.
23993         * doc/posix-functions/y1.texi: Mention the 'y1' module.
23994         * doc/posix-functions/yn.texi: Mention the 'yn' module.
23995
23996 2010-01-18  Jim Meyering  <meyering@redhat.com>
23997
23998         ignore-value: relax license to LGPLv2+
23999         * modules/ignore-value (License): Relax to LGPLv2+.
24000
24001         getdate: don't leak when TZ contains two or more '"'s
24002         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24003         double quote in TZ after the first one.
24004
24005         readtokens: do not leak internal token_lengths buffer
24006         * lib/readtokens.c (readtokens): Free the local, lengths,
24007         when the supplied "token_lengths" parameter is NULL.
24008
24009 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24010
24011         Fix a couple of missing LIBTHREAD link failures on AIX.
24012         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24013         $(LIBTHREAD).
24014         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24015
24016         Link test-poll against INET_PTON_LIB.
24017         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24018         for inet_pton on Solaris 10.
24019
24020 2010-01-17  Bruno Haible  <bruno@clisp.org>
24021
24022         unistdio/*-sprintf: Fix typo in module description.
24023         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24024         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24025         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24026         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24027         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24028         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24029         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24030         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24031
24032 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24033
24034         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24035         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24036         variables in shell case patterns, for AIX and HP-UX ksh.
24037
24038         Split large sed scripts, for HP-UX sed.
24039         * modules/stdio: Split sed scripts around 50 sed commands,
24040         to avoid HP-UX limit of 99 commands, in the near future.
24041         * modules/string: Likewise.
24042         * modules/unistd: Likewise.
24043
24044         gnulib-tool: avoid writing in the current directory.
24045         * gnulib-tool (func_emit_lib_Makefile_am)
24046         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24047         not in the current directory, so concurrent gnulib-tool
24048         instances do not interfere.
24049
24050 2010-01-16  Jim Meyering  <meyering@redhat.com>
24051
24052         doc: update users.txt
24053         * users.txt: Add grep.
24054         (diffutils, gzip): Update URLs.
24055
24056 2010-01-12  Bruno Haible  <bruno@clisp.org>
24057
24058         posix_spawn: Avoid test failure on Cygwin.
24059         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24060         characters.
24061         Reported by Simon Josefsson.
24062
24063 2010-01-12  Bruno Haible  <bruno@clisp.org>
24064
24065         * tests/test-cond.c (main): When skipping the test, show the reason.
24066
24067 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24068
24069         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24070
24071 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24072
24073         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24074         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24075
24076 2010-01-12  Eric Blake  <ebb9@byu.net>
24077
24078         build: guarantee AS_VAR_IF
24079         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24080         (gl_AS_VAR_IF): Move...
24081         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24082         Reported by Simon Josefsson.
24083
24084 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24085
24086         * lib/stdio.in.h: Fix typo.
24087
24088 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24089
24090         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24091         libgpg-error.
24092
24093 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24094
24095         * tests/test-xalloc-die.sh: Use $EXEEXT.
24096
24097 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24098             Bruno Haible  <bruno@clisp.org>
24099
24100         getlogin, getlogin_r: Avoid test failure.
24101         * tests/test-getlogin.c: Include <stdio.h>.
24102         (main): Skip the test when the function fails because stdin is not a
24103         tty.
24104         * tests/test-getlogin_r.c: Include <stdio.h>.
24105         (main): Skip the test when the function fails because stdin is not a
24106         tty.
24107
24108 2010-01-11  Eric Blake  <ebb9@byu.net>
24109
24110         tests: avoid more large file warnings
24111         * tests/test-fflush.c: Avoid warning about ftell use.
24112         * tests/test-fseek.c: Avoid warning about fseek use.
24113
24114 2010-01-10  Bruno Haible  <bruno@clisp.org>
24115
24116         nproc: Work better on Linux when /proc and /sys are not mounted.
24117         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24118         as lower bound when, on glibc/Linux systems,
24119         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24120         Suggested by Pádraig Brady <P@draigbrady.com>.
24121         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24122
24123         nproc: Refactor.
24124         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24125         extracted from num_processors.
24126         (num_processors): Call it.
24127
24128 2010-01-11  Jim Meyering  <meyering@redhat.com>
24129
24130         utimecmp: avoid new warning from upcoming gcc-4.5.0
24131         * lib/utimecmp.c (BILLION): Define using #define rather than an
24132         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24133
24134 2010-01-11  Eric Blake  <ebb9@byu.net>
24135
24136         math: add portability warnings for classification macros
24137         * modules/math (Depends-on): Add warn-on-use.
24138         (Makefile.am): Provide new substitutions.
24139         * m4/math_h.m4 (gl_MATH_H): Require inline.
24140         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24141         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24142         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24143         implement warnings.
24144
24145         unistd: warn on use of environ without module
24146         * modules/unistd (Depends-on): Add warn-on-use.
24147         (Makefile.am): Provide new substitutions.
24148         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
24149         * lib/unistd.in.h (environ): Wrap with a warning helper function.
24150
24151         stdio: warn on suspicious uses
24152         * modules/stdio (Depends-on): Add warn-on-use.
24153         (Makefile.am): Provide new substitutions.
24154         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
24155         fseeko.
24156         * lib/stdio.in.h (gets): Always warn on use.
24157         (fseek, ftell): Adjust when warnings are issued, and honor
24158         _GL_NO_LARGE_FILES as a way to silence the warning.
24159         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
24160         any warning about large file offsets.
24161         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
24162         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
24163         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
24164         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
24165         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
24166         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
24167         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
24168         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
24169
24170         warn-on-use: new module
24171         * modules/warn-on-use: New file.
24172         * build-aux/warn-on-use.h: Likewise.
24173         * m4/warn-on-use.m4: Likewise.
24174         * MODULES.html.sh (Support for building): Mention it.
24175
24176 2010-01-10  Bruno Haible  <bruno@clisp.org>
24177
24178         Tests for module 'unistr/u32-strdup'.
24179         * modules/unistr/u32-strdup-tests: New file.
24180         * tests/unistr/test-u32-strdup.c: New file.
24181
24182         Tests for module 'unistr/u16-strdup'.
24183         * modules/unistr/u16-strdup-tests: New file.
24184         * tests/unistr/test-u16-strdup.c: New file.
24185
24186         Tests for module 'unistr/u8-strdup'.
24187         * modules/unistr/u8-strdup-tests: New file.
24188         * tests/unistr/test-u8-strdup.c: New file.
24189         * tests/unistr/test-strdup.h: New file.
24190
24191         Tests for module 'unistr/u32-strncmp'.
24192         * modules/unistr/u32-strncmp-tests: New file.
24193         * tests/unistr/test-u32-strncmp.c: New file.
24194
24195         Tests for module 'unistr/u16-strncmp'.
24196         * modules/unistr/u16-strncmp-tests: New file.
24197         * tests/unistr/test-u16-strncmp.c: New file.
24198
24199         Tests for module 'unistr/u8-strncmp'.
24200         * modules/unistr/u8-strncmp-tests: New file.
24201         * tests/unistr/test-u8-strncmp.c: New file.
24202         * tests/unistr/test-strncmp.h: New file.
24203
24204         Tests for module 'unistr/u32-strcoll'.
24205         * modules/unistr/u32-strcoll-tests: New file.
24206         * tests/unistr/test-u32-strcoll.c: New file.
24207
24208         Tests for module 'unistr/u16-strcoll'.
24209         * modules/unistr/u16-strcoll-tests: New file.
24210         * tests/unistr/test-u16-strcoll.c: New file.
24211
24212         Tests for module 'unistr/u8-strcoll'.
24213         * modules/unistr/u8-strcoll-tests: New file.
24214         * tests/unistr/test-u8-strcoll.c: New file.
24215
24216         Tests for module 'unistr/u32-strcmp'.
24217         * modules/unistr/u32-strcmp-tests: New file.
24218         * tests/unistr/test-u32-strcmp.c: New file.
24219         * tests/unistr/test-u32-strcmp.h: New file.
24220
24221         Tests for module 'unistr/u16-strcmp'.
24222         * modules/unistr/u16-strcmp-tests: New file.
24223         * tests/unistr/test-u16-strcmp.c: New file.
24224         * tests/unistr/test-u16-strcmp.h: New file.
24225
24226         Tests for module 'unistr/u8-strcmp'.
24227         * modules/unistr/u8-strcmp-tests: New file.
24228         * tests/unistr/test-u8-strcmp.c: New file.
24229         * tests/unistr/test-u8-strcmp.h: New file.
24230         * tests/unistr/test-strcmp.h: New file.
24231
24232         Tests for module 'unistr/u32-strncat'.
24233         * modules/unistr/u32-strncat-tests: New file.
24234         * tests/unistr/test-u32-strncat.c: New file.
24235
24236         Tests for module 'unistr/u16-strncat'.
24237         * modules/unistr/u16-strncat-tests: New file.
24238         * tests/unistr/test-u16-strncat.c: New file.
24239
24240         Tests for module 'unistr/u8-strncat'.
24241         * modules/unistr/u8-strncat-tests: New file.
24242         * tests/unistr/test-u8-strncat.c: New file.
24243         * tests/unistr/test-strncat.h: New file.
24244
24245         Tests for module 'unistr/u32-strcat'.
24246         * modules/unistr/u32-strcat-tests: New file.
24247         * tests/unistr/test-u32-strcat.c: New file.
24248
24249         Tests for module 'unistr/u16-strcat'.
24250         * modules/unistr/u16-strcat-tests: New file.
24251         * tests/unistr/test-u16-strcat.c: New file.
24252
24253         Tests for module 'unistr/u8-strcat'.
24254         * modules/unistr/u8-strcat-tests: New file.
24255         * tests/unistr/test-u8-strcat.c: New file.
24256         * tests/unistr/test-strcat.h: New file.
24257
24258         Tests for module 'unistr/u32-stpncpy'.
24259         * modules/unistr/u32-stpncpy-tests: New file.
24260         * tests/unistr/test-u32-stpncpy.c: New file.
24261
24262         Tests for module 'unistr/u16-stpncpy'.
24263         * modules/unistr/u16-stpncpy-tests: New file.
24264         * tests/unistr/test-u16-stpncpy.c: New file.
24265
24266         Tests for module 'unistr/u8-stpncpy'.
24267         * modules/unistr/u8-stpncpy-tests: New file.
24268         * tests/unistr/test-u8-stpncpy.c: New file.
24269         * tests/unistr/test-stpncpy.h: New file.
24270
24271         Tests for module 'unistr/u32-strncpy'.
24272         * modules/unistr/u32-strncpy-tests: New file.
24273         * tests/unistr/test-u32-strncpy.c: New file.
24274
24275         Tests for module 'unistr/u16-strncpy'.
24276         * modules/unistr/u16-strncpy-tests: New file.
24277         * tests/unistr/test-u16-strncpy.c: New file.
24278
24279         Tests for module 'unistr/u8-strncpy'.
24280         * modules/unistr/u8-strncpy-tests: New file.
24281         * tests/unistr/test-u8-strncpy.c: New file.
24282         * tests/unistr/test-strncpy.h: New file.
24283
24284         Tests for module 'unistr/u32-stpcpy'.
24285         * modules/unistr/u32-stpcpy-tests: New file.
24286         * tests/unistr/test-u32-stpcpy.c: New file.
24287
24288         Tests for module 'unistr/u16-stpcpy'.
24289         * modules/unistr/u16-stpcpy-tests: New file.
24290         * tests/unistr/test-u16-stpcpy.c: New file.
24291
24292         Tests for module 'unistr/u8-stpcpy'.
24293         * modules/unistr/u8-stpcpy-tests: New file.
24294         * tests/unistr/test-u8-stpcpy.c: New file.
24295         * tests/unistr/test-stpcpy.h: New file.
24296
24297         Tests for module 'unistr/u32-strcpy'.
24298         * modules/unistr/u32-strcpy-tests: New file.
24299         * tests/unistr/test-u32-strcpy.c: New file.
24300
24301         Tests for module 'unistr/u16-strcpy'.
24302         * modules/unistr/u16-strcpy-tests: New file.
24303         * tests/unistr/test-u16-strcpy.c: New file.
24304
24305         Tests for module 'unistr/u8-strcpy'.
24306         * modules/unistr/u8-strcpy-tests: New file.
24307         * tests/unistr/test-u8-strcpy.c: New file.
24308         * tests/unistr/test-strcpy.h: New file.
24309
24310         Tests for module 'unistr/u32-strnlen'.
24311         * modules/unistr/u32-strnlen-tests: New file.
24312         * tests/unistr/test-u32-strnlen.c: New file.
24313
24314         Tests for module 'unistr/u16-strnlen'.
24315         * modules/unistr/u16-strnlen-tests: New file.
24316         * tests/unistr/test-u16-strnlen.c: New file.
24317
24318         Tests for module 'unistr/u8-strnlen'.
24319         * modules/unistr/u8-strnlen-tests: New file.
24320         * tests/unistr/test-u8-strnlen.c: New file.
24321         * tests/unistr/test-strnlen.h: New file.
24322
24323         Tests for module 'unistr/u32-strlen'.
24324         * modules/unistr/u32-strlen-tests: New file.
24325         * tests/unistr/test-u32-strlen.c: New file.
24326
24327         Tests for module 'unistr/u16-strlen'.
24328         * modules/unistr/u16-strlen-tests: New file.
24329         * tests/unistr/test-u16-strlen.c: New file.
24330
24331         Tests for module 'unistr/u8-strlen'.
24332         * modules/unistr/u8-strlen-tests: New file.
24333         * tests/unistr/test-u8-strlen.c: New file.
24334
24335         Tests for module 'unistr/u32-prev'.
24336         * modules/unistr/u32-prev-tests: New file.
24337         * tests/unistr/test-u32-prev.c: New file.
24338
24339         Tests for module 'unistr/u16-prev'.
24340         * modules/unistr/u16-prev-tests: New file.
24341         * tests/unistr/test-u16-prev.c: New file.
24342
24343         Tests for module 'unistr/u8-prev'.
24344         * modules/unistr/u8-prev-tests: New file.
24345         * tests/unistr/test-u8-prev.c: New file.
24346
24347         Tests for module 'unistr/u32-next'.
24348         * modules/unistr/u32-next-tests: New file.
24349         * tests/unistr/test-u32-next.c: New file.
24350
24351         Tests for module 'unistr/u16-next'.
24352         * modules/unistr/u16-next-tests: New file.
24353         * tests/unistr/test-u16-next.c: New file.
24354
24355         Tests for module 'unistr/u8-next'.
24356         * modules/unistr/u8-next-tests: New file.
24357         * tests/unistr/test-u8-next.c: New file.
24358
24359         Tests for module 'unistr/u32-strmbtouc'.
24360         * modules/unistr/u32-strmbtouc-tests: New file.
24361         * tests/unistr/test-u32-strmbtouc.c: New file.
24362
24363         Tests for module 'unistr/u16-strmbtouc'.
24364         * modules/unistr/u16-strmbtouc-tests: New file.
24365         * tests/unistr/test-u16-strmbtouc.c: New file.
24366
24367         Tests for module 'unistr/u8-strmbtouc'.
24368         * modules/unistr/u8-strmbtouc-tests: New file.
24369         * tests/unistr/test-u8-strmbtouc.c: New file.
24370
24371         Tests for module 'unistr/u32-strmblen'.
24372         * modules/unistr/u32-strmblen-tests: New file.
24373         * tests/unistr/test-u32-strmblen.c: New file.
24374
24375         Tests for module 'unistr/u16-strmblen'.
24376         * modules/unistr/u16-strmblen-tests: New file.
24377         * tests/unistr/test-u16-strmblen.c: New file.
24378
24379         Tests for module 'unistr/u8-strmblen'.
24380         * modules/unistr/u8-strmblen-tests: New file.
24381         * tests/unistr/test-u8-strmblen.c: New file.
24382
24383         Tests for module 'unistr/u32-cpy-alloc'.
24384         * modules/unistr/u32-cpy-alloc-tests: New file.
24385         * tests/unistr/test-u32-cpy-alloc.c: New file.
24386
24387         Tests for module 'unistr/u16-cpy-alloc'.
24388         * modules/unistr/u16-cpy-alloc-tests: New file.
24389         * tests/unistr/test-u16-cpy-alloc.c: New file.
24390
24391         Tests for module 'unistr/u8-cpy-alloc'.
24392         * modules/unistr/u8-cpy-alloc-tests: New file.
24393         * tests/unistr/test-u8-cpy-alloc.c: New file.
24394         * tests/unistr/test-cpy-alloc.h: New file.
24395
24396         Tests for module 'unistr/u32-mbsnlen'.
24397         * modules/unistr/u32-mbsnlen-tests: New file.
24398         * tests/unistr/test-u32-mbsnlen.c: New file.
24399
24400         Tests for module 'unistr/u16-mbsnlen'.
24401         * modules/unistr/u16-mbsnlen-tests: New file.
24402         * tests/unistr/test-u16-mbsnlen.c: New file.
24403
24404         Tests for module 'unistr/u8-mbsnlen'.
24405         * modules/unistr/u8-mbsnlen-tests: New file.
24406         * tests/unistr/test-u8-mbsnlen.c: New file.
24407
24408         Tests for module 'unistr/u32-chr'.
24409         * modules/unistr/u32-chr-tests: New file.
24410         * tests/unistr/test-u32-chr.c: New file.
24411
24412         Tests for module 'unistr/u16-chr'.
24413         * modules/unistr/u16-chr-tests: New file.
24414         * tests/unistr/test-u16-chr.c: New file.
24415
24416         Tests for module 'unistr/u8-chr'.
24417         * modules/unistr/u8-chr-tests: New file.
24418         * tests/unistr/test-u8-chr.c: New file.
24419         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
24420
24421         Tests for module 'unistr/u32-cmp2'.
24422         * modules/unistr/u32-cmp2-tests: New file.
24423         * tests/unistr/test-u32-cmp2.c: New file.
24424
24425         Tests for module 'unistr/u16-cmp2'.
24426         * modules/unistr/u16-cmp2-tests: New file.
24427         * tests/unistr/test-u16-cmp2.c: New file.
24428
24429         Tests for module 'unistr/u8-cmp2'.
24430         * modules/unistr/u8-cmp2-tests: New file.
24431         * tests/unistr/test-u8-cmp2.c: New file.
24432         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
24433
24434         Tests for module 'unistr/u32-cmp'.
24435         * modules/unistr/u32-cmp-tests: New file.
24436         * tests/unistr/test-u32-cmp.c: New file.
24437
24438         Tests for module 'unistr/u16-cmp'.
24439         * modules/unistr/u16-cmp-tests: New file.
24440         * tests/unistr/test-u16-cmp.c: New file.
24441
24442         Tests for module 'unistr/u8-cmp'.
24443         * modules/unistr/u8-cmp-tests: New file.
24444         * tests/unistr/test-u8-cmp.c: New file.
24445         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
24446
24447         Tests for module 'unistr/u32-set'.
24448         * modules/unistr/u32-set-tests: New file.
24449         * tests/unistr/test-u32-set.c: New file.
24450
24451         Tests for module 'unistr/u16-set'.
24452         * modules/unistr/u16-set-tests: New file.
24453         * tests/unistr/test-u16-set.c: New file.
24454
24455         Tests for module 'unistr/u8-set'.
24456         * modules/unistr/u8-set-tests: New file.
24457         * tests/unistr/test-u8-set.c: New file.
24458         * tests/unistr/test-set.h: New file.
24459
24460         Tests for module 'unistr/u32-move'.
24461         * modules/unistr/u32-move-tests: New file.
24462         * tests/unistr/test-u32-move.c: New file.
24463
24464         Tests for module 'unistr/u16-move'.
24465         * modules/unistr/u16-move-tests: New file.
24466         * tests/unistr/test-u16-move.c: New file.
24467
24468         Tests for module 'unistr/u8-move'.
24469         * modules/unistr/u8-move-tests: New file.
24470         * tests/unistr/test-u8-move.c: New file.
24471         * tests/unistr/test-move.h: New file.
24472
24473         Tests for module 'unistr/u32-cpy'.
24474         * modules/unistr/u32-cpy-tests: New file.
24475         * tests/unistr/test-u32-cpy.c: New file.
24476
24477         Tests for module 'unistr/u16-cpy'.
24478         * modules/unistr/u16-cpy-tests: New file.
24479         * tests/unistr/test-u16-cpy.c: New file.
24480
24481         Tests for module 'unistr/u8-cpy'.
24482         * modules/unistr/u8-cpy-tests: New file.
24483         * tests/unistr/test-u8-cpy.c: New file.
24484         * tests/unistr/test-cpy.h: New file.
24485
24486 2010-01-09  Bruno Haible  <bruno@clisp.org>
24487
24488         Tests for module 'unistr/u32-uctomb'.
24489         * modules/unistr/u32-uctomb-tests: New file.
24490         * tests/unistr/test-u32-uctomb.c: New file.
24491
24492         Tests for module 'unistr/u16-uctomb'.
24493         * modules/unistr/u16-uctomb-tests: New file.
24494         * tests/unistr/test-u16-uctomb.c: New file.
24495
24496         Tests for module 'unistr/u8-uctomb'.
24497         * modules/unistr/u8-uctomb-tests: New file.
24498         * tests/unistr/test-u8-uctomb.c: New file.
24499
24500         Tests for module 'unistr/u32-mbtoucr'.
24501         * modules/unistr/u32-mbtoucr-tests: New file.
24502         * tests/unistr/test-u32-mbtoucr.c: New file.
24503
24504         Tests for module 'unistr/u16-mbtoucr'.
24505         * modules/unistr/u16-mbtoucr-tests: New file.
24506         * tests/unistr/test-u16-mbtoucr.c: New file.
24507
24508         Tests for module 'unistr/u8-mbtoucr'.
24509         * modules/unistr/u8-mbtoucr-tests: New file.
24510         * tests/unistr/test-u8-mbtoucr.c: New file.
24511
24512         Tests for module 'unistr/u32-mbtouc'.
24513         * modules/unistr/u32-mbtouc-tests: New file.
24514         * tests/unistr/test-u32-mbtouc.c: New file.
24515
24516         Tests for module 'unistr/u16-mbtouc'.
24517         * modules/unistr/u16-mbtouc-tests: New file.
24518         * tests/unistr/test-u16-mbtouc.c: New file.
24519
24520         Tests for module 'unistr/u8-mbtouc'.
24521         * modules/unistr/u8-mbtouc-tests: New file.
24522         * tests/unistr/test-u8-mbtouc.c: New file.
24523
24524         Tests for module 'unistr/u32-mbtouc-unsafe'.
24525         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
24526         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
24527         * tests/unistr/test-u32-mbtouc.h: New file.
24528
24529         Tests for module 'unistr/u16-mbtouc-unsafe'.
24530         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
24531         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
24532         * tests/unistr/test-u16-mbtouc.h: New file.
24533
24534         Tests for module 'unistr/u8-mbtouc-unsafe'.
24535         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
24536         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
24537         * tests/unistr/test-u8-mbtouc.h: New file.
24538
24539         Tests for module 'unistr/u32-mblen'.
24540         * modules/unistr/u32-mblen-tests: New file.
24541         * tests/unistr/test-u32-mblen.c: New file.
24542
24543         Tests for module 'unistr/u16-mblen'.
24544         * modules/unistr/u16-mblen-tests: New file.
24545         * tests/unistr/test-u16-mblen.c: New file.
24546
24547         Tests for module 'unistr/u8-mblen'.
24548         * modules/unistr/u8-mblen-tests: New file.
24549         * tests/unistr/test-u8-mblen.c: New file.
24550
24551         Tests for module 'unistr/u32-to-u16'.
24552         * modules/unistr/u32-to-u16-tests: New file.
24553         * tests/unistr/test-u32-to-u16.c: New file.
24554
24555         Tests for module 'unistr/u32-to-u8'.
24556         * modules/unistr/u32-to-u8-tests: New file.
24557         * tests/unistr/test-u32-to-u8.c: New file.
24558
24559         Tests for module 'unistr/u16-to-u32'.
24560         * modules/unistr/u16-to-u32-tests: New file.
24561         * tests/unistr/test-u16-to-u32.c: New file.
24562
24563         Tests for module 'unistr/u16-to-u8'.
24564         * modules/unistr/u16-to-u8-tests: New file.
24565         * tests/unistr/test-u16-to-u8.c: New file.
24566
24567         Tests for module 'unistr/u8-to-u32'.
24568         * modules/unistr/u8-to-u32-tests: New file.
24569         * tests/unistr/test-u8-to-u32.c: New file.
24570
24571         Tests for module 'unistr/u8-to-u16'.
24572         * modules/unistr/u8-to-u16-tests: New file.
24573         * tests/unistr/test-u8-to-u16.c: New file.
24574
24575         Tests for module 'unistr/u32-check'.
24576         * modules/unistr/u32-check-tests: New file.
24577         * tests/unistr/test-u32-check.c: New file.
24578
24579         Tests for module 'unistr/u16-check'.
24580         * modules/unistr/u16-check-tests: New file.
24581         * tests/unistr/test-u16-check.c: New file.
24582
24583         Tests for module 'unistr/u8-check'.
24584         * modules/unistr/u8-check-tests: New file.
24585         * tests/unistr/test-u8-check.c: New file.
24586
24587         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
24588         (category_equals): New function.
24589         (main): Add more tests.
24590         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
24591
24592         * tests/unictype/test-bidi_byname.c (main): Add more tests.
24593
24594 2010-01-10  Bruno Haible  <bruno@clisp.org>
24595
24596         unistr/u*-strcoll: Try harder to distinguish different strings.
24597         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
24598         compare s1 and s2 to see if they are different.
24599
24600 2010-01-10  Bruno Haible  <bruno@clisp.org>
24601
24602         unistr/u*-stpncpy: Fix the return value.
24603         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
24604         description of the return value consistent with stpncpy in glibc.
24605         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
24606         written non-NUL unit.
24607
24608 2010-01-10  Bruno Haible  <bruno@clisp.org>
24609
24610         unistr/u*-next: Add missing dependencies.
24611         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
24612         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
24613         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
24614
24615 2010-01-10  Bruno Haible  <bruno@clisp.org>
24616
24617         unistr/u8-mbsnlen: Fix return value for incomplete character.
24618         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
24619         u8_mblen.
24620         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
24621         Remove unistr/u8-mblen.
24622         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
24623         u16_mblen.
24624         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
24625         Remove unistr/u16-mblen.
24626
24627 2010-01-10  Bruno Haible  <bruno@clisp.org>
24628
24629         wchar: Fix compilation error when <wchar.h> is used from coreutils.
24630         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
24631         Reported by Brian Gough <bjg@gnu.org> and
24632         Chris Clayton <chris2553@googlemail.com> via
24633         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
24634
24635 2010-01-09  Bruno Haible  <bruno@clisp.org>
24636
24637         unistr/u16-to-u32: Reject invalid input.
24638         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
24639         u16_mbtouc.
24640         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
24641         Remove unistr/u16-mbtouc.
24642
24643         unistr/u16-to-u8: Reject invalid input.
24644         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
24645         u16_mbtouc.
24646         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
24647         Remove unistr/u16-mbtouc.
24648
24649         unistr/u8-to-u32: Reject invalid input.
24650         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
24651         u8_mbtouc.
24652         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
24653         Remove unistr/u8-mbtouc.
24654
24655         unistr/u8-to-u16: Reject invalid input.
24656         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
24657         u8_mbtouc.
24658         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
24659         Remove unistr/u8-mbtouc.
24660
24661 2010-01-09  Bruno Haible  <bruno@clisp.org>
24662
24663         Tests for module 'getlogin'.
24664         * modules/getlogin-tests: New file.
24665         * tests/test-getlogin.c: New file.
24666
24667         New module 'getlogin'.
24668         * lib/unistd.in.h (getlogin): New declaration.
24669         * lib/getlogin.c: New file.
24670         * m4/getlogin.m4: New file.
24671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
24672         HAVE_GETLOGIN.
24673         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
24674         HAVE_GETLOGIN.
24675         * modules/getlogin: New file.
24676         * doc/posix-functions/getlogin.texi: Mention the new module.
24677         Reported by John W. Eaton <jwe@gnu.org>.
24678
24679 2010-01-09  Bruno Haible  <bruno@clisp.org>
24680
24681         getlogin_r: Support for native Windows.
24682         * lib/getlogin_r.c: Include <windows.h>
24683         (getlogin_r): Implement for native Windows.
24684         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
24685         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
24686         via John W. Eaton <jwe@gnu.org>.
24687
24688 2010-01-09  Bruno Haible  <bruno@clisp.org>
24689
24690         getlogin_r: Small fixes.
24691         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
24692         succeeds.
24693         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
24694         before testing whether getlogin_r is declared. No need to set
24695         HAVE_DECL_GETLOGIN_R to 1.
24696         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
24697
24698 2010-01-09  Bruno Haible  <bruno@clisp.org>
24699
24700         * lib/unistd.in.h (getlogin_r): Add comment.
24701
24702 2010-01-09  Bruno Haible  <bruno@clisp.org>
24703
24704         Tests for module 'getlogin_r'.
24705         * modules/getlogin_r-tests: New file.
24706         * tests/test-getlogin_r.c: New file.
24707
24708 2010-01-09  Jim Meyering  <meyering@redhat.com>
24709
24710         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
24711         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
24712         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
24713
24714 2010-01-08  Simon Josefsson  <simon@josefsson.org>
24715
24716         * lib/dup2.c (rpl_dup2): Improve comment.
24717
24718 2010-01-08  Eric Blake  <ebb9@byu.net>
24719
24720         maint.mk: allow packages to add makefile @@ exceptions
24721         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
24722         (sc_makefile_check): Rename...
24723         (sc_makefile_at_at_check): ...to this, and use hook.
24724
24725         dup2: work around mingw bug
24726         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
24727         Reported by Simon Josefsson.
24728
24729 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
24730
24731         glob: Fix C++ compilation.
24732         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
24733         C++.
24734
24735 2010-01-07  Bruno Haible  <bruno@clisp.org>
24736
24737         Fix indentation of wctype.in.h, broken since 2007-01-06.
24738         * lib/wctype.in.h: Fix indentation of preprocessor directives.
24739
24740 2010-01-07  Bruno Haible  <bruno@clisp.org>
24741
24742         mbslen: Avoid collision with system function.
24743         * lib/string.in.h [MirBSD]: Include <wchar.h>.
24744         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
24745         * m4/mbslen.m4: New file.
24746         * modules/mbslen (Files): Add it.
24747         (configure.ac): Invoke gl_MBSLEN.
24748         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
24749         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
24750         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
24751         via Ian Beckwith <ianb@erislabs.net>.
24752
24753 2010-01-07  Bruno Haible  <bruno@clisp.org>
24754
24755         dirent: Document the last fix.
24756         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
24757
24758 2010-01-07  Bruno Haible  <bruno@clisp.org>
24759
24760         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
24761         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
24762         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
24763         va_list are defined.
24764         * doc/posix-headers/stdio.texi: Document the bug of missing types.
24765         Reported by Eric Blake.
24766
24767 2010-01-07  Bruno Haible  <bruno@clisp.org>
24768
24769         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
24770         * modules/xlist (Depends-on): Add 'list',
24771         * modules/xoset (Depends-on): Add 'oset'.
24772         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24773
24774 2010-01-07  Bruno Haible  <bruno@clisp.org>
24775
24776         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
24777         * doc/posix-functions/strncasecmp.texi: Likewise.
24778
24779 2010-01-07  Bruno Haible  <bruno@clisp.org>
24780
24781         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
24782
24783 2010-01-07  John W. Eaton  <jwe@octave.org>
24784
24785         wctype: allow C++ use
24786         * lib/wctype.in.h: Add extern "C" block for C++.
24787
24788 2010-01-06  Eric Blake  <ebb9@byu.net>
24789
24790         maint.mk: detect incorrect GFDL usage
24791         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
24792
24793 2010-01-06  Jim Meyering  <meyering@redhat.com>
24794         and Eric Blake  <ebb9@byu.net>
24795
24796         maint.mk: ignore multi-line copyright in NEWS
24797         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
24798
24799 2010-01-06  Eric Blake  <ebb9@byu.net>
24800
24801         select: add missing dependency
24802         * modules/select-tests (Depends-on): Move sockets dependency...
24803         * modules/select (Depends-on): ...here.
24804         Reported by Ian Beckwith.
24805
24806         doc: regenerate INSTALL
24807         * doc/INSTALL: Reflect recent autoconf update.
24808         * doc/INSTALL.ISO: Likewise.
24809         * doc/INSTALL.UTF-8: Likewise.
24810
24811         pread: fix compilation on glibc
24812         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
24813         Reported by Ralf Wildenhues.
24814
24815         dirent: fix test failure
24816         * lib/dirent.in.h (includes): Guarantee ino_t.
24817         Reported by Ralf Wildenhues.
24818
24819 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
24820
24821         linkat, renameat: avoid bad free
24822         * lib/at-func2.c (at_func2): Fix typo.
24823         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
24824
24825 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24826
24827         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
24828         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
24829         to avoid failure of symlink test later.
24830
24831 2010-01-06  Eric Blake  <ebb9@byu.net>
24832
24833         stdio, unistd: guarantee ssize_t
24834         * lib/unistd.in.h (includes): Ensure that types required by POSIX
24835         2008 are exposed when needed.
24836         * lib/stdio.in.h (includes): Likewise.
24837         Reported by Ralf Wildenhues.
24838
24839 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
24840
24841         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
24842         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
24843         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
24844
24845 2010-01-06  Jim Meyering  <meyering@redhat.com>
24846
24847         readtokens: this module *does* require xalloc.h
24848         It uses only functions that were omitted by the old syntax-check rule.
24849         * lib/readtokens.c: Include "xalloc.h" once again.
24850         * modules/readtokens (Depends-on): Add xalloc.
24851         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
24852
24853 2010-01-05  Eric Blake  <ebb9@byu.net>
24854
24855         maint: support 'make announcement' from a VPATH build
24856         * top/maint.mk (announcement): Look for correct NEWS file.
24857
24858 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
24859
24860         utimens (fdutimens): ignore a negative FD, per contract
24861         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
24862         when we have a valid file descriptor.  Otherwise, using a brand
24863         new glibc (with just-patched futimens that now fails with EBADF)
24864         would cause this function to fail with ENOSYS.
24865         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
24866         See also http://bugzilla.redhat.com/552320.
24867
24868 2010-01-05  Eric Blake  <ebb9@byu.net>
24869
24870         strcase: document what it provides
24871         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
24872         gnulib module.
24873         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
24874         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
24875
24876 2010-01-05  Jim Meyering  <meyering@redhat.com>
24877
24878         maint: remove useless inclusions of "xalloc.h"
24879         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
24880         * lib/readtokens.c: Likewise.
24881         * lib/same.c: Likewise.
24882         * modules/getloadavg (Depends-on): Remove xalloc.
24883         * modules/readtokens: Likewise.
24884         * modules/same: Likewise.
24885
24886         maint.mk: include 4 more function names in alloca.h-checking regexp
24887         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
24888         regexp.  Before, we would give a false-positive (saying alloca.h
24889         is included unnecessarily) when the only uses involved omitted symbols.
24890
24891         xalloc.h: use consistent formatting
24892         * lib/xalloc.h: Move declarations to start in the first column.
24893
24894 2010-01-05  Eric Blake  <ebb9@byu.net>
24895
24896         mkdir: avoid xalloc
24897         * lib/mkdir.c (includes): Drop unused header.
24898         Reported by John W. Eaton.
24899
24900 2010-01-04  Jim Meyering  <meyering@redhat.com>
24901
24902         nl_langinfo: avoid configure-time syntax error
24903         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
24904         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
24905         the empty string.  Don't let that provoke a shell syntax error.
24906
24907         regcomp, regexec, fnmatch: avoid array bounds read error
24908         * lib/regcomp.c (build_equiv_class): From glibc:
24909         Use only the low 24 bits of a findidx return value as an index
24910         into the weights array.  Patch by Ulrich Drepper:
24911         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
24912         * lib/regexec.c (check_node_accept_bytes): Likewise.
24913         * lib/fnmatch_loop.c (FCT): Likewise.
24914
24915         regcomp: skip collseq lookup when there are no rules
24916         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
24917         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
24918
24919         regcomp: recognize ill-formed { } expressions
24920         * lib/regcomp.c (parse_dup_op): From glibc:
24921         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
24922
24923         regcomp: fix typo in comment
24924         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
24925         s/satisfy/satisfies/.
24926
24927         regcomp: sync from glibc: remove dead store
24928         * lib/regcomp.c (duplicate_node_closure): Remove useless
24929         search_duplicated_node call and dead store.
24930
24931         regcomp: sync from glibc; always use nl_langinfo
24932         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
24933         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
24934         * modules/regex (Depends-on): Add nl_langinfo.
24935
24936 2010-01-04  Eric Blake  <ebb9@byu.net>
24937
24938         fdopendir: fix configure test
24939         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
24940
24941 2010-01-01  Bruno Haible  <bruno@clisp.org>
24942
24943         wchar: Remove unused configure check.
24944         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
24945
24946 2010-01-01  Eric Blake  <ebb9@byu.net>
24947
24948         headers: make check of system header explicit
24949         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
24950         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
24951         ourselves.
24952         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24953         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24954         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
24955         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
24956         internals.
24957         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
24958         missing.
24959         Suggested by Bruno Haible.
24960
24961 2010-01-01  Jim Meyering  <meyering@redhat.com>
24962
24963         ChangeLog: tweak to eliminate unnecessary copyright line
24964         * ChangeLog: Remove a copyright line that was mistakenly updated
24965         by today's update-copyright run.  Reported by Eric Blake.
24966
24967         test-update-copyright: don't let envvar setting cause test failure
24968         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24969
24970 2010-01-01  Bruno Haible  <bruno@clisp.org>
24971
24972         localename: Avoid gcc warning.
24973         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
24974         function if it is not used.
24975
24976 2010-01-01  Jim Meyering  <meyering@redhat.com>
24977
24978         update nearly all FSF copyright year lists to include 2010
24979         Use the same procedure as for 2009, outlined in
24980         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
24981
24982         version-etc: set COPYRIGHT_YEAR to 2010
24983         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
24984
24985 2009-12-31  Eric Blake  <ebb9@byu.net>
24986
24987         doc: correct availability of cygwin 1.5.x getopt
24988         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
24989         variables.
24990         * doc/posix-functions/opterr.texi (opterr): Likewise.
24991         * doc/posix-functions/optind.texi (optind): Likewise.
24992         * doc/posix-functions/optopt.texi (optopt): Likewise.
24993         * doc/posix-functions/tzname.texi (tzname): Likewise.
24994
24995         openat: update maintainer
24996         * modules/openat (Maintainer): Add myself.
24997
24998         utimens: avoid shadowing warning
24999         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25000         buffers into one, to avoid shadowing, as well as avoiding a
25001         redundant stat.
25002         Reported by Jim Meyering.
25003
25004         test-dup2: avoid compiler warning
25005         * tests/test-dup2.c (is_inheritable): Only define if used.
25006
25007 2010-01-01  Bruno Haible  <bruno@clisp.org>
25008
25009         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25010         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25011         defined, use wctomb instead of wcrtomb.
25012
25013 2010-01-01  Bruno Haible  <bruno@clisp.org>
25014
25015         iconv: Reject native Solaris iconv.
25016         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25017         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25018
25019 2009-12-31  Bruno Haible  <bruno@clisp.org>
25020
25021         * tests/test-signal.c (main): Remove test of 'SIG'.
25022
25023 2009-12-31  Bruno Haible  <bruno@clisp.org>
25024
25025         spawn: Fix incomplete fix.
25026         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25027         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25028         warnings for GNULIB_POSIXCHECK again.
25029         Reported by Eric Blake.
25030
25031 2009-12-31  Bruno Haible  <bruno@clisp.org>
25032
25033         Avoid namespace pollution on glibc systems.
25034         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25035         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25036         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25037         glibc systems.
25038
25039 2009-12-31  Bruno Haible  <bruno@clisp.org>
25040
25041         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25042         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25043         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25044         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25045         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25046         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25047         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25048
25049 2009-12-31  Bruno Haible  <bruno@clisp.org>
25050
25051         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25052         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25053         afterwards.
25054
25055 2009-12-31  Bruno Haible  <bruno@clisp.org>
25056
25057         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25058         SYS_UTSNAME_H.
25059
25060 2009-12-31  Bruno Haible  <bruno@clisp.org>
25061
25062         spawn: Fix misapplied patch.
25063         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25064         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25065         warnings for GNULIB_POSIXCHECK.
25066
25067 2009-12-31  Bruno Haible  <bruno@clisp.org>
25068
25069         times: Update after sys_times changed.
25070         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25071         * modules/times (Files): Add it.
25072         (configure.ac): Invoke gl_FUNC_TIMES.
25073
25074 2009-12-31  Bruno Haible  <bruno@clisp.org>
25075
25076         Use AC_C_INLINE where necessary.
25077         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25078         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25079         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25080         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25081         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25082         * m4/mbiter.m4 (gl_MBITER): Likewise.
25083         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25084         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25085         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25086         * modules/u64 (configure.ac): Likewise.
25087
25088 2009-12-31  Bruno Haible  <bruno@clisp.org>
25089
25090         Use AC_C_INLINE instead of module 'inline' where possible.
25091         * modules/inline (Description): Clarify purpose.
25092         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25093         * modules/count-one-bits (Depends-on): Remove inline.
25094         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25095         * modules/openat (Depends-on): Remove inline.
25096         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25097         instead of depending on module 'inline'.
25098         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25099         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25100         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25101         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25102         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25103         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25104         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25105         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25106         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25107         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25108         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25109         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25110         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25111         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25112         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25113         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25114         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25115         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25116         Likewise.
25117         * modules/unictype/property-ascii-hex-digit (Depends-on,
25118         configure.ac): Likewise.
25119         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25120         configure.ac): Likewise.
25121         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25122         configure.ac): Likewise.
25123         * modules/unictype/property-bidi-block-separator (Depends-on,
25124         configure.ac): Likewise.
25125         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25126         configure.ac): Likewise.
25127         * modules/unictype/property-bidi-common-separator (Depends-on,
25128         configure.ac): Likewise.
25129         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25130         Likewise.
25131         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25132         configure.ac): Likewise.
25133         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25134         configure.ac): Likewise.
25135         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25136         configure.ac): Likewise.
25137         * modules/unictype/property-bidi-european-digit (Depends-on,
25138         configure.ac): Likewise.
25139         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25140         configure.ac): Likewise.
25141         * modules/unictype/property-bidi-left-to-right (Depends-on,
25142         configure.ac): Likewise.
25143         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
25144         configure.ac): Likewise.
25145         * modules/unictype/property-bidi-other-neutral (Depends-on,
25146         configure.ac): Likewise.
25147         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
25148         Likewise.
25149         * modules/unictype/property-bidi-segment-separator (Depends-on,
25150         configure.ac): Likewise.
25151         * modules/unictype/property-bidi-whitespace (Depends-on,
25152         configure.ac): Likewise.
25153         * modules/unictype/property-combining (Depends-on, configure.ac):
25154         Likewise.
25155         * modules/unictype/property-composite (Depends-on, configure.ac):
25156         Likewise.
25157         * modules/unictype/property-currency-symbol (Depends-on,
25158         configure.ac): Likewise.
25159         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
25160         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
25161         Likewise.
25162         * modules/unictype/property-default-ignorable-code-point (Depends-on,
25163         configure.ac): Likewise.
25164         * modules/unictype/property-deprecated (Depends-on, configure.ac):
25165         Likewise.
25166         * modules/unictype/property-diacritic (Depends-on, configure.ac):
25167         Likewise.
25168         * modules/unictype/property-extender (Depends-on, configure.ac):
25169         Likewise.
25170         * modules/unictype/property-format-control (Depends-on, configure.ac):
25171         Likewise.
25172         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
25173         Likewise.
25174         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
25175         Likewise.
25176         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
25177         Likewise.
25178         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
25179         Likewise.
25180         * modules/unictype/property-hyphen (Depends-on, configure.ac):
25181         Likewise.
25182         * modules/unictype/property-id-continue (Depends-on, configure.ac):
25183         Likewise.
25184         * modules/unictype/property-id-start (Depends-on, configure.ac):
25185         Likewise.
25186         * modules/unictype/property-ideographic (Depends-on, configure.ac):
25187         Likewise.
25188         * modules/unictype/property-ids-binary-operator (Depends-on,
25189         configure.ac): Likewise.
25190         * modules/unictype/property-ids-trinary-operator (Depends-on,
25191         configure.ac): Likewise.
25192         * modules/unictype/property-ignorable-control (Depends-on,
25193         configure.ac): Likewise.
25194         * modules/unictype/property-iso-control (Depends-on, configure.ac):
25195         Likewise.
25196         * modules/unictype/property-join-control (Depends-on, configure.ac):
25197         Likewise.
25198         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
25199         Likewise.
25200         * modules/unictype/property-line-separator (Depends-on, configure.ac):
25201         Likewise.
25202         * modules/unictype/property-logical-order-exception (Depends-on,
25203         configure.ac): Likewise.
25204         * modules/unictype/property-lowercase (Depends-on, configure.ac):
25205         Likewise.
25206         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
25207         * modules/unictype/property-non-break (Depends-on, configure.ac):
25208         Likewise.
25209         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
25210         Likewise.
25211         * modules/unictype/property-numeric (Depends-on, configure.ac):
25212         Likewise.
25213         * modules/unictype/property-other-alphabetic (Depends-on,
25214         configure.ac): Likewise.
25215         * modules/unictype/property-other-default-ignorable-code-point
25216         (Depends-on, configure.ac): Likewise.
25217         * modules/unictype/property-other-grapheme-extend (Depends-on,
25218         configure.ac): Likewise.
25219         * modules/unictype/property-other-id-continue (Depends-on,
25220         configure.ac): Likewise.
25221         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
25222         Likewise.
25223         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
25224         Likewise.
25225         * modules/unictype/property-other-math (Depends-on, configure.ac):
25226         Likewise.
25227         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
25228         Likewise.
25229         * modules/unictype/property-paired-punctuation (Depends-on,
25230         configure.ac): Likewise.
25231         * modules/unictype/property-paragraph-separator (Depends-on,
25232         configure.ac): Likewise.
25233         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
25234         Likewise.
25235         * modules/unictype/property-pattern-white-space (Depends-on,
25236         configure.ac): Likewise.
25237         * modules/unictype/property-private-use (Depends-on, configure.ac):
25238         Likewise.
25239         * modules/unictype/property-punctuation (Depends-on, configure.ac):
25240         Likewise.
25241         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
25242         Likewise.
25243         * modules/unictype/property-radical (Depends-on, configure.ac):
25244         Likewise.
25245         * modules/unictype/property-sentence-terminal (Depends-on,
25246         configure.ac): Likewise.
25247         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
25248         Likewise.
25249         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
25250         * modules/unictype/property-terminal-punctuation (Depends-on,
25251         configure.ac): Likewise.
25252         * modules/unictype/property-titlecase (Depends-on, configure.ac):
25253         Likewise.
25254         * modules/unictype/property-unassigned-code-value (Depends-on,
25255         configure.ac): Likewise.
25256         * modules/unictype/property-unified-ideograph (Depends-on,
25257         configure.ac): Likewise.
25258         * modules/unictype/property-uppercase (Depends-on, configure.ac):
25259         Likewise.
25260         * modules/unictype/property-variation-selector (Depends-on,
25261         configure.ac): Likewise.
25262         * modules/unictype/property-white-space (Depends-on, configure.ac):
25263         Likewise.
25264         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
25265         Likewise.
25266         * modules/unictype/property-xid-start (Depends-on, configure.ac):
25267         Likewise.
25268         * modules/unictype/property-zero-width (Depends-on, configure.ac):
25269         Likewise.
25270         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
25271         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
25272         Likewise.
25273
25274 2009-12-31  Bruno Haible  <bruno@clisp.org>
25275
25276         Remove unnecessary AC_C_INLINE invocation.
25277         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25278         since 2009-08-21.
25279
25280 2009-12-31  Jim Meyering  <meyering@redhat.com>
25281
25282         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25283         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25284         With this change, we can all remove the gpg_key_ID = ... definition
25285         from our respective cfg.mk files.
25286
25287         maint.mk: create announcement template in ~/, not in /tmp
25288         * top/maint.mk (emit_upload_commands): Adjust.
25289         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25290         Remove temporary file, .ci-msg.
25291
25292 2009-12-31  Eric Blake  <ebb9@byu.net>
25293
25294         link-warning: always build headers with link warnings
25295         * modules/arpa_inet (Makefile.am): Always build replacement
25296         header.
25297         * modules/ctype (Makefile.am): Likewise.
25298         * modules/dirent (Makefile.am): Likewise.
25299         * modules/inttypes (Makefile.am): Likewise.
25300         * modules/langinfo (Makefile.am): Likewise.
25301         * modules/locale (Makefile.am): Likewise.
25302         * modules/spawn (Makefile.am): Likewise.
25303         * modules/sys_file (Makefile.am): Likewise.
25304         * modules/sys_ioctl (Makefile.am): Likewise.
25305         * modules/sys_select (Makefile.am): Likewise.
25306         * modules/sys_socket (Makefile.am): Likewise.
25307         * modules/sys_times (Makefile.am): Likewise.
25308         * modules/sys_utsname (Makefile.am): Likewise.
25309         * modules/sys_wait (Makefile.am): Likewise.
25310         * modules/wchar (Makefile.am): Likewise.
25311         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
25312         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
25313         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
25314         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
25315         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
25316         Likewise.
25317         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25318         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25319         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
25320         Likewise.
25321         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
25322         Likewise.
25323         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25324         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
25325         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
25326         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25327         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25328         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25329         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25330         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
25331         (gl_WCHAR_H_DEFAULTS): Likewise.
25332
25333 2009-12-31  Eric Blake  <ebb9@byu.net>
25334
25335         signal, spawn: use link warnings
25336         * lib/signal.in.h (sigset_t): Make unconditional.
25337         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
25338         (sigpending, sigprocmask, sigaction): Add link warnings.
25339         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
25340         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
25341         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
25342         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
25343         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
25344         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
25345         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
25346         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
25347         (posix_spawn_file_actions_destroy)
25348         (posix_spawn_file_actions_addopen)
25349         (posix_spawn_file_actions_addclose)
25350         (posix_spawn_file_actions_adddup2): Likewise.
25351         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
25352         * tests/test-signal.c (main): Enhance test.
25353
25354         spawn: improve wrapper support
25355         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
25356         (gl_SPAWN_H_DEFAULTS): New defaults.
25357         * modules/spawn (Makefile.am): Substitute them.
25358         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
25359         Only declare if missing or broken.
25360
25361         sys_times, sys_utsname: use include_next
25362         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
25363         header.
25364         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
25365         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25366         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25367         * modules/sys_times (Depends-on): Add include_next.
25368         (Makefile.am): Substitute additional values.
25369         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25370         * lib/sys_times.in.h (includes): Include native header, if
25371         available.
25372         * lib/sys_utsname.in.h (includes): Likewise.
25373         * tests/test-sys_times.c (main): Enhance test.
25374
25375         fdutimensat: revert prior patch
25376         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
25377         utimens.h.
25378         Reported by Bruno Haible.
25379
25380 2009-12-30  Eric Blake  <ebb9@byu.net>
25381
25382         sys_wait: drop link-warning dependency
25383         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
25384         link-warning efforts.
25385         * lib/sys_wait.in.h: Likewise.
25386
25387         fdutimensat: remove bogus dependency
25388         * modules/fdutimensat (Depends-on): Drop inline.
25389
25390         unistd: fix typo
25391         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
25392
25393 2009-12-30  Bruno Haible  <bruno@clisp.org>
25394
25395         Fix compilation error with Solaris cc.
25396         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
25397         * lib/unicase/u16-is-invariant.c: Likewise.
25398         * lib/unicase/u32-is-invariant.c: Likewise.
25399         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25400
25401 2009-12-30  Bruno Haible  <bruno@clisp.org>
25402
25403         Fix test crash.
25404         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
25405         locales.
25406         Reported by Simon Josefsson <simon@josefsson.org>.
25407
25408 2009-12-30  Bruno Haible  <bruno@clisp.org>
25409
25410         Fix compilation error on most platforms.
25411         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
25412         Reported by Simon Josefsson <simon@josefsson.org>
25413         and Nelson H. F. Beebe <beebe@math.utah.edu>.
25414
25415 2009-12-30  Eric Blake  <ebb9@byu.net>
25416
25417         futimens, utimensat: work around ntfs-3g bug
25418         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
25419         a ctime bug is present, and expand workaround to cover ntfs-3g.
25420         * lib/utimens.c (fdutimens, lutimens): Likewise.
25421         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
25422         (validate_timespec): Adjust return value.
25423         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
25424         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25425         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
25426
25427 2009-12-29  Eric Blake  <ebb9@byu.net>
25428
25429         link-warning: make usage consistent
25430         * modules/ctype (Depends-on): Add link-warning.
25431         (Makefile.am): Update rules accordingly.
25432         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25433         * modules/locale (Depends-on, Makefile.am): Likewise.
25434         * modules/sys_file (Makefile.am): Likewise.
25435         * modules/getopt-posix (Makefile.am): Delete unused link warning
25436         efforts.
25437         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
25438         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
25439         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
25440         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
25441
25442         stdio: remove unused variables
25443         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
25444         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
25445         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25446
25447         tests: test more substitute headers
25448         * modules/ctype-tests: New file.
25449         * modules/dirent-tests: Likewise.
25450         * modules/spawn-tests: Likewise.
25451         * modules/sys_file-tests: Likewise.
25452         * modules/sys_ioctl-tests: Likewise.
25453         * modules/sys_wait-tests: Likewise.
25454         * tests/test-ctype.c: Likewise.
25455         * tests/test-dirent.c: Likewise.
25456         * tests/test-spawn.c: Likewise.
25457         * tests/test-sys_file.c: Likewise.
25458         * tests/test-sys_ioctl.c: Likewise.
25459         * tests/test-sys_wait.c: Likewise.
25460         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
25461         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
25462         whether or not flock is in use.
25463
25464         tests: remove License section from module
25465         * modules/arpa_inet-tests: Remove unneeded section.
25466         * modules/byteswap-tests: Likewise.
25467         * modules/ceilf-tests: Likewise.
25468         * modules/ceill-tests: Likewise.
25469         * modules/crypto/des-tests: Likewise.
25470         * modules/crypto/gc-arcfour-tests: Likewise.
25471         * modules/crypto/gc-arctwo-tests: Likewise.
25472         * modules/crypto/gc-des-tests: Likewise.
25473         * modules/crypto/gc-hmac-md5-tests: Likewise.
25474         * modules/crypto/gc-hmac-sha1-tests: Likewise.
25475         * modules/crypto/gc-md2-tests: Likewise.
25476         * modules/crypto/gc-md4-tests: Likewise.
25477         * modules/crypto/gc-md5-tests: Likewise.
25478         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
25479         * modules/crypto/gc-rijndael-tests: Likewise.
25480         * modules/crypto/gc-sha1-tests: Likewise.
25481         * modules/crypto/gc-tests: Likewise.
25482         * modules/crypto/md2-tests: Likewise.
25483         * modules/crypto/md4-tests: Likewise.
25484         * modules/fcntl-h-tests: Likewise.
25485         * modules/floorf-tests: Likewise.
25486         * modules/floorl-tests: Likewise.
25487         * modules/frexp-nolibm-tests: Likewise.
25488         * modules/frexp-tests: Likewise.
25489         * modules/frexpl-nolibm-tests: Likewise.
25490         * modules/frexpl-tests: Likewise.
25491         * modules/getaddrinfo-tests: Likewise.
25492         * modules/inttypes-tests: Likewise.
25493         * modules/isfinite-tests: Likewise.
25494         * modules/isinf-tests: Likewise.
25495         * modules/ldexpl-tests: Likewise.
25496         * modules/locale-tests: Likewise.
25497         * modules/math-tests: Likewise.
25498         * modules/netdb-tests: Likewise.
25499         * modules/netinet_in-tests: Likewise.
25500         * modules/printf-frexp-tests: Likewise.
25501         * modules/printf-frexpl-tests: Likewise.
25502         * modules/priv-set-tests: Likewise.
25503         * modules/random_r-tests: Likewise.
25504         * modules/round-tests: Likewise.
25505         * modules/roundf-tests: Likewise.
25506         * modules/roundl-tests: Likewise.
25507         * modules/search-tests: Likewise.
25508         * modules/select-tests: Likewise.
25509         * modules/signal-tests: Likewise.
25510         * modules/stdbool-tests: Likewise.
25511         * modules/stddef-tests: Likewise.
25512         * modules/stdint-tests: Likewise.
25513         * modules/stdio-tests: Likewise.
25514         * modules/stdlib-tests: Likewise.
25515         * modules/string-tests: Likewise.
25516         * modules/strings-tests: Likewise.
25517         * modules/sys_select-tests: Likewise.
25518         * modules/sys_socket-tests: Likewise.
25519         * modules/sys_stat-tests: Likewise.
25520         * modules/sys_time-tests: Likewise.
25521         * modules/sys_utsname-tests: Likewise.
25522         * modules/sysexits-tests: Likewise.
25523         * modules/time-tests: Likewise.
25524         * modules/trunc-tests: Likewise.
25525         * modules/truncf-tests: Likewise.
25526         * modules/truncl-tests: Likewise.
25527         * modules/tsearch-tests: Likewise.
25528         * modules/unistd-tests: Likewise.
25529         * modules/wchar-tests: Likewise.
25530         * modules/wctype-tests: Likewise.
25531
25532         tests: fix license on several tests
25533         * tests/test-des.c: Update to GPLv3+.
25534         * tests/test-flock.c: Likewise.
25535         * tests/test-fsync.c: Likewise.
25536         * tests/test-futimens.h: Likewise.
25537         * tests/test-gc-arcfour.c: Likewise.
25538         * tests/test-gc-arctwo.c: Likewise.
25539         * tests/test-gc-des.c: Likewise.
25540         * tests/test-gc-hmac-md5.c: Likewise.
25541         * tests/test-gc-hmac-sha1.c: Likewise.
25542         * tests/test-gc-md2.c: Likewise.
25543         * tests/test-gc-md4.c: Likewise.
25544         * tests/test-gc-md5.c: Likewise.
25545         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25546         * tests/test-gc-rijndael.c: Likewise.
25547         * tests/test-gc-sha1.c: Likewise.
25548         * tests/test-gc.c: Likewise.
25549         * tests/test-getcwd.c: Likewise.
25550         * tests/test-link.c: Likewise.
25551         * tests/test-link.h: Likewise.
25552         * tests/test-lutimens.h: Likewise.
25553         * tests/test-md2.c: Likewise.
25554         * tests/test-md4.c: Likewise.
25555         * tests/test-mkdir.h: Likewise.
25556         * tests/test-rename.c: Likewise.
25557         * tests/test-rename.h: Likewise.
25558         * tests/test-safe-alloc.c: Likewise.
25559         * tests/test-utimens-common.h: Likewise.
25560         * tests/test-utimens.h: Likewise.
25561
25562         maint: sync license texts
25563         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
25564         * doc/gpl-3.0.texi: Revert copyright year update.
25565         * doc/lgpl-3.0.texi: Likewise.
25566
25567 2009-12-29  Jim Meyering  <meyering@redhat.com>
25568
25569         update nearly all FSF copyright year lists to include 2009
25570         The files named by the following are exempted:
25571             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
25572               test -f "$dst" && { echo "$dst"; continue; }
25573               test -d "$dst" || continue
25574               echo "$dst"/$(basename "$src")
25575             done > exempt
25576             git ls-files tests/unictype >> exempt
25577         In the remaining files, convert to all-interval notation if
25578         - there is already at least one year interval like 2000-2003
25579         - the file is maintained by me
25580         - the file is in lib/uni*/, where that style already prevails
25581         Otherwise, use update-copyright's default.
25582
25583 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25584         and Eric Blake  <ebb9@byu.net>
25585
25586         tests: don't require debug system() to pass
25587         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
25588         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25589         * tests/test-unlink.h (test_unlink_func): Likewise.
25590         * tests/test-fstatat.c (main): ...into callers.
25591         * tests/test-lstat.c (main): Likewise.
25592         * tests/test-rmdir.c (main): Likewise.
25593         * tests/test-unlink.c (main): Likewise.
25594         * tests/test-unlinkat.c (main): Likewise.
25595         * tests/test-areadlink-with-size.c (main): Don't require a
25596         debug-only system call to pass, aiding cross-testing to mingw.
25597         * tests/test-areadlink.c (main): Likewise.
25598         * tests/test-areadlinkat-with-size.c (main): Likewise.
25599         * tests/test-areadlinkat.c (main): Likewise.
25600         * tests/test-canonicalize-lgpl.c (main): Likewise.
25601         * tests/test-canonicalize.c (main): Likewise.
25602         * tests/test-chown.c (main): Likewise.
25603         * tests/test-fchownat.c (main): Likewise.
25604         * tests/test-lchown.c (main): Likewise.
25605         * tests/test-fdutimensat.c (main): Likewise.
25606         * tests/test-futimens.c (main): Likewise.
25607         * tests/test-link.c (main): Likewise.
25608         * tests/test-linkat.c (main): Likewise.
25609         * tests/test-mkdir.c (main): Likewise.
25610         * tests/test-mkdirat.c (main): Likewise.
25611         * tests/test-mkfifo.c (main): Likewise.
25612         * tests/test-mkfifoat.c (main): Likewise.
25613         * tests/test-mknod.c (main): Likewise.
25614         * tests/test-readlink.c (main): Likewise.
25615         * tests/test-remove.c (main): Likewise.
25616         * tests/test-rename.c (main): Likewise.
25617         * tests/test-renameat.c (main): Likewise.
25618         * tests/test-symlink.c (main): Likewise.
25619         * tests/test-symlinkat.c (main): Likewise.
25620         * tests/test-utimens.c (main): Likewise.
25621         * tests/test-utimensat.c (main): Likewise.
25622
25623 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25624
25625         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
25626         on $(UNUSED_PARAMETER_H) to avoid build failure.
25627
25628 2009-12-28  Jim Meyering  <meyering@redhat.com>
25629
25630         update-copyright: you may specify a max. line length other than 72
25631         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25632
25633         maint: use consistent FSF copyright line syntax
25634         * lib/posixtm.c: Add missing comma in FSF copyright line.
25635         * lib/posixtm.h: Likewise.
25636         * lib/getugroups.c: Add missing ", Inc.".
25637
25638         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
25639         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
25640         FSF copyright line.  Remove trailing blanks.
25641
25642 2009-12-28  Eric Blake  <ebb9@byu.net>
25643
25644         test-dup2: reduce dependencies
25645         * modules/cloexec (Configure.ac): Set witness.
25646         * modules/dup2-tests (Depends-on): Drop cloexec.
25647         * tests/test-dup2.c (main): Skip portion of test if cloexec module
25648         not present.
25649         Suggested by Bruno Haible.
25650
25651 2009-12-26  Bruno Haible  <bruno@clisp.org>
25652
25653         Remove an unneeded dependency.
25654         * modules/fseterr (Depends-on): Remove dup2.
25655
25656 2009-12-26  Eric Blake  <ebb9@byu.net>
25657
25658         tests: use macros.h in more places
25659         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
25660         (ASSERT_STREAM): Provide default of stderr.
25661         * tests/test-dirent-safer.c: Include macros.h, using alternate
25662         stream for assertions.
25663         * tests/test-dup-safer.c: Likewise.
25664         * tests/test-freopen-safer.c: Likewise.
25665         * tests/test-getopt.c: Likewise.
25666         * tests/test-openat-safer.c: Likewise.
25667         * tests/test-pipe.c: Likewise.
25668         * tests/test-popen-safer.c: Likewise.
25669         * modules/dirent-safer-tests (Files): Include macros.h.
25670         * modules/unistd-safer-tests (Files): Likewise.
25671         * modules/freopen-safer-tests (Files): Likewise.
25672         * modules/getopt-posix-tests (Files): Likewise.
25673         * modules/openat-safer-tests (Files): Likewise.
25674         * modules/pipe-tests (Files): Likewise.
25675
25676 2009-12-26  Bruno Haible  <bruno@clisp.org>
25677
25678         javacomp: Portability fix.
25679         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
25680         that it also works on Solaris.
25681
25682 2009-12-26  Bruno Haible  <bruno@clisp.org>
25683
25684         localename: Fix storage allocation of gl_locale_name_thread's result.
25685         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
25686         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
25687         all platforms that have 'uselocale'.
25688         (gl_locale_name_thread_unsafe): New function, extracted from
25689         gl_locale_name_thread.
25690         (gl_locale_name_thread): Call struniq on all platforms that have
25691         'uselocale'.
25692         * tests/test-localename.c (test_locale_name_thread): Check that the
25693         resulting strings are permanently allocated.
25694         * modules/localename-tests (Depends-on): Add strdup.
25695
25696 2009-12-26  Bruno Haible  <bruno@clisp.org>
25697
25698         * tests/test-localename.c (categories): Fill in the strings.
25699
25700 2009-12-26  Jim Meyering  <meyering@redhat.com>
25701
25702         isdir: complete the removal of m4/isdir.m4
25703         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
25704
25705         isdir: clean up, since at least grep still uses it
25706         * lib/isdir.c: Include "isdir.h".
25707         (S_ISDIR): Remove now-unneeded definition.
25708         * modules/isdir (Files): Add lib/isdir.h.
25709         * lib/isdir.h: New file, with declaration.
25710         * m4/isdir.m4: Remove file -- unneeded.
25711
25712 2009-12-25  Bruno Haible  <bruno@clisp.org>
25713
25714         selinux-h: Make generated .h files standalone.
25715         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
25716         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
25717         * lib/se-selinux.in.h: Likewise.
25718         * modules/selinux-h (Depends-on): Add unused-parameter.
25719         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
25720         selinux/selinux.h and selinux/context.h.
25721         Suggested by Eric Blake.
25722
25723 2009-12-25  Bruno Haible  <bruno@clisp.org>
25724
25725         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
25726         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
25727         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
25728         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
25729         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
25730
25731 2009-12-24  Bruno Haible  <bruno@clisp.org>
25732
25733         openat: Fix warning.
25734         * lib/openat-proc.c: Include <unistd.h>.
25735
25736 2009-12-24  Bruno Haible  <bruno@clisp.org>
25737
25738         New module 'unused-parameter'.
25739         * build-aux/unused-parameter.h: New file, extracted from earlier
25740         gnulib-common.m4.
25741         * modules/unused-parameter: New file.
25742         * lib/unistr.h: Include unused-parameter.h.
25743         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
25744         _GL_UNUSED.
25745         * modules/unistr/base (Depends-on): Add unused-parameter.
25746
25747 2009-12-24  Bruno Haible  <bruno@clisp.org>
25748
25749         Add missing dependencies to 'extensions' module.
25750         * m4/extensions.m4: Add comment.
25751         * modules/accept4 (Depends-on): Add extensions.
25752         * modules/dup3 (Depends-on): Likewise.
25753         * modules/fcntl (Depends-on): Likewise.
25754         * modules/futimens (Depends-on): Likewise.
25755         * modules/mknod (Depends-on): Likewise.
25756         * modules/pipe2 (Depends-on): Likewise.
25757         * modules/stat-time (Depends-on): Likewise.
25758         * modules/strcasestr-simple (Depends-on): Likewise.
25759         * modules/strsignal (Depends-on): Likewise.
25760         * modules/utimensat (Depends-on): Likewise.
25761         * modules/localcharset (Depends-on): Likewise. Needed because of
25762         gl_FCNTL_O_FLAGS.
25763         * modules/wcrtomb (Depends-on): Likewise. Needed because of
25764         AC_TYPE_MBSTATE_T.
25765         * modules/wcsnrtombs (Depends-on): Likewise.
25766         * modules/wcsrtombs (Depends-on): Likewise.
25767
25768 2009-12-24  Bruno Haible  <bruno@clisp.org>
25769
25770         binary-io: Avoid gcc warning due to SET_BINARY.
25771         * lib/binary-io.h (SET_BINARY): Cast the result to void.
25772         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
25773
25774 2009-12-24  Bruno Haible  <bruno@clisp.org>
25775
25776         Avoid future namespace pollution on glibc systems.
25777         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
25778         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
25779         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
25780         glibc systems.
25781
25782 2009-12-24  Bruno Haible  <bruno@clisp.org>
25783
25784         Refactor common macros used in tests.
25785         * tests/macros.h: New file.
25786         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
25787         and/or <stdlib.h>, if appropriate.
25788         (ASSERT, SIZEOF): Remove macros.
25789         * tests/test-areadlink-with-size.c: Likewise.
25790         * tests/test-areadlinkat.c: Likewise.
25791         * tests/test-areadlinkat-with-size.c: Likewise.
25792         * tests/test-argmatch.c: Likewise.
25793         * tests/test-argv-iter.c: Likewise.
25794         * tests/test-array-mergesort.c: Likewise.
25795         * tests/test-array_list.c: Likewise.
25796         * tests/test-array_oset.c: Likewise.
25797         * tests/test-avltree_list.c: Likewise.
25798         * tests/test-avltree_oset.c: Likewise.
25799         * tests/test-avltreehash_list.c: Likewise.
25800         * tests/test-base64.c: Likewise.
25801         * tests/test-binary-io.c: Likewise.
25802         * tests/test-bitrotate.c: Likewise.
25803         * tests/test-btowc.c: Likewise.
25804         * tests/test-byteswap.c: Likewise.
25805         * tests/test-c-ctype.c: Likewise.
25806         * tests/test-c-stack.c: Likewise.
25807         * tests/test-c-strcasecmp.c: Likewise.
25808         * tests/test-c-strcasestr.c: Likewise.
25809         * tests/test-c-strncasecmp.c: Likewise.
25810         * tests/test-c-strstr.c: Likewise.
25811         * tests/test-canonicalize-lgpl.c: Likewise.
25812         * tests/test-canonicalize.c: Likewise.
25813         * tests/test-carray_list.c: Likewise.
25814         * tests/test-ceilf1.c: Likewise.
25815         * tests/test-ceilf2.c: Likewise.
25816         * tests/test-ceill.c: Likewise.
25817         * tests/test-chown.c: Likewise.
25818         * tests/test-cloexec.c: Likewise.
25819         * tests/test-copy-acl.c: Likewise.
25820         * tests/test-copy-file.c: Likewise.
25821         * tests/test-count-one-bits.c: Likewise.
25822         * tests/test-dprintf-posix.c: Likewise.
25823         * tests/test-dup2.c: Likewise.
25824         * tests/test-dup3.c: Likewise.
25825         * tests/test-duplocale.c: Likewise.
25826         * tests/test-fbufmode.c: Likewise.
25827         * tests/test-fchdir.c: Likewise.
25828         * tests/test-fchownat.c: Likewise.
25829         * tests/test-fcntl-safer.c: Likewise.
25830         * tests/test-fcntl.c: Likewise.
25831         * tests/test-fdopendir.c: Likewise.
25832         * tests/test-fdutimensat.c: Likewise.
25833         * tests/test-fflush2.c: Likewise.
25834         * tests/test-file-has-acl.c: Likewise.
25835         * tests/test-filevercmp.c: Likewise.
25836         * tests/test-flock.c: Likewise.
25837         * tests/test-floorf1.c: Likewise.
25838         * tests/test-floorf2.c: Likewise.
25839         * tests/test-floorl.c: Likewise.
25840         * tests/test-fnmatch.c: Likewise.
25841         * tests/test-fopen.h: Likewise.
25842         * tests/test-fpending.c: Likewise.
25843         * tests/test-fprintf-posix.c: Likewise.
25844         * tests/test-fpurge.c: Likewise.
25845         * tests/test-freadable.c: Likewise.
25846         * tests/test-freadahead.c: Likewise.
25847         * tests/test-freading.c: Likewise.
25848         * tests/test-freadptr.c: Likewise.
25849         * tests/test-freadptr2.c: Likewise.
25850         * tests/test-freadseek.c: Likewise.
25851         * tests/test-freopen.c: Likewise.
25852         * tests/test-frexp.c: Likewise.
25853         * tests/test-frexpl.c: Likewise.
25854         * tests/test-fseek.c: Likewise.
25855         * tests/test-fseeko.c: Likewise.
25856         * tests/test-fstatat.c: Likewise.
25857         * tests/test-fstrcmp.c: Likewise.
25858         * tests/test-fsync.c: Likewise.
25859         * tests/test-ftell.c: Likewise.
25860         * tests/test-ftello.c: Likewise.
25861         * tests/test-func.c: Likewise.
25862         * tests/test-futimens.c: Likewise.
25863         * tests/test-fwritable.c: Likewise.
25864         * tests/test-fwriting.c: Likewise.
25865         * tests/test-getcwd.c: Likewise.
25866         * tests/test-getdate.c: Likewise.
25867         * tests/test-getdelim.c: Likewise.
25868         * tests/test-getdtablesize.c: Likewise.
25869         * tests/test-getgroups.c: Likewise.
25870         * tests/test-getline.c: Likewise.
25871         * tests/test-getndelim2.c: Likewise.
25872         * tests/test-glob.c: Likewise.
25873         * tests/test-hash.c: Likewise.
25874         * tests/test-i-ring.c: Likewise.
25875         * tests/test-iconv-utf.c: Likewise.
25876         * tests/test-iconv.c: Likewise.
25877         * tests/test-idpriv-drop.c: Likewise.
25878         * tests/test-idpriv-droptemp.c: Likewise.
25879         * tests/test-inet_ntop.c: Likewise.
25880         * tests/test-inet_pton.c: Likewise.
25881         * tests/test-isblank.c: Likewise.
25882         * tests/test-isfinite.c: Likewise.
25883         * tests/test-isinf.c: Likewise.
25884         * tests/test-isnan.c: Likewise.
25885         * tests/test-isnand.h: Likewise.
25886         * tests/test-isnanf.h: Likewise.
25887         * tests/test-isnanl.h: Likewise.
25888         * tests/test-lchown.c: Likewise.
25889         * tests/test-ldexpl.c: Likewise.
25890         * tests/test-link.c: Likewise.
25891         * tests/test-linkat.c: Likewise.
25892         * tests/test-linked_list.c: Likewise.
25893         * tests/test-linkedhash_list.c: Likewise.
25894         * tests/test-localename.c: Likewise.
25895         * tests/test-lseek.c: Likewise.
25896         * tests/test-lstat.c: Likewise.
25897         * tests/test-mbmemcasecmp.c: Likewise.
25898         * tests/test-mbmemcasecoll.c: Likewise.
25899         * tests/test-mbrtowc.c: Likewise.
25900         * tests/test-mbscasecmp.c: Likewise.
25901         * tests/test-mbscasestr1.c: Likewise.
25902         * tests/test-mbscasestr2.c: Likewise.
25903         * tests/test-mbscasestr3.c: Likewise.
25904         * tests/test-mbscasestr4.c: Likewise.
25905         * tests/test-mbschr.c: Likewise.
25906         * tests/test-mbscspn.c: Likewise.
25907         * tests/test-mbsinit.c: Likewise.
25908         * tests/test-mbsncasecmp.c: Likewise.
25909         * tests/test-mbsnrtowcs.c: Likewise.
25910         * tests/test-mbspbrk.c: Likewise.
25911         * tests/test-mbspcasecmp.c: Likewise.
25912         * tests/test-mbsrchr.c: Likewise.
25913         * tests/test-mbsrtowcs.c: Likewise.
25914         * tests/test-mbsspn.c: Likewise.
25915         * tests/test-mbsstr1.c: Likewise.
25916         * tests/test-mbsstr2.c: Likewise.
25917         * tests/test-mbsstr3.c: Likewise.
25918         * tests/test-memchr.c: Likewise.
25919         * tests/test-memchr2.c: Likewise.
25920         * tests/test-memcmp.c: Likewise.
25921         * tests/test-memmem.c: Likewise.
25922         * tests/test-memrchr.c: Likewise.
25923         * tests/test-mkdir.c: Likewise.
25924         * tests/test-mkdirat.c: Likewise.
25925         * tests/test-mkfifo.c: Likewise.
25926         * tests/test-mkfifoat.c: Likewise.
25927         * tests/test-mknod.c: Likewise.
25928         * tests/test-nanosleep.c: Likewise.
25929         * tests/test-nl_langinfo.c: Likewise.
25930         * tests/test-obstack-printf.c: Likewise.
25931         * tests/test-open.c: Likewise.
25932         * tests/test-openat.c: Likewise.
25933         * tests/test-pipe-filter-gi1.c: Likewise.
25934         * tests/test-pipe-filter-gi2-main.c: Likewise.
25935         * tests/test-pipe-filter-ii1.c: Likewise.
25936         * tests/test-pipe-filter-ii2-main.c: Likewise.
25937         * tests/test-pipe2.c: Likewise.
25938         * tests/test-popen.h: Likewise.
25939         * tests/test-posixtm.c: Likewise.
25940         * tests/test-pread.c: Likewise.
25941         * tests/test-printf-frexp.c: Likewise.
25942         * tests/test-printf-frexpl.c: Likewise.
25943         * tests/test-printf-posix.c: Likewise.
25944         * tests/test-priv-set.c: Likewise.
25945         * tests/test-quotearg.c: Likewise.
25946         * tests/test-random_r.c: Likewise.
25947         * tests/test-rawmemchr.c: Likewise.
25948         * tests/test-rbtree_list.c: Likewise.
25949         * tests/test-rbtree_oset.c: Likewise.
25950         * tests/test-rbtreehash_list.c: Likewise.
25951         * tests/test-readlink.c: Likewise.
25952         * tests/test-remove.c: Likewise.
25953         * tests/test-rename.c: Likewise.
25954         * tests/test-renameat.c: Likewise.
25955         * tests/test-rmdir.c: Likewise.
25956         * tests/test-round1.c: Likewise.
25957         * tests/test-roundf1.c: Likewise.
25958         * tests/test-roundl.c: Likewise.
25959         * tests/test-safe-alloc.c: Likewise.
25960         * tests/test-sameacls.c: Likewise.
25961         * tests/test-set-mode-acl.c: Likewise.
25962         * tests/test-setenv.c: Likewise.
25963         * tests/test-sigaction.c: Likewise.
25964         * tests/test-signbit.c: Likewise.
25965         * tests/test-sleep.c: Likewise.
25966         * tests/test-snprintf-posix.c: Likewise.
25967         * tests/test-snprintf.c: Likewise.
25968         * tests/test-sprintf-posix.c: Likewise.
25969         * tests/test-stat-time.c: Likewise.
25970         * tests/test-stat.c: Likewise.
25971         * tests/test-strcasestr.c: Likewise.
25972         * tests/test-strchrnul.c: Likewise.
25973         * tests/test-strerror.c: Likewise.
25974         * tests/test-striconv.c: Likewise.
25975         * tests/test-striconveh.c: Likewise.
25976         * tests/test-striconveha.c: Likewise.
25977         * tests/test-strsignal.c: Likewise.
25978         * tests/test-strstr.c: Likewise.
25979         * tests/test-strtod.c: Likewise.
25980         * tests/test-strverscmp.c: Likewise.
25981         * tests/test-symlink.c: Likewise.
25982         * tests/test-symlinkat.c: Likewise.
25983         * tests/test-trunc1.c: Likewise.
25984         * tests/test-trunc2.c: Likewise.
25985         * tests/test-truncf1.c: Likewise.
25986         * tests/test-truncf2.c: Likewise.
25987         * tests/test-truncl.c: Likewise.
25988         * tests/test-uname.c: Likewise.
25989         * tests/test-unlink.c: Likewise.
25990         * tests/test-unlinkat.c: Likewise.
25991         * tests/test-unsetenv.c: Likewise.
25992         * tests/test-usleep.c: Likewise.
25993         * tests/test-utimens.c: Likewise.
25994         * tests/test-utimensat.c: Likewise.
25995         * tests/test-vasnprintf-posix.c: Likewise.
25996         * tests/test-vasnprintf-posix2.c: Likewise.
25997         * tests/test-vasnprintf.c: Likewise.
25998         * tests/test-vasprintf-posix.c: Likewise.
25999         * tests/test-vasprintf.c: Likewise.
26000         * tests/test-vdprintf-posix.c: Likewise.
26001         * tests/test-vfprintf-posix.c: Likewise.
26002         * tests/test-vprintf-posix.c: Likewise.
26003         * tests/test-vsnprintf-posix.c: Likewise.
26004         * tests/test-vsnprintf.c: Likewise.
26005         * tests/test-vsprintf-posix.c: Likewise.
26006         * tests/test-wcrtomb.c: Likewise.
26007         * tests/test-wcsnrtombs.c: Likewise.
26008         * tests/test-wcsrtombs.c: Likewise.
26009         * tests/test-wctype.c: Likewise.
26010         * tests/test-wcwidth.c: Likewise.
26011         * tests/test-xfprintf-posix.c: Likewise.
26012         * tests/test-xmemdup0.c: Likewise.
26013         * tests/test-xprintf-posix.c: Likewise.
26014         * tests/test-xvasprintf.c: Likewise.
26015         * tests/unicase/test-locale-language.c: Likewise.
26016         * tests/unicase/test-mapping-part1.h: Likewise.
26017         * tests/unicase/test-predicate-part1.h: Likewise.
26018         * tests/unicase/test-u8-casecmp.c: Likewise.
26019         * tests/unicase/test-u8-casecoll.c: Likewise.
26020         * tests/unicase/test-u8-casefold.c: Likewise.
26021         * tests/unicase/test-u8-is-cased.c: Likewise.
26022         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26023         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26024         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26025         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26026         * tests/unicase/test-u8-tolower.c: Likewise.
26027         * tests/unicase/test-u8-totitle.c: Likewise.
26028         * tests/unicase/test-u8-toupper.c: Likewise.
26029         * tests/unicase/test-u16-casecmp.c: Likewise.
26030         * tests/unicase/test-u16-casecoll.c: Likewise.
26031         * tests/unicase/test-u16-casefold.c: Likewise.
26032         * tests/unicase/test-u16-is-cased.c: Likewise.
26033         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26034         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26035         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26036         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26037         * tests/unicase/test-u16-tolower.c: Likewise.
26038         * tests/unicase/test-u16-totitle.c: Likewise.
26039         * tests/unicase/test-u16-toupper.c: Likewise.
26040         * tests/unicase/test-u32-casecmp.c: Likewise.
26041         * tests/unicase/test-u32-casecoll.c: Likewise.
26042         * tests/unicase/test-u32-casefold.c: Likewise.
26043         * tests/unicase/test-u32-is-cased.c: Likewise.
26044         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26045         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26046         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26047         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26048         * tests/unicase/test-u32-tolower.c: Likewise.
26049         * tests/unicase/test-u32-totitle.c: Likewise.
26050         * tests/unicase/test-u32-toupper.c: Likewise.
26051         * tests/unicase/test-ulc-casecmp.c: Likewise.
26052         * tests/unicase/test-ulc-casecoll.c: Likewise.
26053         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26054         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26055         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26056         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26057         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26058         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26059         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26060         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26061         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26062         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26063         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26064         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26065         * tests/unictype/test-bidi_byname.c: Likewise.
26066         * tests/unictype/test-bidi_name.c: Likewise.
26067         * tests/unictype/test-bidi_of.c: Likewise.
26068         * tests/unictype/test-bidi_test.c: Likewise.
26069         * tests/unictype/test-block_list.c: Likewise.
26070         * tests/unictype/test-block_of.c: Likewise.
26071         * tests/unictype/test-block_test.c: Likewise.
26072         * tests/unictype/test-categ_and.c: Likewise.
26073         * tests/unictype/test-categ_and_not.c: Likewise.
26074         * tests/unictype/test-categ_byname.c: Likewise.
26075         * tests/unictype/test-categ_name.c: Likewise.
26076         * tests/unictype/test-categ_none.c: Likewise.
26077         * tests/unictype/test-categ_of.c: Likewise.
26078         * tests/unictype/test-categ_or.c: Likewise.
26079         * tests/unictype/test-categ_test_withtable.c: Likewise.
26080         * tests/unictype/test-combining.c: Likewise.
26081         * tests/unictype/test-decdigit.c: Likewise.
26082         * tests/unictype/test-digit.c: Likewise.
26083         * tests/unictype/test-mirror.c: Likewise.
26084         * tests/unictype/test-numeric.c: Likewise.
26085         * tests/unictype/test-pr_byname.c: Likewise.
26086         * tests/unictype/test-pr_test.c: Likewise.
26087         * tests/unictype/test-predicate-part1.h: Likewise.
26088         * tests/unictype/test-scripts.c: Likewise.
26089         * tests/unictype/test-sy_c_ident.c: Likewise.
26090         * tests/unictype/test-sy_java_ident.c: Likewise.
26091         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26092         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26093         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26094         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26095         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26096         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26097         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26098         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26099         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26100         * tests/uninorm/test-compat-decomposition.c: Likewise.
26101         * tests/uninorm/test-composition.c: Likewise.
26102         * tests/uninorm/test-decomposing-form.c: Likewise.
26103         * tests/uninorm/test-decomposition.c: Likewise.
26104         * tests/uninorm/test-u8-nfc.c: Likewise.
26105         * tests/uninorm/test-u8-nfd.c: Likewise.
26106         * tests/uninorm/test-u8-nfkc.c: Likewise.
26107         * tests/uninorm/test-u8-nfkd.c: Likewise.
26108         * tests/uninorm/test-u8-normcmp.c: Likewise.
26109         * tests/uninorm/test-u8-normcoll.c: Likewise.
26110         * tests/uninorm/test-u16-nfc.c: Likewise.
26111         * tests/uninorm/test-u16-nfd.c: Likewise.
26112         * tests/uninorm/test-u16-nfkc.c: Likewise.
26113         * tests/uninorm/test-u16-nfkd.c: Likewise.
26114         * tests/uninorm/test-u16-normcmp.c: Likewise.
26115         * tests/uninorm/test-u16-normcoll.c: Likewise.
26116         * tests/uninorm/test-u32-nfc.c: Likewise.
26117         * tests/uninorm/test-u32-nfd.c: Likewise.
26118         * tests/uninorm/test-u32-nfkc.c: Likewise.
26119         * tests/uninorm/test-u32-nfkd.c: Likewise.
26120         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26121         * tests/uninorm/test-u32-normcmp.c: Likewise.
26122         * tests/uninorm/test-u32-normcoll.c: Likewise.
26123         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26124         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26125         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26126         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26127         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26128         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26129         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26130         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26131         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26132         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26133         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26134         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26135         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26136         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26137         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26138         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26139         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26140         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26141         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26142         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26143         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26144         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26145         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26146         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26147         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26148         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26149         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26150         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26151         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26152         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
26153         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
26154         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
26155         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
26156         * tests/uniwidth/test-u8-strwidth.c: Likewise.
26157         * tests/uniwidth/test-u8-width.c: Likewise.
26158         * tests/uniwidth/test-u16-strwidth.c: Likewise.
26159         * tests/uniwidth/test-u16-width.c: Likewise.
26160         * tests/uniwidth/test-u32-strwidth.c: Likewise.
26161         * tests/uniwidth/test-u32-width.c: Likewise.
26162         * tests/uniwidth/test-uc_width.c: Likewise.
26163         * tests/uniwidth/test-uc_width2.c: Likewise.
26164         * modules/acl-tests (Files): Add tests/macros.h.
26165         * modules/areadlink-tests (Files): Likewise.
26166         * modules/areadlink-with-size-tests (Files): Likewise.
26167         * modules/areadlinkat-tests (Files): Likewise.
26168         * modules/areadlinkat-with-size-tests (Files): Likewise.
26169         * modules/argmatch-tests (Files): Likewise.
26170         * modules/argv-iter-tests (Files): Likewise.
26171         * modules/array-list-tests (Files): Likewise.
26172         * modules/array-mergesort-tests (Files): Likewise.
26173         * modules/array-oset-tests (Files): Likewise.
26174         * modules/avltree-list-tests (Files): Likewise.
26175         * modules/avltree-oset-tests (Files): Likewise.
26176         * modules/avltreehash-list-tests (Files): Likewise.
26177         * modules/base64-tests (Files): Likewise.
26178         * modules/binary-io-tests (Files): Likewise.
26179         * modules/bitrotate-tests (Files): Likewise.
26180         * modules/btowc-tests (Files): Likewise.
26181         * modules/byteswap-tests (Files): Likewise.
26182         * modules/c-ctype-tests (Files): Likewise.
26183         * modules/c-stack-tests (Files): Likewise.
26184         * modules/c-strcase-tests (Files): Likewise.
26185         * modules/c-strcasestr-tests (Files): Likewise.
26186         * modules/c-strstr-tests (Files): Likewise.
26187         * modules/canonicalize-lgpl-tests (Files): Likewise.
26188         * modules/canonicalize-tests (Files): Likewise.
26189         * modules/carray-list-tests (Files): Likewise.
26190         * modules/ceilf-tests (Files): Likewise.
26191         * modules/ceill-tests (Files): Likewise.
26192         * modules/chown-tests (Files): Likewise.
26193         * modules/cloexec-tests (Files): Likewise.
26194         * modules/copy-file-tests (Files): Likewise.
26195         * modules/count-one-bits-tests (Files): Likewise.
26196         * modules/dprintf-posix-tests (Files): Likewise.
26197         * modules/dup2-tests (Files): Likewise.
26198         * modules/dup3-tests (Files): Likewise.
26199         * modules/duplocale-tests (Files): Likewise.
26200         * modules/fbufmode-tests (Files): Likewise.
26201         * modules/fchdir-tests (Files): Likewise.
26202         * modules/fcntl-safer-tests (Files): Likewise.
26203         * modules/fcntl-tests (Files): Likewise.
26204         * modules/fdopendir-tests (Files): Likewise.
26205         * modules/fdutimensat-tests (Files): Likewise.
26206         * modules/fflush-tests (Files): Likewise.
26207         * modules/filevercmp-tests (Files): Likewise.
26208         * modules/flock-tests (Files): Likewise.
26209         * modules/floorf-tests (Files): Likewise.
26210         * modules/floorl-tests (Files): Likewise.
26211         * modules/fnmatch-tests (Files): Likewise.
26212         * modules/fopen-safer-tests (Files): Likewise.
26213         * modules/fopen-tests (Files): Likewise.
26214         * modules/fpending-tests (Files): Likewise.
26215         * modules/fprintf-posix-tests (Files): Likewise.
26216         * modules/fpurge-tests (Files): Likewise.
26217         * modules/freadable-tests (Files): Likewise.
26218         * modules/freadahead-tests (Files): Likewise.
26219         * modules/freading-tests (Files): Likewise.
26220         * modules/freadptr-tests (Files): Likewise.
26221         * modules/freadseek-tests (Files): Likewise.
26222         * modules/freopen-tests (Files): Likewise.
26223         * modules/frexp-nolibm-tests (Files): Likewise.
26224         * modules/frexp-tests (Files): Likewise.
26225         * modules/frexpl-nolibm-tests (Files): Likewise.
26226         * modules/frexpl-tests (Files): Likewise.
26227         * modules/fseek-tests (Files): Likewise.
26228         * modules/fseeko-tests (Files): Likewise.
26229         * modules/fstrcmp-tests (Files): Likewise.
26230         * modules/fsync-tests (Files): Likewise.
26231         * modules/ftell-tests (Files): Likewise.
26232         * modules/ftello-tests (Files): Likewise.
26233         * modules/func-tests (Files): Likewise.
26234         * modules/futimens-tests (Files): Likewise.
26235         * modules/fwritable-tests (Files): Likewise.
26236         * modules/fwriting-tests (Files): Likewise.
26237         * modules/getcwd-tests (Files): Likewise.
26238         * modules/getdate-tests (Files): Likewise.
26239         * modules/getdelim-tests (Files): Likewise.
26240         * modules/getdtablesize-tests (Files): Likewise.
26241         * modules/getgroups-tests (Files): Likewise.
26242         * modules/getline-tests (Files): Likewise.
26243         * modules/getndelim2-tests (Files): Likewise.
26244         * modules/glob-tests (Files): Likewise.
26245         * modules/hash-tests (Files): Likewise.
26246         * modules/i-ring-tests (Files): Likewise.
26247         * modules/iconv-tests (Files): Likewise.
26248         * modules/iconv_open-utf-tests (Files): Likewise.
26249         * modules/idpriv-drop-tests (Files): Likewise.
26250         * modules/idpriv-droptemp-tests (Files): Likewise.
26251         * modules/inet_ntop-tests (Files): Likewise.
26252         * modules/inet_pton-tests (Files): Likewise.
26253         * modules/isblank-tests (Files): Likewise.
26254         * modules/isfinite-tests (Files): Likewise.
26255         * modules/isinf-tests (Files): Likewise.
26256         * modules/isnan-tests (Files): Likewise.
26257         * modules/isnand-nolibm-tests (Files): Likewise.
26258         * modules/isnand-tests (Files): Likewise.
26259         * modules/isnanf-nolibm-tests (Files): Likewise.
26260         * modules/isnanf-tests (Files): Likewise.
26261         * modules/isnanl-nolibm-tests (Files): Likewise.
26262         * modules/isnanl-tests (Files): Likewise.
26263         * modules/lchown-tests (Files): Likewise.
26264         * modules/ldexpl-tests (Files): Likewise.
26265         * modules/link-tests (Files): Likewise.
26266         * modules/linkat-tests (Files): Likewise.
26267         * modules/linked-list-tests (Files): Likewise.
26268         * modules/linkedhash-list-tests (Files): Likewise.
26269         * modules/localename-tests (Files): Likewise.
26270         * modules/lseek-tests (Files): Likewise.
26271         * modules/lstat-tests (Files): Likewise.
26272         * modules/mbmemcasecmp-tests (Files): Likewise.
26273         * modules/mbmemcasecoll-tests (Files): Likewise.
26274         * modules/mbrtowc-tests (Files): Likewise.
26275         * modules/mbscasecmp-tests (Files): Likewise.
26276         * modules/mbscasestr-tests (Files): Likewise.
26277         * modules/mbschr-tests (Files): Likewise.
26278         * modules/mbscspn-tests (Files): Likewise.
26279         * modules/mbsinit-tests (Files): Likewise.
26280         * modules/mbsncasecmp-tests (Files): Likewise.
26281         * modules/mbsnrtowcs-tests (Files): Likewise.
26282         * modules/mbspbrk-tests (Files): Likewise.
26283         * modules/mbspcasecmp-tests (Files): Likewise.
26284         * modules/mbsrchr-tests (Files): Likewise.
26285         * modules/mbsrtowcs-tests (Files): Likewise.
26286         * modules/mbsspn-tests (Files): Likewise.
26287         * modules/mbsstr-tests (Files): Likewise.
26288         * modules/memchr-tests (Files): Likewise.
26289         * modules/memchr2-tests (Files): Likewise.
26290         * modules/memcmp-tests (Files): Likewise.
26291         * modules/memmem-tests (Files): Likewise.
26292         * modules/memrchr-tests (Files): Likewise.
26293         * modules/mkdir-tests (Files): Likewise.
26294         * modules/mkfifo-tests (Files): Likewise.
26295         * modules/mkfifoat-tests (Files): Likewise.
26296         * modules/mknod-tests (Files): Likewise.
26297         * modules/nanosleep-tests (Files): Likewise.
26298         * modules/nl_langinfo-tests (Files): Likewise.
26299         * modules/obstack-printf-tests (Files): Likewise.
26300         * modules/open-tests (Files): Likewise.
26301         * modules/openat-tests (Files): Likewise.
26302         * modules/pipe-filter-gi-tests (Files): Likewise.
26303         * modules/pipe-filter-ii-tests (Files): Likewise.
26304         * modules/pipe2-tests (Files): Likewise.
26305         * modules/popen-safer-tests (Files): Likewise.
26306         * modules/popen-tests (Files): Likewise.
26307         * modules/posixtm-tests (Files): Likewise.
26308         * modules/pread-tests (Files): Likewise.
26309         * modules/printf-frexp-tests (Files): Likewise.
26310         * modules/printf-frexpl-tests (Files): Likewise.
26311         * modules/printf-posix-tests (Files): Likewise.
26312         * modules/priv-set-tests (Files): Likewise.
26313         * modules/quotearg-tests (Files): Likewise.
26314         * modules/random_r-tests (Files): Likewise.
26315         * modules/rawmemchr-tests (Files): Likewise.
26316         * modules/rbtree-list-tests (Files): Likewise.
26317         * modules/rbtree-oset-tests (Files): Likewise.
26318         * modules/rbtreehash-list-tests (Files): Likewise.
26319         * modules/readlink-tests (Files): Likewise.
26320         * modules/remove-tests (Files): Likewise.
26321         * modules/rename-tests (Files): Likewise.
26322         * modules/renameat-tests (Files): Likewise.
26323         * modules/rmdir-tests (Files): Likewise.
26324         * modules/round-tests (Files): Likewise.
26325         * modules/roundf-tests (Files): Likewise.
26326         * modules/roundl-tests (Files): Likewise.
26327         * modules/safe-alloc-tests (Files): Likewise.
26328         * modules/setenv-tests (Files): Likewise.
26329         * modules/sigaction-tests (Files): Likewise.
26330         * modules/signbit-tests (Files): Likewise.
26331         * modules/sleep-tests (Files): Likewise.
26332         * modules/snprintf-posix-tests (Files): Likewise.
26333         * modules/snprintf-tests (Files): Likewise.
26334         * modules/sprintf-posix-tests (Files): Likewise.
26335         * modules/stat-tests (Files): Likewise.
26336         * modules/stat-time-tests (Files): Likewise.
26337         * modules/strcasestr-tests (Files): Likewise.
26338         * modules/strchrnul-tests (Files): Likewise.
26339         * modules/strerror-tests (Files): Likewise.
26340         * modules/striconv-tests (Files): Likewise.
26341         * modules/striconveh-tests (Files): Likewise.
26342         * modules/striconveha-tests (Files): Likewise.
26343         * modules/strsignal-tests (Files): Likewise.
26344         * modules/strstr-tests (Files): Likewise.
26345         * modules/strtod-tests (Files): Likewise.
26346         * modules/strverscmp-tests (Files): Likewise.
26347         * modules/symlink-tests (Files): Likewise.
26348         * modules/symlinkat-tests (Files): Likewise.
26349         * modules/trunc-tests (Files): Likewise.
26350         * modules/truncf-tests (Files): Likewise.
26351         * modules/truncl-tests (Files): Likewise.
26352         * modules/uname-tests (Files): Likewise.
26353         * modules/unicase/cased-tests (Files): Likewise.
26354         * modules/unicase/ignorable-tests (Files): Likewise.
26355         * modules/unicase/locale-language-tests (Files): Likewise.
26356         * modules/unicase/tolower-tests (Files): Likewise.
26357         * modules/unicase/totitle-tests (Files): Likewise.
26358         * modules/unicase/toupper-tests (Files): Likewise.
26359         * modules/unicase/u8-casecmp-tests (Files): Likewise.
26360         * modules/unicase/u8-casecoll-tests (Files): Likewise.
26361         * modules/unicase/u8-casefold-tests (Files): Likewise.
26362         * modules/unicase/u8-is-cased-tests (Files): Likewise.
26363         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
26364         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
26365         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
26366         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
26367         * modules/unicase/u8-tolower-tests (Files): Likewise.
26368         * modules/unicase/u8-totitle-tests (Files): Likewise.
26369         * modules/unicase/u8-toupper-tests (Files): Likewise.
26370         * modules/unicase/u16-casecmp-tests (Files): Likewise.
26371         * modules/unicase/u16-casecoll-tests (Files): Likewise.
26372         * modules/unicase/u16-casefold-tests (Files): Likewise.
26373         * modules/unicase/u16-is-cased-tests (Files): Likewise.
26374         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
26375         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
26376         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
26377         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
26378         * modules/unicase/u16-tolower-tests (Files): Likewise.
26379         * modules/unicase/u16-totitle-tests (Files): Likewise.
26380         * modules/unicase/u16-toupper-tests (Files): Likewise.
26381         * modules/unicase/u32-casecmp-tests (Files): Likewise.
26382         * modules/unicase/u32-casecoll-tests (Files): Likewise.
26383         * modules/unicase/u32-casefold-tests (Files): Likewise.
26384         * modules/unicase/u32-is-cased-tests (Files): Likewise.
26385         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
26386         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
26387         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
26388         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
26389         * modules/unicase/u32-tolower-tests (Files): Likewise.
26390         * modules/unicase/u32-totitle-tests (Files): Likewise.
26391         * modules/unicase/u32-toupper-tests (Files): Likewise.
26392         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
26393         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
26394         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
26395         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
26396         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
26397         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
26398         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
26399         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
26400         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
26401         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
26402         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
26403         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
26404         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
26405         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
26406         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
26407         * modules/unictype/bidicategory-name-tests (Files): Likewise.
26408         * modules/unictype/bidicategory-of-tests (Files): Likewise.
26409         * modules/unictype/bidicategory-test-tests (Files): Likewise.
26410         * modules/unictype/block-list-tests (Files): Likewise.
26411         * modules/unictype/block-of-tests (Files): Likewise.
26412         * modules/unictype/block-test-tests (Files): Likewise.
26413         * modules/unictype/category-C-tests (Files): Likewise.
26414         * modules/unictype/category-Cc-tests (Files): Likewise.
26415         * modules/unictype/category-Cf-tests (Files): Likewise.
26416         * modules/unictype/category-Cn-tests (Files): Likewise.
26417         * modules/unictype/category-Co-tests (Files): Likewise.
26418         * modules/unictype/category-Cs-tests (Files): Likewise.
26419         * modules/unictype/category-L-tests (Files): Likewise.
26420         * modules/unictype/category-Ll-tests (Files): Likewise.
26421         * modules/unictype/category-Lm-tests (Files): Likewise.
26422         * modules/unictype/category-Lo-tests (Files): Likewise.
26423         * modules/unictype/category-Lt-tests (Files): Likewise.
26424         * modules/unictype/category-Lu-tests (Files): Likewise.
26425         * modules/unictype/category-M-tests (Files): Likewise.
26426         * modules/unictype/category-Mc-tests (Files): Likewise.
26427         * modules/unictype/category-Me-tests (Files): Likewise.
26428         * modules/unictype/category-Mn-tests (Files): Likewise.
26429         * modules/unictype/category-N-tests (Files): Likewise.
26430         * modules/unictype/category-Nd-tests (Files): Likewise.
26431         * modules/unictype/category-Nl-tests (Files): Likewise.
26432         * modules/unictype/category-No-tests (Files): Likewise.
26433         * modules/unictype/category-P-tests (Files): Likewise.
26434         * modules/unictype/category-Pc-tests (Files): Likewise.
26435         * modules/unictype/category-Pd-tests (Files): Likewise.
26436         * modules/unictype/category-Pe-tests (Files): Likewise.
26437         * modules/unictype/category-Pf-tests (Files): Likewise.
26438         * modules/unictype/category-Pi-tests (Files): Likewise.
26439         * modules/unictype/category-Po-tests (Files): Likewise.
26440         * modules/unictype/category-Ps-tests (Files): Likewise.
26441         * modules/unictype/category-S-tests (Files): Likewise.
26442         * modules/unictype/category-Sc-tests (Files): Likewise.
26443         * modules/unictype/category-Sk-tests (Files): Likewise.
26444         * modules/unictype/category-Sm-tests (Files): Likewise.
26445         * modules/unictype/category-So-tests (Files): Likewise.
26446         * modules/unictype/category-Z-tests (Files): Likewise.
26447         * modules/unictype/category-Zl-tests (Files): Likewise.
26448         * modules/unictype/category-Zp-tests (Files): Likewise.
26449         * modules/unictype/category-Zs-tests (Files): Likewise.
26450         * modules/unictype/category-and-not-tests (Files): Likewise.
26451         * modules/unictype/category-and-tests (Files): Likewise.
26452         * modules/unictype/category-byname-tests (Files): Likewise.
26453         * modules/unictype/category-name-tests (Files): Likewise.
26454         * modules/unictype/category-none-tests (Files): Likewise.
26455         * modules/unictype/category-of-tests (Files): Likewise.
26456         * modules/unictype/category-or-tests (Files): Likewise.
26457         * modules/unictype/category-test-withtable-tests (Files): Likewise.
26458         * modules/unictype/combining-class-tests (Files): Likewise.
26459         * modules/unictype/ctype-alnum-tests (Files): Likewise.
26460         * modules/unictype/ctype-alpha-tests (Files): Likewise.
26461         * modules/unictype/ctype-blank-tests (Files): Likewise.
26462         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
26463         * modules/unictype/ctype-digit-tests (Files): Likewise.
26464         * modules/unictype/ctype-graph-tests (Files): Likewise.
26465         * modules/unictype/ctype-lower-tests (Files): Likewise.
26466         * modules/unictype/ctype-print-tests (Files): Likewise.
26467         * modules/unictype/ctype-punct-tests (Files): Likewise.
26468         * modules/unictype/ctype-space-tests (Files): Likewise.
26469         * modules/unictype/ctype-upper-tests (Files): Likewise.
26470         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
26471         * modules/unictype/decimal-digit-tests (Files): Likewise.
26472         * modules/unictype/digit-tests (Files): Likewise.
26473         * modules/unictype/mirror-tests (Files): Likewise.
26474         * modules/unictype/numeric-tests (Files): Likewise.
26475         * modules/unictype/property-alphabetic-tests (Files): Likewise.
26476         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
26477         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
26478         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
26479         Likewise.
26480         * modules/unictype/property-bidi-block-separator-tests (Files):
26481         Likewise.
26482         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
26483         Likewise.
26484         * modules/unictype/property-bidi-common-separator-tests (Files):
26485         Likewise.
26486         * modules/unictype/property-bidi-control-tests (Files): Likewise.
26487         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
26488         Likewise.
26489         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
26490         Likewise.
26491         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
26492         Likewise.
26493         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
26494         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
26495         Likewise.
26496         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
26497         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
26498         Likewise.
26499         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
26500         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
26501         * modules/unictype/property-bidi-segment-separator-tests (Files):
26502         Likewise.
26503         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
26504         * modules/unictype/property-byname-tests (Files): Likewise.
26505         * modules/unictype/property-combining-tests (Files): Likewise.
26506         * modules/unictype/property-composite-tests (Files): Likewise.
26507         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
26508         * modules/unictype/property-dash-tests (Files): Likewise.
26509         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
26510         * modules/unictype/property-default-ignorable-code-point-tests (Files):
26511         Likewise.
26512         * modules/unictype/property-deprecated-tests (Files): Likewise.
26513         * modules/unictype/property-diacritic-tests (Files): Likewise.
26514         * modules/unictype/property-extender-tests (Files): Likewise.
26515         * modules/unictype/property-format-control-tests (Files): Likewise.
26516         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
26517         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
26518         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
26519         * modules/unictype/property-hex-digit-tests (Files): Likewise.
26520         * modules/unictype/property-hyphen-tests (Files): Likewise.
26521         * modules/unictype/property-id-continue-tests (Files): Likewise.
26522         * modules/unictype/property-id-start-tests (Files): Likewise.
26523         * modules/unictype/property-ideographic-tests (Files): Likewise.
26524         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
26525         * modules/unictype/property-ids-trinary-operator-tests (Files):
26526         Likewise.
26527         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
26528         * modules/unictype/property-iso-control-tests (Files): Likewise.
26529         * modules/unictype/property-join-control-tests (Files): Likewise.
26530         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
26531         * modules/unictype/property-line-separator-tests (Files): Likewise.
26532         * modules/unictype/property-logical-order-exception-tests (Files):
26533         Likewise.
26534         * modules/unictype/property-lowercase-tests (Files): Likewise.
26535         * modules/unictype/property-math-tests (Files): Likewise.
26536         * modules/unictype/property-non-break-tests (Files): Likewise.
26537         * modules/unictype/property-not-a-character-tests (Files): Likewise.
26538         * modules/unictype/property-numeric-tests (Files): Likewise.
26539         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
26540         * modules/unictype/property-other-default-ignorable-code-point-tests
26541         (Files): Likewise.
26542         * modules/unictype/property-other-grapheme-extend-tests (Files):
26543         Likewise.
26544         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
26545         * modules/unictype/property-other-id-start-tests (Files): Likewise.
26546         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
26547         * modules/unictype/property-other-math-tests (Files): Likewise.
26548         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
26549         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
26550         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
26551         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
26552         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
26553         * modules/unictype/property-private-use-tests (Files): Likewise.
26554         * modules/unictype/property-punctuation-tests (Files): Likewise.
26555         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
26556         * modules/unictype/property-radical-tests (Files): Likewise.
26557         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
26558         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
26559         * modules/unictype/property-space-tests (Files): Likewise.
26560         * modules/unictype/property-terminal-punctuation-tests (Files):
26561         Likewise.
26562         * modules/unictype/property-test-tests (Files): Likewise.
26563         * modules/unictype/property-titlecase-tests (Files): Likewise.
26564         * modules/unictype/property-unassigned-code-value-tests (Files):
26565         Likewise.
26566         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
26567         * modules/unictype/property-uppercase-tests (Files): Likewise.
26568         * modules/unictype/property-variation-selector-tests (Files): Likewise.
26569         * modules/unictype/property-white-space-tests (Files): Likewise.
26570         * modules/unictype/property-xid-continue-tests (Files): Likewise.
26571         * modules/unictype/property-xid-start-tests (Files): Likewise.
26572         * modules/unictype/property-zero-width-tests (Files): Likewise.
26573         * modules/unictype/scripts-tests (Files): Likewise.
26574         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
26575         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
26576         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
26577         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
26578         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
26579         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
26580         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
26581         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
26582         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
26583         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
26584         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
26585         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
26586         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
26587         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
26588         * modules/uninorm/composition-tests (Files): Likewise.
26589         * modules/uninorm/decomposing-form-tests (Files): Likewise.
26590         * modules/uninorm/decomposition-tests (Files): Likewise.
26591         * modules/uninorm/filter-tests (Files): Likewise.
26592         * modules/uninorm/nfc-tests (Files): Likewise.
26593         * modules/uninorm/nfd-tests (Files): Likewise.
26594         * modules/uninorm/nfkc-tests (Files): Likewise.
26595         * modules/uninorm/nfkd-tests (Files): Likewise.
26596         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
26597         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
26598         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
26599         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
26600         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
26601         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
26602         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
26603         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26604         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
26605         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
26606         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
26607         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
26608         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26609         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
26610         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
26611         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
26612         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
26613         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26614         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
26615         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
26616         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
26617         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
26618         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26619         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
26620         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
26621         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
26622         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
26623         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
26624         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
26625         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
26626         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
26627         * modules/uniwidth/u8-width-tests (Files): Likewise.
26628         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
26629         * modules/uniwidth/u16-width-tests (Files): Likewise.
26630         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
26631         * modules/uniwidth/u32-width-tests (Files): Likewise.
26632         * modules/uniwidth/width-tests (Files): Likewise.
26633         * modules/unlink-tests (Files): Likewise.
26634         * modules/unsetenv-tests (Files): Likewise.
26635         * modules/usleep-tests (Files): Likewise.
26636         * modules/utimens-tests (Files): Likewise.
26637         * modules/utimensat-tests (Files): Likewise.
26638         * modules/vasnprintf-posix-tests (Files): Likewise.
26639         * modules/vasnprintf-tests (Files): Likewise.
26640         * modules/vasprintf-posix-tests (Files): Likewise.
26641         * modules/vasprintf-tests (Files): Likewise.
26642         * modules/vdprintf-posix-tests (Files): Likewise.
26643         * modules/vfprintf-posix-tests (Files): Likewise.
26644         * modules/vprintf-posix-tests (Files): Likewise.
26645         * modules/vsnprintf-posix-tests (Files): Likewise.
26646         * modules/vsnprintf-tests (Files): Likewise.
26647         * modules/vsprintf-posix-tests (Files): Likewise.
26648         * modules/wcrtomb-tests (Files): Likewise.
26649         * modules/wcsnrtombs-tests (Files): Likewise.
26650         * modules/wcsrtombs-tests (Files): Likewise.
26651         * modules/wctype-tests (Files): Likewise.
26652         * modules/wcwidth-tests (Files): Likewise.
26653         * modules/xmemdup0-tests (Files): Likewise.
26654         * modules/xprintf-posix-tests (Files): Likewise.
26655         * modules/xvasprintf-tests (Files): Likewise.
26656
26657 2009-12-24  Eric Blake  <ebb9@byu.net>
26658
26659         test-nanosleep: fix typo
26660         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
26661         patch.
26662         Reported by Bruno Haible.
26663
26664 2009-12-24  Bruno Haible  <bruno@clisp.org>
26665
26666         Reduce namespace pollution on glibc systems.
26667         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
26668         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
26669         systems.
26670         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
26671         <getopt.h> on glibc systems.
26672         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
26673         systems.
26674         * lib/fcntl.c: Include <unistd.h> here instead.
26675
26676 2009-12-24  Bruno Haible  <bruno@clisp.org>
26677
26678         * lib/stdlib.in.h (includes): Fix typo in today's commit.
26679
26680 2009-12-24  Eric Blake  <ebb9@byu.net>
26681
26682         tests: add signature checks
26683         * tests/signature.h (SIGNATURE_CHECK): New file.
26684         * modules/atexit-tests (Files): Use it.
26685         * modules/btowc-tests (Files): Likewise.
26686         * modules/canonicalize-lgpl-tests (Files): Likewise.
26687         * modules/ceilf-tests (Files): Likewise.
26688         * modules/ceill-tests (Files): Likewise.
26689         * modules/chown-tests (Files): Likewise.
26690         * modules/dprintf-posix-tests (Files): Likewise.
26691         * modules/dup2-tests (Files): Likewise.
26692         * modules/dup3-tests (Files): Likewise.
26693         * modules/duplocale-tests (Files): Likewise.
26694         * modules/fchdir-tests (Files): Likewise.
26695         * modules/fcntl-tests (Files): Likewise.
26696         * modules/fdopendir-tests (Files): Likewise.
26697         * modules/fflush-tests (Files): Likewise.
26698         * modules/flock-tests (Files): Likewise.
26699         * modules/floorf-tests (Files): Likewise.
26700         * modules/floorl-tests (Files): Likewise.
26701         * modules/fnmatch-tests (Files): Likewise.
26702         * modules/fopen-tests (Files): Likewise.
26703         * modules/fprintf-posix-tests (Files): Likewise.
26704         * modules/freopen-tests (Files): Likewise.
26705         * modules/frexp-nolibm-tests (Files): Likewise.
26706         * modules/frexp-tests (Files): Likewise.
26707         * modules/frexpl-nolibm-tests (Files): Likewise.
26708         * modules/frexpl-tests (Files): Likewise.
26709         * modules/fseek-tests (Files): Likewise.
26710         * modules/fseeko-tests (Files): Likewise.
26711         * modules/fsync-tests (Files): Likewise.
26712         * modules/ftell-tests (Files): Likewise.
26713         * modules/ftello-tests (Files): Likewise.
26714         * modules/futimens-tests (Files): Likewise.
26715         * modules/getaddrinfo-tests (Files): Likewise.
26716         * modules/getcwd-tests (Files): Likewise.
26717         * modules/getdelim-tests (Files): Likewise.
26718         * modules/getdtablesize-tests (Files): Likewise.
26719         * modules/getgroups-tests (Files): Likewise.
26720         * modules/gethostname-tests (Files): Likewise.
26721         * modules/getline-tests (Files): Likewise.
26722         * modules/getopt-posix-tests (Files): Likewise.
26723         * modules/gettimeofday-tests (Files): Likewise.
26724         * modules/glob-tests (Files): Likewise.
26725         * modules/iconv-tests (Files): Likewise.
26726         * modules/inet_ntop-tests (Files): Likewise.
26727         * modules/inet_pton-tests (Files): Likewise.
26728         * modules/isblank-tests (Files): Likewise.
26729         * modules/lchown-tests (Files): Likewise.
26730         * modules/ldexpl-tests (Files): Likewise.
26731         * modules/link-tests (Files): Likewise.
26732         * modules/linkat-tests (Files): Likewise.
26733         * modules/lseek-tests (Files): Likewise.
26734         * modules/lstat-tests (Files): Likewise.
26735         * modules/mbrtowc-tests (Files): Likewise.
26736         * modules/mbsinit-tests (Files): Likewise.
26737         * modules/mbsnrtowcs-tests (Files): Likewise.
26738         * modules/mbsrtowcs-tests (Files): Likewise.
26739         * modules/memchr-tests (Files): Likewise.
26740         * modules/memcmp-tests (Files): Likewise.
26741         * modules/memmem-tests (Files): Likewise.
26742         * modules/memrchr-tests (Files): Likewise.
26743         * modules/mkdir-tests (Files): Likewise.
26744         * modules/mkfifo-tests (Files): Likewise.
26745         * modules/mkfifoat-tests (Files): Likewise.
26746         * modules/mknod-tests (Files): Likewise.
26747         * modules/nanosleep-tests (Files): Likewise.
26748         * modules/nl_langinfo-tests (Files): Likewise.
26749         * modules/obstack-printf-tests (Files): Likewise.
26750         * modules/open-tests (Files): Likewise.
26751         * modules/openat-tests (Files): Likewise.
26752         * modules/perror-tests (Files): Likewise.
26753         * modules/pipe2-tests (Files): Likewise.
26754         * modules/poll-tests (Files): Likewise.
26755         * modules/popen-tests (Files): Likewise.
26756         * modules/posix_spawn-tests (Files): Likewise.
26757         * modules/posix_spawnp-tests (Files): Likewise.
26758         * modules/pread-tests (Files): Likewise.
26759         * modules/printf-posix-tests (Files): Likewise.
26760         * modules/pty-tests (Files): Likewise.
26761         * modules/random_r-tests (Files): Likewise.
26762         * modules/rawmemchr-tests (Files): Likewise.
26763         * modules/readlink-tests (Files): Likewise.
26764         * modules/remove-tests (Files): Likewise.
26765         * modules/rename-tests (Files): Likewise.
26766         * modules/renameat-tests (Files): Likewise.
26767         * modules/rmdir-tests (Files): Likewise.
26768         * modules/round-tests (Files): Likewise.
26769         * modules/roundf-tests (Files): Likewise.
26770         * modules/roundl-tests (Files): Likewise.
26771         * modules/select-tests (Files): Likewise.
26772         * modules/setenv-tests (Files): Likewise.
26773         * modules/sigaction-tests (Files): Likewise.
26774         * modules/sleep-tests (Files): Likewise.
26775         * modules/snprintf-posix-tests (Files): Likewise.
26776         * modules/snprintf-tests (Files): Likewise.
26777         * modules/sprintf-posix-tests (Files): Likewise.
26778         * modules/stat-tests (Files): Likewise.
26779         * modules/strcasestr-tests (Files): Likewise.
26780         * modules/strchrnul-tests (Files): Likewise.
26781         * modules/strerror-tests (Files): Likewise.
26782         * modules/strsignal-tests (Files): Likewise.
26783         * modules/strstr-tests (Files): Likewise.
26784         * modules/strtod-tests (Files): Likewise.
26785         * modules/strverscmp-tests (Files): Likewise.
26786         * modules/symlink-tests (Files): Likewise.
26787         * modules/symlinkat-tests (Files): Likewise.
26788         * modules/times-tests (Files): Likewise.
26789         * modules/trunc-tests (Files): Likewise.
26790         * modules/truncf-tests (Files): Likewise.
26791         * modules/truncl-tests (Files): Likewise.
26792         * modules/tsearch-tests (Files): Likewise.
26793         * modules/uname-tests (Files): Likewise.
26794         * modules/unlink-tests (Files): Likewise.
26795         * modules/unsetenv-tests (Files): Likewise.
26796         * modules/usleep-tests (Files): Likewise.
26797         * modules/utimensat-tests (Files): Likewise.
26798         * modules/vasprintf-tests (Files): Likewise.
26799         * modules/vdprintf-posix-tests (Files): Likewise.
26800         * modules/vfprintf-posix-tests (Files): Likewise.
26801         * modules/vprintf-posix-tests (Files): Likewise.
26802         * modules/vsnprintf-posix-tests (Files): Likewise.
26803         * modules/vsnprintf-tests (Files): Likewise.
26804         * modules/vsprintf-posix-tests (Files): Likewise.
26805         * modules/wcrtomb-tests (Files): Likewise.
26806         * modules/wcsnrtombs-tests (Files): Likewise.
26807         * modules/wcsrtombs-tests (Files): Likewise.
26808         * modules/wcwidth-tests (Files): Likewise.
26809         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
26810         * tests/test-isinf.c (isinf): Likewise.
26811         * tests/test-isnan.c (isnan): Likewise.
26812         * tests/test-signbit.c (signbit): Likewise.
26813         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
26814         declaration, either as macro or with correct signature.
26815         (select): Ensure function under test is declared with correct
26816         signature in correct header.
26817         * tests/test-atexit.c (atexit): Likewise.
26818         * tests/test-btowc.c (btowc): Likewise.
26819         * tests/test-canonicalize-lgpl.c (realpath)
26820         (canonicalize_file_name): Likewise.
26821         * tests/test-ceilf1.c (ceilf): Likewise.
26822         * tests/test-ceill.c (ceill): Likewise.
26823         * tests/test-chown.c (chown): Likewise.
26824         * tests/test-dprintf-posix.c (dprintf): Likewise.
26825         * tests/test-dup2.c (dup2): Likewise.
26826         * tests/test-dup3.c (dup3): Likewise.
26827         * tests/test-duplocale.c (duplocale): Likewise.
26828         * tests/test-fchdir.c (fchdir): Likewise.
26829         * tests/test-fchownat.c (fchownat): Likewise.
26830         * tests/test-fcntl.c (fcntl): Likewise.
26831         * tests/test-fdopendir.c (fdopendir): Likewise.
26832         * tests/test-fflush.c (fflush): Likewise.
26833         * tests/test-flock.c (flock): Likewise.
26834         * tests/test-floorf1.c (floorf): Likewise.
26835         * tests/test-floorl.c (floorl): Likewise.
26836         * tests/test-fnmatch.c (fnmatch): Likewise.
26837         * tests/test-fopen.c (fopen): Likewise.
26838         * tests/test-fprintf-posix.c (fprintf): Likewise.
26839         * tests/test-freopen.c (freopen): Likewise.
26840         * tests/test-frexp.c (frexp): Likewise.
26841         * tests/test-frexpl.c (frexpl): Likewise.
26842         * tests/test-fseek.c (fseek): Likewise.
26843         * tests/test-fseeko.c (fseeko): Likewise.
26844         * tests/test-fstatat.c (fstatat): Likewise.
26845         * tests/test-fsync.c (fsync): Likewise.
26846         * tests/test-ftell.c (ftell): Likewise.
26847         * tests/test-ftello.c (ftello): Likewise.
26848         * tests/test-futimens.c (futimens): Likewise.
26849         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
26850         (gai_strerror): Likewise.
26851         * tests/test-getcwd.c (getcwd): Likewise.
26852         * tests/test-getdelim.c (getdelim): Likewise.
26853         * tests/test-getdtablesize.c (getdtablesize): Likewise.
26854         * tests/test-getgroups.c (getgroups): Likewise.
26855         * tests/test-gethostname.c (gethostname): Likewise.
26856         * tests/test-getline.c (getline): Likewise.
26857         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
26858         Likewise.
26859         * tests/test-gettimeofday.c (gettimeofday): Likewise.
26860         * tests/test-glob.c (glob, globfree): Likewise.
26861         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
26862         * tests/test-inet_ntop.c (inet_ntop): Likewise.
26863         * tests/test-inet_pton.c (inet_pton): Likewise.
26864         * tests/test-isblank.c (isblank): Likewise.
26865         * tests/test-lchown.c (lchown): Likewise.
26866         * tests/test-ldexpl.c (ldexpl): Likewise.
26867         * tests/test-link.c (link): Likewise.
26868         * tests/test-linkat.c (linkat): Likewise.
26869         * tests/test-lseek.c (lseek): Likewise.
26870         * tests/test-lstat.c (lstat): Likewise.
26871         * tests/test-mbrtowc.c (mbrtowc): Likewise.
26872         * tests/test-mbsinit.c (mbsinit): Likewise.
26873         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
26874         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
26875         * tests/test-memchr.c (memchr): Likewise.
26876         * tests/test-memcmp.c (memcmp): Likewise.
26877         * tests/test-memmem.c (memmem): Likewise.
26878         * tests/test-memrchr.c (memrchr): Likewise.
26879         * tests/test-mkdir.c (mkdir): Likewise.
26880         * tests/test-mkdirat.c (mkdirat): Likewise.
26881         * tests/test-mkfifo.c (mkfifo): Likewise.
26882         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
26883         * tests/test-mknod.c (mknod): Likewise.
26884         * tests/test-nanosleep.c (nanosleep): Likewise.
26885         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
26886         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
26887         Likewise.
26888         * tests/test-open.c (open): Likewise.
26889         * tests/test-openat.c (openat): Likewise.
26890         * tests/test-perror.c (perror): Likewise.
26891         * tests/test-pipe2.c (pipe2): Likewise.
26892         * tests/test-poll.c (poll): Likewise.
26893         * tests/test-popen.c (popen, pclose): Likewise.
26894         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
26895         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
26896         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
26897         (posix_spawn_file_actions_destroy)
26898         (posix_spawn_file_actions_addclose)
26899         (posix_spawn_file_actions_addopen)
26900         (posix_spawn_file_actions_adddup2): Likewise.
26901         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
26902         * tests/test-pread.c (pread): Likewise.
26903         * tests/test-printf-posix.c (printf): Likewise.
26904         * tests/test-pty.c (openpty, forkpty): Likewise.
26905         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
26906         (random_r): Likewise.
26907         * tests/test-rawmemchr.c (rawmemchr): Likewise.
26908         * tests/test-readlink.c (readlink): Likewise.
26909         * tests/test-remove.c (remove): Likewise.
26910         * tests/test-rename.c (rename): Likewise.
26911         * tests/test-renameat.c (renameat): Likewise.
26912         * tests/test-rmdir.c (rmdir): Likewise.
26913         * tests/test-round1.c (round): Likewise.
26914         * tests/test-roundf1.c (roundf): Likewise.
26915         * tests/test-roundl.c (roundl): Likewise.
26916         * tests/test-setenv.c (setenv): Likewise.
26917         * tests/test-sigaction.c (sigaction): Likewise.
26918         * tests/test-sleep.c (sleep): Likewise.
26919         * tests/test-snprintf.c (snprintf): Likewise.
26920         * tests/test-sprintf-posix.c (sprintf): Likewise.
26921         * tests/test-stat.c (stat): Likewise.
26922         * tests/test-stpncpy.c (stpncpy): Likewise.
26923         * tests/test-strcasestr.c (strcasestr): Likewise.
26924         * tests/test-strchrnul.c (strchrnul): Likewise.
26925         * tests/test-strerror.c (strerror): Likewise.
26926         * tests/test-strsignal.c (strsignal): Likewise.
26927         * tests/test-strstr.c (strstr): Likewise.
26928         * tests/test-strtod.c (strtod): Likewise.
26929         * tests/test-strverscmp.c (strverscmp): Likewise.
26930         * tests/test-symlink.c (symlink): Likewise.
26931         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
26932         * tests/test-times.c (times): Likewise.
26933         * tests/test-trunc1.c (trunc): Likewise.
26934         * tests/test-truncf1.c (truncf): Likewise.
26935         * tests/test-truncl.c (truncl): Likewise.
26936         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
26937         Likewise.
26938         * tests/test-uname.c (uname): Likewise.
26939         * tests/test-unlink.c (unlink): Likewise.
26940         * tests/test-unlinkat.c (unlinkat): Likewise.
26941         * tests/test-unsetenv.c (unsetenv): Likewise.
26942         * tests/test-usleep.c (usleep): Likewise.
26943         * tests/test-utimensat.c (utimensat): Likewise.
26944         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
26945         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
26946         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
26947         * tests/test-vprintf-posix.c (vprintf): Likewise.
26948         * tests/test-vsnprintf.c (vsnprintf): Likewise.
26949         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
26950         * tests/test-wcrtomb.c (wcrtomb): Likewise.
26951         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
26952         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
26953         * tests/test-wcwidth.c (wcwidth): Likewise.
26954
26955         build: pull in conditional headers during GNULIB_POSIXCHECK
26956         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
26957         definitions from any conditionally-included headers.
26958         * lib/stdlib.in.h (includes): Likewise.
26959         * lib/unistd.in.h (includes): Likewise.
26960
26961 2009-12-24  Bruno Haible  <bruno@clisp.org>
26962
26963         * tests/test-argv-iter.c: Include header file being tested immediately
26964         after config.h.
26965         * tests/test-base64.c: Likewise.
26966         * tests/test-flock.c: Likewise.
26967         * tests/test-fsync.c: Likewise.
26968         * tests/test-getdate.c: Likewise.
26969         * tests/test-getndelim2.c: Likewise.
26970         * tests/test-isfinite.c: Likewise.
26971         * tests/test-isinf.c: Likewise.
26972         * tests/test-strerror.c: Likewise.
26973         * tests/test-strsignal.c: Likewise.
26974
26975 2009-12-23  Eric Blake  <ebb9@byu.net>
26976
26977         unistd: work around cygwin bug
26978         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
26979         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
26980         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26981
26982 2009-12-23  Bruno Haible  <bruno@clisp.org>
26983
26984         localename: More tests.
26985         * tests/test-localename.c (SIZEOF): New macro.
26986         (categories): New variable.
26987         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
26988         test_locale_name_default): Add test w.r.t. thread locale.
26989         (test_locale_name_thread): New function.
26990         (main): Invoke it.
26991
26992         localename: Make aware of thread locale.
26993         * lib/localename.h (gl_locale_name_thread): New declaration.
26994         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
26995         behaviour with respect to thread locale.
26996         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
26997         <langinfo.h>, glthread/lock.h.
26998         (SIZE_BITS): New macro.
26999         (string_hash): New function.
27000         (struct hash_node): New type.
27001         (HASH_TABLE_SIZE): New macro.
27002         (struniq_hash_table, struniq_lock): New variables.
27003         (struniq): New function.
27004         (gl_locale_name_thread): New function.
27005         (gl_locale_name): Invoke it.
27006         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27007         * modules/localename (Depends-on): Add lock.
27008         Reported by Mike Gran <spk121@yahoo.com>.
27009
27010 2009-12-23  Eric Blake  <ebb9@byu.net>
27011
27012         va-args: new module
27013         * modules/va-args: New file.
27014         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27015         * MODULES.html.sh (Core language properties): Mention it.
27016
27017         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27018         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27019         named alias for __attribute__((__unused__)).
27020         * lib/chown.c: Update client.
27021         * lib/fchmodat.c: Likewise.
27022         * lib/fts.c: Likewise.
27023         * lib/getdate.y: Likewise.
27024         * lib/getgroups.c: Likewise.
27025         * lib/getopt.c: Likewise.
27026         * lib/getugroups.c: Likewise.
27027         * lib/mkdir.c: Likewise.
27028         * lib/mkfifo.c: Likewise.
27029         * lib/mkfifoat.c: Likewise.
27030         * lib/mknod.c: Likewise.
27031         * lib/mknodat.c: Likewise.
27032         * lib/readlink.c: Likewise.
27033         * lib/se-context.in.h: Likewise.
27034         * lib/se-selinux.in.h: Likewise.
27035         * lib/sockets.c: Likewise.
27036         * lib/symlink.c: Likewise.
27037         * lib/symlinkat.c: Likewise.
27038         * lib/unicodeio.c: Likewise.
27039         * lib/unistr.h: Likewise.
27040         * tests/test-areadlink.c: Likewise.
27041         * tests/test-areadlinkat.c: Likewise.
27042         * tests/test-filenamecat.c: Likewise.
27043         * tests/test-fseeko.c: Likewise.
27044         * tests/test-ftello.c: Likewise.
27045         * tests/test-getdate.c: Likewise.
27046         * tests/test-getgroups.c: Likewise.
27047         * tests/test-gethostname.c: Likewise.
27048         * tests/test-quotearg.c: Likewise.
27049         * tests/test-version-etc.c: Likewise.
27050         * tests/test-xalloc-die.c: Likewise.
27051         * tests/test-xfprintf-posix.c: Likewise.
27052         * tests/test-xprintf-posix.c: Likewise.
27053         * tests/test-xvasprintf.c: Likewise.
27054
27055         tests: avoid compiler warnings
27056         * tests/test-fcntl.c (main): Delete unused parameters.
27057         * tests/test-freopen-safer.c (main): Likewise.
27058         * tests/test-xalloc-die.c (main): Mark unused parameters.
27059         * tests/test-fseeko.c (main): Likewise.
27060         * tests/test-ftello.c (main): Likewise.
27061         * tests/test-nanosleep.c (main): Avoid declaration warning.
27062         * tests/test-sleep.c (main): Likewise.
27063         * tests/test-unsetenv.c (main): Silence warning about string
27064         literal.
27065         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27066
27067 2009-12-23  Bruno Haible  <bruno@clisp.org>
27068
27069         * tests/test-localename.c (test_locale_name): New function, extracted
27070         from main. Also test mixed situations.
27071         (test_locale_name_posix, test_locale_name_environ,
27072         test_locale_name_default): New functions.
27073         (main): Invoke them all.
27074         * modules/localename-tests (configure.ac): Test for newlocale.
27075
27076 2009-12-23  Bruno Haible  <bruno@clisp.org>
27077
27078         unistd: Ensure getcwd gets declared before being overridden.
27079         * lib/unistd.in.h: Conditionally include <io.h>.
27080
27081 2009-12-22  Bruno Haible  <bruno@clisp.org>
27082
27083         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27084         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27085         (gl_WCHAR_H): Invoke it.
27086         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27087         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27088         Reported by Karl Berry <karl@freefriends.org>.
27089
27090 2009-12-22  Eric Blake  <ebb9@byu.net>
27091
27092         math, unistd: avoid redundant includes
27093         * lib/math.in.h (isnan): No need to re-include <math.h>.
27094         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27095
27096         getsubopt: work around cygwin bug
27097         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27098         avoid conflicting with system getsubopt.
27099         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27100         bug.
27101
27102         getopt: synchronize from glibc
27103         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27104         parameter order.  Adjust all callers.
27105         (_getopt_internal_r, main): Adjust quoting in error messages.
27106         Drop considerations for outdated POSIX 1003.2 error message.
27107         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27108         callers.
27109         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27110
27111         test-getopt: test stderr behavior
27112         * modules/getopt-posix-tests (Depends-on): Add dup2.
27113         * tests/test-getopt.c (ASSERT): Avoid stderr.
27114         (main): Move stderr to a temporary file.
27115         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27116         Instead, add parameter to inform caller if output occurred.
27117         (test_getopt): Adjust all existing tests to expect silence, and
27118         add new tests of leading ":".
27119         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27120         glibc shortcomings with leading "-:" or "+:" in optstring.
27121         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27122         Likewise.
27123         * doc/posix-functions/getopt.texi (getopt): Likewise.
27124
27125         test-getopt: enhance test
27126         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27127         supports optind=0.
27128         * tests/test-getopt.c (OPTIND_MIN): Move...
27129         * tests/test-getopt.h (OPTIND_MIN): ...here.
27130         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27131         Require that optind=0 works, since modern BSD supports it in
27132         addition to optreset, and since coreutils expects it.
27133         (test_getopt_long_only): New test.
27134         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27135         glibc shortcomings with 'W;', and enforcement of optind=0.
27136         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27137         Likewise.
27138
27139 2009-12-21  Bruno Haible  <bruno@clisp.org>
27140
27141         localename: Improvements for MacOS X and Cygwin.
27142         * lib/localename.h (gl_locale_name_environ): New declaration.
27143         * lib/localename.c (gl_locale_name_environ): New function, extracted from
27144         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
27145         (gl_locale_name_posix): Invoke it.
27146         (gl_locale_name_default): Add comments. Use Windows native API also on
27147         Cygwin.
27148
27149 2009-12-21  Bruno Haible  <bruno@clisp.org>
27150
27151         Update list of Win32 locale ids.
27152         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
27153         (LANG_SAMI): Renamed from LANG_SAAMI.
27154         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
27155         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
27156         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
27157         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
27158         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
27159         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
27160         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
27161         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
27162         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
27163         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
27164         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
27165         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
27166         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
27167         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
27168         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
27169         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
27170         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
27171         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
27172         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
27173         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
27174         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
27175         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
27176         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
27177         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
27178         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
27179         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
27180         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
27181         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
27182         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
27183         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
27184         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
27185         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
27186         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
27187         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
27188         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
27189         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
27190         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
27191         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
27192         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
27193         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
27194         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
27195         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
27196         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
27197         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
27198         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
27199         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
27200         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
27201         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
27202         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
27203         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
27204         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
27205         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
27206         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
27207         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
27208         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
27209         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
27210         Add more languages and countries for Sami, Sorbian. Add more countries
27211         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
27212         for Pashto. Change country for Syriac, Tswana.
27213
27214 2009-12-21  Eric Blake  <ebb9@byu.net>
27215
27216         test-utimens: avoid spurious failure
27217         * tests/test-chown.h (nap): Factor...
27218         * tests/nap.h: ...into new file.
27219         * tests/test-lchown.h (nap): Avoid duplication.
27220         * tests/test-utimens-common.h (nap): Use shared implementation,
27221         necessary on file systems with 1-second resolution.
27222         * modules/chown-tests (Files): Include new file.
27223         * modules/fdutimensat-tests (Files): Likewise.
27224         * modules/futimens-tests (Files): Likewise.
27225         * modules/lchown-tests (Files): Likewise.
27226         * modules/openat-tests (Files): Likewise.
27227         * modules/utimens-tests (Files): Likewise.
27228         * modules/utimensat-tests (Files): Likewise.
27229
27230 2009-12-19  Eric Blake  <ebb9@byu.net>
27231
27232         futimens, utimensat: work around Linux bug
27233         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
27234         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27235         * lib/utimensat.c (rpl_utimensat): Work around it.
27236         * lib/futimens.c (rpl_futimens): Adjust comment.
27237
27238         utimens: work around Linux ctime bug
27239         * lib/utimens.c (detect_ctime_bug): New helper function.
27240         (update_timespec): Differentiate between workaround needed for
27241         this bug vs. what is needed for systems that lack utimensat.
27242         (fdutimens, lutimens): Work around bug.
27243
27244         utimens: check for ctime update
27245         * tests/test-utimens-common.h (check_ctime): Define.
27246         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
27247         * tests/test-futimens.h (test_futimens): Likewise.
27248         * tests/test-lutimens.h (test_lutimens): Likewise.
27249         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27250         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27251
27252 2009-12-19  Bruno Haible  <bruno@clisp.org>
27253
27254         dprintf-posix: Check against memory leak fixed on 2009-12-15.
27255         * tests/test-dprintf-posix2.sh: New file.
27256         * tests/test-dprintf-posix2.c: New file.
27257         * modules/dprintf-posix-tests (Files): Add them.
27258         (configure.ac): Check for getrlimit and setrlimit.
27259         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27260
27261 2009-12-19  Bruno Haible  <bruno@clisp.org>
27262
27263         fprintf-posix: Check against memory leak fixed on 2009-12-15.
27264         * tests/test-fprintf-posix3.sh: New file.
27265         * tests/test-fprintf-posix3.c: New file.
27266         * modules/fprintf-posix-tests (Files): Add them.
27267         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27268
27269 2009-12-19  Eric Blake  <ebb9@byu.net>
27270
27271         dirfd: fix prototype
27272         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
27273         * lib/dirfd.c (dirfd): Likewise.
27274
27275         canonicalize: reduce memory usage
27276         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27277         allocation to size.
27278         Reported by Solar Designer <solar@openwall.com>.
27279
27280 2009-12-19  Bruno Haible  <bruno@clisp.org>
27281
27282         New module attribute 'Applicability'.
27283         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27284         * gnulib-tool: New option --extract-applicability.
27285         (func_usage): Document it.
27286         (sed_extract_prog): Recognize it.
27287         (func_get_applicability): New function.
27288         (func_import): Generalize handling of 'link-warning' module.
27289         * modules/link-warning (Applicability): New section.
27290         * modules/arg-nonnull (Applicability): New section.
27291         Repoted by Simon Josefsson <simon@josefsson.org>.
27292
27293 2009-12-19  Bruno Haible  <bruno@clisp.org>
27294
27295         fflush: tweak
27296         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27297         * lib/fseeko.c (rpl_fseeko): Likewise.
27298
27299 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27300
27301         * lib/gl_list.h: Fix typo in comment.
27302
27303 2009-12-16  Eric Blake  <ebb9@byu.net>
27304
27305         fcntl: use to simplify other modules
27306         * modules/cloexec (Depends-on): Add fcntl.
27307         * modules/fchdir (Depends-on): Likewise.
27308         * modules/fd-safer-flag (Depends-on): Likewise.
27309         * modules/unistd-safer (Depends-on): Likewise.
27310         * modules/dup3 (configure.ac): Set module indicator.
27311         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
27312         missing.
27313         * lib/fchdir.c (_gl_register_dup): Fix comment.
27314         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
27315         * lib/dup-safer.c (dup_safer): Likewise.
27316         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
27317         * lib/dup3.c (dup3): Likewise.
27318         * tests/test-fchdir.c (main): Enhance test.
27319         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
27320
27321         fcntl: port portions of fcntl to mingw
27322         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
27323         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
27324         replacement for mingw.
27325         * modules/fcntl (Description): Update.
27326         (Depends-on): Add dup2.
27327         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
27328         * modules/fcntl-h (Makefile.am): Substitute it.
27329         * lib/fcntl.in.h (fcntl): Update declaration.
27330         (F_DUPFD, F_GETFD): New macros, when needed.
27331         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27332         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
27333         * tests/test-fcntl.c (check_flags, main): Enhance test for items
27334         we now guarantee.
27335
27336         fcntl: work around cygwin bug in F_DUPFD
27337         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
27338         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
27339         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
27340         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
27341         * doc/posix-functions/fcntl.texi (fcntl): Document it.
27342
27343         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
27344         * modules/fcntl (Files): List new files.
27345         (configure.ac): Run a test.
27346         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
27347         * lib/fcntl.c (rpl_fcntl): Likewise.
27348         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
27349         (gl_FCNTL_H): Always replace fcntl.h.
27350         * modules/fcntl-h (Makefile.am): Substitute witnesses.
27351         * lib/fcntl.in.h (fcntl): Declare replacement.
27352         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
27353         needed, plus a witness.
27354         * doc/posix-functions/fcntl.texi (fcntl): Document this.
27355         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27356         * tests/test-fcntl.c: New file.
27357         * modules/fcntl-tests: Likewise.
27358
27359         binary-io: avoid potential compilation warning
27360         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
27361         directives.
27362
27363         fflush: avoid compilation error on NetBSD
27364         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
27365         between off_t and fpos_t, since the latter is sometimes a struct.
27366         * lib/fseeko.c (rpl_fseeko): Likewise.
27367         Reported by Alexander Nasonov <alnsn@yandex.ru>.
27368
27369 2009-12-15  Eric Blake  <ebb9@byu.net>
27370
27371         fcntl-h, stdio, sys_ioctl: fix declarations
27372         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
27373         function must not take arguments.
27374         * lib/sys_ioctl.in.h (ioctl): Likewise.
27375         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
27376         (open): Add a link warning.
27377
27378 2009-12-15  Jim Meyering  <meyering@redhat.com>
27379
27380         areadlink, areadlink-with-size: relax license to LGPLv2+
27381         * modules/areadlink (License): Relax to LGPLv2+.
27382         * modules/areadlink-with-size (License): Likewise.
27383
27384 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
27385             Bruno Haible  <bruno@clisp.org>
27386
27387         *printf: Fix memory leak.
27388         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
27389         * lib/vfprintf.c (vfprintf): Likewise.
27390         * lib/dprintf.c (dprintf): Likewise.
27391         * lib/vdprintf.c (vdprintf): Likewise.
27392
27393 2009-12-14  Eric Blake  <ebb9@byu.net>
27394
27395         accept4: adjust module dependencies
27396         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
27397
27398         utimens: one more try at avoiding compiler warning
27399         * lib/utimens.c (lutimens): Lower scope of result.
27400
27401 2009-12-13  Bruno Haible  <bruno@clisp.org>
27402
27403         Move the malloc checking from module 'list' to new module 'xlist'.
27404         * modules/xlist: New file.
27405         * lib/gl_xlist.h: New file.
27406         * lib/gl_xlist.c: New file.
27407         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
27408         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
27409         gl_list_add_last, gl_list_add_before, gl_list_add_after,
27410         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
27411         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
27412         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
27413         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
27414         gl_sortedlist_nx_add): New declarations.
27415         (struct gl_list_implementation): Rename and change methods accordingly.
27416         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
27417         (gl_list_nx_create): Renamed from gl_list_create.
27418         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27419         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27420         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27421         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27422         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27423         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27424         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27425         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27426         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
27427         gl_list_create_empty.
27428         (gl_list_nx_create): Renamed from gl_list_create.
27429         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27430         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27431         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27432         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27433         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27434         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27435         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27436         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27437         * lib/gl_array_list.c: Don't include xalloc.h.
27438         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
27439         NULL upon out-of-memory.
27440         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
27441         out-of-memory.
27442         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
27443         Change return type to 'int'.
27444         (gl_array_nx_set_at): Renamed from gl_array_set_at.
27445         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27446         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
27447         upon out-of-memory.
27448         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
27449         upon out-of-memory.
27450         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
27451         upon out-of-memory.
27452         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
27453         upon out-of-memory.
27454         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
27455         out-of-memory.
27456         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
27457         Update.
27458         (gl_array_list_implementation): Update.
27459         * lib/gl_carray_list.c: Don't include xalloc.h.
27460         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
27461         Return NULL upon out-of-memory.
27462         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
27463         out-of-memory.
27464         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
27465         Change return type to 'int'.
27466         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
27467         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27468         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
27469         upon out-of-memory.
27470         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
27471         upon out-of-memory.
27472         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
27473         out-of-memory.
27474         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
27475         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
27476         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
27477         Update.
27478         (gl_carray_list_implementation): Update.
27479         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
27480         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
27481         gl_linked_create_empty. Return NULL upon out-of-memory.
27482         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
27483         out-of-memory.
27484         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
27485         Change return type to 'int'. Return -1 upon out-of-memory.
27486         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
27487         out-of-memory.
27488         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
27489         upon out-of-memory.
27490         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
27491         upon out-of-memory.
27492         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
27493         NULL upon out-of-memory.
27494         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
27495         upon out-of-memory.
27496         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
27497         out-of-memory.
27498         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
27499         Update.
27500         * lib/gl_linked_list.c: Don't include xalloc.h.
27501         (gl_linked_list_implementation): Update.
27502         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
27503         (add_to_bucket): Change return type to 'int'.
27504         (gl_linkedhash_list_implementation): Update.
27505         * lib/gl_anytree_list1.h (free_subtree): New function.
27506         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
27507         gl_tree_create_empty. Return NULL upon out-of-memory.
27508         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
27509         Change return type to 'int'. Return -1 upon out-of-memory.
27510         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
27511         out-of-memory.
27512         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
27513         (gl_tree_remove_node): New function, moved here from
27514         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
27515         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
27516         Update.
27517         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
27518         malloc, not xmalloc. Return NULL upon out-of-memory.
27519         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27520         out-of-memory.
27521         (gl_tree_remove_node_from_tree): New function, extracted from
27522         gl_tree_remove_node.
27523         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27524         upon out-of-memory.
27525         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27526         out-of-memory.
27527         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27528         upon out-of-memory.
27529         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27530         upon out-of-memory.
27531         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27532         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
27533         not xmalloc. Return NULL upon out-of-memory.
27534         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27535         out-of-memory.
27536         (gl_tree_remove_node_from_tree): New function, extracted from
27537         gl_tree_remove_node.
27538         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27539         upon out-of-memory.
27540         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27541         out-of-memory.
27542         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27543         upon out-of-memory.
27544         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27545         upon out-of-memory.
27546         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27547         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
27548         gl_anytree_list1.h before gl_anyavltree_list2.h.
27549         (gl_avltree_list_implementation): Update.
27550         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
27551         gl_anytree_list1.h before gl_anyavltree_list2.h.
27552         (gl_rbtree_list_implementation): Update.
27553         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
27554         Change return type to 'int'. Return -1 upon out-of-memory. Use
27555         __builtin_expect.
27556         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
27557         (gl_avltreehash_list_implementation): Update.
27558         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
27559         (gl_rbtreehash_list_implementation): Update.
27560         * modules/array-list (Depends-on): Remove xalloc.
27561         * modules/carray-list (Depends-on): Likewise.
27562         * modules/linked-list (Depends-on): Likewise.
27563         * modules/linkedhash-list (Depends-on): Likewise.
27564         * modules/avltree-list (Depends-on): Likewise.
27565         * modules/rbtree-list (Depends-on): Likewise.
27566         * modules/avltreehash-list (Depends-on): Likewise.
27567         * modules/rbtreehash-list (Depends-on): Likewise.
27568
27569         * modules/xsublist: New file.
27570         * lib/gl_xsublist.h: New file.
27571         * lib/gl_xsublist.c: New file.
27572         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
27573         (gl_sublist_nx_create): New declaration.
27574         * lib/gl_sublist.c: Don't include xalloc.h.
27575         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
27576         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
27577         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
27578         Change return type to 'int'. Return -1 upon out-of-memory.
27579         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
27580         upon out-of-memory.
27581         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
27582         NULL upon out-of-memory.
27583         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
27584         upon out-of-memory.
27585         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
27586         NULL upon out-of-memory.
27587         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
27588         NULL upon out-of-memory.
27589         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
27590         upon out-of-memory.
27591         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
27592         (gl_sublist_list_implementation): Update.
27593         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
27594         upon out-of-memory.
27595         * modules/sublist (Depends-on): Remove xalloc.
27596
27597         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
27598         * tests/test-carray_list.c: Likewise.
27599         * tests/test-linked_list.c: Likewise.
27600         * tests/test-linkedhash_list.c: Likewise.
27601         * tests/test-avltree_list.c: Likewise.
27602         * tests/test-rbtree_list.c: Likewise.
27603         * tests/test-avltreehash_list.c: Likewise.
27604         * tests/test-rbtreehash_list.c: Likewise.
27605         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
27606         * modules/carray-list-tests (Makefile.am): Likewise.
27607         * modules/linked-list-tests (Makefile.am): Likewise.
27608         * modules/linkedhash-list-tests (Makefile.am): Likewise.
27609         * modules/avltree-list-tests (Makefile.am): Likewise.
27610         * modules/rbtree-list-tests (Makefile.am): Likewise.
27611         * modules/avltreehash-list-tests (Makefile.am): Likewise.
27612         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
27613
27614         * NEWS: Mention the changes.
27615
27616         * lib/clean-temp.c: Include gl_xlist.h.
27617         * modules/clean-temp (Depends-on): Add xlist.
27618
27619         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
27620         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
27621
27622         * tests/test-array_oset.c: Include gl_xlist.h.
27623         * modules/array-oset-tests (Depends-on): Add xlist.
27624
27625         Reported by José E. Marchesi <jemarch@gnu.org>.
27626
27627 2009-12-13  Bruno Haible  <bruno@clisp.org>
27628
27629         Move the malloc checking from module 'oset' to new module 'xoset'.
27630         * modules/xoset: New file.
27631         * lib/gl_xoset.h: New file.
27632         * lib/gl_xoset.c: New file.
27633         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
27634         declarations.
27635         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
27636         (struct gl_oset_implementation): Rename and change methods accordingly.
27637         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
27638         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27639         'int'. Mark as __warn_unused_result__.
27640         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
27641         gl_oset_create_empty.
27642         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27643         'int'.
27644         * lib/gl_array_oset.c: Don't include xalloc.h.
27645         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
27646         malloc, not xmalloc.
27647         (grow): Change return type to 'int'. Don't call xalloc_die.
27648         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
27649         to 'int'.
27650         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
27651         'int'.
27652         (gl_array_oset_implementation): Update.
27653         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
27654         gl_tree_create_empty.
27655         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
27656         'int'.
27657         * lib/gl_avltree_oset.c: Don't include xalloc.h.
27658         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27659         xmalloc.
27660         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27661         not xmalloc.
27662         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27663         xmalloc.
27664         (gl_avltree_oset_implementation): Update.
27665         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
27666         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27667         xmalloc.
27668         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27669         not xmalloc.
27670         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27671         xmalloc.
27672         (gl_rbtree_oset_implementation): Update.
27673         * modules/array-oset (Depends-on): Remove xalloc.
27674         * modules/avltree-oset (Depends-on): Likewise.
27675         * modules/rbtree-oset (Depends-on): Likewise.
27676         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
27677         * tests/test-avltree_oset.c: Likewise.
27678         * tests/test-rbtree_oset.c: Likewise.
27679         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
27680         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
27681         * modules/rbtree-oset-tests (Makefile.am): Likewise.
27682         * NEWS: Mention the change.
27683
27684 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
27685
27686         maint.mk: allow a project to override release-prep commands
27687         * top/maint.mk (alpha, beta, stable): Move release-preparatory
27688         commands into a new rule.
27689         (release-prep): New rule.
27690         (release-prep-hook): New overridable variable.
27691
27692 2009-12-13  Bruno Haible  <bruno@clisp.org>
27693
27694         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
27695
27696 2009-12-13  Jim Meyering  <meyering@redhat.com>
27697
27698         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
27699         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
27700
27701 2009-12-12  Bruno Haible  <bruno@clisp.org>
27702
27703         duplocale: Tweak.
27704         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
27705
27706 2009-12-12  Karl Berry  <karl@gnu.org>
27707
27708         * config/srclist.txt (strtoll.c): tab changes, no more sync.
27709
27710 2009-12-12  Bruno Haible  <bruno@clisp.org>
27711
27712         * m4/po.m4: Undo incorrect untabification.
27713
27714 2009-12-12  Bruno Haible  <bruno@clisp.org>
27715
27716         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
27717         * modules/c-strtod (Depends-on): Add locale.
27718         * modules/c-strtold (Depends-on): Likewise.
27719
27720 2009-12-12  Bruno Haible  <bruno@clisp.org>
27721
27722         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
27723
27724 2009-12-11  Eric Blake  <ebb9@byu.net>
27725
27726         setenv: relax requirement in light of POSIX ruling
27727         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
27728         not NULL.
27729         * tests/test-setenv.c (main): Relax test.
27730         * tests/test-unsetenv.c (main): Likewise.
27731         * doc/posix-functions/setenv.texi (setenv): Document this.
27732         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27733
27734 2009-12-11  Bruno Haible  <bruno@clisp.org>
27735
27736         New module 'fd-safer-flag'.
27737         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
27738         * lib/dup-safer.c (dup_safer_flag): Remove function.
27739         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
27740         * lib/fd-safer.c (fd_safer_flag): Remove function.
27741         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
27742         * modules/cloexec (configure.ac): Drop indicator macro.
27743         * modules/fd-safer-flag: New file.
27744         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
27745         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
27746         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
27747
27748 2009-12-11  Bruno Haible  <bruno@clisp.org>
27749
27750         Tests for module 'nl_langinfo'.
27751         * modules/nl_langinfo-tests: New file.
27752         * tests/test-nl_langinfo.sh: New file.
27753         * tests/test-nl_langinfo.c: New file.
27754
27755         New module 'nl_langinfo'.
27756         * lib/nl_langinfo.c: New file.
27757         * m4/nl_langinfo.m4: New file.
27758         * modules/nl_langinfo: New file.
27759         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
27760
27761 2009-12-11  Bruno Haible  <bruno@clisp.org>
27762
27763         Tests for module 'langinfo'.
27764         * modules/langinfo-tests: New file.
27765         * tests/test-langinfo.c: New file.
27766
27767         New module 'langinfo'.
27768         * lib/langinfo.in.h: New file.
27769         * m4/langinfo_h.m4: New file.
27770         * modules/langinfo: New file.
27771         * doc/posix-headers/langinfo.texi: Mention the new module.
27772
27773 2009-12-11  Bruno Haible  <bruno@clisp.org>
27774
27775         * lib/config.charset: Untabify.
27776
27777 2009-12-11  Bruno Haible  <bruno@clisp.org>
27778
27779         * modules/unistd-safer (configure.ac): Drop indicator macro.
27780
27781 2009-12-11  Bruno Haible  <bruno@clisp.org>
27782
27783         Move pipe2-safer code to its own file.
27784         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
27785         * lib/pipe-safer.c (pipe2_safer): Remove function.
27786         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
27787         (Makefile.am): Add it to lib_SOURCES.
27788
27789 2009-12-10  Bruno Haible  <bruno@clisp.org>
27790
27791         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
27792
27793 2009-12-10  Bruno Haible  <bruno@clisp.org>
27794
27795         Declare which arguments expect non-NULL values, for GCC and clang.
27796         * build-aux/arg-nonnull.h: New file.
27797         * modules/arg-nonnull: New file.
27798         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
27799         (inet_ntop, inet_pton): Use it.
27800         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
27801         (closedir, dirfd, opendir, scandir, alphasort): Use it.
27802         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
27803         (open, openat): Use it.
27804         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
27805         (fnmatch): Use it.
27806         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
27807         (getopt, getopt_long, getopt_long_only): Use it.
27808         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
27809         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
27810         Use it.
27811         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
27812         (iconv_open): Use it.
27813         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
27814         (strtoimax, strtoumax): Use it.
27815         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
27816         (duplocale): Use it.
27817         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
27818         (frexp, frexpl): Use it.
27819         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
27820         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
27821         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
27822         (tsearch, tfind, tdelete, twalk): Use it.
27823         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
27824         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27825         sigpending): Use it.
27826         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
27827         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27828         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27829         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27830         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27831         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27832         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27833         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27834         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27835         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27836         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27837         Use it.
27838         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
27839         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
27840         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
27841         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
27842         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
27843         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
27844         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
27845         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
27846         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
27847         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
27848         strtoull, unsetenv): Use it.
27849         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
27850         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27851         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27852         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
27853         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
27854         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
27855         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
27856         (strcasecmp, strncasecmp): Use it.
27857         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
27858         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
27859         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
27860         rpl_setsockopt): Use it.
27861         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
27862         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
27863         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
27864         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
27865         (gettimeofday): Use it.
27866         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
27867         (times): Use it.
27868         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
27869         (uname): Use it.
27870         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
27871         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
27872         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
27873         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
27874         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
27875         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
27876         unlinkat, write): Use it.
27877         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
27878         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
27879         * lib/argv-iter.h: Include arg-nonnull.h.
27880         (_ATTRIBUTE_NONNULL_): Remove macro.
27881         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
27882         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
27883         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
27884         optimization.
27885         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
27886         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
27887         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
27888         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
27889         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
27890         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
27891         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
27892         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
27893         * modules/arpa_inet (Depends-on): Add arg-nonnull.
27894         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
27895         * modules/dirent (Depends-on): Add arg-nonnull.
27896         (Makefile.am): Insert arg-nonnull.h into dirent.h.
27897         * modules/fcntl-h (Depends-on): Add arg-nonnull.
27898         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
27899         * modules/fnmatch (Depends-on): Add arg-nonnull.
27900         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
27901         * modules/getopt-posix (Depends-on): Add arg-nonnull.
27902         (Makefile.am): Insert arg-nonnull.h into getopt.h.
27903         * modules/glob (Depends-on): Add arg-nonnull.
27904         (Makefile.am): Insert arg-nonnull.h into glob.h.
27905         * modules/iconv_open (Depends-on): Add arg-nonnull.
27906         (Makefile.am): Insert arg-nonnull.h into iconv.h.
27907         * modules/inttypes (Depends-on): Add arg-nonnull.
27908         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
27909         * modules/locale (Depends-on): Add arg-nonnull.
27910         (Makefile.am): Insert arg-nonnull.h into locale.h.
27911         * modules/math (Depends-on): Add arg-nonnull.
27912         (Makefile.am): Insert arg-nonnull.h into math.h.
27913         * modules/netdb (Depends-on): Add arg-nonnull.
27914         (Makefile.am): Insert arg-nonnull.h into netdb.h.
27915         * modules/search (Depends-on): Add arg-nonnull.
27916         (Makefile.am): Insert arg-nonnull.h into search.h.
27917         * modules/signal (Depends-on): Add arg-nonnull.
27918         (Makefile.am): Insert arg-nonnull.h into signal.h.
27919         * modules/spawn (Depends-on): Add arg-nonnull.
27920         (Makefile.am): Insert arg-nonnull.h into spawn.h.
27921         * modules/stdio (Depends-on): Add arg-nonnull.
27922         (Makefile.am): Insert arg-nonnull.h into stdio.h.
27923         * modules/stdlib (Depends-on): Add arg-nonnull.
27924         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
27925         * modules/string (Depends-on): Add arg-nonnull.
27926         (Makefile.am): Insert arg-nonnull.h into string.h.
27927         * modules/strings (Depends-on): Add arg-nonnull.
27928         (Makefile.am): Insert arg-nonnull.h into strings.h.
27929         * modules/sys_socket (Depends-on): Add arg-nonnull.
27930         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
27931         * modules/sys_stat (Depends-on): Add arg-nonnull.
27932         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
27933         * modules/sys_time (Depends-on): Add arg-nonnull.
27934         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
27935         * modules/sys_times (Depends-on): Add arg-nonnull.
27936         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
27937         * modules/sys_utsname (Depends-on): Add arg-nonnull.
27938         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
27939         * modules/time (Depends-on): Add arg-nonnull.
27940         (Makefile.am): Insert arg-nonnull.h into time.h.
27941         * modules/unistd (Depends-on): Add arg-nonnull.
27942         (Makefile.am): Insert arg-nonnull.h into unistd.h.
27943         * modules/wchar (Depends-on): Add arg-nonnull.
27944         (Makefile.am): Insert arg-nonnull.h into wchar.h.
27945         * modules/argv-iter (Depends-on): Add arg-nonnull.
27946         * tests/test-canonicalize.c (null_ptr): New function.
27947         (main): Use it.
27948         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
27949         (main): Use it.
27950         * tests/test-memmem.c (null_ptr): New function.
27951         (main): Use it.
27952         Reported by Jim Meyering.
27953
27954 2009-12-10  Bruno Haible  <bruno@clisp.org>
27955
27956         Use spaces for indentation, not tabs.
27957         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27958         * m4/*.m4: Untabify.
27959         * build-aux/*.h: Untabify.
27960         * tests/**/*.[hc]: Untabify.
27961         * README: New section "Indent with spaces, not TABs", based on
27962         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
27963         * NEWS: Mention the change.
27964
27965 2009-12-10  Bruno Haible  <bruno@clisp.org>
27966
27967         pty test: Fix link error.
27968         * modules/pty-tests (Makefile.am): Add the default LDADD value to
27969         test_pty_LDADD.
27970
27971 2009-12-07  Simon Josefsson  <simon@josefsson.org>
27972
27973         * modules/pty: New file.
27974         * modules/pty-tests: New file.
27975         * m4/pty.m4: New file.
27976         * tests/test-pty.c: New file.
27977         * doc/glibc-headers/pty.texi: Modified.
27978         * doc/glibc-functions/forkpty.texi: Modified.
27979         * doc/glibc-functions/openpty.texi: Modified.
27980
27981 2009-12-10  Bruno Haible  <bruno@clisp.org>
27982
27983         Avoid syntax error in C++ mode.
27984         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
27985
27986 2009-12-10  Bruno Haible  <bruno@clisp.org>
27987
27988         Use sed with option -e.
27989         * gnulib-tool (func_version, func_emit_copyright_notice,
27990         func_emit_initmacro_end, func_import, func_create_testdir): Pass
27991         option -e to sed.
27992         * modules/link-warning (Makefile.am): Likewise.
27993
27994 2009-12-10  Jim Meyering  <meyering@redhat.com>
27995
27996         mgetgroups: do not write bytes beyond end of malloc'd buffer
27997         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
27998         username, we call getgroups with a one-element-shorter buffer,
27999         but still told it the length was original, max_n_groups.
28000
28001 2009-12-09  Eric Blake  <ebb9@byu.net>
28002
28003         cloexec: relax license
28004         * modules/cloexec (Maintainer): Add myself.
28005         (License): Use LGPL, not GPL.
28006
28007         link-warning: optimize generation
28008         * modules/link-warning (Makefile.am): Reduce process usage.
28009
28010 2009-12-09  Bruno Haible  <bruno@clisp.org>
28011
28012         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28013         workaround was added on 2009-11-17.
28014
28015 2009-12-09  Jim Meyering  <meyering@redhat.com>
28016             Bruno Haible  <bruno@clisp.org>
28017
28018         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28019         * modules/link-warning (Makefile.am): Make the comment-removing sed
28020         command more robust in the face of bootstrap-prepended comment lines.
28021
28022 2009-12-09  Bruno Haible  <bruno@clisp.org>
28023
28024         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28025         most one group.
28026
28027 2009-12-09  Simon Josefsson <simon@josefsson.org>
28028             Bruno Haible  <bruno@clisp.org>
28029
28030         * build-aux/link-warning.h: Add copyright notice.
28031         * modules/link-warning (Makefile.am): Generate link-warning.h from
28032         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28033         * NEWS: Mention change in link-warning module.
28034         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28035         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28036         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28037         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28038         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28039         * modules/math (Makefile.am): Add dependency to math.h.
28040         * modules/search (Makefile.am): Add dependency to search.h.
28041         * modules/signal (Makefile.am): Add dependency to signal.h.
28042         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28043         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28044         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28045         * modules/string (Makefile.am): Add dependency to string.h.
28046         * modules/strings (Makefile.am): Add dependency to strings.h.
28047         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28048         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28049         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28050         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28051         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28052         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28053         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28054         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28055         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28056
28057 2009-12-09  Bruno Haible  <bruno@clisp.org>
28058
28059         fchdir: Optimize away rpl_fstat when possible.
28060         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28061         REPLACE_OPEN_DIRECTORY.
28062         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28063
28064 2009-12-09  Bruno Haible  <bruno@clisp.org>
28065
28066         * lib/fchdir.c: Update comment.
28067
28068 2009-12-09  Bruno Haible  <bruno@clisp.org>
28069
28070         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28071
28072 2009-12-08  Eric Blake  <ebb9@byu.net>
28073
28074         fchdir: avoid memory leak on re-registration.
28075         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28076
28077 2009-12-08  Jim Meyering  <meyering@redhat.com>
28078
28079         init.sh: avoid Solaris 10 /bin/sh portability problem
28080         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28081         sourced script:
28082           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28083           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28084           bar
28085         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28086         and two tests used that idiom.
28087         * tests/init.sh: Update suggested usage comments.
28088         (path_prepend_): New function, to be used in place
28089         of the --src-path=DIR option.
28090         (setup_): Move PATH-prepending code into path_prepend_.
28091         * tests/test-pread.sh: Adapt to new usage.
28092         * tests/test-xalloc-die.sh: Likewise.
28093
28094 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28095
28096         * doc/gnulib.texi (Glibc pty.h): Add.
28097         * doc/glibc-functions/forkpty.texi: Add.
28098         * doc/glibc-functions/openpty.texi: Add.
28099         Suggested by Bruno Haible.
28100
28101 2009-12-08  Eric Blake  <ebb9@byu.net>
28102
28103         fchdir: fix logic bugs
28104         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28105         * tests/test-fchdir.c (main): Enhance test.
28106         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28107         is in use.
28108
28109         dup2: fix logic bugs
28110         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28111         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28112         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28113         exists.
28114         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28115
28116 2009-12-07  Eric Blake  <ebb9@byu.net>
28117
28118         unlink: fix m4 detection
28119         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28120
28121         unistd-safer: add unit test
28122         * modules/unistd-safer-tests: New file.
28123         * tests/test-dup-safer.c: Likewise.
28124         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28125         * tests/test-dup2.c (setmode): Likewise.
28126         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28127
28128         cloexec: preserve text vs. binary across dup_cloexec
28129         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28130         mode.
28131         * modules/dup2-tests (Depends-on): Add binary-io.
28132         * modules/cloexec-tests (Depends-on): Likewise.
28133         * tests/test-dup2.c (setmode, is_mode): New helpers.
28134         (main): Add tests that translation mode is preserved.
28135         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28136         Reported by Bruno Haible.
28137
28138         mgetgroups: reduce duplicate listings
28139         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28140         resulting array.
28141         * tests/test-chown.h (test_chown): Simplify client.
28142         * tests/test-lchown.h (test_lchown): Likewise.
28143
28144 2009-12-06  Bruno Haible  <bruno@clisp.org>
28145
28146         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
28147         value.
28148
28149 2009-12-06  Bruno Haible  <bruno@clisp.org>
28150
28151         * lib/progname.c: Include stdio.h, stdlib.h.
28152         (set_program_name): Reject a NULL argument.
28153
28154 2009-12-05  Eric Blake  <ebb9@byu.net>
28155
28156         pipe2-safer: new module
28157         * modules/pipe2-safer: New file.
28158         * lib/unistd-safer.h (pipe2_safer): New prototype.
28159         * lib/unistd--.h (pipe2): New wrapper.
28160         * lib/pipe-safer.c (pipe2_safer): New function.
28161         * modules/pipe (Depends-on): Add pipe2-safer.
28162         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
28163
28164         stdlib-safer: preserve cloexec flag for mkostemp[s]
28165         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
28166         fd_safer_flag.
28167
28168         unistd-safer: allow preservation of cloexec status via flag
28169         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
28170         prototypes.
28171         * lib/dup-safer.c (dup_safer_flag): New function.
28172         * lib/fd-safer.c (fd_safer_flag): Likewise.
28173         * modules/cloexec (configure.ac): Set witness.
28174
28175         test-dup2: enhance test
28176         * modules/dup2-tests (Depends-on): Add cloexec.
28177         * tests/test-dup2.c (main): Enhance test.
28178
28179         cloexec: add dup_cloexec
28180         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
28181         header and comments.
28182         * lib/cloexec.c (set_cloexec_flag): Add comments.
28183         (dup_cloexec): New function, with mingw implementation borrowed
28184         from...
28185         * lib/w32spawn.h (dup_noinherit): ...here.
28186         * modules/execute (Depends-on): Add cloexec.
28187         * modules/pipe (Depends-on): Likewise.
28188         * modules/cloexec (Depends-on): Add dup2.
28189         * modules/cloexec-tests (Files): New file.
28190         * tests/test-cloexec.c: Likewise.
28191
28192         test-xalloc-die: fix test for mingw
28193         * modules/xalloc-die-tests (Files): Add tests/init.sh.
28194         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
28195         directory and .exe suffix off argv[0] output.
28196
28197         test-fseeko: fix test for mingw
28198         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
28199         than undefining fseek, so test will pass on mingw.
28200
28201 2009-12-05  Bruno Haible  <bruno@clisp.org>
28202
28203         * lib/progname.h (set_program_name): Clarify specification.
28204         * lib/progname.c (set_program_name): Likewise.
28205         Reported by Jim Meyering.
28206
28207 2009-12-05  Jim Meyering  <meyering@redhat.com>
28208
28209         maint.mk: backslash-escape parens in default regexp
28210         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
28211         backslash-escape the literal parentheses.
28212
28213         maint.mk: news-date-check: use grep -E
28214         * top/maint.mk (today): Define a Make variable, not a...
28215         (news-date-check): ...shell variable.
28216         (news-date-regexp): Use the Make variable.
28217         Use grep's -E option.  Change the failing diagnostic to mention
28218         the variable, $(news-date-regexp).
28219
28220 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
28221
28222         maintainer-makefile: allow customization of NEWS entry format
28223         * top/maint.mk (news-date-regexp): New overridable variable.
28224         (news-date-check): Use it.
28225
28226 2009-12-04  Eric Blake  <ebb9@byu.net>
28227
28228         mgetgroups: add xgetgroups, and avoid ENOSYS failures
28229         * lib/mgetgroups.h (xgetgroups): New prototype.
28230         * lib/mgetgroups.c (xgetgroups): New wrapper.
28231         (mgetgroups): Handle ENOSYS.
28232         * modules/mgetgroups (Depends-on): Add realloc.
28233         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
28234
28235         mgetgroups: avoid argument promotion issues with -1
28236         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
28237         for invalid gid_t.
28238         * tests/test-chown.h (getegid, test_chown): Likewise.
28239         * tests/test-lchown.h (getegid, test_lchown): Likewise.
28240
28241 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
28242
28243         exclude: Fix header file problems.
28244         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
28245
28246 2009-12-01  Jim Meyering  <meyering@redhat.com>
28247
28248         fts: fts_open: do not let an empty string cause immediate failure
28249         This is required in support of GNU rm, for which the command
28250         "rm A '' B" must process and remove both A and B, in spite of
28251         the empty string argument.
28252         * lib/fts.c (fts_open): Do not let the presence of an empty string
28253         cause fts_open to fail immediately.  Most fts-using tools must be
28254         able to process all arguments, in order, and can be expected to
28255         diagnose such arguments themselves.
28256
28257 2009-11-30  Eric Blake  <ebb9@byu.net>
28258
28259         utimens: fix compilation error
28260         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
28261         Declare variable at right scope.
28262
28263 2009-11-29  Jim Meyering  <meyering@redhat.com>
28264
28265         bootstrap: handle perl-5.11's changed --version output
28266         * build-aux/bootstrap (get_version): Handle perl separately,
28267         since perl-5.11's --version output is different.
28268
28269 2009-11-28  Jim Meyering  <meyering@redhat.com>
28270
28271         userspec: depend on the inttostr module, too
28272         * modules/userspec (Depends-on): Add inttostr.
28273
28274         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28275         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28276         number of MAXUID when it evaluates to (uid_t) -1.
28277         Likewise for group ID.  Reported by Matt McCutchen in
28278         <http://savannah.gnu.org/bugs/?28113>
28279
28280         userspec: reformat to use spaces, not TABs
28281         * lib/userspec.c: Expand TABs to spaces.
28282         Add Emacs' "indent-tabs-mode: nil" hint.
28283
28284 2009-11-27  Eric Blake  <ebb9@byu.net>
28285
28286         getopt-gnu: flush out another BSD bug
28287         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28288         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28289         flush out BSD bug.
28290         * tests/test-getopt.h (test_getopt): End lists with NULL.
28291         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28292         (test_getopt_long_posix): Enhance test.
28293         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28294         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28295         getopt-gnu.
28296         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28297         Likewise.
28298
28299 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28300
28301         * modules/idpriv-droptemp-tests (Notice): Fix text.
28302
28303 2009-11-27  Jim Meyering  <meyering@redhat.com>
28304
28305         test-xalloc-die: avoid spurious failure due to libtool argv difference
28306         In a libtool-enabled project, this test would fail due to a difference
28307         in the emitted program name, e.g.,
28308         -test-xalloc-die: memory exhausted
28309         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
28310         Use program to avoid that.
28311         * modules/xalloc-die-tests (Depends-on): Add progname.
28312         * tests/test-xalloc-die.c: Include progname.h".
28313         (program_name): Remove decl.
28314         (main): Call set_program_name.
28315         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
28316
28317 2009-11-26  Richard Jones  <rjones@redhat.com>
28318
28319         w32sock: leave win32 error in place.
28320         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
28321
28322 2009-11-26  Eric Blake  <ebb9@byu.net>
28323
28324         init.sh: suggest to use skip_ and fail_ functions in comments
28325         * tests/init.sh: Add a sentence.
28326
28327 2009-11-25  Bruno Haible  <bruno@clisp.org>
28328
28329         init.sh: add documentation in comments
28330         * tests/init.sh: Add some developer and user documentation.
28331
28332 2009-11-26  Jim Meyering  <meyering@redhat.com>
28333
28334         init.sh: accommodate even those who specify bogus srcdir manually
28335         * tests/init.sh: Normally, srcdir is guaranteed by automake and
28336         configure-time tests to be sanitized, so that there is no need to
28337         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
28338         (with no double quotes) suffices.  However, since tests may be
28339         invoked manually, and since you may explicitly set srcdir to the
28340         name of a directory containing spaces, do quote its uses here.
28341         * tests/test-pread.sh: Likewise.
28342         Suggested by Bruno Haible.
28343
28344         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
28345         * tests/test-pread.sh: Write no data into the pipe, because
28346         test-pread actually reads none.  This avoids a diagnostic,
28347         "bash: echo: write error: Broken pipe", that arises in the unusual
28348         event something is ignoring SIGPIPE, and might be interpreted
28349         as some sort of failure.  Reported by Bruno Haible.
28350
28351 2009-11-25  Jim Meyering  <meyering@redhat.com>
28352
28353         test-pread: cover failure with ESPIPE and EINVAL
28354         * tests/test-pread.c (main): Test for failure, too.
28355         * tests/test-pread.sh: Invoke with stdin on a pipe.
28356         Suggested by Eric Blake.
28357
28358         pread: improvement and fix
28359         * modules/pread (Depends-on): Depend on lseek, for portability to
28360         e.g., mingw.  Suggested by Eric Blake.
28361         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
28362
28363         unistd.in.h: correct declaration of pread
28364         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
28365         Reported by Richard W.M. Jones.
28366
28367         test-pread.sh: distribute the test script
28368         * modules/pread-tests (Files): Include test-pread.sh.
28369
28370         test-pread.sh: clean up
28371         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
28372         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
28373         That is unnecessary, since it's always ".".
28374         Suggestion from Eric Blake.
28375
28376         test-pread.sh: make executable
28377         * tests/test-pread.sh: Set executable bit.
28378         Reported by Eric Blake.
28379
28380         correct typo in test-pread.sh
28381         * tests/test-pread.sh: Add #! line.
28382
28383         test pread
28384         * tests/test-pread.c: New file.
28385         * tests/test-pread.sh: Likewise.
28386         * modules/pread-tests: Likewise.
28387
28388         pread: new module
28389         * modules/pread: New file.
28390         * lib/unistd.in.h (pread): Define/declare.
28391         * lib/pread.c (pread): New file.
28392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
28393         * modules/unistd (Makefile.am): Substitute witnesses.
28394         * doc/posix-functions/pread.texi (pread): Update.
28395         * MODULES.html.sh: Add pread.
28396
28397 2009-11-25  Jim Meyering  <meyering@redhat.com>
28398
28399         tests/init.sh: new file to be used via most *.sh tests
28400         * tests/init.sh: New file.
28401
28402 2009-11-25  Eric Blake  <ebb9@byu.net>
28403
28404         utimens: work around older Linux failure with symlinks
28405         * lib/utimens.c (lutimensat_works_really): New variable.
28406         (fdutimens, lutimens): Use it to manage kernels that support
28407         nanosecond times on files, but not on symlinks.
28408         Reported by OndÅ™ej Vašík.
28409
28410         utimes: fix configure grammar
28411         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
28412
28413 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
28414
28415         regex: Fix fastmap for multibyte character ranges.
28416         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
28417         characters when a multibyte character range is included.
28418
28419 2009-11-22  Andy Wingo  <wingo@pobox.com>
28420
28421         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
28422         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
28423
28424 2009-11-24  Bruno Haible  <bruno@clisp.org>
28425
28426         doc: Most *_l functions exist in MacOS X 10.5.
28427         * doc/posix-functions/duplocale.texi: Update platforms list.
28428         * doc/posix-functions/freelocale.texi: Likewise.
28429         * doc/posix-functions/newlocale.texi: Likewise.
28430         * doc/posix-functions/uselocale.texi: Likewise.
28431         * doc/posix-functions/isalnum_l.texi: Likewise.
28432         * doc/posix-functions/isalpha_l.texi: Likewise.
28433         * doc/posix-functions/isblank_l.texi: Likewise.
28434         * doc/posix-functions/iscntrl_l.texi: Likewise.
28435         * doc/posix-functions/isdigit_l.texi: Likewise.
28436         * doc/posix-functions/isgraph_l.texi: Likewise.
28437         * doc/posix-functions/islower_l.texi: Likewise.
28438         * doc/posix-functions/isprint_l.texi: Likewise.
28439         * doc/posix-functions/ispunct_l.texi: Likewise.
28440         * doc/posix-functions/isspace_l.texi: Likewise.
28441         * doc/posix-functions/isupper_l.texi: Likewise.
28442         * doc/posix-functions/iswalnum_l.texi: Likewise.
28443         * doc/posix-functions/iswalpha_l.texi: Likewise.
28444         * doc/posix-functions/iswblank_l.texi: Likewise.
28445         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28446         * doc/posix-functions/iswctype_l.texi: Likewise.
28447         * doc/posix-functions/iswdigit_l.texi: Likewise.
28448         * doc/posix-functions/iswgraph_l.texi: Likewise.
28449         * doc/posix-functions/iswlower_l.texi: Likewise.
28450         * doc/posix-functions/iswprint_l.texi: Likewise.
28451         * doc/posix-functions/iswpunct_l.texi: Likewise.
28452         * doc/posix-functions/iswspace_l.texi: Likewise.
28453         * doc/posix-functions/iswupper_l.texi: Likewise.
28454         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28455         * doc/posix-functions/isxdigit_l.texi: Likewise.
28456         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
28457         * doc/posix-functions/strcasecmp_l.texi: Likewise.
28458         * doc/posix-functions/strcoll_l.texi: Likewise.
28459         * doc/posix-functions/strfmon_l.texi: Likewise.
28460         * doc/posix-functions/strftime_l.texi: Likewise.
28461         * doc/posix-functions/strncasecmp_l.texi: Likewise.
28462         * doc/posix-functions/strxfrm_l.texi: Likewise.
28463         * doc/posix-functions/tolower_l.texi: Likewise.
28464         * doc/posix-functions/toupper_l.texi: Likewise.
28465         * doc/posix-functions/towctrans_l.texi: Likewise.
28466         * doc/posix-functions/towlower_l.texi: Likewise.
28467         * doc/posix-functions/towupper_l.texi: Likewise.
28468         * doc/posix-functions/wcscoll_l.texi: Likewise.
28469         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28470         * doc/posix-functions/wctrans_l.texi: Likewise.
28471         * doc/posix-functions/wctype_l.texi: Likewise.
28472         * doc/glibc-functions/strptime_l.texi: Likewise.
28473         * doc/glibc-functions/strtod_l.texi: Likewise.
28474         * doc/glibc-functions/strtof_l.texi: Likewise.
28475         * doc/glibc-functions/strtol_l.texi: Likewise.
28476         * doc/glibc-functions/strtold_l.texi: Likewise.
28477         * doc/glibc-functions/strtoll_l.texi: Likewise.
28478         * doc/glibc-functions/strtoul_l.texi: Likewise.
28479         * doc/glibc-functions/strtoull_l.texi: Likewise.
28480         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28481         * doc/glibc-functions/wcstod_l.texi: Likewise.
28482         * doc/glibc-functions/wcstof_l.texi: Likewise.
28483         * doc/glibc-functions/wcstol_l.texi: Likewise.
28484         * doc/glibc-functions/wcstold_l.texi: Likewise.
28485         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28486         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28487         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28488
28489 2009-11-24  Bruno Haible  <bruno@clisp.org>
28490
28491         duplocale: Fix logic bug.
28492         * lib/duplocale.c: Don't include <langinfo.h>.
28493         (_NL_LOCALE_NAME): Remove macro.
28494         (rpl_duplocale): Use setlocale instead of nl_langinfo.
28495         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
28496
28497 2009-11-23  Jim Meyering  <meyering@redhat.com>
28498
28499         test-update-copyright: don't hard-code /usr/bin/perl
28500         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
28501         perl to print the current year.  Gilles Espinasse reported that
28502         the replaced use of perl was hard-coded as /usr/bin/perl.
28503
28504 2009-11-23  Bruno Haible  <bruno@clisp.org>
28505
28506         duplocale: Add support for glibc 2.3.x.
28507         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
28508
28509 2009-11-22  Bruno Haible  <bruno@clisp.org>
28510
28511         vasnprintf: Tiny optimization.
28512         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
28513         MacOS X.
28514
28515 2009-11-22  Bruno Haible  <bruno@clisp.org>
28516
28517         Tests for module 'duplocale'.
28518         * modules/duplocale-tests: New file.
28519         * tests/test-duplocale.c: New file.
28520
28521         New module 'duplocale'.
28522         * m4/duplocale.m4: New file.
28523         * lib/locale.in.h (duplocale): New declaration.
28524         * lib/duplocale.c: New file.
28525         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
28526         gl_LOCALE_H_DEFAULTS): New macros.
28527         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
28528         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
28529         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
28530         REPLACE_DUPLOCALE.
28531         * modules/duplocale: New file.
28532         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
28533
28534 2009-11-22  Bruno Haible  <bruno@clisp.org>
28535
28536         * modules/locale-tests (configure.ac): Test for newlocale function.
28537         * tests/test-locale.c: When the system has extended locale functions,
28538         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
28539
28540         locale: Make locale_t available when possible.
28541         * lib/locale.in.h: Include <xlocale.h> when it exists.
28542         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
28543         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
28544         * modules/locale (Depends-on): Add extensions.
28545         (Makefile.am): Also substitute HAVE_XLOCALE_H.
28546         * doc/posix-headers/locale.texi: Document the problem with locale_t.
28547
28548 2009-11-22  Bruno Haible  <bruno@clisp.org>
28549
28550         Add comments.
28551         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
28552         invocation.
28553         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
28554         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28555         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28556
28557 2009-11-22  Bruno Haible  <bruno@clisp.org>
28558
28559         error: account for the possibility of freopen (stdout).
28560         * lib/error.c: Include <unistd.h>.
28561         (flush_stdout): New function, extracted from error and error_at_line.
28562         Determine stdout's fd dynamically.
28563         (error, error_at_line): Invoke flush_stdout.
28564         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
28565         * modules/error (Depends-on): Add unistd.
28566
28567 2009-11-22  Bruno Haible  <bruno@clisp.org>
28568
28569         diffseq: Add comment.
28570         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
28571
28572 2009-11-22  Jim Meyering  <meyering@redhat.com>
28573
28574         c-stack: avoid defining an unused static function
28575         * lib/c-stack.c (find_stack_direction): Do not define this function
28576         when it will not be used.
28577
28578         diffseq: avoid spurious gcc warnings
28579         * lib/diffseq.h (IF_LINT2): Define.
28580         (compareseq): Use it to initialize two members of "part".
28581         This avoids two used-uninitialized warnings.
28582
28583 2009-11-21  Jim Meyering  <meyering@redhat.com>
28584
28585         c-stack: avoid "ignoring return value of `write'" warning
28586         * lib/c-stack.c: Include "ignore-value.h".
28587         (die): Explicitly ignore each write return value.
28588         * modules/c-stack (Depends-on): Add ignore-value.
28589
28590 2009-11-21  Bruno Haible  <bruno@clisp.org>
28591
28592         diffseq: reduce scope of variable 'best'.
28593         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
28594         variable, earlier used for two different purposes.
28595
28596 2009-11-21  Jim Meyering  <meyering@redhat.com>
28597
28598         diffseq: remove useless assignment to "best"
28599         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
28600         assignment.  At that point "best" is already guaranteed to be zero.
28601
28602 2009-11-20  Eric Blake  <ebb9@byu.net>
28603
28604         build: mention ftp redirector in release announcements
28605         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
28606         values that used to come from cfg.mk; mention FTP redirect URL.
28607         * build-aux/announce-gen: Mention the mirror list.
28608         Suggested by Karl Berry.
28609
28610         nanosleep: improve port to mingw
28611         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
28612         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
28613         LIB_NANOSLEEP, but only when needed.
28614         * modules/select (Link): Document LIBSOCKET.
28615         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
28616         enough.
28617
28618         nanosleep: work around cygwin bug
28619         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
28620         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
28621         bug.
28622         (getnow): Delete, not needed.
28623         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
28624         LIB_CLOCK_GETTIME.
28625         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
28626         clock-time, gettime.
28627         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
28628         bug.
28629         * modules/nanosleep-tests: New test.
28630         * tests/test-nanosleep.c: New file.
28631
28632         sleep: work around cygwin bug
28633         * lib/sleep.c (rpl_sleep): Work around the bug.
28634         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
28635         (gl_PREREQ_SLEEP): Delete unused macro.
28636         * modules/sleep (Depends-on): Add verify.
28637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28638         * modules/unistd (Makefile.am): Substitute witness.
28639         * lib/unistd.in.h (sleep): Update prototype.
28640         * doc/posix-functions/sleep.texi (sleep): Document the bug.
28641         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
28642         * modules/sleep-tests (Depends-on): Check for alarm.
28643
28644 2009-11-20  Jim Meyering  <meyering@redhat.com>
28645
28646         maint.mk: improve sc_prohibit_magic_number_exit
28647         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
28648         so it does not match uses like System.exit(1).
28649         Add comments showing how to correct all offenders.
28650
28651 2009-11-19  Eric Blake  <ebb9@byu.net>
28652
28653         xalloc-die-tests: add missing library
28654         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
28655
28656         test-xvasprintf: silence compiler warnings
28657         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
28658         empty string from gcc.
28659
28660 2009-11-19  Jim Meyering  <meyering@redhat.com>
28661
28662         xfreopen: new module, from coreutils
28663         * modules/xfreopen: New module.
28664         * lib/xfreopen.c: New file.
28665         * lib/xfreopen.h: New file.
28666         * MODULES.html.sh (File stream based Input/Output"): Add it.
28667
28668 2009-11-19  Eric Blake  <ebb9@byu.net>
28669
28670         manywarnings: depend on warnings
28671         * modules/manywarnings (Depends-on): Add warnings.
28672
28673         build: avoid compiler warnings
28674         * lib/select.c (rpl_select): Delete unused variable.
28675         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
28676
28677 2009-11-18  Eric Blake  <ebb9@byu.net>
28678
28679         tests: avoid false negative with --with-packager
28680         * tests/test-version-etc.sh: Discard packager information.
28681         * tests/test-argp-version-etc-1.sh: Likewise.
28682         Reported by Mike Frysinger.
28683
28684         utimens: fix regression on Solaris
28685         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
28686         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
28687         can only change fd timestamps via futimesat.  Instead, use an
28688         additional witness macro to avoid BSD bug.
28689         Reported by Jim Meyering.
28690
28691 2009-11-17  Eric Blake  <ebb9@byu.net>
28692
28693         usleep: use it to simplify tests
28694         * modules/stat-time-tests (Depends-on): Add usleep.
28695         (configure.ac): Drop usleep check.
28696         * modules/chown-tests (Depends-on, configure.ac): Likewise.
28697         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
28698         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
28699         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
28700         * modules/openat-tests (Depends-on, configure.ac): Likewise.
28701         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
28702         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
28703         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
28704         Likewise.
28705         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
28706         * tests/test-lchown.h (nap): Likewise.
28707         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
28708         * tests/test-stat-time.c (nap): Likewise.
28709         * tests/test-utimens-common.h (nap): Update comments.
28710
28711         usleep: new module
28712         * modules/usleep: New file.
28713         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
28714         * lib/usleep.c (usleep): Likewise.
28715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28716         * modules/unistd (Makefile.am): Substitute witnesses.
28717         * lib/unistd.in.h (usleep): Add declaration.
28718         * doc/pastposix-functions/usleep.texi (usleep): Document this.
28719         * MODULES.html.sh (Date and time): Likewise.
28720         * modules/usleep-tests (Depends-on): New test.
28721         * tests/test-usleep.c: New file.
28722
28723         chown: work around OpenBSD bug
28724         * lib/chown.c (rpl_chown): Work around the bug.
28725         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
28726         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
28727         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
28728         * modules/chown (Depends-on): Add stdbool.
28729         * modules/lchown (Depends-on): Likewise.
28730         * doc/posix-functions/chown.texi (chown): Document the bug.
28731         * doc/posix-functions/lchown.texi (lchown): Likewise.
28732         * tests/test-lchown.h (test_chown): Relax test.
28733
28734         mkstemp: avoid conflict with C++ keyword template
28735         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
28736         * lib/mkostemp.c (mkostemp): Likewise.
28737         * lib/mkostemps.c (mkostemps): Likewise.
28738         * lib/mkstemp.c (mkstemp): Likewise.
28739         * lib/mkstemps.c (mkstemps): Likewise.
28740
28741         xalloc-die-tests: optimize
28742         * tests/test-xalloc-die.sh: Reduce number of processes.
28743
28744 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28745
28746         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
28747         patch from ludo@gnu.org (Ludovic Courtès).
28748
28749 2009-11-17  Jim Meyering  <meyering@redhat.com>
28750
28751         version-etc: use proper license string
28752         * modules/version-etc (License): Use LGPL, not LGPLv3+.
28753         * modules/version-etc-fsf: Likewise.
28754
28755 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28756
28757         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
28758         printed to stdout.  Deal with EOL differences.
28759
28760 2009-11-17  Eric Blake  <ebb9@byu.net>
28761
28762         unsetenv: work around Solaris bug
28763         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
28764         * lib/unsetenv.c (rpl_unsetenv): Work around it.
28765         Reported by Jim Meyering.
28766
28767         vasnprintf: avoid compiler warnings
28768         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
28769         variables.
28770         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
28771
28772 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28773
28774         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
28775         settings since xalloc-die is no longer the self test,
28776         xalloc-die.sh is.
28777
28778 2009-11-17  Jim Meyering  <meyering@redhat.com>
28779
28780         test-xalloc-die.sh: make the code agree with the commit log
28781         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
28782         at the end, just in case you happen to have a test-xalloc-die
28783         program in some other PATH directory.
28784
28785         test-xalloc-die.sh: fix a portability bug
28786         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
28787         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
28788         Otherwise, argv[0] (as often seen in diagnostics) would be too
28789         system-dependent, sometimes with, and sometimes without the leading "./".
28790
28791         version-etc-fsf: relax license to LGPLv3+
28792         * modules/version-etc-fsf (License): Relax license.
28793
28794 2009-11-16  Eric Blake  <ebb9@byu.net>
28795
28796         xalloc-die-tests: avoid printing null pointer
28797         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
28798         shell script.
28799         * tests/test-xalloc-die.c (program_name): Declare.
28800         * tests/test-xalloc-die.sh (tmpfiles): New file.
28801
28802         setenv, unsetenv: work around various bugs
28803         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
28804         (setenv) [HAVE_SETENV]: Work around bugs.
28805         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
28806         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
28807         for bugs.
28808         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
28809         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
28810         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
28811         * modules/stdlib (Makefile.am): Update substitutions.
28812         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
28813         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
28814         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28815         * modules/setenv-tests: New test.
28816         * modules/unsetenv-tests: Likewise.
28817         * tests/test-setenv.c: New file.
28818         * tests/test-unsetenv.c: Likewise.
28819
28820 2009-11-16  Jim Meyering  <meyering@redhat.com>
28821
28822         version-etc: relax license to LGPLv3+
28823         * modules/version-etc (License): Relax license.
28824
28825         better AC_REQUIRE expanded-before-required-warning avoidance
28826         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
28827         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
28828         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
28829         which is no longer needed.
28830
28831 2009-11-16  Eric Blake  <ebb9@byu.net>
28832
28833         test-freading: clean up temporary file
28834         * tests/test-freading.c (main): Remove file on success, and use
28835         ASSERT more liberally.
28836         Reported by Jim Meyering.
28837
28838 2009-11-16  Jim Meyering  <meyering@redhat.com>
28839
28840         avoid new AC_REQUIRE expanded-before-required warnings
28841         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
28842         merely using it.
28843         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
28844         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
28845
28846 2009-11-15  Simon Josefsson  <simon@josefsson.org>
28847
28848         * tests/test-xalloc-die.c: New file.
28849         * modules/xalloc-die-tests: New file.
28850         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
28851         XFAIL_TESTS so it can be appended by modules.
28852
28853 2009-11-15  Simon Josefsson  <simon@josefsson.org>
28854
28855         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
28856         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
28857
28858 2009-11-14  Eric Blake  <ebb9@byu.net>
28859
28860         fnmatch: avoid compiler warning
28861         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
28862         to silence compiler warning about mismatch signedness in ?:.
28863         Reported by Robert Millan.
28864
28865         intprops: add double-inclusion guard
28866         * lib/intprops.h: Allow idempotent includes.
28867         Suggested by Bruce Korb.
28868
28869         openat: detect Solaris fchownat bug
28870         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
28871         penalizing glibc chownat when only lchownat is broken.
28872         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
28873         trailing slash bugs.
28874         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
28875         * modules/openat-tests (Files): Include more files.
28876         (Depends-on): Add mgetgroups, sleep, stat-time.
28877         (configure.ac): Add additional checks.
28878         (Makefile.am): Build new test.
28879         * tests/test-fchownat.c: New file.
28880
28881         lchown: detect Solaris and FreeBSD bug
28882         * lib/lchown.c (rpl_lchown): Work around bug.
28883         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
28884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28885         * modules/unistd (Makefile.am): Populate it.
28886         * lib/unistd.in.h (lchown): Update declaration.
28887         * doc/posix-functions/lchown.texi (lchown): Document the bug.
28888         * modules/lchown-tests: New file.
28889         * tests/test-lchown.h (test_lchown): Likewise.
28890         * tests/test-lchown.c (main): Likewise.
28891
28892         chown: detect Solaris and FreeBSD bug
28893         * lib/chown.c (rpl_chown): Work around bug.
28894         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
28895         (gl_PREREQ_CHOWN): Delete.
28896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28897         * modules/unistd (Makefile.am): Populate it.
28898         * lib/unistd.in.h (chown): Update declaration.
28899         * lib/lchown.c (chown): Update client.
28900         * modules/lchown (Depends-on): Add lstat.
28901         * doc/posix-functions/chown.texi (chown): Document the bug.
28902         * doc/posix-functions/getgroups.texi (getgroups): Document
28903         getgroups pitfall.
28904         * modules/chown-tests: New file.
28905         * tests/test-chown.h (test_chown): Likewise.
28906         * tests/test-chown.c (main): Likewise.
28907
28908 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
28909
28910         gnulib-tool: correctly detect absence of m4 directories
28911         * gnulib-tool: Avoid extra newline on data passed to wc -l.
28912
28913 2009-11-14  Jim Meyering  <meyering@redhat.com>
28914
28915         maint.mk: Prohibit inclusion of "xalloc.h" without use.
28916         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
28917
28918 2009-11-14  John W. Eaton  <jwe@gnu.org>
28919
28920         strftime.h: wrap funtion declaration in extern "C" block
28921         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
28922
28923 2009-11-13  Eric Blake  <ebb9@byu.net>
28924
28925         getgroups: avoid compiler warning
28926         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
28927
28928         getgroups: work around FreeBSD bug
28929         * lib/getgroups.c (rpl_getgroups): Work around the bug.
28930         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
28931         * doc/posix-functions/getgroups.texi (getgroups): Document it.
28932         * tests/test-getgroups.c (main): Fix buffer overrun.
28933
28934         getgroups: avoid compilation failure
28935         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
28936         * modules/getgroups (Depends-on): Add stdint.
28937
28938 2009-11-13  Jim Meyering  <meyering@redhat.com>
28939
28940         test-getgroups: avoid compilation failure
28941         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
28942
28943 2009-11-13  Eric Blake  <ebb9@byu.net>
28944
28945         mgetgroups: new module, taken from coreutils
28946         * modules/mgetgroups: New file.
28947         * lib/mgetgroups.h: Likewise.
28948         * lib/mgetgroups.c (mgetgroups): Likewise.
28949         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
28950         * MODULES.html.sh (Users and groups): Mention it.
28951
28952         getgroups: don't expose GETGROUPS_T to user
28953         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
28954         an element at a time if GETGROUPS_T is wrong size.
28955         * lib/getugroups.h (getugroups): Change signature.
28956         * lib/unistd.in.h (getgroups): Likewise.
28957         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
28958         signature needs fixing.
28959         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
28960         AC_TYPE_GETGROUPS.
28961         * modules/group-member (Depends-on): Add getgroups.
28962         * lib/group-member.c (group_info, get_group_info): Use gid_t.
28963         (group_member): Rely on getgroups replacement.
28964         * lib/getugroups.c (getugroups): Use gid_t.
28965         * tests/test-getgroups.c (main): Likewise.
28966         * NEWS: Mention the signature change.
28967         * doc/posix-functions/getgroups.texi (getgroups): Mention the
28968         problem with signature.
28969         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
28970         GETGROUPS_T is still useful for setgroups.
28971
28972         getgroups, getugroups: provide stubs for mingw
28973         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
28974         * lib/getugroups.c (getugroups): Likewise.
28975         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
28976         function.  Modernize replacement scheme.
28977         (gl_PREREQ_GETGROUPS): Delete.
28978         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
28979         * modules/getgroups (configure.ac): Declare witness.
28980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28981         * modules/unistd (Depends-on): Substitute witness.
28982         * lib/unistd.in.h (getgroups): Declare replacement.
28983
28984         getgroups: avoid calling exit
28985         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
28986         drop xalloc.
28987         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
28988         dependencies.
28989         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
28990         exiting, in the rare case of malloc failure.
28991
28992         getgroups: fix logic error
28993         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
28994         has more than 20 groups.
28995         * modules/getgroups-tests: New test.
28996         * tests/test-getgroups.c: New file.
28997
28998 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28999
29000         * tests/test-base64.c: Improve.
29001
29002 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29003
29004         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29005         Blake <ebb9@byu.net>.
29006
29007 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29008
29009         * tests/test-xvasprintf.c: Add %s%s related checks.
29010
29011 2009-11-12  Eric Blake  <ebb9@byu.net>
29012
29013         version-etc: match standards.texi style
29014         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29015         and use <> only for URLs.
29016
29017 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29018
29019         fts: do not fail on a submount during traversal
29020         * lib/fts.c (fts_build): Read the stat info again after opening
29021         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29022         Original report at http://bugzilla.redhat.com/501848.
29023
29024 2009-11-12  Jim Meyering  <meyering@redhat.com>
29025
29026         bootstrap: sync from coreutils
29027         * build-aux/bootstrap (bootstrap_epilogue): New function.
29028         Use git_modules_config in one more place.  This make bootstrap's
29029         --gnulib-srcdir option more useful for testing.
29030
29031         bootstrap: generalize autoheader check
29032         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29033         AC_CONFIG_HEADERS.
29034
29035 2009-11-11  Eric Blake  <ebb9@byu.net>
29036
29037         mkfifoat: use new modules for Solaris and BSD bugs
29038         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29039         * lib/mkfifoat.c (mknodat): Split...
29040         * lib/mknodat.c (mknodat): ...into new file.
29041         * modules/mkfifoat (Files): Ship new file.
29042         (Depends-on): Add mkfifo, mknod.
29043         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29044         (Depends-on): Add symlink.
29045         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29046         redundant with test_mkfifo.h.
29047         (do_mkfifoat, do_mknodat): New helpers.
29048
29049         mknod: new module
29050         * modules/mknod: New file.
29051         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29052         * lib/mknod.c (mknod): Likewise.
29053         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29054         defaults.
29055         * modules/sys_stat (Makefile.am): Substitute them.
29056         * lib/sys_stat.in.h (mknod): Declare replacement.
29057         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29058         Document it.
29059         * doc/posix-functions/mknod.texi (mknod): Likewise.
29060         * modules/mknod-tests: New test.
29061         * tests/test-mknod.c: Likewise.
29062
29063         mkfifo: new module
29064         * modules/mkfifo: New file.
29065         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29066         * lib/mkfifo.c (mkfifo): Likewise.
29067         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29068         defaults.
29069         * modules/sys_stat (Makefile.am): Substitute them.
29070         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29071         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29072         Document it.
29073         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29074         * modules/mkfifo-tests: New test.
29075         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29076         from test-mkfifoat.c.
29077         * tests/test-mkfifo.c: New file.
29078
29079         readlink: detect FreeBSD bug
29080         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29081         slash on symlink.
29082         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29083         * tests/test-readlink.h (test_readlink): Enhance test.
29084
29085         symlink: detect FreeBSD bug
29086         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29087         slash on symlink.
29088         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29089         * tests/test-symlink.h (test_symlink): Enhance test.
29090
29091 2009-11-10  Eric Blake  <ebb9@byu.net>
29092
29093         link: detect FreeBSD bug
29094         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29095         symlink.
29096         * doc/posix-functions/link.texi (link): Document the bug.
29097         * tests/test-link.h (test_link): Enhance test.
29098         * tests/test-linkat.c (main): Update caller.
29099
29100         unlink, remove: detect FreeBSD bug
29101         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29102         slash on symlink.
29103         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29104         * doc/posix-functions/remove.texi (remove): Likewise.
29105         * tests/test-unlink.h (test_unlink): Enhance test.
29106         * tests/test-remove.c (main): Likewise.
29107
29108 2009-11-09  Eric Blake  <ebb9@byu.net>
29109
29110         rename: detect FreeBSD bug
29111         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29112         slash on symlink.
29113         * modules/renameat-tests (Depends-on): Add filenamecat.
29114         * tests/test-rename.h (test_rename): Allow one more errno.
29115         * tests/test-renameat.c (main): Likewise.
29116         * doc/posix-functions/rename.texi (rename): Document the bug.
29117
29118         open: detect FreeBSD bug
29119         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29120         symlink.
29121         * doc/posix-functions/open.texi (open): Document the bug.
29122         * doc/posix-functions/utimes.texi (utimes): Likewise.
29123         * tests/test-open.h (test_open): Add parameters, and test symlink
29124         handling.
29125         * tests/test-open.c (main): Adjust caller.
29126         * tests/test-fcntl-safer.c (main): Likewise.
29127         * modules/open-tests (Depends-on): Add stdbool, symlink.
29128         * modules/fcntl-safer-tests (Depends-on): Likewise.
29129         * tests/test-openat.c (main): Add test-open tests.
29130
29131         stat: detect FreeBSD bug
29132         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29133         symlink.
29134         * doc/posix-functions/stat.texi (stat): Document the bug.
29135         * tests/test-stat.h (test_stat_func): Add argument.
29136         * tests/test-stat.c (main): Adjust caller.
29137         * tests/test-fstatat.c (main): Likewise.
29138         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29139         Reported by Jim Meyering.
29140
29141 2009-11-09  James Youngman  <jay@gnu.org>
29142
29143         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
29144         * lib/strftime.c: Correct placement of #include "ignore-value.h".
29145
29146 2009-11-08  Jim Meyering  <meyering@redhat.com>
29147
29148         utimens: remove invalid futimesat call
29149         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
29150         It used the file descriptor of the target file as the DIR_FD
29151         parameter and NULL as the file name.  That caused failure with
29152         errno == EFAULT on FreeBSD-8.0-rc2
29153
29154 2009-11-07  Eric Blake  <ebb9@byu.net>
29155
29156         fflush, freadseek: use fseeko, not fseek
29157         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
29158         (clear_ungetc_buffer): Avoid potential problems on large files.
29159         * lib/freadseek.c (freadseek): Likewise.
29160         * modules/freadseek (Depends-on): Add fseeko.
29161         * modules/fseek (configure.ac): Set a witness.
29162         * tests/test-fflush.c (main): Use fseeko.
29163         * tests/test-fpurge.c (fseek): Disable link warning.
29164         * tests/test-freadable.c (fseek): Likewise.
29165         * tests/test-freading.c (fseek): Likewise.
29166         * tests/test-fseeko.c (fseek): Likewise.
29167         * tests/test-ftell.c (fseek): Likewise.
29168         * tests/test-ftello.c (fseek): Likewise.
29169         * tests/test-fwritable.c (fseek): Likewise.
29170         * tests/test-fwriting.c (fseek): Likewise.
29171
29172 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29173
29174         * modules/memchr (Depends-on): Drop getpagesize dependency.
29175
29176 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29177
29178         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
29179         Reported by Ludovic Courtès.
29180         * build-aux/pmccabe2html: Improve example usage.
29181         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
29182
29183 2009-11-06  Jim Meyering  <meyering@redhat.com>
29184
29185         do-release-commit-and-tag: New module.
29186         Automate the release-commit and tag process.
29187         * build-aux/do-release-commit-and-tag: New script, from coreutils.
29188         * modules/do-release-commit-and-tag: New file.
29189         * MODULES.html.sh (Support for maintaining and releasing): Add it.
29190
29191 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29192
29193         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
29194         because test-select.c uses inet_pton.
29195
29196 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29197
29198         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
29199         GETADDRINFO_LIB.  Bump serial number.
29200         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
29201         Suggested by Eric Blake <ebb9@byu.net>.
29202
29203 2009-11-05  Eric Blake  <ebb9@byu.net>
29204
29205         strtod: detect darwin bug
29206         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
29207         Reported by Leo Davis.
29208
29209         freopen-safer: new module
29210         * modules/freopen-safer: New module.
29211         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
29212         * lib/freopen-safer.c (freopen_safer): New file.
29213         * lib/stdio-safer.h (freopen_safer): New declaration.
29214         * lib/stdio--.h (freopen): New override.
29215         * MODULES.html.sh (File stream based Input/Output): Mention it.
29216         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
29217         freopen-safer module.
29218         * doc/posix-functions/stderr.texi (stderr): Likewise.
29219         * doc/posix-functions/stdin.texi (stdin): Likewise.
29220         * doc/posix-functions/stdout.texi (stdout): Likewise.
29221         * modules/freopen-safer-tests: New test.
29222         * tests/test-reopen-safer.c: New file.
29223
29224 2009-11-05  Jim Meyering  <meyering@redhat.com>
29225
29226         maint.mk: Prohibit inclusion of "close-stream.h" without use.
29227         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29228
29229 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29230
29231         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
29232
29233 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29234
29235         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
29236
29237 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29238
29239         Fix link error.
29240         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29241         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29242
29243 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29244
29245         * tests/test-func.c: Also test value of __func__.
29246
29247 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29248
29249         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
29250         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
29251
29252 2009-11-05  Bruno Haible  <bruno@clisp.org>
29253
29254         Fix link error.
29255         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29256         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29257         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
29258
29259 2009-11-05  Bruno Haible  <bruno@clisp.org>
29260
29261         Tests for module 'inet_pton'.
29262         * modules/inet_pton-tests: New file.
29263         * tests/test-inet_pton.c: New file.
29264
29265 2009-11-05  Bruno Haible  <bruno@clisp.org>
29266
29267         Tests for module 'inet_ntop'.
29268         * modules/inet_ntop-tests: New file.
29269         * tests/test-inet_ntop.c: New file.
29270
29271 2009-11-04  Eric Blake  <ebb9@byu.net>
29272
29273         stdlib-safer: wrap all mkstemp variants
29274         * modules/mkostemp (configure.ac): Set witness.
29275         * modules/mkostemps (configure.ac): Likewise.
29276         * modules/mkstemps (configure.ac): Likewise.
29277         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29278         (mkstemps_safer): Wrap more functions.
29279         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29280         wrapping.
29281         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29282         (mkstemps_safer): Implement the wrappers.
29283
29284         mkstemps, mkostemps: new modules
29285         * modules/mkostemps: New module.
29286         * modules/mkstemps: Likewise.
29287         * lib/mkostemps.c (mkostemps): New file.
29288         * lib/mkstemps.c (mkstemps): Likewise.
29289         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29290         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29292         * modules/stdlib (Makefile.am): Substitute them.
29293         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29294         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29295         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29296         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29297         * MODULES.html.sh (File system functions): Mention them.
29298
29299         tempname: resync from glibc
29300         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29301         same values for __GT_FILE as glibc.  Abort even when assertions
29302         are disabled.
29303         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29304         match its value otherwise.  Allow idempotent inclusion.
29305         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29306         * lib/mkostemp.c (mkostemp): Likewise.
29307         * lib/mkstemp.c (mkstemp): Likewise.
29308         * lib/tmpfile.c (tmpfile): Likewise.
29309         * NEWS: Document this.
29310
29311         utimens: fix use of futimens on older Linux
29312         * lib/utimens.c (fdutimens): Use updated, rather than original,
29313         timespec to avoid bug in older Linux kernel.
29314         Reported by Simon Josefsson.
29315
29316 2009-11-04  Bruno Haible  <bruno@clisp.org>
29317
29318         Make num_processors more flexible and consistent.
29319         * lib/nproc.h (enum nproc_query): New type.
29320         (num_processors): Add a 'query' argument.
29321         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
29322         (num_processors): Add a 'query' argument. Test the value of the
29323         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
29324         mingw, count the number of CPUs available for the current process.
29325         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
29326         Check for sched_getaffinity and sched_getaffinity_np.
29327         * modules/nproc (Depends-on): Add c-ctype, extensions.
29328         * NEWS: Mention the change.
29329
29330 2009-11-03  Bruno Haible  <bruno@clisp.org>
29331
29332         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
29333
29334 2009-11-03  Jim Meyering  <meyering@redhat.com>
29335
29336         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
29337         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
29338         if it is defined.
29339
29340 2009-11-02  Eric Blake  <ebb9@byu.net>
29341
29342         mktime, timegm: share common declaration
29343         * lib/mktime-internal.h: New file.
29344         * lib/mktime.c: Use it rather than open-coding a declaration.
29345         * lib/timegm.c: Likewise.
29346         * modules/mktime (Files): Ship it.
29347         * modules/timegm (Files): Likewise.
29348         Suggested by Bruno Haible.
29349
29350         test-update-copyright: update test to match script changes
29351         * tests/test-update-copyright.sh: Avoid hard-coding perl
29352         location.  Don't update *.bak created by earlier runs.
29353
29354 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29355             Simon Josefsson  <simon@josefsson.org>
29356             Bruno Haible  <bruno@clisp.org>
29357
29358         Fix link error on Solaris 8.
29359         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
29360         also in libnsl. Define also INET_PTON_LIB.
29361         * modules/inet_pton (Link): New section.
29362
29363 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29364             Bruno Haible  <bruno@clisp.org>
29365
29366         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
29367         * modules/inet_ntop (Link): New section.
29368         Reported by Boyan Kasarov <bkasarov@gmail.com>.
29369
29370 2009-11-02  Eric Blake  <ebb9@byu.net>
29371
29372         maint: avoid compiler warnings in m4 macros
29373         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
29374         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
29375
29376 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29377
29378         * m4/pmccabe2html.m4: Remove file.
29379         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
29380         function.  Change maintainer.
29381         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
29382         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
29383         Courtès).
29384
29385 2009-10-31  Eric Blake  <ebb9@byu.net>
29386
29387         fseeko: fix m4 regression
29388         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
29389         regression from 2009-10-27.
29390         Reported by Ralf Wildenhues.
29391
29392 2009-10-31  Jim Meyering  <meyering@redhat.com>
29393
29394         inttostr: aesthetics and improved (compile-time) safety
29395         Define inttype_is_signed rather than inttype_is_unsigned,
29396         since the sole use is via "#if inttype_is_signed".
29397         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
29398         inttype_is_unsigned.
29399         * lib/offtostr.c (inttype_is_signed): Likewise.
29400         * lib/uinttostr.c (inttype_is_signed): Likewise.
29401         * lib/umaxtostr.c (inttype_is_signed): Likewise.
29402         * lib/inttostr.c (inttostr): Use verify to cross-check the
29403         inttype_is_signed value and the signedness of the actual type.
29404         * modules/inttostr (Depends-on): Add verify.
29405
29406 2009-10-30  Eric Blake  <ebb9@byu.net>
29407
29408         build: avoid compiler warnings
29409         * lib/fchmodat.c (lchmod): Mark unused variables.
29410         * lib/getopt.c (_getopt_initialize): Likewise.
29411         * lib/mktime.c (__mktime_internal): Provide prototype.
29412         * lib/inttostr.c (inttostr): Avoid compiler warning even with
29413         older gcc that do not understand #pragma GCC diagnostic.
29414         * lib/uinttostr.c (inttype_is_unsigned): Define.
29415         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
29416
29417 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29418
29419         stat: fix compilation on AIX
29420         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
29421         only see struct stat64.
29422
29423 2009-10-30  Eric Blake  <ebb9@byu.net>
29424
29425         exclude: make more robust
29426         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
29427         rather than masking a coding bug.
29428         Suggested by Bruno Haible.
29429
29430 2009-10-30  Jim Meyering  <meyering@redhat.com>
29431
29432         perl scripts: remove #!/usr/bin/perl in favor of more portable...
29433         Rather than putting #!/usr/bin/perl on the first line,
29434         start with a variant of what's recommended by "man perlrun" that
29435         invokes the first "perl" program from your shell's search path.
29436         * build-aux/gitlog-to-changelog: Replace #!... as above.
29437         Add a "Local Variables" perl mode setting.
29438         Prompted by a patch from Ludovic Courtès.
29439         Improved by Eric Blake.
29440         * build-aux/useless-if-before-free: Likewise.
29441         * build-aux/announce-gen: Likewise.
29442         * build-aux/update-copyright: Likewise.
29443
29444 2009-10-29  Eric Blake  <ebb9@byu.net>
29445
29446         filenamecat-lgpl: adjust clients
29447         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
29448         filenamecat.
29449         * modules/renameat (Depends-on): Likewise.
29450
29451         filenamecat: split into filenamecat-lgpl
29452         * modules/filenamecat-lgpl: New module.
29453         * modules/filenamecat (Files): Move library-safe files into
29454         filenamecat-lgpl.
29455         (Depends-on): Add filenamecat-lgpl.
29456         (configure.ac): Declare witness.
29457         * lib/filenamecat.h (file_name_concat): Only declare when using
29458         GPL module.
29459         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
29460         Move...
29461         * lib/filenamecat-lgpl.c: ...into new file.
29462         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
29463         (gl_FILE_NAME_CONCAT): Use it.
29464         * MODULES.html.sh (File system functions): Mention new module.
29465
29466         argp: avoid memory leak
29467         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
29468         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
29469         base_name, since the latter malloc()s and can call exit().
29470         Leak introduced 2006-07-03.
29471
29472         dirname-lgpl: adjust clients that don't need full dirname
29473         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
29474         * modules/filenamecat (Depends-on): Likewise.
29475         * modules/linkat (Depends-on): Likewise.
29476         * modules/mkancesdirs (Depends-on): Likewise.
29477         * modules/mkdir (Depends-on): Likewise.
29478         * modules/openat (Depends-on): Likewise.
29479         * modules/savewd (Depends-on): Likewise.
29480         * modules/rename (Depends-on): Likewise.
29481         (License): Relax license.
29482         * modules/mkdir-tests (Depends-on): Drop progname.
29483         (Makefile.am): Delete unneeded LDADD.
29484         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
29485
29486         dirname: split into dirname-lgpl
29487         * modules/dirname-lgpl: New module.
29488         * modules/dirname (Files): Move library-safe files into
29489         dirname-lgpl.
29490         (Depends-on): Add dirname-lgpl.
29491         (configure.ac): Declare witness.
29492         * modules/double-slash-root (License): Relax license.
29493         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
29494         module.
29495         * lib/dirname.c (dir_len, mdir_name): Move...
29496         * lib/dirname-lgpl.c: ...into new file.
29497         * lib/basename.c (last_component, base_len): Move...
29498         * lib/basename-lgpl.c: ...into new file.
29499         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
29500         (gl_DIRNAME): Use it.
29501         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
29502         Mention new module.
29503         * modules/dirname-tests (Depends-on): Add progname.
29504         * tests/test-dirname.c (program_name): Delete.
29505
29506         mkdir: make safe for libraries
29507         * modules/mkdir (Depends-on): Drop xalloc.
29508         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
29509         exit.
29510
29511         tests: avoid some compiler warnings
29512         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
29513         literals.
29514         * tests/test-memchr.c (main): Avoid type mismatch.
29515         * tests/test-arpa_inet.c (main): Avoid unused parameters.
29516         * tests/test-base64.c (main): Likewise.
29517         * tests/test-getdelim.c (main): Likewise.
29518         * tests/test-gethostname.c (main): Likewise.
29519         * tests/test-getline.c (main): Likewise.
29520         * tests/test-netinet_in.c (main): Likewise.
29521         * tests/test-select.c (open_server_socket, main): Likewise.
29522         * tests/test-select-stdin.c (main): Likewise.
29523         * tests/test-sockets.c (main): Likewise.
29524         * tests/test-strsignal.c (main): Likewise.
29525         * tests/test-sys_select.c (main): Likewise.
29526         * tests/test-sys_socket.c (main): Likewise.
29527         * tests/test-u64.c (main): Likewise.
29528         * tests/test-xfprintf-posix.c (main): Likewise.
29529         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
29530
29531         sockets: avoid compiler warning
29532         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
29533
29534         maint: detect usage(1) and other suspicious exits
29535         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
29536
29537 2009-10-29  Jim Meyering  <meyering@redhat.com>
29538
29539         timespec: long-to-int truncation could make timespec_cmp malfunction
29540         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
29541         a multiple of 2^32 nanoseconds as no difference.
29542
29543 2009-10-28  Jim Meyering  <meyering@redhat.com>
29544
29545         fprintftime: wrap macro code argument in "do {...} while(0)"
29546         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
29547         cpy macro must be a statement that can be followed by a semicolon.
29548         Now that the else clause contains a comment and is hence longer
29549         than one line, I require curly braces.  That in turn requires
29550         that we wrap this code block in the standard do...while(0).
29551
29552         fprintftime: remove stray semicolon from previous change
29553         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
29554
29555         fprintftime: avoid a warning about ignored fwrite return value
29556         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
29557         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
29558         that is unsafe.
29559         * modules/fprintftime (Depends-on): Add ignore-value.
29560
29561         exclude: avoid an unwarranted warning
29562         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
29563
29564 2009-10-27  Eric Blake  <ebb9@byu.net>
29565
29566         fseek: avoid compilation failure when fflush is replaced
29567         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
29568         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
29569         module is in use.
29570         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
29571         module is not in use; since REPLACE_FSEEK worked otherwise.
29572         (GNULIB_FTELLO): Likewise for ftell.
29573         Reported by Ian Beckwith and others.
29574
29575 2009-10-27  Bruno Haible  <bruno@clisp.org>
29576
29577         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
29578         Reported by Jim Meyering.
29579
29580 2009-10-27  Jim Meyering  <jim@meyering.net>
29581             Bruno Haible  <bruno@clisp.org>
29582
29583         Avoid warning despite dropping the return value of fwrite.
29584         * lib/unicodeio.c: Include ignore-value.h.
29585         (fwrite_success_callback): Explicitly ignore fwrite's return value.
29586         * modules/unicodeio (Depends-on): Add ignore-value.
29587
29588 2009-10-26  Eric Blake  <ebb9@byu.net>
29589
29590         areadlinkat: fix fallback path
29591         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
29592         pointer and zero.
29593
29594 2009-10-22  Pádraig Brady  <P@draigBrady.com>
29595
29596         Use a better IO block size for modern systems
29597         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
29598         * lib/md2.c: Likewise.
29599         * lib/md4.c: Likewise.
29600         * lib/md5.c: Likewise.
29601         * lib/sha1.c: Likewise.
29602         * lib/sha256.c: Likewise.
29603         * lib/sha512.c: Likewise.
29604
29605 2009-10-22  Eric Blake  <ebb9@byu.net>
29606
29607         tests: avoid several compiler warnings
29608         * tests/test-getcwd.c (main): Avoid buffer underflow.
29609         * tests/test-getdate.c (main): String literals are not safe with
29610         putenv, so use setenv.  Declare unused argument.
29611         * modules/getdate-tests (Depends-on): Add setenv.
29612         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
29613         problems with string literals in char *.
29614         * tests/test-hash.c (main): Avoid shadowing declaration.
29615         (insert_new): Treat string literals as char const *.
29616         * tests/test-getopt.h (test_getopt): Likewise.
29617         (getopt_loop): Alter types to minimize casting elsewhere.
29618         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
29619         (test_getopt_long_posix): Likewise.
29620         (do_getopt_long): Add wrapper to minimize casting.
29621         * tests/test-atexit.c (clear_temp_file): Use void.
29622         * tests/test-areadlink-with-size.c (main): Declare unused
29623         arguments.
29624         * tests/test-areadlink.c (main): Likewise.
29625         * tests/test-areadlinkat-with-size.c (main): Likewise.
29626         * tests/test-areadlinkat.c (main): Likewise.
29627         * tests/test-canonicalize-lgpl.c (main): Likewise.
29628         * tests/test-canonicalize.c (main): Likewise.
29629         * tests/test-dirent-safer.c (main): Likewise.
29630         * tests/test-dirname.c (main): Likewise.
29631         * tests/test-dup2.c (main): Likewise.
29632         * tests/test-fchdir.c (main): Likewise.
29633         * tests/test-fcntl-h.c (main): Likewise.
29634         * tests/test-fcntl-safer.c (main): Likewise.
29635         * tests/test-fdopendir.c (main): Likewise.
29636         * tests/test-fdutimensat.c (main): Likewise.
29637         * tests/test-fflush.c (main): Likewise.
29638         * tests/test-filenamecat.c (main): Likewise.
29639         * tests/test-filevercmp.c (main): Likewise.
29640         * tests/test-fopen-safer.c (main): Likewise.
29641         * tests/test-fopen.c (main): Likewise.
29642         * tests/test-fpending.c (main): Likewise.
29643         * tests/test-fpurge.c (main): Likewise.
29644         * tests/test-freading.c (main): Likewise.
29645         * tests/test-fstatat.c (main): Likewise.
29646         * tests/test-fsync.c (main): Likewise.
29647         * tests/test-futimens.c (main): Likewise.
29648         * tests/test-getndelim2.c (main): Likewise.
29649         * tests/test-gettimeofday.c (main): Likewise.
29650         * tests/test-getopt.c (main): Likewise.
29651         * tests/test-i-ring.c (main): Likewise.
29652         * tests/test-inttypes.c (main): Likewise.
29653         * tests/test-link.c (main): Likewise.
29654         * tests/test-lstat.c (main): Likewise.
29655         * tests/test-math.c (main): Likewise.
29656         * tests/test-md5.c (main): Likewise.
29657         * tests/test-memchr2.c (main): Likewise.
29658         * tests/test-memrchr.c (main): Likewise.
29659         * tests/test-mkdir.c (main): Likewise.
29660         * tests/test-mkdirat.c (main): Likewise.
29661         * tests/test-mkfifoat.c (main): Likewise.
29662         * tests/test-open.c (main): Likewise.
29663         * tests/test-openat-safer.c (main): Likewise.
29664         * tests/test-openat.c (main): Likewise.
29665         * tests/test-quotearg.c (main): Likewise.
29666         * tests/test-rawmemchr.c (main): Likewise.
29667         * tests/test-readlink.c (main): Likewise.
29668         * tests/test-remove.c (main): Likewise.
29669         * tests/test-rename.c (main): Likewise.
29670         * tests/test-renameat.c (main): Likewise.
29671         * tests/test-rmdir.c (main): Likewise.
29672         * tests/test-sha1.c (main): Likewise.
29673         * tests/test-signal.c (main): Likewise.
29674         * tests/test-sigaction.c (main): Likewise.
29675         * tests/test-stat.c (main): Likewise.
29676         * tests/test-stat-time.c (main): Likewise.
29677         * tests/test-stddef.c (main): Likewise.
29678         * tests/test-stdint.c (main): Likewise.
29679         * tests/test-stdio.c (main): Likewise.
29680         * tests/test-stdlib.c (main): Likewise.
29681         * tests/test-strchrnul.c (main): Likewise.
29682         * tests/test-strerror.c (main): Likewise.
29683         * tests/test-string.c (main): Likewise.
29684         * tests/test-strtod.c (main): Likewise.
29685         * tests/test-strverscmp.c (main): Likewise.
29686         * tests/test-symlink.c (main): Likewise.
29687         * tests/test-symlinkat.c (main): Likewise.
29688         * tests/test-sys_stat.c (main): Likewise.
29689         * tests/test-sys_time.c (main): Likewise.
29690         * tests/test-time.c (main): Likewise.
29691         * tests/test-unistd.c (main): Likewise.
29692         * tests/test-unlink.c (main): Likewise.
29693         * tests/test-unlinkat.c (main): Likewise.
29694         * tests/test-utimens.c (main): Likewise.
29695         * tests/test-utimensat.c (main): Likewise.
29696         * tests/test-version-etc.c (main): Likewise.
29697         * tests/test-wchar.c (main): Likewise.
29698         * tests/test-wctype.c (main): Likewise.
29699         * tests/test-xprintf-posix.c (main): Likewise.
29700         * tests/test-posixtm.c (main): Likewise.
29701         (STREQ): Delete unused macro.
29702         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
29703         shadowed variables.
29704         * tests/test-memchr.c (main): Likewise.
29705
29706 2009-10-21  Eric Blake  <ebb9@byu.net>
29707
29708         areadlinkat: avoid failure on older glibc
29709         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
29710         rather than mis-comparing 0 against FUNC_RESULT of char*.
29711
29712 2009-10-21  Bruno Haible  <bruno@clisp.org>
29713
29714         * modules/stpncpy (License): Relicense under LGPLv2+.
29715         Reported by David Lutterkort <lutter@redhat.com>.
29716
29717 2009-10-20  Eric Blake  <ebb9@byu.net>
29718
29719         utimensat: work around Solaris 9 bug
29720         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
29721         has trailing slash bugs.
29722         * tests/test-lutimens.h (test_lutimens): Enhance test.
29723         * tests/test-utimens.h (test_utimens): Likewise.
29724         * doc/posix-functions/utime.texi (utime): Enhance documentation.
29725         * doc/posix-functions/utimes.texi (utimes): Likewise.
29726         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29727         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
29728         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
29729         * doc/posix-functions/futimens.texi (futimens): Likewise.
29730
29731         fdutimensat: new module
29732         * modules/fdutimensat: New file.
29733         * lib/fdutimensat.c (fdutimensat): Likewise.
29734         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
29735         * MODULES.html.sh (File system functions): Mention module.
29736         * modules/fdutimensat-tests: New test.
29737         * tests/test-fdutimensat.c: Likewise.
29738
29739         doc: regenerate INSTALL
29740         * doc/INSTALL: Reflect recent autoconf update.
29741         * doc/INSTALL.ISO: Likewise.
29742         * doc/INSTALL.UTF-8: Likewise.
29743
29744 2009-10-20  Pádraig Brady  <P@draigBrady.com>
29745
29746         acl: warn if ACL support is not detected
29747         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
29748
29749 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
29750
29751         * lib/nproc.h: Add extern "C" block for C++.
29752
29753 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
29754             Bruno Haible  <bruno@clisp.org>
29755
29756         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
29757         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
29758         * doc/posix-functions/isalpha.texi: Likewise.
29759         * doc/posix-functions/isblank.texi: Likewise.
29760         * doc/posix-functions/iscntrl.texi: Likewise.
29761         * doc/posix-functions/isdigit.texi: Likewise.
29762         * doc/posix-functions/isgraph.texi: Likewise.
29763         * doc/posix-functions/islower.texi: Likewise.
29764         * doc/posix-functions/isprint.texi: Likewise.
29765         * doc/posix-functions/ispunct.texi: Likewise.
29766         * doc/posix-functions/isspace.texi: Likewise.
29767         * doc/posix-functions/isupper.texi: Likewise.
29768         * doc/posix-functions/isxdigit.texi: Likewise.
29769
29770 2009-10-18  Bruno Haible  <bruno@clisp.org>
29771
29772         Tests for module 'isblank'.
29773         * modules/isblank-tests: New file.
29774         * tests/test-isblank.c: New file.
29775
29776         New module 'isblank'.
29777         * lib/isblank.c: New file.
29778         * m4/isblank.m4: New file.
29779         * modules/isblank: New file.
29780         * doc/posix-functions/isblank.texi: Mention the new module.
29781
29782 2009-10-18  Bruno Haible  <bruno@clisp.org>
29783
29784         New module 'ctype'.
29785         * lib/ctype.in.h: New file.
29786         * m4/ctype.m4: New file.
29787         * modules/ctype: New file.
29788         * doc/posix-headers/ctype.texi: Mention the new module.
29789
29790 2009-10-18  Jim Meyering  <meyering@redhat.com>
29791
29792         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
29793         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
29794         right after its initialization, rather than farther down.
29795         Keeping these in close proximity makes it easier to ensure
29796         that each such variable is initialized.  E.g.,
29797
29798             LIB_CLOCK_GETTIME=
29799             AC_SUBST([LIB_CLOCK_GETTIME])
29800
29801         This change also increments these serial numbers.
29802         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
29803         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29804         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29805
29806 2009-10-18  Bruno Haible  <bruno@clisp.org>
29807
29808         Don't let environment variables perturb build.
29809         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
29810         (gl_PREREQ_GETHRXTIME): ... not here.
29811
29812 2009-10-18  Bruno Haible  <bruno@clisp.org>
29813
29814         Avoid symlink attack in localcharset module.
29815         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
29816         (O_NOFOLLOW): Define fallback.
29817         (get_charset_aliases): Don't open the file if it is a symbolic link.
29818         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
29819         gl_FCNTL_H.
29820         (gl_FCNTL_H): Require it.
29821         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
29822         * modules/localcharset (Files): Add m4/fcntl_h.m4.
29823         Reported by Fergal Glynn <fglynn@veracode.com>.
29824
29825 2009-10-18  Bruno Haible  <bruno@clisp.org>
29826
29827         Implement nproc for mingw.
29828         * lib/nproc.c: Include <windows.h>
29829         (num_processors): On native Windows platforms, try GetSystemInfo.
29830
29831 2009-10-18  Bruno Haible  <bruno@clisp.org>
29832
29833         Implement nproc for IRIX.
29834         * lib/nproc.c: Include <sys/sysmp.h>.
29835         (num_processors): On IRIX systems, try sysmp.
29836         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
29837
29838 2009-10-18  Bruno Haible  <bruno@clisp.org>
29839
29840         Implement nproc for HP-UX.
29841         * lib/nproc.c: Include <sys/pstat.h>
29842         (num_processors): On HP-UX systems, try pstat_getdynamic.
29843         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
29844         pstat_getdynamic.
29845
29846 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
29847             Bruno Haible  <bruno@clisp.org>
29848
29849         Implement nproc for NetBSD, OpenBSD.
29850         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
29851         (ARRAY_SIZE): New macro.
29852         (num_processors): On BSD systems, try sysctl of HW_NCPU.
29853         * m4/nproc.m4: New file.
29854         * modules/nproc (Files): Add m4/nproc.m4.
29855         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
29856         (Makefile.am): Instead, augment lib_SOURCES.
29857
29858 2009-10-18  Bruno Haible  <bruno@clisp.org>
29859
29860         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
29861         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
29862         sys/param.h.
29863
29864 2009-10-16  Eric Blake  <ebb9@byu.net>
29865
29866         utimensat: new module
29867         * modules/utimensat: New file.
29868         * lib/utimensat.c (utimensat): Likewise.
29869         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29870         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
29871         so we can work around Linux bugs.
29872         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29873         * modules/sys_stat (Makefile.am): Substitute them.
29874         * lib/sys_stat.in.h (utimensat): Declare it.
29875         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29876         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29877         * modules/utimensat-tests: New test.
29878         * tests/test-utimensat.c: Likewise.
29879
29880         utimens: let lutimens work on non-symlinks
29881         * lib/utimens.c (lutimens): Fall back to utimens rather than
29882         failing with ENOSYS, when file is not a symlink.
29883         (utimens): Reduce redirection.
29884         * tests/test-lutimens.h (test_lutimens): Update test to cover
29885         non-symlinks.
29886         * tests/test-utimens.h (test_utimens): Update test to cover
29887         symlinks.
29888         * tests/test-utimens.c (main): Update caller.
29889
29890         utimens: cache whether utimensat syscall works
29891         * lib/utimens.c (utimensat_works_really): New cache variable.
29892         (fdutimens, lutimens): Use it to avoid failing syscall.
29893
29894         test-stat-time, test-utimens: improve portability
29895         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
29896         ext4 on alpha, and for cygwin.
29897         * tests/test-utimens-common.h: New file.
29898         (nap): Factor delays into single function.
29899         * tests/test-lutimens.h (test_lutimens): Use new header.
29900         * tests/test-futimens.h (test_futimens): Likewise.
29901         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
29902         timestamps to occur from same machine, as was done previously for
29903         test_utimens.
29904         * modules/utimens-tests (Files): Ship new file.
29905         * modules/futimens-tests (Files): Likewise.
29906         Reported in part by Jim Meyering.
29907
29908         sys_stat: sort replacement declarations
29909         * lib/sys_stat.in.h: Sort declarations.
29910         * lib/futimens.c (futimens): Fix typo.
29911
29912 2009-10-15  Jim Meyering  <meyering@redhat.com>
29913
29914         don't let environment settings perturb build
29915         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
29916         could cause a configure-time and/or build-time malfunction.
29917         Typically, a configure-time function-in-library test is performed
29918         via code like this:
29919
29920           LIB_VAR=
29921           AC_SUBST([LIB_VAR])
29922           prefix_saved_LIBS=$LIBS
29923             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
29924                        [test "$ac_cv_search_FUNC" = "none required" ||
29925                         LIB_VAR=$ac_cv_search_FUNC])
29926           LIBS=$prefix_saved_LIBS
29927
29928         However, in each of the files affected by this change, the LIB_VAR=
29929         initialization was omitted.  Thus, when set in the environment, its
29930         value would propagate into generated Makefiles when FUNC is not found
29931         in LIB_NAME.
29932         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
29933         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29934         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29935
29936 2009-10-14  Eric Blake  <ebb9@byu.net>
29937
29938         fchdir: avoid infinite recursion in mingw
29939         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
29940         recursing.
29941
29942         test-stat-time: port to mingw
29943         * tests/test-stat-time.c (force_unlink): Return a value.
29944         (test_ctime) [W32]: Fix compilation error.
29945         (nap): Don't call usleep with too large an argument.  Use
29946         force_unlink.
29947         * doc/pastposix-functions/usleep.texi (usleep): Document the
29948         portability issue.
29949
29950 2009-10-13  Jim Meyering  <meyering@redhat.com>
29951
29952         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
29953         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
29954         * modules/pipe-filter-ii: Likewise.
29955         * modules/sys_socket-tests: Likewise.
29956         * modules/tsearch-tests: Likewise.
29957         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
29958         (check): Depend on it.
29959
29960 2009-10-12  Eric Blake  <ebb9@byu.net>
29961
29962         utimens-tests: port to NFS file systems
29963         * tests/test-utimens.h (test_utimens): Refactor utimecmp
29964         comparisons to avoid spurious failures from timestamp drift
29965         between NFS machines.
29966
29967 2009-10-12  Eric Blake  <ebb9@byu.net>
29968
29969         stat-time-tests: minor cleanups
29970         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
29971         * tests/test-stat-time.c (nap): Separate assignment from call.
29972         Suggested by Paolo Bonzini and Bruno Haible.
29973
29974         sys_stat: guarantee struct timespec
29975         * lib/sys_stat.in.h (includes): Always include <time.h>
29976         * modules/sys_stat (Depends-on): Add time.
29977         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
29978         mode_t permission values.
29979         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
29980         get at subsecond timestamps.
29981
29982 2009-10-10  Eric Blake  <ebb9@byu.net>
29983
29984         futimens: new module
29985         * modules/futimens: New file.
29986         * lib/futimens.c (futimens): Likewise.
29987         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
29988         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
29989         we can work around Linux bugs.
29990         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29991         * modules/sys_stat (Makefile.am): Substitute them.
29992         * lib/sys_stat.in.h (futimens): Declare it.
29993         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29994         * doc/posix-functions/futimens.texi (futimens): Likewise.
29995         * modules/futimens-tests: New test.
29996         * tests/test-futimens.c: Likewise.
29997
29998         utimens: introduce fdutimens
29999         * lib/utimens.h (fdutimens): New prototype.
30000         * lib/utimens.c (gl_futimens): Move guts...
30001         (fdutimens): ...to new interface.
30002         * tests/test-utimens.c (do_fdutimens): Use it.
30003
30004         utimens: add UTIME_NOW and UTIME_OMIT support
30005         * lib/utimens.c (validate_timespec, update_timespec): New helper
30006         functions.
30007         (gl_futimens, lutimens): Use them.
30008         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30009         stdbool, sys_stat.
30010         (Link): Mention resulting library dependency.
30011         * modules/utimecmp (Link): Likewise.
30012         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30013         (Makefile.am): Pick up library dependency.
30014         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30015         definition.
30016         * tests/test-sys_stat.c: Test the definitions.
30017         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30018         * NEWS: Document library dependency.
30019
30020         utimecmp: support symlink timestamps
30021         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30022         hashing when possible.  Use pathconf when available.
30023         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30024         * modules/utimecmp (Depends-on): Add lstat.
30025
30026         utimens: add lutimens interface
30027         * lib/utimens.c (lutimens): New function.
30028         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30029         * lib/utimens.h (lutimens): Declare new interface.
30030         * tests/test-utimens.c (main): Enhance test.
30031         * tests/test-lutimens.h (test_lutimens): New file.
30032         * modules/utimens-tests (Files): Distribute it.
30033         (Depends-on): Add symlink.
30034         (configure.ac): Check for usleep.
30035
30036         utimens: validate futimens usage
30037         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30038         fewer syscalls on failure later on.  Avoid compiler warning on
30039         mingw.
30040         * modules/utimens (Depends-on): Add dup2.
30041
30042         utimens: add test
30043         * modules/utimens-tests: New test.
30044         * tests/test-utimens.h: New file.
30045         * tests/test-futimens.h: Likewise.
30046         * tests/test-utimens.c: Likewise.
30047
30048         doc: mention timestamp portability issues
30049         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30050         instead.
30051         * doc/posix-functions/utime.texi (utime): Likewise.
30052         * doc/posix-functions/utimes.texi (utimes): Likewise.
30053         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30054         instead.
30055         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30056         module.
30057         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30058         Mention weakness with symlink timestamps.
30059         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30060         to utimensat/futimens instead.
30061         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30062
30063         test-dup2: enhance test
30064         * tests/test-dup2.c (main): Also check AT_FDCWD.
30065
30066         test-stat-time: avoid more spurious failures
30067         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30068         xfs; and avoid race if the two timestamps cross quantization edge.
30069
30070         relocatable: prefer 'file system' over 'filesystem'
30071         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30072         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30073         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30074         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30075         * lib/relocatable.c (compute_curr_prefix): Likewise.
30076
30077 2009-10-10  Jim Meyering  <meyering@redhat.com>
30078
30079         stat-time-tests: check for the usleep function
30080         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30081
30082 2009-10-10  Bruno Haible  <bruno@clisp.org>
30083
30084         * modules/xnanosleep: Put the Link section after the Include section.
30085
30086 2009-10-09  Eric Blake  <ebb9@byu.net>
30087
30088         dup2: work around FreeBSD 6.1 bug
30089         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30090         * doc/posix-functions/dup2.texi (dup2): Document it.
30091         Reported by Nelson H. F. Beebe and Jim Meyering.
30092
30093         test-stat-time: port to buggy NFS clients
30094         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30095         (test_ctime): Also skip test if mtime and ctime are skewed.
30096
30097         maint: prefer 'file system' over 'filesystem'
30098         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30099         * doc/posix-functions/lstat.texi (lstat): Likewise.
30100         * lib/file-has-acl.c (file_has_acl): Likewise.
30101         * lib/fwriteerror.c [TEST]: Likewise.
30102         * tests/test-areadlink.h (test_areadlink): Likewise.
30103         * tests/test-areadlinkat-with-size.c (main): Likewise.
30104         * tests/test-areadlinkat.c (main): Likewise.
30105         * tests/test-canonicalize-lgpl.c (main): Likewise.
30106         * tests/test-canonicalize.c (main): Likewise.
30107         * tests/test-fstatat.c (main): Likewise.
30108         * tests/test-linkat.c (main): Likewise.
30109         * tests/test-lstat.h (test_lstat_func): Likewise.
30110         * tests/test-mkdir.h (test_mkdir): Likewise.
30111         * tests/test-readlink.h (test_readlink): Likewise.
30112         * tests/test-remove.c (main): Likewise.
30113         * tests/test-rename.h (test_rename): Likewise.
30114         * tests/test-renameat.c (main): Likewise.
30115         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30116         * tests/test-symlink.h (test_symlink): Likewise.
30117         * tests/test-symlinkat.c (main): Likewise.
30118         * tests/test-unlink.h (test_unlink_func): Likewise.
30119         * tests/test-unlinkat.c (main): Likewise.
30120
30121         maint: make realtime library usage explicit
30122         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30123         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30124         * modules/settime (Link): Likewise.
30125         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30126
30127         test-stat-time: speed up execution
30128         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30129         warning on mingw.
30130         (nap): New helper function.
30131         (prepare_test): Use it to reduce sleep time.
30132         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30133         execution.
30134         * modules/stat-time-tests (configure.ac): Check for usleep.
30135
30136 2009-10-09  Jim Meyering  <meyering@redhat.com>
30137
30138         selinux-h: always use getfilecon wrappers
30139         * lib/getfilecon.c: New file.
30140         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30141         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30142         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30143         (fgetfilecon): Provide a stub.
30144         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
30145         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
30146         file unconditionally.
30147         When <selinux/selinux.h> is found, arrange to use wrappers.
30148         * modules/selinux-h (Files): Add getfilecon.c.
30149         (Makefile.am): Substitute include-next-related bits
30150         into the now-always-generated selinux/selinux.h file.
30151         * doc/glibc-functions/lgetfilecon.texi: New file.
30152         * doc/glibc-functions/fgetfilecon.texi: New file.
30153         * doc/glibc-functions/getfilecon.texi: New file.
30154         * doc/glibc-functions/getfilecon-desc.texi: New file.
30155         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
30156         which to pull in the new files.
30157         * MODULES.html.sh (Misc): Add selinux-h.
30158
30159 2009-10-08  Jim Meyering  <meyering@redhat.com>
30160
30161         unistd: fix comment typo
30162         * lib/unistd.in.h (euidaccess): Fix a comment typo.
30163
30164 2009-10-08  Eric Blake  <ebb9@byu.net>
30165
30166         areadlink: use SIZE_MAX consistently
30167         * modules/areadlink (Depends-on): Add stdint.
30168         * modules/areadlink-with-size (Depends-on): Likewise.
30169         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
30170         gives NULL; drop sys/types, since unistd gives size_t; and add
30171         stdint for SIZE_MAX.
30172         (SIZE_MAX): Rely on headers.
30173         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
30174         and add stdint.
30175         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
30176         (SIZE_MAX): Likewise.
30177         (INITIAL_BUF_SIZE): Turn into enum.
30178         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
30179
30180 2009-10-08  Jim Meyering  <meyering@redhat.com>
30181
30182         areadlinkat: avoid compilation failure
30183         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
30184         Fix typo in comment.
30185
30186 2009-10-07  Eric Blake  <ebb9@byu.net>
30187
30188         areadlinkat-with-size: new module
30189         * modules/areadlinkat-with-size: New module.
30190         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
30191         * lib/areadlink.h (areadlinkat): Declare it.
30192         * MODULES.html.sh (File system functions): Mention it.
30193         * modules/areadlinkat-with-size-tests: New test.
30194         * tests/test-areadlinkat-with-size.c: New file.
30195
30196         xreadlinkat: new module
30197         * modules/xreadlinkat: New module.
30198         * lib/xreadlinkat.c (xreadlinkat): New file.
30199         * lib/xreadlink.h (xreadlinkat): Declare it.
30200         * MODULES.html.sh (File system functions): Mention it.
30201
30202         areadlinkat: new module
30203         * lib/at-func.c (FUNC_FAIL): New define.
30204         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
30205         * modules/areadlinkat: New module.
30206         * lib/linkat.c (areadlinkat): Move...
30207         * lib/areadlinkat.c (areadlinkat): ...to new file.
30208         * lib/areadlink.h (areadlinkat): Declare it.
30209         * modules/linkat (Depends-on): Add areadlinkat.
30210         * MODULES.html.sh (File system functions): Mention it.
30211         * modules/areadlinkat-tests: New test.
30212         * tests/test-areadlinkat.c: New file.
30213
30214         areadlink, areadlink-with-size: add tests
30215         * modules/areadlink-tests: New test.
30216         * modules/areadlink-with-size-tests: Likewise.
30217         * tests/test-areadlink.h: New file.
30218         * tests/test-areadlink.c: Likewise.
30219         * tests/test-areadlink-with-size.c: Likewise.
30220
30221         maint: minor cleanups
30222         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
30223         _UNUSED_PARAMETER_ instead.
30224         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
30225         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
30226         * modules/linkat-tests (Files): Distribute test-link.h.
30227
30228         openat, utimens: whitespace cleanup
30229         * lib/openat.c: Prefer space throughout, rather than mix of 8
30230         spaces vs. tabs.
30231         * lib/at-func.c: Likewise.
30232         * lib/utimens.c: Likewise.
30233
30234         openat: avoid using wrong fd
30235         * lib/openat.c (openat_permissive): Reject user's fd if saving the
30236         working directory chooses same fd.
30237         * lib/at-func.c (AT_FUNC_NAME): Likewise.
30238
30239         mkdir, mkdirat: fix cygwin 1.5.x bug
30240         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
30241         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
30242         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
30243         bug.
30244         (gl_PREREQ_MKDIR): Delete unused macro.
30245         * modules/mkdir (Files): Track file rename.
30246         (configure.ac): Update macro name.
30247         * modules/openat (Depends-on): Add mkdir.
30248         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
30249
30250         mkdir, mkdirat: add tests
30251         * modules/mkdir-tests: New test.
30252         * tests/test-mkdir.h: New file.
30253         * tests/test-mkdir.c: Likewise.
30254         * tests/test-mkdirat.c: Likewise.
30255         * modules/openat-tests (Files): Add new files.
30256         (Makefile.am): Run new test.
30257
30258 2009-10-06  Eric Blake  <ebb9@byu.net>
30259
30260         doc: tweak *at function documentation
30261         * doc/posix-functions/faccessat.texi (faccessat): Mention
30262         known issue with replacement.
30263         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
30264         * doc/posix-functions/linkat.texi (linkat): Likewise.
30265         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30266         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30267         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30268         * doc/posix-functions/renameat.texi (renameat): Likewise.
30269         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30270
30271         openat: fix GNU/Hurd bug in unlinkat
30272         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
30273         broken.
30274         * doc/posix-functions/unlink.texi (unlink): Document this.
30275         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30276
30277         fdopendir: fix GNU/Hurd bug
30278         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30279         allowing non-directory fds.
30280         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30281         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30282         * modules/dirent (Makefile.am): Substitute it.
30283         * lib/dirent.in.h (fdopendir): Declare replacement.
30284         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30285         * tests/test-fdopendir.c (main): Test something other than
30286         /dev/null, since on Hurd that behaves like a directory.
30287
30288         test-symlink: port to GNU/Hurd
30289         * tests/test-symlink.h (test_symlink): Relax expected errno.
30290
30291         doc: tweak more cygwin information
30292         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30293         now compatible with glibc.
30294         * doc/posix-functions/getopt.texi (getopt): Likewise.
30295
30296         getopt-gnu: add another test
30297         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30298         guarantee behavior relied on by m4.
30299         * tests/test-getopt.c (main): Use it.
30300         * modules/getopt-posix-tests (Depends-on): Add setenv.
30301         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30302
30303         getopt: fix compilation on darwin
30304         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30305         include.
30306         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30307         Reported by Ludovic Courtès.
30308
30309 2009-10-06  Bruno Haible  <bruno@clisp.org>
30310
30311         * modules/size_max (Description): Discourage its use.
30312         Reported by Simon Josefsson.
30313
30314 2009-10-06  Jim Meyering  <meyering@redhat.com>
30315
30316         linkat: avoid compilation failure
30317         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
30318
30319 2009-10-05  Eric Blake  <ebb9@byu.net>
30320
30321         linkat: support Linux 2.6.17
30322         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
30323         linkat on Linux, but allow cache variable override.
30324         * lib/linkat.c (rpl_linkat): Define override.
30325         * modules/linkat (Depends-on): Add symlinkat.
30326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
30327         * modules/unistd (Makefile.am): Substitute it.
30328         * lib/unistd.in.h (linkat): Declare replacement.
30329         Reported by Pádraig Brady.
30330
30331         quotearg: port test to systems with C.UTF-8 locale
30332         * tests/test-quotearg.c (struct result_strings): Add another
30333         member, differentiating between C.ASCII and C.UTF-8 handling.
30334         (compare_strings): Add parameter.
30335         (main): Adjust all callers.
30336
30337         getopt: avoid clash with FreeBSD _getopt_internal
30338         * lib/getopt.in.h (_getopt_internal): Override the name.
30339         * lib/getopt_int.h (includes): Pick up any overrides.
30340         Reported by Reuben Thomas.
30341
30342         hash: allow C89 compilation
30343         * lib/hash.c (check_tuning): Move declaration before statement.
30344         Reported by Reuben Thomas.
30345
30346 2009-10-05  Karl Berry  <karl@gnu.org>
30347
30348         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
30349
30350 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
30351             Bruno Haible  <bruno@clisp.org>
30352
30353         * lib/uname.c (uname): Use a table-driven algorithm to compute
30354         Windows NT versions.
30355
30356 2009-10-04  Bruno Haible  <bruno@clisp.org>
30357
30358         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
30359         program_invocation_short_name.
30360         * modules/progname (configure.ac): Test for presence of
30361         program_invocation_short_name.
30362         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30363
30364 2009-10-04  Bruno Haible  <bruno@clisp.org>
30365
30366         * lib/progname.c (set_program_name): Fix comment.
30367         Reported by Jim Meyering.
30368
30369 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30370             Bruno Haible  <bruno@clisp.org>
30371
30372         * lib/uname.c: Include <string.h>.
30373         (uname): Do only one call to GetVersionEx in the common case.
30374
30375 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30376             Bruno Haible  <bruno@clisp.org>
30377
30378         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
30379         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
30380         (uname): Add support for Windows CE and various non-x86 CPU types.
30381
30382 2009-10-03  Bruno Haible  <bruno@clisp.org>
30383
30384         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
30385         invocation to tests/configure.ac.
30386         Reported by Ian Beckwith <ianb@erislabs.net>.
30387
30388 2009-10-02  Eric Blake  <ebb9@byu.net>
30389
30390         fchdir: avoid compiler warning
30391         * lib/fchdir.c (canonicalize_file_name)
30392         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
30393
30394         test-open: support mingw errno values
30395         * tests/test-open.h (test_open): Relax test.
30396         * tests/test-fopen.h (test_fopen): Likewise.
30397         * tests/test-openat-safer.c (main): Likewise.
30398
30399         open: fix opening directory on mingw
30400         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
30401
30402         test-open: on GNU/Hurd, /dev/null is a directory
30403         * tests/test-fopen.h (main): Rename...
30404         (test_fopen): ...to this.  Use a guaranteed non-directory when
30405         confirming open behavior on trailing slash.
30406         * tests/test-openat-safer.c (main): Likewise.
30407         * tests/test-open.h (main): Likewise....
30408         (test_open): ...to this.
30409         * tests/test-fopen.c (main): Adjust caller.
30410         * tests/test-fopen-safer.c (main): Likewise.
30411         * tests/test-open.c (main): Likewise.
30412         * tests/test-fcntl-safer.c (main): Likewise.
30413         Reported by Samuel Thibault.
30414
30415         rename, fchdir: don't ignore chdir failure
30416         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
30417         * lib/rename.c (rpl_rename) [W32]: Likewise.
30418         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
30419         an empty destination directory if source cannot be renamed,
30420         although there is still possibility for failure.
30421         * doc/posix-functions/rename.texi (rename): Document the race.
30422         Reported by Jim Meyering.
30423
30424         maint: cleanup whitespace in recent commits
30425         * lib/rename.c (rpl_rename): Remove tabs.
30426         * tests/test-link.h (test_link): Likewise.
30427         * lib/fchdir.c (get_name): Likewise.
30428         Reported by Jim Meyering.
30429
30430 2009-10-02  Ben Pfaff  <blp@gnu.org>
30431
30432         relocatable-prog-wrapper: Add missing dependency on
30433         double-slash-root.
30434         * modules/relocatable-prog-wrapper: Add dependency.
30435         Reported by Ian Beckwith <ianb@erislabs.net>.
30436
30437 2009-10-02  Eric Blake  <ebb9@byu.net>
30438
30439         renameat: fix Solaris bugs
30440         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
30441         needed fixing.
30442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
30443         * modules/stdio (Makefile.am): Substitute it.
30444         * lib/stdio.in.h (renameat): Declare replacement.
30445         * lib/renameat.c (rpl_renameat): Implement fix.
30446
30447         renameat: new module
30448         * modules/renameat: New file.
30449         * lib/renameat.c (renameat): Likewise.
30450         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
30451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30452         * modules/stdio (Makefile.am): Substitute them.
30453         * lib/stdio.in.h (renameat): Declare it.
30454         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30455         * doc/posix-functions/renameat.texi (renameat): Likewise.
30456         * modules/renameat-tests: New test.
30457         * tests/test-renameat.c: Likewise.
30458
30459         rename: fix mingw bugs
30460         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
30461         directory overwrite bugs.
30462
30463         rename: fix another cygwin 1.5 bug
30464         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
30465         checks.
30466         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
30467         unnecessary cygwin workarounds.  Also work around bug with moving
30468         full directory onto an empty one.
30469         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
30470
30471         rename-dest-slash: merge into rename module
30472         * modules/rename-dest-slash (Status): Mark obsolete.
30473         (Depends-on): Add rename.
30474         (Files): Let rename do it all.
30475         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
30476         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
30477         * m4/rename-dest-slash.m4: ...so this file can be deleted.
30478         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
30479         * lib/rename.c (rpl_rename): Update comments.
30480
30481         rename: fix cygwin 1.5.x bugs
30482         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
30483         * lib/rename.c (rpl_rename): Work around them.
30484         * modules/rename (Depends-on): Add same-inode.
30485
30486         rename: fix Solaris 10 bug
30487         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30488         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
30489         was the only bug.
30490
30491         rename: fix Solaris 9 bug
30492         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
30493         on non-directory.  Avoid calling exit.
30494         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
30495         strdup.
30496         * modules/rename-tests (Depends-on): Drop lstat.
30497         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30498         (gl_PREREQ_RENAME): Delete unused macro.
30499
30500         rename-dest-slash: fix NetBSD bug
30501         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
30502         links.
30503         * modules/rename-dest-slash (Depends-on): Add same-inode.
30504
30505         rename-tests: new test, exposes several platform bugs
30506         * modules/rename-tests: New file.
30507         * tests/test-rename.h: Likewise.
30508         * tests/test-rename.c: Likewise.
30509         * doc/posix-functions/rename.texi (rename): Improve documentation,
30510         including bugs that will eventually be fixed in gnulib.
30511
30512 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
30513
30514         * lib/uname.c: Include <stdlib.h>
30515         (uname): Assume version info is available.
30516
30517 2009-10-02  Jim Meyering  <meyering@redhat.com>
30518
30519         gnu-web-doc-update: correct --help output
30520         * build-aux/gnu-web-doc-update: Make --help output relevant.
30521
30522         gnu-web-doc-update: add standard options
30523         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
30524
30525         gnu-web-doc-update: New module.
30526         Use this script to automatically update the on-line web documentation
30527         for your GNU project at http://www.gnu.org/software/$pkg/manual/
30528         * modules/gnu-web-doc-update: New file, from coreutils.
30529         * build-aux/gnu-web-doc-update: New script.
30530
30531 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
30532
30533         link: LoadLibrary is not needed.
30534         * lib/link.c: Use GetModuleHandle.
30535
30536 2009-10-01  Eric Blake  <ebb9@byu.net>
30537
30538         getopt: bump serial number
30539         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
30540         change.
30541
30542         tests: tighten link, rmdir, and remove tests
30543         * tests/test-link.h (includes): No need to use <config.h> here.
30544         Clean up if directory hard link was created, otherwise test for
30545         trailing '.'.
30546         * tests/test-linkat.c (main): Simplify.
30547         * tests/test-remove.c (main): Enhance test for trailing '.'.
30548         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30549
30550 2009-10-01  Jim Meyering  <meyering@redhat.com>
30551
30552         maint.mk: requiring "make major" was annoying, for a "minor" release.
30553         What is intended is "stable", to contrast with alpha and beta,
30554         so require "make stable", not "make major".
30555         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
30556         (get_tool_versions): Likewise.
30557         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
30558
30559 2009-09-30  Ben Pfaff  <blp@gnu.org>
30560
30561         Fix broken build of replacement for Windows tmpfile().
30562         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
30563         flags argument added along with the 'mkostemp' module.
30564
30565 2009-09-28  Bruno Haible  <bruno@clisp.org>
30566
30567         Avoid identifier clash with POSIX function 'remove' defined as a macro.
30568         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
30569         to 'remove_elt'.
30570         (gl_list_remove): Update.
30571         * lib/gl_list.c (gl_list_remove): Update.
30572         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
30573         to 'remove_elt'.
30574         (gl_oset_remove): Update.
30575         * lib/gl_list.c (gl_oset_remove): Update.
30576         Reported by Eric Blake.
30577
30578 2009-09-28  Eric Blake  <ebb9@byu.net>
30579
30580         doc: mention yet more cygwin 1.7 status
30581         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
30582         cygwin.
30583         * doc/glibc-functions/execvpe.texi (execvpe): New file.
30584         * doc/gnulib.texi (Glibc unistd.h): Mention it.
30585
30586         argp: fix test failure
30587         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
30588         that are not upper-case.  Pass correct range to tolower.
30589
30590 2009-09-27  Jim Meyering  <meyering@redhat.com>
30591
30592         test-yesno: work around sparc-dash here-document infelicity
30593         Without this change, the literal \177 byte in a here document
30594         would make dash 0.5.5.1-3 access uninitialized memory.
30595         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
30596         Instead, use a marker, "@", and filter through tr to create the desired
30597         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
30598
30599 2009-09-27  Bruno Haible  <bruno@clisp.org>
30600
30601         Disable untested support for new flavours of ACLs on AIX.
30602         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
30603         progress.
30604         * lib/set-mode-acl.c (qset_acl): Likewise.
30605
30606 2008-12-07  Bruno Haible  <bruno@clisp.org>
30607
30608         Add support for new flavours of ACLs on AIX. (Untested.)
30609         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
30610         (file_has_acl): Add support for newer AIX.
30611         * lib/set-mode-acl.c (qset_acl): Likewise.
30612         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
30613         Rainer Tammer <tammer@tammer.net>.
30614
30615 2009-09-26  Eric Blake  <ebb9@byu.net>
30616
30617         argp: fix compilation of getopt
30618         * lib/getopt.in.h (includes): Use different guard than glibc.
30619         Reported by Sergey Poznyakoff.
30620
30621         doc: mention more cygwin 1.7 status
30622         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
30623         bug.
30624         * doc/posix-functions/execl.texi (execl): Likewise.
30625         * doc/posix-functions/execle.texi (execle): Likewise.
30626         * doc/posix-functions/execlp.texi (execlp): Likewise.
30627         * doc/posix-functions/execv.texi (execv): Likewise.
30628         * doc/posix-functions/execve.texi (execve): Likewise.
30629         * doc/posix-functions/execvp.texi (execvp): Likewise.
30630         * doc/glibc-functions/canonicalize_file_name.texi
30631         (canonicalize_file_name): Cygwin 1.7 now provides this.
30632         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
30633         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
30634         on AT_SYMLINK_NOFOLLOW.
30635
30636 2009-09-24  Eric Blake  <ebb9@byu.net>
30637
30638         test-linkat: make test more robust
30639         * tests/test-linkat.c (main): Avoid collision with EEXIST.
30640
30641         getopt: fix inclusion guards for cygwin
30642         * modules/getopt-posix (Depends-on): Add include-next.
30643         (Makefile.am): Substitute more items in replacement header.
30644         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
30645         <getopt.h>.
30646         * lib/getopt.in.h (includes): Use split inclusion guard, and
30647         prefer <getopt.h> over include <unistd.h> when one is present.
30648         (option): Also override name of 'struct option'.
30649
30650         same-inode: revert prior change; it is not yet ready
30651         * NEWS: Undo mention of this change.
30652         * lib/same-inode.h (same-inode.h): Undo tri-state change.
30653         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30654         * lib/cycle-check.c (cycle_check): Likewise.
30655         * lib/same.c (same_name): Likewise.
30656         * lib/at-func2.c (at_func2): Likewise.
30657
30658 2009-09-23  Eric Blake  <ebb9@byu.net>
30659
30660         linkat: new module
30661         * modules/linkat: New file.
30662         * lib/at-func2.c (at_func2): Likewise.
30663         * lib/linkat.c (linkat): Likewise.
30664         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
30665         * lib/openat-priv.h (at_func2): Add declaration.
30666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30667         * modules/unistd (Makefile.am): Substitute them.
30668         * lib/unistd.in.h (linkat): Declare it.
30669         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30670         * doc/posix-functions/linkat.texi (linkat): Likewise.
30671         * doc/posix-functions/link.texi (link): Tweak wording.
30672         * tests/test-link.c (main): Move guts...
30673         * tests/test-link.h (test_link): ...into new file.
30674         * modules/linkat-tests: New test.
30675         * tests/test-linkat.c: Likewise.
30676         * modules/link-tests (Files): Ship new file.
30677         (Depends-on): Add stdbool.
30678
30679         dirname: add library-safe mdir_name
30680         * lib/dirname.h (mdir_name): New prototype.
30681         * lib/dirname.c (dir_name): Move guts...
30682         (mdir_name): ...to new function that avoids xalloc_die.
30683
30684         fchdir: another mingw fix
30685         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
30686         * lib/fchdir.c (get_name): New helper method; skips canonicalize
30687         on mingw (where it has not yet been ported), and make it optional
30688         elsewhere.
30689         (_gl_register_fd): Use it.
30690
30691         same-inode: make SAME_INODE tri-state, to port to mingw
30692         * NEWS: Mention this change.
30693         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
30694         st_ino always being 0.
30695         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30696         * lib/cycle-check.c (cycle_check): Likewise.
30697         * lib/same.c (same_name): Likewise.
30698
30699         lstat: avoid mingw compilation error
30700         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
30701         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
30702         lstat ourselves.
30703         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
30704         was adequate.
30705         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
30706         the checks for lstat.
30707         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
30708
30709         link: fix test failure on Solaris 9
30710         * lib/link.c (rpl_link): Don't assume link will catch bogus
30711         trailing slash on source.
30712
30713         test-symlinkat: enhance test
30714         * tests/test-readlink.c (main): Move guts...
30715         * tests/test-readlink.h (test_readlink): ...into new file.
30716         * tests/test-symlink.c (main): Move guts...
30717         * tests/test-symlink.h (test_symlink): ...into new file.
30718         * tests/test-symlinkat.c (main): Use new files for further
30719         coverage.
30720         (do_symlink, do_readlink): New helper functions.
30721         * modules/symlink-tests (Files): Ship new file.
30722         (Depends-on): Add stdbool.
30723         * modules/readlink-tests (Files): Ship new file.
30724         (Depends-on): Add stdbool.
30725         * modules/symlinkat-tests (Files): Use new files.
30726
30727 2009-09-23  Eric Blake  <ebb9@byu.net>
30728
30729         readlink: document portability issue with symlink length
30730         * doc/posix-functions/lstat.texi (lstat): Mention that some file
30731         systems have bogus st_size on symlinks, and mention the
30732         areadlink-with-size module.
30733         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30734         * doc/posix-functions/readlink.texi (readlink): Mention the
30735         areadlink module, and ERANGE failure.
30736         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30737         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
30738
30739         readlink: fix Solaris 9 bug with trailing slash
30740         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
30741         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
30742         * doc/posix-functions/readlink.texi (readlink): Document this.
30743         * modules/readlink-tests: New test.
30744         * tests/test-readlink.c: Likewise.
30745
30746         readlink: fix cygwin 1.5.x bug with return type
30747         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
30748         * lib/unistd.in.h (readlink): Use ssize_t.
30749         * lib/readlink.c (readlink): Likewise.
30750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30751         * modules/unistd (Makefile.am): Substitute it.
30752         * lib/unistd.in.h (readlink): Declare replacement.
30753         * doc/posix-functions/readlink.texi (readlink): Document this.
30754
30755         symlink: use throughout gnulib
30756         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
30757         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
30758         symlink is not used.
30759         * modules/symlinkat (Depends-on): Add symlink.
30760         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30761         * modules/canonicalize-tests (Depends-on): Likewise.
30762         * modules/lstat-tests (Depends-on): Likewise.
30763         * modules/openat-tests (Depends-on): Likewise.
30764         * modules/remove-tests (Depends-on): Likewise.
30765         * modules/rmdir-tests (Depends-on): Likewise.
30766         * modules/unlink-tests (Depends-on): Likewise.
30767         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
30768         * tests/test-canonicalize.c (symlink): Likewise.
30769         * tests/test-fstatat.c (symlink): Likewise.
30770         * tests/test-lstat.c (symlink): Likewise.
30771         * tests/test-remove.c (symlink): Likewise.
30772         * tests/test-rmdir.c (symlink): Likewise.
30773         * tests/test-unlink.c (symlink): Likewise.
30774         * tests/test-unlinkat.c (symlink): Likewise.
30775
30776         symlink: new module, for Solaris 9 bug
30777         * modules/symlink: New file.
30778         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
30779         * lib/symlink.c: Likewise.
30780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
30781         * modules/unistd (Makefile.am): Substitute them.
30782         * lib/unistd.in.h (symlink): Declare replacement.
30783         * MODULES.html.sh (File system functions): Mention it.
30784         * doc/posix-functions/symlink.texi (symlink): Likewise.
30785         * modules/symlink-tests: New test.
30786         * tests/test-symlink.c: Likewise.
30787
30788 2009-09-23  Bruno Haible  <bruno@clisp.org>
30789
30790         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
30791         when needed.
30792         Test case: gnulib-tool --import --with-tests atexit inttypes.
30793         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
30794
30795 2009-09-23  Bruno Haible  <bruno@clisp.org>
30796
30797         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
30798         subcommand, not in a subshell.
30799
30800 2009-09-22  Eric Blake  <ebb9@byu.net>
30801
30802         unistd: sort replacement declarations
30803         * lib/unistd.in.h: Sort declarations.
30804
30805         open, openat: minor optimization
30806         * lib/open.c (open): If open succeeded, len is non-zero.
30807         * lib/openat.c (rpl_openat): Likewise.
30808
30809         link-follow: ensure correct result
30810         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
30811         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
30812         distinguish between possible failures.
30813
30814 2009-09-21  Eric Blake  <ebb9@byu.net>
30815
30816         fts: avoid compiler warning
30817         * lib/fts.c (dirent_inode_sort_may_be_useful)
30818         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
30819
30820 2009-09-19  Bruno Haible  <bruno@clisp.org>
30821
30822         * lib/progreloc.c (canonicalize_file_name): New declaration.
30823
30824 2009-09-19  Eric Blake  <ebb9@byu.net>
30825
30826         link: fix quoting
30827         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
30828
30829         openat: fix openat bugs on Solaris 9
30830         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
30831         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
30832         * modules/openat (Depends-on): Add open.
30833         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
30834         * modules/fcntl-h (Makefile.am): Substitute it.
30835         * lib/fcntl.in.h (openat): Declare replacement.
30836         * doc/posix-functions/openat.texi (openat): Document this.
30837
30838         openat: move fstatat and unlinkat into correct files
30839         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
30840         compiled.
30841         * lib/openat.c (fstatat, unlinkat): Move...
30842         * lib/fstatat.c (fstatat): ...into correct files.
30843         * lib/unlinkat.c (unlinkat): Likewise.
30844
30845         openat: fix unlinkat bugs on Solaris 9
30846         * lib/unlinkat.c (unlinkat): New file.
30847         * modules/openat (Depends-on): Add unlink.
30848         (Files): Distribute it.
30849         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
30850         trailing slash behavior is broken.
30851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30852         * modules/unistd (Makefile.am): Substitute it.
30853         * lib/unistd.in.h (unlinkat): Declare replacement.
30854         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
30855
30856         openat: fix fstatat bugs on Solaris 9
30857         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
30858         stat.
30859         * doc/posix-functions/fstatat.texi (fstatat): Document this.
30860
30861         test-unlinkat: enhance test, to expose Solaris 9 bug
30862         * tests/test-unlink.c (main): Factor guts...
30863         * tests/test-unlink.h (test_rmdir_func): ...into new file.
30864         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
30865         * tests/test-rmdir.c (main): Adjust caller.
30866         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
30867         (unlinker): New helper function.
30868         (rmdirat): Enhance check.
30869         * modules/rmdir-tests (Depends-on): Add stdbool.
30870         * modules/unlink-tests (Depends-on): Likewise.
30871         (Files): Add test-unlink.h.
30872         * modules/openat-tests (Files): Likewise.
30873         (Depends-on): Add unlinkdir.
30874
30875         test-fstatat: new test, to expose Solaris 9 bugs
30876         * tests/test-stat.c (main): Factor guts...
30877         * tests/test-stat.h (test_stat_func): ...into new file.
30878         * tests/test-lstat.c (main): Factor guts...
30879         * tests/test-lstat.h (test_lstat_func): ...into new file.
30880         * tests/test-fstatat.c: New file.
30881         * modules/stat-tests (Files): Add test-stat.h.
30882         * modules/lstat-tests (Files): Add test-lstat.h.
30883         (Depends-on): Add stdbool.
30884         * modules/openat-tests (Depends-on): Add pathmax.
30885         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
30886         (Makefile.am): Run new test.
30887
30888         remove: new module, for mingw and Solaris 9 bugs
30889         * modules/remove: New file.
30890         * lib/remove.c: Likewise.
30891         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
30892         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30893         * modules/stdio (Makefile.am): Use them.
30894         * lib/stdio.in.h (remove): Declare replacement.
30895         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30896         * doc/posix-functions/remove.texi (remove): Likewise.
30897         * modules/remove-tests: New test.
30898         * tests/test-remove.c: Likewise.
30899
30900         unlink: new module, for Solaris 9 bug
30901         * modules/unlink: New file.
30902         * lib/unlink.c: Likewise.
30903         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
30904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30905         * modules/unistd (Makefile.am): Use them.
30906         * lib/unistd.in.h (stat): Declare replacement.
30907         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30908         * doc/posix-functions/unlink.texi (unlink): Likewise.
30909         * modules/unlink-tests: New test.
30910         * tests/test-unlink.c: Likewise.
30911
30912         lstat: fix Solaris 9 bug
30913         * lib/lstat.c (lstat): Also check for trailing slash on
30914         non-symlink, non-directories.  Use stat module to simplify logic.
30915         * doc/posix-functions/lstat.texi (lstat): Document it.
30916         * modules/lstat-tests (Depends-on): Add errno, same-inode.
30917         (configure.ac): Check for symlink.
30918         * tests/test-lstat.c (main): Add more tests.
30919
30920         stat: add as dependency to other modules
30921         * modules/chown (Depends-on): Add stat.
30922         * modules/euidaccess (Depends-on): Likewise.
30923         * modules/fchdir (Depends-on): Likewise.
30924         * modules/isdir (Depends-on): Likewise.
30925         * modules/link (Depends-on): Likewise.
30926         * modules/lstat (Depends-on): Likewise.
30927         * modules/mkdir-p (Depends-on): Likewise.
30928         * modules/modechange (Depends-on): Likewise.
30929         * modules/open (Depends-on): Likewise.
30930         * modules/readlink (Depends-on): Likewise.
30931         * modules/same (Depends-on): Likewise.
30932
30933         stat: fix Solaris 9 bug
30934         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
30935         slash.
30936         * lib/stat.c (rpl_stat): Work around it.
30937         * doc/posix-functions/stat.texi (stat): Update documentation.
30938
30939         stat: new module, for mingw bug
30940         * modules/stat: New file.
30941         * lib/stat.c: Likewise.
30942         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30943         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30944         * modules/sys_stat (Makefile.am): Use them.
30945         * lib/sys_stat.in.h (stat): Declare replacement.
30946         * lib/openat.c (fstatat): Deal with lstat and stat being function
30947         macros.
30948         * modules/openat (Depends-on): Add inline.
30949         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30950         * doc/posix-functions/stat.texi (stat): Likewise.
30951         * modules/stat-tests: New test.
30952         * tests/test-stat.c: Likewise.
30953
30954 2009-09-19  Jim Meyering  <meyering@redhat.com>
30955
30956         syntax-check: detect unnecessary inclusion of canonicalize.h
30957         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
30958
30959 2009-09-19  Eric Blake  <ebb9@byu.net>
30960
30961         canonicalize-lgpl: adjust clients to use correct header
30962         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
30963         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
30964         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
30965         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
30966         * lib/progreloc.c (includes): Likewise.
30967
30968 2009-09-19  Jim Meyering  <meyering@redhat.com>
30969
30970         test-posixtm.c: correct a comment
30971         * tests/test-posixtm.c: Correct first-line comment.
30972         Spotted by Eric Blake.
30973
30974 2009-09-16  Jim Meyering  <meyering@redhat.com>
30975
30976         posixtm-tests: make T const-correct; add a test case
30977         * tests/test-posixtm.c (T): Declare const.
30978         Add a test for -(2^31+1).
30979         Remove useless can-succeed-only-in-2002 test.
30980
30981         posixtm-tests: adjust the sole failing test
30982         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
30983         expected output matches what mktime now produces.  Cross-checked via
30984         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
30985
30986         posixtm: move #ifdef'd tests into a new module
30987         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
30988         * tests/test-posixtm.c: ... this new file.
30989         * modules/posixtm-tests: New module.
30990
30991 2009-09-19  Eric Blake  <ebb9@byu.net>
30992
30993         openat: simplify use of at-func.c
30994         * lib/at-func.c (includes): Include prerequisites here, to
30995         simplify requirements on client files.
30996         * lib/openat-priv.h: Add double-inclusion guard.
30997         * lib/faccessat.c (includes): Simplify.
30998         * lib/fchmodat.c (includes): Likewise.
30999         * lib/fchownat.c (includes): Likewise.
31000         * lib/mkdirat.c (includes): Likewise.
31001         * lib/mkfifoat.c (includes): Likewise.
31002         * lib/symlinkat.c (includes): Likewise.
31003
31004         openat: allow return of fd 0
31005         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31006         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31007         unistd-safer.
31008         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31009         <fcntl.h>; this module does not leak fds.
31010         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31011         must be allowed to return 0, leaving openat_safer to add the
31012         safety.
31013         (openat_permissive): Avoid writing to just-opened fd 2 if
31014         restoring the current directory fails.
31015         * lib/openat-die.c (openat_restore_fail): Add comment.
31016         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31017         (save_cwd): Guarantee safe fd, but without use of open_safer.
31018         * tests/test-openat.c: New test.
31019         * modules/openat-tests (Files, Makefile.am): Distribute and build
31020         new file.
31021
31022         relocatable-prog-wrapper: fix build
31023         * modules/relocatable-prog-wrapper (Files): Update name of
31024         canonicalize m4 file, broken on 2009-09-17.
31025         Reported by emad hajjar <aleppos@hotmail.com>.
31026
31027 2009-09-19  Bruno Haible  <bruno@clisp.org>
31028
31029         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31030         * lib/safe-alloc.c: Likewise.
31031         Reported by Ian Beckwith <ianb@erislabs.net>.
31032
31033 2009-09-18  Bruno Haible  <bruno@clisp.org>
31034
31035         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31036         Reported by <erobles@sensacd.com.mx>.
31037
31038 2009-09-17  Eric Blake  <ebb9@byu.net>
31039
31040         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31041         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31042         slashes when checking if last component is missing.
31043         * tests/test-canonicalize.c (main): Test this.
31044
31045         canonicalize, canonicalize-lgpl: honor // if distinct from /
31046         * modules/canonicalize (Files): Add double-slash-root.m4.
31047         * modules/canonicalize-lgpl (Files): Likewise.
31048         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31049         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31050         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31051         fallback definition.
31052         (canonicalize_filename_mode): Use it to protect //.
31053         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31054         (__realpath): Likewise.
31055         * tests/test-canonicalize.c (main): Test this.
31056         * tests/test-canonicalize-lgpl.c (main): Likewise.
31057         * modules/canonicalize-tests (Depends-on): Add same-inode.
31058         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31059
31060         canonicalize-lgpl: fix glibc bug with trailing slash
31061         * m4/canonicalize-lgpl.m4: Move contents...
31062         * m4/canonicalize.m4: ...here.
31063         (gl_CANONICALIZE_LGPL): Factor realpath check...
31064         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31065         glibc 2.3.5 bug, fixed 2005-04-27.
31066         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31067         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31068         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31069         * modules/canonicalize-lgpl (Files): Manage file rename.
31070         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31071         * modules/stdlib (Makefile.am): Substitute witness.
31072         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31073         is needed.
31074         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31075         replacement is required.
31076         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31077         * doc/glibc-functions/canonicalize_file_name.texi
31078         (canonicalize_file_name): Document this.
31079         * doc/posix-functions/realpath.texi (realpath): Likewise.
31080
31081         canonicalize-lgpl: reject non-directory with trailing slash
31082         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31083         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31084         catches failures in glibc 2.3.5.
31085         * tests/test-canonicalize.c (main): Likewise.
31086
31087         canonicalize-lgpl: use native realpath if it works
31088         * lib/canonicalize-lgpl.c (realpath): Guard with
31089         FUNC_REALPATH_WORKS.
31090         * lib/stdlib.in.h (realpath): Make declaration optional based on
31091         HAVE_REALPATH.
31092         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31093         native realpath works.
31094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31095         * modules/stdlib (Makefile.am): Substitute witness.
31096
31097         canonicalize, canonicalize-lgpl: use <stdlib.h>
31098         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31099         (Include): Mention <stdlib.h>.
31100         (configure.ac): Mention functions we provide.
31101         * modules/canonicalize (configure.ac): Likewise.
31102         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31103         realpath if canonicalize_file_name is missing.
31104         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31105         * modules/stdlib (Makefile.am): Substitute witnesses.
31106         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31107         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31108         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31109         * NEWS: Document this.
31110         * doc/glibc-functions/canonicalize_file_name.texi
31111         (canonicalize_file_name): Likewise.
31112         * doc/posix-functions/realpath.texi (realpath): Likewise.
31113         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31114
31115         test-canonicalize: consolidate into single C program
31116         * tests/test-canonicalize.sh: Delete; move setup into...
31117         * tests/test-canonicalize.c (main): ...the program, making it
31118         easier to run in debugger.  Add some tests.
31119         * modules/canonicalize-tests (Files): Remove unused file.
31120         (Depends-on): Add progname.
31121         (configure.ac, Makefile.am): Simplify.
31122
31123         test-canonicalize-lgpl: consolidate into single C program
31124         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31125         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31126         easier to run in debugger.  Add some tests.
31127         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31128         (configure.ac, Makefile.am): Simplify.
31129
31130         canonicalize: avoid resolvepath
31131         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31132         unnecessary checks.
31133         * lib/canonicalize.c (includes): Simplify.
31134         (canonicalize_file_name): Drop resolvepath implementation.
31135         * modules/canonicalize (Depends-on): Drop filenamecat.
31136
31137         canonicalize: don't lose errno
31138         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31139         over calls to free.
31140
31141         canonicalize: simplify errno handling
31142         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31143         assignment.
31144
31145         canonicalize, canonicalize-lgpl: update module dependencies
31146         * modules/canonicalize (Depends-on): Add extensions, lstat,
31147         pathmax, stdlib.
31148         (Files): Drop pathmax.h.
31149         (configure.ac): Adjust macro name.
31150         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
31151         lstat, stdlib, sys_stat.
31152         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
31153         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
31154         extensions.
31155         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
31156         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
31157         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
31158         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
31159         declaration, if available.
31160         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
31161         we can rely on the readlink module.
31162         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
31163         (includes): Use <unistd.h> unconditionally.
31164
31165 2009-09-17  Eric Blake  <ebb9@byu.net>
31166
31167         maint: make Include sections of modules consistent
31168         * modules/alloca: Use only header name; no need to list #include.
31169         * modules/alloca-opt: Likewise.
31170         * modules/arpa_inet: Likewise.
31171         * modules/canon-host: Likewise.
31172         * modules/configmake: Likewise.
31173         * modules/dirent: Likewise.
31174         * modules/eealloc: Likewise.
31175         * modules/environ: Likewise.
31176         * modules/fchdir: Likewise.
31177         * modules/fcntl: Likewise.
31178         * modules/fcntl-h: Likewise.
31179         * modules/gethrxtime: Likewise.
31180         * modules/gettime: Likewise.
31181         * modules/ignore-value: Likewise.
31182         * modules/inet_ntop: Likewise.
31183         * modules/inet_pton: Likewise.
31184         * modules/inttypes: Likewise.
31185         * modules/isnand-nolibm: Likewise.
31186         * modules/isnanf-nolibm: Likewise.
31187         * modules/mbchar: Likewise.
31188         * modules/mbfile: Likewise.
31189         * modules/mbiter: Likewise.
31190         * modules/mbuiter: Likewise.
31191         * modules/netdb: Likewise.
31192         * modules/netinet_in: Likewise.
31193         * modules/nproc: Likewise.
31194         * modules/pagealign_alloc: Likewise.
31195         * modules/poll: Likewise.
31196         * modules/printf-frexp: Likewise.
31197         * modules/pthread: Likewise.
31198         * modules/putenv: Likewise.
31199         * modules/random_r: Likewise.
31200         * modules/relocatable-prog: Likewise.
31201         * modules/search: Likewise.
31202         * modules/select: Likewise.
31203         * modules/selinux-h: Likewise.
31204         * modules/settime: Likewise.
31205         * modules/signal: Likewise.
31206         * modules/size_max: Likewise.
31207         * modules/socklen: Likewise.
31208         * modules/ssize_t: Likewise.
31209         * modules/stdarg: Likewise.
31210         * modules/stdbool: Likewise.
31211         * modules/stddef: Likewise.
31212         * modules/stdint: Likewise.
31213         * modules/stdio: Likewise.
31214         * modules/stdlib: Likewise.
31215         * modules/string: Likewise.
31216         * modules/strings: Likewise.
31217         * modules/sys_file: Likewise.
31218         * modules/sys_ioctl: Likewise.
31219         * modules/sys_select: Likewise.
31220         * modules/sys_socket: Likewise.
31221         * modules/sys_stat: Likewise.
31222         * modules/sys_time: Likewise.
31223         * modules/sys_times: Likewise.
31224         * modules/sys_utsname: Likewise.
31225         * modules/sys_wait: Likewise.
31226         * modules/sysexits: Likewise.
31227         * modules/time: Likewise.
31228         * modules/times: Likewise.
31229         * modules/tmpfile: Likewise.
31230         * modules/trim: Likewise.
31231         * modules/unistd: Likewise.
31232         * modules/wchar: Likewise.
31233         * modules/wctype: Likewise.
31234
31235 2009-09-17  Bruno Haible  <bruno@clisp.org>
31236
31237         Make getdate.y compile on QNX and NetBSD 5 / i386.
31238         * m4/getdate.m4 (gl_GETDATE): Conditionally define
31239         TIME_T_FITS_IN_LONG_INT.
31240         * lib/getdate.y (long_time_t): New type.
31241         (relative_time): Change type of 'seconds' field to long_time_t.
31242         (get_date): Update types of local variables. Check against overflow
31243         during conversion from long_time_t to time_t.
31244         Reported by Matt Kraai <kraai@ftbfs.org>
31245         and Hasso Tepper <hasso@netbsd.org>.
31246
31247 2009-09-17  Bruno Haible  <bruno@clisp.org>
31248
31249         * modules/COPYING: Update copyright years.
31250         * modules/README: Likeiwse.
31251         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
31252         Reported by Ian Beckwith <ianb@erislabs.net>.
31253
31254 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31255
31256         * users.txt: Update references for gnuit package.
31257
31258 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31259
31260         * m4/getdelim.m4: Fix typo in copyright line.
31261
31262 2009-09-17  Bruno Haible  <bruno@clisp.org>
31263
31264         * lib/atoll.c: Use the standard header with GPL copyright.
31265         * lib/argz.in.h: Likewise.
31266         * lib/glob.c: Likewise.
31267         * lib/glob-libc.h: Likewise.
31268         * lib/random_r.c: Likewise.
31269         * lib/siglist.h: Likewise.
31270         * lib/strsignal.c: Likewise.
31271         Reported by Ian Beckwith <ianb@erislabs.net>.
31272
31273 2009-09-17  Eric Blake  <ebb9@byu.net>
31274
31275         rmdir: ensure correct dependency order
31276         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31277
31278 2009-09-17  Bruno Haible  <bruno@clisp.org>
31279
31280         Disable assertion that fails on NetBSD 5 / i386.
31281         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31282         Reported by Sam Steingold <sds@gnu.org>
31283         and Hasso Tepper <hasso@netbsd.org>.
31284
31285 2009-09-16  Eric Blake  <ebb9@byu.net>
31286
31287         unlinkdir: port to mingw
31288         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31289         on which no one can unlink a directory.
31290
31291         stdlib: sort witness names
31292         * modules/stdlib (Makefile.am): Sort replacements.
31293         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31294         * lib/stdlib.in.h: Likewise.
31295
31296         parse-duration-tests: avoid link failure
31297         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31298         LIBINTL.
31299         Reported by Tom G. Christensen.
31300
31301         openat-tests: ensure unlinkat behaves like rmdir
31302         * tests/test-rmdir.c (main): Factor guts...
31303         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31304         * modules/rmdir-tests (Files): Ship new file.
31305         * modules/openat-tests: New test.
31306         * tests/test-unlinkat.c: Likewise.
31307
31308         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
31309         * modules/rmdir-errno (Status, Notice): Now obsolete.
31310
31311         rmdir: work around cygwin 1.5.x and mingw bugs
31312         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
31313         * lib/rmdir.c (rmdir): Work around it.
31314         * modules/rmdir (Status, Notice): No longer obsolete.
31315         (Files): Add dos.m4.
31316         (Depends-on): Add unistd.
31317         (configure.ac): Set witnesses.
31318         (License): Relax to LGPLv2+.
31319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
31320         * modules/unistd (Makefile.am): Substitute witnesses.
31321         * lib/unistd.in.h (rmdir): Declare replacement.
31322         * doc/posix-functions/rmdir.texi (rmdir): Document this.
31323         * modules/rmdir-tests: New tests.
31324         * tests/test-rmdir.c: Likewise.
31325
31326 2009-09-15  Eric Blake  <ebb9@byu.net>
31327
31328         fchdir: improve use of replacement functions
31329         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
31330         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
31331         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
31332         REPLACE_CLOSEDIR.
31333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
31334         * modules/sys_stat (Makefile.am): Substitute correct witness.
31335         * modules/dirent (Makefile.am): Likewise.
31336         * modules/unistd (Makefile.am): Likewise.
31337         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
31338         * lib/unistd.in.h (dup): Likewise.
31339         * lib/sys_stat.in.h (fstat): Likewise.
31340
31341         maint: ignore gnulib-tool temp files
31342         * .gitignore: Ignore files created during gnulib-tool --test.
31343
31344 2009-09-13  Jim Meyering  <meyering@redhat.com>
31345
31346         posixtm: don't reject a time that specify "60" as the number of seconds
31347         * lib/posixtm.c (posixtime): The code to reject invalid dates
31348         would also reject a time specified with the .60 suffix.
31349         But POSIX allows that, in order to accommodate leap seconds.
31350         So don't reject it.
31351         (main): Adjust tests accordingly.
31352         * modules/posixtm (Depends-on): Add stpcpy.
31353
31354 2009-09-11  Jim Meyering  <meyering@redhat.com>
31355
31356         announce-gen: include [$release_type] in emitted Subject:
31357         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
31358         e.g., [stable] in the emitted Subject: line.
31359
31360 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31361
31362         Remove obsolete macros from several modules.
31363         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
31364         obsolete Autoconf macros with their modern counterparts.
31365         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
31366         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
31367         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
31368         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31369         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
31370         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31371         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31372         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31373         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
31374         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
31375         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31376         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31377         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
31378         * m4/sockets.m4 (gl_SOCKETS): Likewise.
31379         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
31380         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
31381         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31382         * m4/time_r.m4 (gl_TIME_R): Likewise.
31383         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
31384         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
31385         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31386
31387         Fix copyright header in build-aux scripts.
31388         * build-aux/git-version-gen: Fix copyright header to match GPLv3
31389         recommendation.
31390         * build-aux/ncftpput-ftp: Likewise.
31391         * build-aux/update-copyright: Likewise.
31392
31393 2009-09-09  Eric Blake  <ebb9@byu.net>
31394
31395         test-link: allow Linux choice of errno
31396         * tests/test-link.c (main): Relax test for alternate error.
31397
31398         strndup: fix improper m4 caching
31399         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
31400         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
31401         (gl_PREREQ_STRNDUP): Delete.
31402         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
31403         * modules/string (Makefile.am): Substitute it.
31404         * lib/string.in.h (strndup): Modernize prototype.
31405
31406         getcwd: port to mingw
31407         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
31408         different from the POSIX assumptions made throughout the getcwd
31409         module; fortunately, the mingw getcwd does not need replacement.
31410         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
31411         * modules/getcwd-tests: New test.
31412         * tests/test-getcwd.c: Likewise.
31413
31414         link: fix platform bugs
31415         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
31416         * lib/link.c (link): Work around them.  Fix related mingw bug.
31417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
31418         * modules/unistd (Makefile.am): Substitute it.
31419         * lib/unistd.in.h (link): Declare replacement.
31420         * doc/posix-functions/link.texi (link): Document this.
31421         * modules/link (Depends-on): Add strdup-posix, sys_stat.
31422
31423         test-link: consolidate into single C program, test more cases
31424         * tests/test-link.sh: Delete.
31425         * tests/test-link.c: Test more error conditions.  Exposes bugs on
31426         at least Cygwin and Solaris.
31427         * modules/link-tests (Files): Remove unused file.
31428         (Depends-on): Add errno, sys_stat.
31429         (Makefile.am): Simplify.
31430
31431 2009-09-08  Bruno Haible  <bruno@clisp.org>
31432
31433         Work around towlower, towupper bug on mingw.
31434         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
31435         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
31436         * doc/posix-functions/towlower.texi: Mention the mingw bug.
31437         * doc/posix-functions/towupper.texi: Likewise.
31438         Reported by Eric Blake.
31439
31440 2009-09-08  Jim Meyering  <meyering@redhat.com>
31441
31442         build: don't try to run autoheader if we don't use it
31443         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
31444         is not used in configure.ac.
31445
31446 2009-09-08  Eric Blake  <ebb9@byu.net>
31447
31448         euidaccess: fix compilation error
31449         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
31450
31451         rawmemchr: relax license
31452         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
31453         okay.
31454         Reported by Jim Meyering.
31455
31456         mkfifoat: new module
31457         * modules/mkfifoat: New file.
31458         * lib/mkfifoat.c: Likewise.
31459         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
31460         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31461         * modules/sys_stat (Makefile.am): Use them.
31462         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
31463         * MODULES.html.sh (File system functions): Mention module.
31464         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31465         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31466         * modules/mkfifoat-tests: New test.
31467         * tests/test-mkfifoat.c: Likewise.
31468
31469         strchrnul: relax license
31470         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
31471         okay.
31472         Reported by Jim Meyering.
31473
31474 2009-09-08  Eric Blake  <ebb9@byu.net>
31475
31476         fstatat: fix compilation on Solaris
31477         * lib/fstatat.c (includes): Add fcntl.h.
31478         Reported by Pádraig Brady.
31479
31480 2009-09-07  Eric Blake  <ebb9@byu.net>
31481
31482         rename: modernize replacement
31483         * modules/rename (Depends-on): Add stdio.
31484         (configure.ac): Declare witness.
31485         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
31486         stdio take care of replacement.
31487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31488         * modules/stdio (Makefile.am): Substitute them.
31489         * lib/stdio.in.h (rename): Declare replacement.
31490         * lib/rename.c (includes): Allow cross-compilation to non-windows
31491         machines.
31492         * doc/posix-functions/rename.texi (rename): Improve
31493         documentation.
31494
31495         stdio: sort witness names
31496         * modules/stdio (Makefile.am): Sort replacements.
31497         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31498         * lib/stdio.in.h: Likewise.
31499
31500         getcwd: minor cleanups
31501         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
31502         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
31503
31504         openat: provide more convenience names
31505         * modules/faccessat (configure.ac): Add C witness.
31506         * lib/unistd.in.h (readlinkat): Fix typo.
31507         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
31508         convenience wrappers.
31509         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
31510         wrappers in syntax checks.
31511
31512 2009-09-06  Eric Blake  <ebb9@byu.net>
31513
31514         doc: fix comments in recent patches
31515         * lib/faccessat.c: Mention correct function.
31516         * lib/fchmodat.c: Likewise.
31517         * lib/fchownat.c: Likewise.
31518         * lib/symlinkat.c: Likewise.
31519         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
31520         constants.
31521
31522         faccessat, symlinkat: continue cleanup of previous patch
31523         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
31524         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31525         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
31526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
31527         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
31528         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
31529         set.
31530
31531 2009-09-06  Bruno Haible  <bruno@clisp.org>
31532
31533         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
31534         (fstatat): Declare if GNULIB_FSTATAT is set.
31535         (mkdirat): Declare if GNULIB_MKDIRAT is set.
31536         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
31537         (unlinkat): Declare if GNULIB_UNLINKAT is set.
31538         * modules/fcntl-h (Files): Remove m4/openat.m4.
31539         * modules/sys_stat (Files): Remove m4/openat.m4.
31540         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
31541         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
31542         * modules/unistd (Files): Remove m4/openat.m4.
31543         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
31544         GNULIB_OPENAT.
31545         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
31546         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
31547         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
31548         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
31549         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
31550         gl_OPENAT_DEFAULTS.
31551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
31552         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
31553         Don't require gl_OPENAT_DEFAULTS.
31554         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
31555         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
31556         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
31557         (gl_OPENAT_DEFAULTS): Remove macro.
31558
31559 2009-09-06  Bruno Haible  <bruno@clisp.org>
31560
31561         * modules/openat (configure.ac): Remove unneeded witness.
31562
31563 2009-09-06  Bruno Haible  <bruno@clisp.org>
31564
31565         Set errno to ENOSYS when a function is entirely unsupported.
31566         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
31567         EOPNOTSUPP.
31568         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31569         * modules/chown (Depends-on): Remove errno.
31570
31571 2009-09-06  Bruno Haible  <bruno@clisp.org>
31572
31573         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
31574
31575 2009-09-06  Bruno Haible  <bruno@clisp.org>
31576
31577         * lib/sys_stat.in.h: Fix preprocessor command indentation.
31578
31579 2009-09-06  Ben Pfaff  <blp@gnu.org>
31580             Bruno Haible  <bruno@clisp.org>
31581
31582         Work around a glibc bug in strtok_r.
31583         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
31584         Undefine if UNDEFINE_STRTOK_R is set.
31585         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
31586         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31587         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
31588         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
31589         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
31590         UNDEFINE_STRTOK_R.
31591         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
31592
31593 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31594
31595         exclude: minor fix
31596         * lib/exclude.c: Include wctype.h
31597
31598 2009-09-06  Akim Demaille  <demaille@gostai.com>
31599
31600         bootstrap: improve error message
31601         * build-aux/bootstrap (find_tool): Upon failure, report the list
31602         of candidates.
31603         Honor the initial value of the envvar.
31604
31605 2009-09-05  Eric Blake  <ebb9@byu.net>
31606
31607         symlinkat: new module
31608         * modules/symlinkat: New file.
31609         * lib/symlinkat.c: Likewise.
31610         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
31611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31612         * modules/unistd (Makefile.am): Use them.
31613         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
31614         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
31615         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
31616         * MODULES.html.sh (File system functions): Mention module.
31617         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31618         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31619         * modules/symlinkat-tests: New test.
31620         * tests/test-symlinkat.c: Likewise.
31621
31622         test-openat-safer: add more checks
31623         * tests/test-openat-safer.c (main): Check more code paths.
31624
31625 2009-09-05  Jim Meyering  <meyering@redhat.com>
31626
31627         syntax-check: detect unnecessary inclusion of openat.h
31628         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
31629
31630 2009-09-05  Bruno Haible  <bruno@clisp.org>
31631
31632         Support towlower, towupper.
31633         * doc/posix-functions/towlower.texi: Mention module wctype.
31634         * doc/posix-functions/towupper.texi: Likewise.
31635         * lib/wctype.in.h (towlower, towupper): New functions.
31636         * tests/test-wctype.c: Include stdio.h, stdlib.h.
31637         (ASSERT): New macro.
31638         (e): New variable.
31639         (main): Test also towlower, towupper. Test WEOF argument.
31640         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31641
31642 2009-09-05  Bruno Haible  <bruno@clisp.org>
31643
31644         Fix conversion behaviour when the input is invalid.
31645         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
31646         mark occurring in first pass of indirect conversion.
31647         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
31648         input.
31649         Found by clang's static analyzer.
31650
31651 2009-09-05  Bruno Haible  <bruno@clisp.org>
31652
31653         * tests/test-striconveh.c (main): Test indirect conversion on platforms
31654         where direct conversion is possible.
31655
31656 2009-09-04  Eric Blake  <ebb9@byu.net>
31657
31658         openat: fail with ENOENT on empty name
31659         * lib/openat-proc.c (openat_proc_name): Special-case the empty
31660         buffer.
31661
31662         link-follow: fix logic bug in prior patch
31663         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
31664         reversed sense of yes and no in prior patch.  Avoid confusing
31665         compilation failure with desired semantics.
31666
31667         link-follow: accomodate mingw and cross-compilation
31668         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
31669         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
31670         cross-compilation results to -1, to make linkat easier to
31671         implement when cross-compiling.  Trivially support mingw.
31672         * modules/link-follow (configure.ac): Call new name.
31673         * NEWS: Mention this.
31674
31675 2009-09-03  Eric Blake  <ebb9@byu.net>
31676
31677         faccessat: compile replacement
31678         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
31679         needed.
31680
31681         fts: fix compilation error
31682         * lib/fts.c (includes): Re-add "openat.h", for
31683         openat_needs_fchdir.
31684
31685         faccessat: new module
31686         * modules/faccessat: New file.
31687         * lib/faccessat.c: Likewise.
31688         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31690         * modules/unistd (Makefile.am): Use it.
31691         * lib/unistd.in.h (faccessat): Declare it.
31692         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
31693         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
31694         * MODULES.html.sh (File system functions): Mention it.
31695         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
31696         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31697
31698         euidaccess: prefer POSIX over non-standard implementation
31699         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
31700         * lib/euidaccess.c (euidaccess): Use it if available.
31701
31702         openat: make template easier to use
31703         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
31704         AT_FUNC_F2 to be undefined.
31705         (VALIDATE_FLAG): New macro; use it to reject bad flags.
31706         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
31707         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
31708         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
31709         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
31710         Likewise.
31711         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
31712         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
31713         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
31714         Likewise.
31715
31716         openat: declare in POSIX headers
31717         * NEWS: Mention this.
31718         * modules/openat (configure.ac): Declare witnesses.
31719         (Depends-on): Add fcntl-h, sys_stat, unistd.
31720         (Include): Mention correct headers.
31721         * modules/fcntl-h (Depends-on): Add link-warning.
31722         (Files): Add openat.m4.
31723         (Makefile.am): Substitute witnesses.
31724         * modules/sys_stat (Files, Makefile.am): Likewise.
31725         * modules/unistd (Files, Makefile.am): Likewise.
31726         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
31727         (gl_OPENAT_DEFAULTS): New macro.
31728         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
31729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
31730         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
31731         (SYS_STAT_H): Remove unused variable.
31732         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
31733         * lib/fcntl--.h (includes): Remove unneeded header.
31734         * lib/openat-safer.c (includes): Likewise.
31735         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
31736         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
31737         appropriate headers.
31738         (__OPENAT_PREFIX): Delete.
31739         * lib/fcntl.in.h (openat): Provide declaration.
31740         (AT_FDCWD): Fix Solaris bug.
31741         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
31742         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
31743         * lib/fchmodat.c (includes):  Adjust to find declaration.
31744         * lib/fchownat.c (includes): Likewise.
31745         * lib/mkdirat.c (includes): Likewise.
31746         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
31747         still visible.
31748
31749 2009-09-02  Eric Blake  <ebb9@byu.net>
31750
31751         errno: use consistently
31752         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
31753         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
31754         * lib/canonicalize.c (ELOOP): Likewise.
31755         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
31756         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
31757         * lib/lchown.c (EOPNOTSUPP): Likewise.
31758         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
31759         * lib/savewd.c (ESTALE): Likewise.
31760         * lib/settime.c (ENOSYS): Likewise.
31761         * lib/utimens.c (ENOSYS): Likewise.
31762         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
31763         * lib/chdir-safer.c (ELOOP): Likewise.
31764         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
31765         * modules/c-stack (Depends-on): Add errno.
31766         * modules/canonicalize (Depends-on): Likewise.
31767         * modules/chdir-safer (Depends-on): Likewise.
31768         * modules/fdopendir (Depends-on): Likewise.
31769         * modules/inet_ntop (Depends-on): Likewise.
31770         * modules/inet_pton (Depends-on): Likewise.
31771         * modules/lchown (Depends-on): Likewise.
31772         * modules/openat (Depends-on): Likewise.
31773         * modules/savewd (Depends-on): Likewise.
31774         * modules/settime (Depends-on): Likewise.
31775         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
31776
31777         fts: avoid leaking fds
31778         * modules/fts (Depends-on): Add cloexec.
31779         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
31780         flag.
31781
31782         fts: make directory fds more robust
31783         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
31784         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
31785
31786         backupfile, chdir-long, fts, savedir: make safer
31787         * lib/backupfile.c (includes): Use "dirent--.h", since
31788         numbered_backup can write to stderr during readdir.
31789         * lib/savedir.c (includes): Likewise.
31790         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
31791         emulation can write to stderr on failure.
31792         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
31793         * lib/getcwd.c: Document why opendir_safer is unused.
31794         * lib/glob.c: Likewise.
31795         * lib/scandir.c: Likewise.
31796         * lib/openat-proc.c: Likewise, for open_safer.
31797         * modules/backupfile (Depends-on): Add dirent-safer.
31798         * modules/savedir (Depends-on): Likewise.
31799         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
31800         * modules/chdir-long (Depends-on): Add openat-safer.
31801
31802         openat-safer: new module
31803         * modules/openat-safer: New file.
31804         * lib/openat-safer.c: Likewise.
31805         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
31806         * lib/fcntl-safer.h (openat_safer): Declare.
31807         * lib/fcntl--.h (openat): Override.
31808         * MODULES.html.sh (File descriptor based I/O): Mention it.
31809         * lib/openat.h: Add double-inclusion guards.
31810         * lib/openat.c (includes): Only include "fcntl-safer.h", not
31811         "fcntl--.h", so we can implement openat.
31812         * modules/openat-safer-tests: New test.
31813         * tests/test-openat-safer.c: New file.
31814
31815         dirent-safer: new module
31816         * modules/dirent-safer: New file.
31817         * lib/dirent--.h: Likewise.
31818         * lib/dirent-safer.h: Likewise.
31819         * lib/opendir-safer.c: Likewise.
31820         * m4/dirent-safer.m4: Likewise.
31821         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
31822         * modules/dirent-safer-tests: New test.
31823         * tests/test-dirent-safer.c: New file.
31824         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
31825
31826         fdopendir: optimize on mingw
31827         * lib/unistd.in.h (_gl_directory_name): New prototype.
31828         * lib/fchdir.c (_gl_directory_name): Implement it.
31829         (fchdir): Use it to simplify implementation.
31830         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
31831         fchdir, when available, to avoid calling [f]chdir().
31832
31833         fdopendir: split into its own module
31834         * lib/openat.c (fdopendir): Move...
31835         * lib/fdopendir.c: ...into new file.
31836         * modules/fdopendir: New module.
31837         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
31838         * modules/openat (Depends-on): Add fdopendir.
31839         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
31840         fdopendir here.
31841         * modules/savedir (Depends-on): Only need fdopendir, not full
31842         openat.
31843         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
31844         * lib/openat.h (fdopendir): Drop prototype.
31845         * lib/dirent.in.h (fdopendir): Provide prototype.
31846         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
31847         * modules/dirent (Makefile.am): Substitute them.
31848         * MODULES.html.sh (File system functions): Mention it.
31849         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
31850         * modules/fdopendir-tests: New file.
31851         * tests/test-fdopendir.c: Likewise.
31852
31853         fchdir: use more consistent macro convention
31854         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
31855         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
31856         REPLACE_FCHDIR, rather than relying on config.h macros.
31857         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
31858         inside a single make-time REPLACE_FCHDIR block, rather than using
31859         the config.h FCHDIR_REPLACEMENT.
31860         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
31861         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
31862         Manage fstat replacement.
31863         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
31864         REPLACE_FCHDIR.
31865         * modules/sys_stat (Files): Add m4/unistd_h.m4.
31866         (Makefile.am): Substitute REPLACE_FCHDIR.
31867         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
31868         FCHDIR_REPLACEMENT.
31869         * lib/dup-safer.c (dup_safer): Likewise.
31870         * lib/dup2.c (rpl_dup2): Likewise.
31871         * lib/dup3.c (rpl_dup3): Likewise.
31872         * lib/open.c (rpl_open): Likewise.
31873
31874         fchdir: simplify error handling, and support dup3
31875         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
31876         stdbool, malloc-posix, realloc-posix.
31877         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
31878         (ensure_dirs_slot): Return false on allocation failure.
31879         (rpl_dup2): Delete.
31880         (_gl_register_dup): New function.
31881         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
31882         (_gl_register_fd): Close fd on allocation failure.
31883         * lib/fcntl.in.h (_gl_register_fd): Update signature.
31884         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
31885         prototype.
31886         (rpl_dup2_fchdir): Delete prototype.
31887         * lib/open.c (open): Update caller.
31888         * lib/dup2.c (dup2): Track fchdir metadata.
31889         * lib/dup3.c (dup3): Likewise.
31890         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
31891         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
31892
31893 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31894
31895         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
31896         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
31897         don't pass arguments to AC_OUTPUT.
31898
31899 2009-09-02  Bruno Haible  <bruno@clisp.org>
31900
31901         * modules/mkdtemp (License): Relicense under LGPLv2+.
31902         Reported by Paolo Bonzini.
31903
31904 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31905
31906         Replace uses of obsolete autoconf macros in Jim's modules.
31907         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
31908         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
31909         can evoke a warning from autoconf when run with -Wobsolete
31910         enabled.  They were declared obsolete for good reasons (see
31911         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
31912         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
31913         should not continue using the deprecated macros.
31914         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
31915         obsolete Autoconf macros with modern counterparts.
31916         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31917         * m4/dos.m4 (gl_AC_DOS): Likewise.
31918         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
31919         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
31920         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
31921         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
31922         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
31923         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
31924         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
31925         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
31926         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
31927         Likewise.
31928         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
31929         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
31930         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
31931         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
31932         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
31933         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
31934
31935 2009-09-01  Eric Blake  <ebb9@byu.net>
31936
31937         fchdir: fix off-by-one bug in previous patch
31938         * lib/fchdir.c (rpl_fstat): Use correct bounds.
31939         (_gl_unregister_fd): Delete useless if.
31940
31941 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
31942
31943         maint.mk: sort the list of syntax-check rules
31944         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
31945         easier to get a sense of progress when the rules are run sequentially
31946         and take a long time.
31947
31948 2009-09-01  Simon Josefsson  <simon@josefsson.org>
31949
31950         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
31951         * modules/netinet_in: Likewise.
31952         * modules/sys_file: Likewise.
31953         * modules/sys_ioctl: Likewise.
31954         * modules/sys_select: Likewise.
31955         * modules/sys_socket: Likewise.
31956         * modules/sys_stat: Likewise.
31957         * modules/sys_time: Likewise.
31958         * modules/sys_times: Likewise.
31959         * modules/sys_utsname: Likewise.
31960         * modules/sys_wait: Likewise.
31961
31962 2009-09-01  Jim Meyering  <meyering@redhat.com>
31963
31964         fts: help ensure that return values are not ignored
31965         * lib/fts_.h (__GNUC_PREREQ): Define.
31966         (__attribute_warn_unused_result__): Define.
31967         (fts_children, fts_close, fts_open, fts_read): Declare with
31968         __attribute_warn_unused_result__.
31969
31970         fts: fts_close now fails also when closing a dir file descriptor fails
31971         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
31972         and propagate to caller, along with errno.
31973
31974         announce-gen: correct formatting in --help output
31975         * build-aux/announce-gen (usage): Move the one-line description in
31976         --help output "up", to where it belongs, just after Usage:.
31977
31978 2009-08-31  Eric Blake  <ebb9@byu.net>
31979
31980         fchdir: port to mingw
31981         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
31982         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
31983         opened, then use a substitute.
31984         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
31985         replacement.
31986         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
31987         (_gl_register_fd): No need to check stat if open already filters
31988         all directories.
31989         (fchdir): Fix error condition to match POSIX.
31990         * modules/fchdir (Depends-on): Add sys_stat.
31991         * doc/posix-functions/open.texi (open): Document the limitation.
31992         * modules/fchdir-tests: New file.
31993         * tests/test-fchdir.c: Likewise.
31994
31995         canonicalize: allow cross-testing from cygwin to mingw
31996         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
31997         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
31998         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
31999         Likewise.
32000         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32001         target does not support symlinks.
32002         * tests/test-canonicalize-lgpl.sh: Likewise.
32003
32004         chown: avoid compilation warning on mingw
32005         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32006         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32007         mingw.
32008         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32009         * modules/chown (Depends-on): Add errno.
32010
32011 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32012
32013         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32014         command.
32015
32016 2009-08-31  Jim Meyering  <meyering@redhat.com>
32017
32018         canonicalize: remove useless initialization
32019         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32020         initialization of local, "end".
32021
32022 2009-08-30  Bruno Haible  <bruno@clisp.org>
32023
32024         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32025         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32026         ENOSYS.
32027
32028 2009-08-30  Bruno Haible  <bruno@clisp.org>
32029
32030         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32031         /usr/xpg4/bin/tr when it exists.
32032         * tests/test-pipe-filter-gi1.sh: Likewise.
32033
32034 2009-08-30  Bruno Haible  <bruno@clisp.org>
32035
32036         Work around deficient /usr/bin/id program on Solaris.
32037         * tests/test-file-has-acl.sh (ID): New variable.
32038         * tests/test-set-mode-acl.sh (ID): Likewise.
32039         * tests/test-copy-acl.sh (ID): Likewise.
32040         * tests/test-copy-file.sh (ID): Likewise.
32041
32042 2009-08-30  Bruno Haible  <bruno@clisp.org>
32043
32044         New module 'xstriconveh'.
32045         * lib/xstriconveh.h: New file.
32046         * lib/xstriconveh.c: New file.
32047         * modules/xstriconveh: New file.
32048
32049 2009-08-30  Bruno Haible  <bruno@clisp.org>
32050
32051         Make it easier to use mem_cd_iconveh.
32052         * lib/striconveh.h (iconveh_t): New type.
32053         (iconveh_open, iconveh_close): New declarations.
32054         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32055         with a single 'const iconveh_t *' argument.
32056         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32057         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32058         with a single 'const iconveh_t *' argument.
32059         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32060         * tests/test-striconveh.c (main): Update.
32061         * NEWS: Mention the change.
32062
32063 2009-08-30  Bruno Haible  <bruno@clisp.org>
32064
32065         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32066         problem.
32067
32068 2009-08-30  Bruno Haible  <bruno@clisp.org>
32069
32070         Work around iconv_open problem on Solaris.
32071         * lib/iconv_open-solaris.gperf: New file.
32072         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32073         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32074         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32075         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32076         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32077         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32078
32079 2009-08-29  Jim Meyering  <meyering@redhat.com>
32080
32081         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32082         * top/maint.mk (cvs-check): Remove target; it was just an alias
32083         to the better-named vc-diff-check.
32084         (maintainer-distcheck): Remove rule.  It was used only from
32085         the (alpha/beta/major) target, and all of its commands but one
32086         were coreutils-specific.
32087         (vc-dist): Remove rule.
32088         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32089         Run vc-diff-check, not vc-dist.
32090         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32091
32092 2009-08-27  Bruno Haible  <bruno@clisp.org>
32093
32094         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32095         of 0.
32096
32097 2009-08-27  Bruno Haible  <bruno@clisp.org>
32098
32099         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32100         compilers.
32101         * doc/func.texi: Document the SunPRO C bug.
32102
32103 2009-08-27  Bruno Haible  <bruno@clisp.org>
32104
32105         Fix link error on Solaris.
32106         * tests/test-parse-duration.c (xstrdup): Remove function.
32107
32108 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32109
32110         ignore-value: handle pointer types, too
32111         * lib/ignore-value.h (__attribute__): Remove definition.
32112         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32113         of a more concise and more-often effective "(void) i" statement.
32114         (ignore_ptr): New function to suppress warnings from functions that
32115         return pointers, and to make it explicit that one function doesn't
32116         handle all cases.
32117
32118 2009-08-25  Bruno Haible  <bruno@clisp.org>
32119
32120         dup2: work around a Linux bug.
32121         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32122         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32123         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32124         Reported by Simon Josefsson.
32125
32126 2009-08-25  Jim Meyering  <meyering@redhat.com>
32127
32128         libguestfs uses gnulib
32129         * users.txt: Add libguestfs.
32130
32131 2009-08-24  Eric Blake  <ebb9@byu.net>
32132
32133         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32134         * lib/pipe2.c (includes): Add binary-io.h.
32135         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32136
32137 2009-08-24  Bruno Haible  <bruno@clisp.org>
32138
32139         Tolerate declared but missing accept4 syscall.
32140         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32141         available.
32142         * lib/sys_socket.in.h (accept4): If the function is already present,
32143         override it.
32144         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
32145         * modules/accept4 (Makefile.am): Compile accept4.c always.
32146         Reported by Paolo Bonzini and Eric Blake.
32147
32148 2009-08-23  Bruno Haible  <bruno@clisp.org>
32149
32150         New module 'accept4'.
32151         * lib/sys_socket.in.h (accept4): New declaration.
32152         * lib/accept4.c: New file.
32153         * m4/accept4.m4: New file.
32154         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32155         GNULIB_ACCEPT4, HAVE_ACCEPT4.
32156         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
32157         HAVE_ACCEPT4.
32158         * modules/accept4: New file.
32159         * doc/glibc-functions/accept4.texi: Mention the new module.
32160
32161 2009-08-24  Jim Meyering  <meyering@redhat.com>
32162
32163         progname: also set global program_invocation_name, when possible
32164         Before this change, a libtool-enabled program that calls glibc's
32165         error function would report the program name as
32166         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
32167         * modules/progname (configure.ac): Check for a declaration of
32168         program_invocation_name.
32169         * lib/progname.c:  Include <errno.h>.
32170         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
32171         Set program_invocation_name.
32172
32173 2009-08-23  Bruno Haible  <bruno@clisp.org>
32174
32175         * lib/dup3.c: Include <string.h>.
32176
32177 2009-08-23  Bruno Haible  <bruno@clisp.org>
32178
32179         * lib/dup3.c (dup3): Test only once whether the system actually exists.
32180         * lib/pipe2.c (pipe2): Likewise.
32181         Suggested by Eric Blake.
32182
32183 2009-08-23  Bruno Haible  <bruno@clisp.org>
32184
32185         Tolerate declared but missing dup3 syscall.
32186         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
32187         * lib/unistd.in.h (dup3): If the function is already present,
32188         override it.
32189         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
32190         * modules/dup3 (Makefile.am): Compile dup3.c always.
32191         Reported by Paolo Bonzini.
32192
32193 2009-08-23  Bruno Haible  <bruno@clisp.org>
32194
32195         Tolerate declared but missing pipe2 syscall.
32196         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
32197         available.
32198         * lib/unistd.in.h (pipe2): If the function is already present,
32199         override it.
32200         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
32201         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
32202         Reported by Paolo Bonzini.
32203
32204 2009-08-23  Bruno Haible  <bruno@clisp.org>
32205
32206         * lib/pipe2.c (pipe2): Move #ifs inside function.
32207
32208 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32209
32210         quotearg: document limitations of quote_these_too
32211         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
32212         those limitations are created.
32213         * lib/quotearg.h (set_char_quoting): Document that digits and
32214         letters that are special after backslash are not permitted.
32215         (quotearg_char): Cross-reference set_char_quoting documentation.
32216
32217 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
32218
32219         quotearg: implement custom_quoting_style
32220         * lib/quotearg.c: (struct quoting_options): Add left_quote and
32221         right_quote fields.
32222         (set_custom_quoting): New public function.
32223         (quotearg_buffer_restyled): Add left_quote and right_quote
32224         arguments, handle them very much like locale quoting, and update
32225         all uses.
32226         (quotearg_n_custom): New public function.
32227         (quotearg_n_custom_mem): New public function.
32228         (quotearg_custom): New public function.
32229         (quotearg_custom_mem): New public function.
32230         * lib/quotearg.h: Prototype and document new public functions.
32231         (enum quoting_style): For escape_quoting_style and
32232         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
32233         ignored even though they're otherwise like c_quoting_style.
32234         Add custom_quoting_style member and document with comparison to
32235         clocale_quoting_style.
32236         * tests/test-quotearg.c (custom_quotes): New array.
32237         (custom_results): New array.
32238         (main): Extend to test custom quoting.
32239
32240 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32241
32242         quotearg: fix right quote escaping when it's in quote_these_too
32243         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
32244         quote, be sure to prepend only one backslash.
32245         * tests/test-quotearg.c (use_quote_double_quotes): New function.
32246         (main): Test it.
32247
32248 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32249
32250         quotearg-tests: test escaping of embedded locale quotes
32251         * tests/test-quotearg.c (struct result_strings): Add member for
32252         new input.
32253         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
32254         (inputs): Add new input.
32255         (results_g): Add expected results.
32256         (flag_results): Likewise.
32257         (locale_results): Likewise.
32258         (compare_strings): Check those.
32259
32260 2009-08-23  Bruno Haible  <bruno@clisp.org>
32261
32262         Tests for module 'dup3'.
32263         * modules/dup3-tests: New file.
32264         * tests/test-dup3.c: New file.
32265
32266         New module 'dup3'.
32267         * lib/unistd.in.h (dup3): New declaration.
32268         * lib/dup3.c: New file.
32269         * m4/dup3.m4: New file.
32270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
32271         HAVE_DUP3.
32272         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
32273         * modules/dup3: New file.
32274         * doc/glibc-functions/dup3.texi: Mention the new module.
32275
32276 2009-08-23  Bruno Haible  <bruno@clisp.org>
32277
32278         Tweak the dup2 test.
32279         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32280         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32281         the test file is still empty. Fix argument order of lseek.
32282
32283 2009-08-23  Bruno Haible  <bruno@clisp.org>
32284
32285         Avoid test link errors when the modules getopt-gnu, gettext are used.
32286         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32287         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32288
32289 2009-08-23  Bruno Haible  <bruno@clisp.org>
32290
32291         Fix getdtablesize() on mingw.
32292         * lib/getdtablesize.c (getdtablesize): Implement differently.
32293         * lib/unistd.in.h (getdtablesize): Improve comment.
32294
32295 2009-08-23  Bruno Haible  <bruno@clisp.org>
32296
32297         New module 'mkostemp'.
32298         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32299         * lib/stdlib.in.h (mksotemp): New declaration.
32300         * lib/mkostemp.c: New file, from glibc with modifications.
32301         * lib/tempname.h (GT_FILE): Remove outdated comment.
32302         (gen_tempname): Add flags argument.
32303         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32304         (__GT_FILE): Map to 1.
32305         (small_open, large_open): Remove macros.
32306         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32307         * lib/mkstemp.c (mkstemp): Update.
32308         * lib/mkdtemp.c (mkdtemp): Likewise.
32309         * m4/mkostemp.m4: New file.
32310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
32311         HAVE_MKOSTEMP.
32312         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
32313         HAVE_MKOSTEMP.
32314         * modules/mkostemp: New file, based on modules/mkstemp.
32315         * doc/glibc-functions/mkostemp.texi: Mention the new module.
32316         * NEWS: Mention the change.
32317
32318 2009-08-23  Bruno Haible  <bruno@clisp.org>
32319
32320         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
32321         Reported by Eric Blake.
32322
32323 2009-08-23  Bruno Haible  <bruno@clisp.org>
32324
32325         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
32326         Reported by Eric Blake.
32327
32328 2009-08-23  Bruno Haible  <bruno@clisp.org>
32329
32330         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
32331         * modules/pipe2 (Depends-on): Likewise.
32332
32333 2009-08-23  Eric Blake  <ebb9@byu.net>
32334
32335         fcntl-h: add O_TTY_INIT support
32336         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
32337         * tests/test-fcntl-h.c (o): Test it.
32338         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32339
32340         fcntl-h: rename from fcntl, in preparation for fcntl(2)
32341         * modules/fcntl: Move <fcntl.h> header replacement...
32342         * modules/fcntl-h: ...to new name, so as not to collide with
32343         like-named function.
32344         * tests/test-fcntl.c: Rename...
32345         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
32346         * modules/fcntl-tests: Rename...
32347         * modules/fcntl-h-tests: ...to this.  Update test file name.
32348         * modules/chdir-long (Depends-on): Update clients.
32349         * modules/chdir-safer (Depends-on): Likewise.
32350         * modules/fcntl-safer (Depends-on): Likewise.
32351         * modules/fts (Depends-on): Likewise.
32352         * modules/mkancesdirs (Depends-on): Likewise.
32353         * modules/mkdir-p (Depends-on): Likewise.
32354         * modules/open (Depends-on): Likewise.
32355         * modules/savewd (Depends-on): Likewise.
32356         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
32357         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32358
32359 2009-08-22  Bruno Haible  <bruno@clisp.org>
32360
32361         * modules/binary-io (License): Relicense under LGPL.
32362         * modules/pipe2 (License): Likewise.
32363
32364 2009-08-22  Bruno Haible  <bruno@clisp.org>
32365
32366         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
32367         return value.
32368         * lib/pipe-filter-gi.c (filter_init): Likewise.
32369         Reported by Eric Blake.
32370
32371 2009-08-22  Bruno Haible  <bruno@clisp.org>
32372
32373         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
32374         * modules/pipe (Depends-on): Add pipe2.
32375
32376 2009-08-22  Bruno Haible  <bruno@clisp.org>
32377
32378         Tests for module 'pipe2'.
32379         * modules/pipe2-tests: New file.
32380         * tests/test-pipe2.c: New file.
32381
32382         New module 'pipe2'.
32383         * lib/unistd.in.h (pipe2): New declaration.
32384         * lib/pipe2.c: New file.
32385         * m4/pipe2.m4: New file.
32386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
32387         HAVE_PIPE2.
32388         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
32389         * modules/pipe2: New file.
32390         * doc/glibc-functions/pipe2.texi: Mention the new module.
32391
32392 2009-08-22  Bruno Haible  <bruno@clisp.org>
32393
32394         Reference some new glibc functions.
32395         * doc/glibc-functions/accept4.texi: New file.
32396         * doc/glibc-functions/dup3.texi: New file.
32397         * doc/glibc-functions/mkostemp.texi: New file.
32398         * doc/glibc-functions/pipe2.texi: New file.
32399         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
32400         (Glibc sys/socket.h): Refer to accept4.
32401         (Glibc unistd.h): Refer to dup3, pipe2.
32402         Reported by Eric Blake.
32403
32404 2009-08-22  Jim Meyering  <meyering@redhat.com>
32405             Bruno Haible  <bruno@clisp.org>
32406
32407         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
32408         This makes it so packages using automake-1.11's silent-rules option
32409         can print e.g., a single "GEN    configmake.h" line, rather than
32410         the 30+ statements that perform the job.  If you want to see the
32411         actual commands, you can still run "make V=1".
32412         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
32413         so that make output is abbreviated when those variables are defined
32414         appropriately.
32415         * modules/argz: Likewise.
32416         * modules/arpa_inet: Likewise.
32417         * modules/byteswap: Likewise.
32418         * modules/configmake: Likewise.
32419         * modules/dirent: Likewise.
32420         * modules/errno: Likewise.
32421         * modules/fcntl: Likewise.
32422         * modules/float: Likewise.
32423         * modules/fnmatch: Likewise.
32424         * modules/getopt-posix: Likewise.
32425         * modules/glob: Likewise.
32426         * modules/iconv_open: Likewise.
32427         * modules/inttypes: Likewise.
32428         * modules/localcharset: Likewise.
32429         * modules/locale: Likewise.
32430         * modules/math: Likewise.
32431         * modules/netdb: Likewise.
32432         * modules/netinet_in: Likewise.
32433         * modules/poll: Likewise.
32434         * modules/posix_spawnp-tests: Likewise.
32435         * modules/sched: Likewise.
32436         * modules/search: Likewise.
32437         * modules/selinux-h: Likewise.
32438         * modules/signal: Likewise.
32439         * modules/spawn: Likewise.
32440         * modules/stdarg: Likewise.
32441         * modules/stdbool: Likewise.
32442         * modules/stddef: Likewise.
32443         * modules/stdint: Likewise.
32444         * modules/stdio: Likewise.
32445         * modules/stdlib: Likewise.
32446         * modules/string: Likewise.
32447         * modules/strings: Likewise.
32448         * modules/sys_file: Likewise.
32449         * modules/sys_ioctl: Likewise.
32450         * modules/sys_select: Likewise.
32451         * modules/sys_socket: Likewise.
32452         * modules/sys_stat: Likewise.
32453         * modules/sys_time: Likewise.
32454         * modules/sys_times: Likewise.
32455         * modules/sys_utsname: Likewise.
32456         * modules/sys_wait: Likewise.
32457         * modules/sysexits: Likewise.
32458         * modules/time: Likewise.
32459         * modules/unistd: Likewise.
32460         * modules/wchar: Likewise.
32461         * modules/wctype: Likewise.
32462
32463 2009-08-22  Jim Meyering  <meyering@redhat.com>
32464
32465         announce-gen: detect write failure
32466         * build-aux/announce-gen: Add Coda at end.
32467         Remove equivalent-but-more-verbose block at top.
32468
32469 2009-08-19  Akim Demaille  <demaille@gostai.com>
32470
32471         bootstrap: --help to stdout.
32472         * bootstrap (usage): Don't send --help to stderr.
32473         Use a here doc instead of a long string.
32474
32475 2009-08-21  Eric Blake  <ebb9@byu.net>
32476
32477         test-popen-safer: split from test-popen
32478         * tests/test-popen.c (main): Move...
32479         * tests/test-popen.h: ...into new file.
32480         * tests/test-popen-safer2.c: New file.
32481         * modules/popen-tests (Files): Add test-popen.h.
32482         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
32483         Suggested by Bruno Haible.
32484
32485         test-fcntl-safer: split from test-open
32486         * tests/test-open.c (main): Move...
32487         * tests/test-open.h: ...into new file.
32488         * tests/test-fcntl-safer.c: New file.
32489         * modules/open-tests (Files): Add test-open.h.
32490         * modules/fcntl-safer-tests: New file.
32491         Suggested by Bruno Haible.
32492
32493         test-fopen-safer: split from test-fopen
32494         * tests/test-fopen.c (main): Move...
32495         * tests/test-fopen.h: ...into new file.
32496         * tests/test-fopen-safer.c: New file.
32497         * modules/fopen-tests (Files): Add test-fopen.h.
32498         * modules/fopen-safer-tests: New file.
32499         Suggested by Bruno Haible.
32500
32501 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32502
32503         popen-safer: test O_CLOEXEC at run-time.
32504         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
32505
32506 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32507
32508         fcntl: move more flags to the header
32509         * lib/cloexec.c: Do not define FD_CLOEXEC here.
32510         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
32511         * lib/fcntl.in.h: Do both things here.
32512
32513 2009-08-21  Jim Meyering  <meyering@redhat.com>
32514
32515         consistently remove $@-t before redirecting to it
32516         * modules/argz: Remove $@-t and $@ before redirecting to the former.
32517         * modules/alloca-opt: Likewise.
32518         * modules/byteswap: Likewise.
32519         * modules/fnmatch: Likewise.
32520         * modules/getopt-posix: Likewise.
32521         * modules/glob: Likewise.
32522         * modules/poll: Likewise.
32523         * modules/posix_spawnp-tests: Likewise.
32524         * modules/sys_socket: Likewise.
32525         * modules/sysexits: Likewise.
32526
32527 2009-08-21  Eric Blake  <ebb9@byu.net>
32528
32529         popen: simplify access to original popen
32530         * lib/popen.c (rpl_popen): No need to worry about popen being a
32531         macro.
32532         Reported by Bruno Haible.
32533
32534 2009-08-20  Eric Blake  <ebb9@byu.net>
32535
32536         build: avoid some compiler warnings
32537         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
32538         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
32539         type.
32540         (new_exclude_segment, excluded_file_pattern_p)
32541         (excluded_file_name_p): Reduce scope.
32542         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
32543         old-style declaration.
32544
32545 2009-08-20  Simon Josefsson  <simon@josefsson.org>
32546
32547         * tests/test-exclude1.sh: Handle Windows EOL.
32548         * tests/test-exclude2.sh: Likewise.
32549         * tests/test-exclude3.sh: Likewise.
32550         * tests/test-exclude4.sh: Likewise.
32551         * tests/test-exclude5.sh: Likewise.
32552         * tests/test-exclude6.sh: Likewise.
32553         * tests/test-exclude7.sh: Likewise.
32554
32555 2009-08-19  Akim Demaille  <demaille@gostai.com>
32556
32557         bootstrap: find sha1sum when named gsha1sum.
32558         * bootstrap (find_tool): New.
32559         ($SHA1SUM): New.
32560         Use it.
32561
32562 2009-08-20  Jim Meyering  <meyering@redhat.com>
32563
32564         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
32565         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
32566         expression that converts "." in a file name to "\." in the resulting
32567         regexp.  Start with a dummy statement, so that prior shell variable
32568         definitions are expanded portably.  Reported by Simon Josefsson.
32569
32570 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
32571
32572         Fix polling for writeability of a screen buffer.
32573         * lib/poll.c: Distinguish input and screen buffers for the
32574         Win32 implementation.
32575         * lib/select.c: Likewise.
32576
32577 2009-08-19  Eric Blake  <ebb9@byu.net>
32578
32579         popen-safer: prevent popen from clobbering std descriptors
32580         * modules/popen-safer: New file.
32581         * lib/popen-safer.c: Likewise.
32582         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
32583         * lib/stdio--.h (popen): Provide override.
32584         * lib/stdio-safer.h (popen_safer): Provide declaration.
32585         * tests/test-popen.c (includes): Partially test this.
32586         * modules/popen-safer-tests: New file, for more tests.
32587         * tests/test-popen-safer.c: Likewise.
32588         * MODULES.html.sh (file stream based Input/Output): Mention it.
32589
32590         tests: test some of the *-safer modules
32591         * modules/fopen-safer (Depends-on): Add fopen.
32592         * modules/fcntl-safer (Depends-on): Add fcntl.
32593         * modules/stdlib-safer (Depends-on): Add stdlib.
32594         (configure.ac): Set indicator.
32595         * modules/unistd-safer (configure.ac): Likewise.
32596         * modules/tmpfile-safer (configure.ac): Likewise.
32597         (Depends-on): Add tmpfile.
32598         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
32599         active.
32600         * tests/test-fopen.c (includes): Test safer versions when they are
32601         in use.
32602         * tests/test-open.c (includes): Likewise.
32603
32604         popen: fix cygwin 1.5 bug when stdin closed
32605         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
32606         * modules/popen: New file.
32607         * modules/popen-tests: Likewise.
32608         * tests/test-popen.c: Likewise.
32609         * m4/popen.m4: Likewise.
32610         * lib/popen.c: Likewise.
32611         * lib/stdio.in.h (popen): New declaration.
32612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
32613         * modules/stdio (Makefile.am): Likewise.
32614         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
32615
32616 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
32617
32618         maint.mk: give full control over update-copyright exclusions
32619         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
32620         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
32621         (update-copyright): Don't force inclusion of top-level
32622         ChangeLog.  Don't force exclusion of all COPYING files, but make
32623         them the default exclusion instead.
32624
32625 2009-08-16  Bruno Haible  <bruno@clisp.org>
32626
32627         Fix test failures on Solaris 10.
32628         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
32629         tests when Solaris iconv() is used.
32630         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32631         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32632         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32633         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32634         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32635
32636 2009-08-16  Bruno Haible  <bruno@clisp.org>
32637
32638         Fix test failures on Solaris 10.
32639         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
32640         'tr' program and pass it as first argument.
32641         * tests/test-pipe-filter-gi1.sh: Likewise.
32642         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
32643         program as first argument.
32644         * tests/test-pipe-filter-gi1.c (main): Likewise.
32645
32646 2009-08-16  Eric Blake  <ebb9@byu.net>
32647
32648         fpurge: fix previous commits
32649         * modules/fpurge (Makefile.am): Make replacement conditional,
32650         partially reverting 2007-04-29 change; missed in previous
32651         attempt.
32652         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
32653         is missing.
32654
32655 2009-08-16  Bruno Haible  <bruno@clisp.org>
32656
32657         Clarify fpurge's effect on the file position.
32658         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
32659         * tests/test-fpurge.c (main): Make a second pass for checking the file
32660         position.
32661
32662 2009-08-16  Bruno Haible  <bruno@clisp.org>
32663
32664         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
32665         declaration of fpurge is missing.
32666         * tests/test-fpurge.c (main): Check that the file has not more contents
32667         than expected. Close the file before removing it.
32668
32669 2009-08-15  Eric Blake  <ebb9@byu.net>
32670
32671         fpurge: don't wrap working cygwin implementation
32672         * lib/fpurge.c (fpurge): Fix comment typo.
32673         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
32674         1.7 to avoid replacement.
32675         * tests/test-fpurge.c (main): Enhance test.
32676
32677 2009-08-15  Eric Blake  <ebb9@byu.net>
32678         and Jim Meyering  <meyering@redhat.com>
32679
32680         test-update-copyright: skip if perl is insufficient
32681         * tests/test-update-copyright.sh: Failure to run maintainer tool
32682         should not cause testsuite failure on cygwin 1.5.
32683
32684 2009-08-14  Eric Blake  <ebb9@byu.net>
32685
32686         doc: mention more functions added in cygwin 1.7.0
32687         * doc/posix-headers/limits.texi (limits.h): Update for recent
32688         cygwin additions.
32689         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
32690         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
32691         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
32692         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
32693         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
32694
32695 2009-08-14  Eric Blake  <ebb9@byu.net>
32696
32697         maint.mk: simplify update-copyright rule
32698         * top/maint.mk (update-copyright-local): Delete, and document how
32699         to do it in cfg.mk instead.
32700         (update-copyright-exclude-regexp): Delete, and document how to do
32701         it in .x-update-copyright instead.
32702         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
32703         exclude ChangeLog.
32704
32705 2009-08-14  Bruno Haible  <bruno@clisp.org>
32706
32707         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
32708
32709 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32710
32711         maint.mk: support update-copyright-env
32712         * top/maint.mk (update-copyright-env): Define place-holder.
32713         (update-copyright): Expand $(update-copyright-env) before
32714         invoking update-copyright.
32715
32716 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32717
32718         update-copyright: implement forced reformatting
32719         * build-aux/update-copyright: Implement and document
32720         UPDATE_COPYRIGHT_FORCE.
32721         * tests/test-update-copyright.sh: Test it.
32722
32723 2009-08-14  Eric Blake  <ebb9@byu.net>
32724         and Bruno Haible  <bruno@clisp.org>
32725
32726         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
32727         * tests/test-locale.c: Revert previous patch related to NULL.
32728         * tests/test-stdio.c: Likewise.
32729         * tests/test-stdlib.c: Likewise.
32730         * tests/test-string.c: Likewise.
32731         * tests/test-unistd.c: Likewise.
32732         * modules/time-tests (Depends-on): Add verify.
32733         * modules/wchar-tests (Depends-on): Likewise.
32734         * tests/test-time.c: Test for NULL compliance.
32735         * tests/test-wchar.c: Likewise.
32736         * modules/locale (Depends-on): Add stddef.
32737         * modules/stdio (Depends-on): Likewise.
32738         * modules/stdlib (Depends-on): Likewise.
32739         * modules/string (Depends-on): Likewise.
32740         * modules/time (Depends-on): Likewise.
32741         * modules/unistd (Depends-on): Likewise.
32742         * modules/wchar (Depends-on): Likewise.
32743         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
32744         * lib/stdlib.in.h (includes): Likewise.
32745         * lib/string.in.h (includes): Likewise.
32746         * lib/time.in.h (includes): Likewise.
32747         * lib/unistd.in.h (includes): Likewise.
32748         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
32749         replaced.
32750         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32751         * m4/stddef_h.m4: New file.
32752         * modules/stddef: Likewise.
32753         * lib/stddef.in.h: Likewise.
32754         * modules/stddef-tests: Likewise.
32755         * tests/test-stddef.c: Likewise.
32756         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
32757         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
32758         * doc/posix-headers/locale.texi (locale.h): Likewise.
32759         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
32760         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
32761         * doc/posix-headers/string.texi (string.h): Likewise.
32762         * doc/posix-headers/time.texi (time.h): Likewise.
32763         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
32764         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
32765
32766 2009-08-14  Eric Blake  <ebb9@byu.net>
32767
32768         doc: improve git diff of texinfo files
32769         * .gitattributes: Add rule for *.texi files, with hint on how to
32770         use it.
32771         Copied from m4, and based on a report by Bruno Haible.
32772
32773 2009-08-14  Bruno Haible  <bruno@clisp.org>
32774
32775         Disable multithread support by default on Cygwin 1.5.x for real.
32776         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
32777
32778 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32779
32780         update-copyright: much ado about intervals
32781         * build-aux/update-copyright: Implement and document
32782         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
32783         of copyright year intervals.
32784         Also, document UPDATE_COPYRIGHT_YEAR.
32785         * tests/test-update-copyright.sh: Test it.
32786
32787         update-copyright: convert 2-digit to 4-digit years
32788         * build-aux/update-copyright: Implement and document.
32789         * tests/test-update-copyright.sh: Update.
32790
32791 2009-08-14  Jim Meyering  <meyering@redhat.com>
32792
32793         test-exclude: avoid coreutils "make check" failure
32794         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
32795         just as in test-argmatch.c.
32796
32797 2009-08-13  Eric Blake  <ebb9@byu.net>
32798
32799         test-dup2: fix bad assumption
32800         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
32801         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
32802
32803         test-version-etc: fix CRLF portability issue
32804         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
32805         recognize \r.
32806         * tests/test-argp-version-etc-1.sh: Likewise.
32807
32808         getopt: update client modules
32809         * modules/argp (Depends-on): Use getopt-gnu.
32810         * modules/git-merge-changelog (Depends-on): Likewise.
32811         * modules/long-options (Depends-on): Likewise.
32812         * modules/xstrtol (Depends-on): Likewise.
32813
32814 2009-08-13  Simon Josefsson  <simon@josefsson.org>
32815
32816         * tests/test-version-etc.sh: Don't fail on different
32817         project/version.  Don't fail on CRLF differences.  Rewrite to use
32818         multiple -e instead of multiple sed forks, suggested by Eric Blake
32819         <ebb9@byu.net>.
32820         * tests/test-argp-version-etc-1.sh: Likewise.
32821
32822 2009-08-13  Simon Josefsson  <simon@josefsson.org>
32823
32824         * tests/test-version-etc.sh: Don't fail on different
32825         project/version.
32826
32827 2009-08-12  Bruno Haible  <bruno@clisp.org>
32828
32829         Tests for modules 'getopt-posix', 'getopt-gnu'.
32830         * modules/getopt-posix-tests: New file.
32831         * tests/test-getopt.c: New file.
32832         * tests/test-getopt.h: New file.
32833         * tests/test-getopt_long.h: New file.
32834
32835         New modules 'getopt-posix', 'getopt-gnu'.
32836         * modules/getopt-gnu: New file, renamed from modules/getopt.
32837         * modules/getopt-posix: New file.
32838         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
32839         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
32840         (gl_GETOPT): Remove macro.
32841         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
32842         Disable the test against BSD systems that declare optreset. Test
32843         against mingw bug. Test against lack of support of optional arguments
32844         on many platforms.
32845         * doc/glibc-headers/getopt.texi: Update module name and list of
32846         relevant platforms.
32847         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
32848         'getopt-gnu' and more portability problems.
32849         * NEWS: Mention the changes.
32850
32851 2009-08-12  Bruno Haible  <bruno@clisp.org>
32852
32853         Ensure that optarg etc. get declared by <unistd.h>.
32854         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
32855         AC_USE_SYSTEM_EXTENSIONS.
32856         * modules/getopt (Depends-on): Add 'extensions'.
32857
32858 2009-08-12  Bruno Haible  <bruno@clisp.org>
32859
32860         Avoid test link errors.
32861         * modules/pipe-filter-ii-tests (Makefile.am): Define
32862         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
32863         * modules/pipe-filter-gi-tests (Makefile.am): Define
32864         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
32865         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32866
32867 2009-08-12  Bruno Haible  <bruno@clisp.org>
32868
32869         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
32870         gl_GETOPT_SUBSTITUTE before.
32871         (gl_GETOPT): Use it.
32872         * m4/argp.m4 (gl_ARGP): Update.
32873         Reported by Sergey Poznyakoff.
32874
32875         * m4/getopt.m4: Reorder macros.
32876         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
32877         (gl_GETOPT_SUBSTITUTE): Remove macro.
32878
32879 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32880
32881         Minor improvement in gitlog-to-changelog
32882
32883         * build-aux/gitlog-to-changelog: New option `--format' makes
32884         output format string configurable.
32885
32886 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32887
32888         Optimize exclude: use hash tables for non-wildcard patterns.
32889
32890         * lib/exclude.c: Include hash.h and mbuiter.h
32891         (struct exclude_pattern, exclude_segment): New data types.
32892         (struct exclude): Rewrite.
32893         (fnmatch_pattern_has_wildcards): New function.
32894         (new_exclude_segment, free_exclude_segment): New functions.
32895         (excluded_file_pattern_p, excluded_file_name_p): New functions.
32896         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
32897         * lib/exclude.h (is_fnmatch_pattern): New prototype.
32898         * modules/exclude: Depend on hash and mbuiter.
32899
32900         * modules/exclude-tests: New file.
32901         * tests/test-exclude.c: New file.
32902         * tests/test-exclude1.sh: New file.
32903         * tests/test-exclude2.sh: New file.
32904         * tests/test-exclude3.sh: New file.
32905         * tests/test-exclude4.sh: New file.
32906         * tests/test-exclude5.sh: New file.
32907         * tests/test-exclude6.sh: New file.
32908         * tests/test-exclude7.sh: New file.
32909
32910 2009-08-12  Bruno Haible  <bruno@clisp.org>
32911
32912         Ensure that getopt() gets declared by <unistd.h>.
32913         * lib/unistd.in.h: Conditionally include getopt.h.
32914         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
32915         Set GNULIB_UNISTD_H_GETOPT.
32916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32917         GNULIB_UNISTD_H_GETOPT.
32918         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
32919
32920 2009-08-12  Bruno Haible  <bruno@clisp.org>
32921
32922         Clarify logic.
32923         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
32924         gl_replace_getopt instead of GETOPT_H.
32925
32926 2009-08-12  Bruno Haible  <bruno@clisp.org>
32927
32928         * m4/getopt.m4: Add comments.
32929
32930 2009-08-12  Bruno Haible  <bruno@clisp.org>
32931
32932         Disable multithread support by default on Cygwin 1.5.x.
32933         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
32934         set gl_use_threads=no if not specified otherwise.
32935
32936 2009-08-11  Bruno Haible  <bruno@clisp.org>
32937
32938         Avoid compilation error on NetBSD 5.0.
32939         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
32940         * tests/test-stdio.c: Likewise.
32941         * tests/test-stdlib.c: Likewise.
32942         * tests/test-string.c: Likewise.
32943         * tests/test-unistd.c: Likewise.
32944         Reported by Greg Troxel <gdt@ir.bbn.com>
32945         at <https://savannah.gnu.org/support/?106973>.
32946
32947 2009-08-11  Bruno Haible  <bruno@clisp.org>
32948
32949         * modules/dup2-tests (Depends-on): Remove close.
32950
32951         Undo 2009-07-19 commit.
32952         * modules/acl-tests (Depends-on): Remove close.
32953         * modules/binary-io-tests (Depends-on): Likewise.
32954         * modules/closein-tests (Depends-on): Likewise.
32955         * modules/flock-tests (Depends-on): Likewise.
32956         * modules/fsync-tests (Depends-on): Likewise.
32957         * modules/lseek-tests (Depends-on): Likewise.
32958         * modules/pipe-tests (Depends-on): Likewise.
32959         * modules/posix_spawn-tests (Depends-on): Likewise.
32960         * modules/posix_spawnp-tests (Depends-on): Likewise.
32961         * modules/stat-time-tests (Depends-on): Likewise.
32962         * modules/yesno-tests (Depends-on): Likewise.
32963
32964 2009-08-10  Bruno Haible  <bruno@clisp.org>
32965
32966         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
32967
32968 2009-08-10  Bruno Haible  <bruno@clisp.org>
32969
32970         Fix a gcc warning.
32971         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
32972
32973 2009-08-10  Bruno Haible  <bruno@clisp.org>
32974
32975         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
32976         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
32977         not only the first time.
32978         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
32979         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
32980         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
32981         is 1, not only the the first time.
32982
32983 2009-08-10  Bruno Haible  <bruno@clisp.org>
32984
32985         Make it possible to use module 'gethostname' without module 'close'.
32986         * lib/unistd.in.h (close): Evoke a link error only if
32987         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
32988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32989         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32990         * modules/unistd (Makefile.am): Substitute
32991         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32992         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
32993         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
32994         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32995         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32996         * modules/sys_ioctl (Makefile.am): Substitute
32997         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32998         * modules/socket (configure.ac): On native Windows, set
32999         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33000         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33001         Reported by Sam Steingold <sds@gnu.org>.
33002
33003 2009-08-10  Bruno Haible  <bruno@clisp.org>
33004
33005         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33006         * modules/ioctl (configure.ac): Likewise.
33007
33008 2009-08-10  Bruno Haible  <bruno@clisp.org>
33009
33010         Avoid collision between gnulib wrapper and libintl wrapper.
33011         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33012         already defined in intl/printf.c.
33013         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33014         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33015
33016 2009-08-09  Bruno Haible  <bruno@clisp.org>
33017
33018         Make <sys/select.h> really self-contained, also on Solaris 10.
33019         * lib/sys_select.in.h: Include <string.h>.
33020         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33021         Solaris 10 problem.
33022         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33023         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33024         Reported by Jim Meyering.
33025
33026 2009-08-09  Bruno Haible  <bruno@clisp.org>
33027
33028         Avoid warnings from 'aclocal' that are due to a use of macro name
33029         AM_XGETTEXT_OPTION that is not defined in automake.
33030         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33031         automake.
33032         * modules/error (configure.ac): Likewise.
33033         * modules/propername (configure.ac): Likewise.
33034         * modules/vasprintf (configure.ac): Likewise.
33035         * modules/verror (configure.ac): Likewise.
33036         * modules/xprintf (configure.ac): Likewise.
33037         * modules/xvasprintf (configure.ac): Likewise.
33038
33039 2009-08-08  Bruno Haible  <bruno@clisp.org>
33040
33041         Avoid compilation error in C++ mode.
33042         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33043         Reported by Sam Steingold <sds@gnu.org>.
33044
33045 2009-08-08  Bruno Haible  <bruno@clisp.org>
33046
33047         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33048         for the various Unix platforms.
33049         * doc/posix-headers/limits.texi: Update platforms list regarding
33050         HOST_NAME_MAX.
33051         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33052
33053 2009-08-07  Jim Meyering  <meyering@redhat.com>
33054
33055         selinux-at: fix typo in a comment
33056         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33057         Spotted by Paolo Bonzini.
33058
33059         selinux-at: remove redundant m4 code, add documentation
33060         * modules/selinux-at (configure.ac): Remove redundant code.
33061         LIB_SELINUX is already set via the dependent module, selinux-h.
33062         (Include): Add quotes around selinux-at.h.
33063         * lib/selinux-at.h: Add documentation.
33064         Reported by Bruno Haible in
33065         http://marc.info/?l=gnulib-bug&m=124958988300749
33066
33067 2009-08-07  Bruno Haible  <bruno@clisp.org>
33068
33069         Avoid link error on MacOS X 10.3 and 10.4.
33070         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33071         on non-ELF systems.
33072         * lib/argp-pv.c (argp_program_version): Likewise.
33073         Reported by Simon Josefsson.
33074
33075 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33076
33077         * tests/test-version-etc.sh: Use $EXEEXT.
33078
33079 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33080
33081         update-copyright: update documentation to point to maint.mk
33082         * build-aux/update-copyright: Here.
33083
33084 2009-08-06  Jim Meyering  <meyering@redhat.com>
33085
33086         maint.mk: support update-copyright-local
33087         * top/maint.mk (update-copyright-local): Define place-holder.
33088         (update-copyright): Depend on $(update-copyright-local).
33089
33090 2009-08-06  Jim Meyering  <meyering@redhat.com>
33091
33092         selinux-at: new module
33093         Initially written for coreutils, this module will soon be
33094         used by findutils, too.
33095         * MODULES.html.sh [Misc]: Add selinux-at.
33096         * lib/selinux-at.h: New file, from coreutils.
33097         * lib/selinux-at.c: Likewise.
33098         * modules/selinux-at: Likewise.
33099         (License): Change from LGPL to GPL, since it depends
33100         on the GPL'd openat module.
33101
33102         doc: update README
33103         * README: Remove references to cogito.
33104         Remove cvs-repo-updating instructions from 2007.
33105         Don't imply that CVS is better if you have limited disk space.
33106
33107 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33108
33109         update-copyright: support C-style comments
33110         * build-aux/update-copyright: Implement and document.
33111         * tests/test-update-copyright.sh: Test.
33112
33113 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33114
33115         update-copyright: support omitted "(C)"
33116         * build-aux/update-copyright: Implement and document.  Also,
33117         allow variable whitespace before "(C)".
33118         * tests/test-update-copyright.sh: Test.
33119
33120 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33121
33122         update-copyright: don't trip on non-FSF copyright statements
33123         * build-aux/update-copyright: Fix so that the first correctly
33124         formatted FSF copyright statement is recognized no matter what
33125         appears before it.  Update documentation.
33126         * tests/test-update-copyright.sh: Test that.
33127
33128 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33129
33130         update-copyright: clean up code a little
33131         * build-aux/update-copyright: Append "_re" to the name of any
33132         variable holding a regular expression.
33133         Replace "old" and "new" with "stmt" in variable names.
33134         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33135         handled correctly.
33136         Format code more consistently.
33137
33138 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33139
33140         update-copyright-tests: improve portability
33141         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33142         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33143
33144 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33145
33146         update-copyright: support @copyright{} and &copy;
33147         * build-aux/update-copyright: Implement and document.
33148         * tests/test-update-copyright.sh: Test.
33149
33150 2009-08-04  Jim Meyering  <meyering@redhat.com>
33151
33152         update-copyright-tests: correctly test EOL=\r\n handling
33153         * tests/test-update-copyright.sh: Put \r at the end of some lines
33154         for the dos-eol tests.  Based on a patch by Joel E. Denny.
33155
33156         maint.mk: make update-copyright exclusion list more configurable
33157         * top/maint.mk (update-copyright): Default to excluding COPYING,
33158         but allow an override, in case someone does want to update that file.
33159
33160         maint.mk: don't update copyright date in COPYING
33161         * top/maint.mk (update-copyright): Exclude COPYING.
33162
33163         maint.mk: add a copyright-updating rule
33164         * top/maint.mk (update-copyright): New rule.
33165         Derived from coreutils/Makefile.am.
33166
33167         update-copyright: rename some variables
33168         * build-aux/update-copyright: Rename a few variables for clarity.
33169         Tweak syntax.  List Joel E. Denny as coauthor.
33170
33171 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33172
33173         update-copyright: fix bug for 2-digit last year and add tests
33174         * build-aux/update-copyright: Fix bug.
33175         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
33176         specified.
33177         * modules/update-copyright-tests: New
33178         * tests/test-update-copyright.sh: New.
33179
33180 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33181
33182         update-copyright: handle leading tabs in line prefix
33183         * build-aux/update-copyright: Count leading tabs as 8 spaces
33184         when computing margin.  This helps with the formatting of
33185         ChangeLogs, for example.
33186         Fix documentation a little.
33187
33188 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33189
33190         update-copyright: support EOL=\r\n
33191         * build-aux/update-copyright: Implement that.
33192
33193 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33194
33195         update-copyright: automatically format copyright statements
33196         * build-aux/update-copyright: Implement that.
33197         Also, be a little more predictable and safer by always failing
33198         when the full copyright format is not perfectly recognized as an
33199         unbroken whole.  Discussed at
33200         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
33201         Rewrite documentation.
33202
33203 2009-08-03  Bruno Haible  <bruno@clisp.org>
33204
33205         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
33206
33207 2009-08-02  Bruno Haible  <bruno@clisp.org>
33208
33209         Tests for module 'uname'.
33210         * modules/uname-tests: New file.
33211         * tests/test-uname.c: New file.
33212
33213         New module 'uname'.
33214         * lib/uname.c: New file.
33215         * m4/uname.m4: New file.
33216         * modules/uname: New file.
33217         * doc/posix-functions/uname.texi: Mention the new module.
33218
33219 2009-08-02  Bruno Haible  <bruno@clisp.org>
33220
33221         Tests for module 'sys_utsname'.
33222         * modules/sys_utsname-tests: New file.
33223         * tests/test-sys_utsname.c: New file.
33224
33225         New module 'sys_utsname'.
33226         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
33227         * m4/sys_utsname_h.m4: New file.
33228         * modules/sys_utsname: New file.
33229         * doc/posix-headers/sys_utsname.texi: Mention the new module.
33230
33231 2009-08-02  Bruno Haible  <bruno@clisp.org>
33232
33233         Implicitly initialize the sockets library.
33234         * lib/gethostname.c: Include sockets.h.
33235         (rpl_gethostname): Invoke gl_sockets_startup.
33236         * lib/socket.c: Include sockets.h.
33237         (rpl_socket): Invoke gl_sockets_startup.
33238         * modules/gethostname (Depends-on): Add sockets.
33239         * modules/socket (Depends-on): Likewise.
33240         * tests/test-poll.c: Don't include sockets.h.
33241         (main): Don't invoke gl_sockets_startup.
33242         * tests/test-select.c: Don't include sockets.h.
33243         (main): Don't invoke gl_sockets_startup.
33244
33245 2009-08-02  Bruno Haible  <bruno@clisp.org>
33246
33247         Allow multiple calls to gl_sockets_startup.
33248         * lib/sockets.c (initialized_sockets_version): New variable.
33249         (gl_sockets_startup): Do nothing if already called for this or a higher
33250         version.
33251         (gl_sockets_cleanup): Reset initialized_sockets_version.
33252
33253 2009-08-03  Simon Josefsson  <simon@josefsson.org>
33254
33255         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
33256         different project/version.
33257
33258 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
33259             Bruno Haible  <bruno@clisp.org>
33260
33261         Tests for module 'pipe-filter-gi'.
33262         * modules/pipe-filter-gi-tests: New file.
33263         * tests/test-pipe-filter-gi1.sh: New file.
33264         * tests/test-pipe-filter-gi1.c: New file.
33265         * tests/test-pipe-filter-gi2.sh: New file.
33266         * tests/test-pipe-filter-gi2-main.c: New file.
33267         * tests/test-pipe-filter-gi2-child.c: New file.
33268
33269         New module 'pipe-filter-gi'.
33270         * lib/pipe-filter-gi.c: New file.
33271         * modules/pipe-filter-gi: New file.
33272
33273 2009-08-02  Bruno Haible  <bruno@clisp.org>
33274             Paolo Bonzini  <bonzini@gnu.org>
33275
33276         Tests for module 'pipe-filter-ii'.
33277         * modules/pipe-filter-ii-tests: New file.
33278         * tests/test-pipe-filter-ii1.sh: New file.
33279         * tests/test-pipe-filter-ii1.c: New file.
33280         * tests/test-pipe-filter-ii2.sh: New file.
33281         * tests/test-pipe-filter-ii2-main.c: New file.
33282         * tests/test-pipe-filter-ii2-child.c: New file.
33283
33284         New module 'pipe-filter-ii'.
33285         * lib/pipe-filter.h: New file.
33286         * lib/pipe-filter-ii.c: New file.
33287         * lib/pipe-filter-aux.h: New file.
33288         * modules/pipe-filter-ii: New file.
33289
33290 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33291
33292         * lib/gc-libgcrypt.c: Change copyright to FSF.
33293         * lib/gc-gnulib.c: Likewise.
33294
33295 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33296
33297         * lib/gethostname.c: Include limits.h.
33298
33299 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33300             Bruno Haible  <bruno@clisp.org>
33301
33302         Ensure HOST_NAME_MAX as part of the gethostname module.
33303         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33304         define also HOST_NAME_MAX.
33305         * tests/test-gethostname.c: Include <limits.h>.
33306         (main): Check also HOST_NAME_MAX.
33307         * doc/posix-headers/limits.texi: Document the mingw problem.
33308
33309 2009-08-02  Bruno Haible  <bruno@clisp.org>
33310
33311         * lib/gethostname.c (gethostname): Fix handling of large len argument.
33312         Add comments.
33313
33314 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33315
33316         * lib/gethostname.c: Add Windows wrapper.
33317         * m4/gethostname.m4: Look for gethostname in -lws2_32.
33318         * modules/gethostname: Depend on sys_socket & errno, for also
33319         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
33320         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
33321
33322 2009-07-31  Jim Meyering  <meyering@redhat.com>
33323
33324         getloadavg: fix symbol name in comment
33325         * lib/getloadavg.c: Correct a typo I introduced when adding
33326         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
33327         Matt Kraai spotted the problem.
33328
33329 2009-07-29  Matt Kraai  <mkraai@beckman.com>
33330
33331         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
33332         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
33333         code also if ! defined N_NAME_POINTER.
33334         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
33335         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
33336         but the n_name member is a 12-byte array.
33337
33338 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
33339
33340         update-copyright: generalize comment handling
33341         * build-aux/update-copyright: Handle copyright statements
33342         within more comment styles.
33343         Document usage.
33344         Report any file with an external copyright holder or parse failure.
33345
33346 2009-07-29  Jim Meyering  <meyering@redhat.com>
33347
33348         mktime: correct setting of REPLACE_MKTIME
33349         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
33350
33351         update-copyright: new module
33352         * modules/update-copyright: New file.
33353         * build-aux/update-copyright: New file.
33354         * MODULES.html.sh (maint+release support): Add update-copyright.
33355
33356 2009-07-27  Bruno Haible  <bruno@clisp.org>
33357
33358         Fix compilation error when <ctime> is used and mktime is replaced.
33359         * lib/time.in.h (mktime): New declaration.
33360         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
33361         REPLACE_MKTIME instead of defining mktime in config.h.
33362         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
33363         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
33364         Reported by Ross McFarland <rwmcfa1@neces.com>.
33365
33366 2009-07-27  Bruno Haible  <bruno@clisp.org>
33367
33368         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
33369         Reported by Matt Kraai <mkraai@beckman.com>.
33370
33371 2009-07-25  Jim Meyering  <meyering@redhat.com>
33372
33373         maint.mk: avoid warnings about missing files
33374         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
33375         diagnostic when .prev-version does not exist.
33376         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
33377         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
33378         nonexistent cfg.mk.
33379         Suggestions from Simon Josefsson.
33380
33381 2009-07-25  Bruno Haible  <bruno@clisp.org>
33382
33383         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
33384         defined as macros. Needed on QNX 6.4.1.
33385         Reported by Matt Kraai <mkraai@beckman.com>.
33386
33387 2009-07-23  Jim Meyering  <meyering@redhat.com>
33388
33389         maint.mk: invoke "make dist" with a working value of XZ_OPT
33390         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
33391
33392 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
33393
33394         Make fseeko.c compile on QNX.
33395         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
33396
33397 2009-07-22  Peter Simons  <simons@cryp.to>
33398
33399         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
33400         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
33401         * lib/md4.h: Likewise.
33402         * lib/md5.h: Likewise.
33403         * lib/sha1.h: Likewise.
33404         * lib/sha256.h: Likewise.
33405         * lib/sha512.h: Likewise.
33406
33407         tests-sha1: don't assign literal string to 'char *' variable
33408         * tests/test-sha1.c (main): Declare locals with "const" to match
33409         attributes of the right hand side.
33410
33411 2009-07-21  Eric Blake  <ebb9@byu.net>
33412
33413         dup2: fix more mingw problems
33414         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
33415         fd to itself.
33416         * doc/posix-functions/dup2.texi (dup2): Document the bug.
33417         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
33418         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
33419         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
33420         care of mingw bugs.
33421
33422 2009-07-21  Jim Meyering  <meyering@redhat.com>
33423
33424         vc-list-files: avoid failure when /bin/sh is dash
33425         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
33426         On some Debian based systems, /bin/sh is a symlink to dash, and running
33427         this command would omit the "/" following each 'tests' prefix:
33428           dash -x build-aux/vc-list-files -C . tests
33429         That is because bash and dash work differently:
33430           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
33431           bash ok
33432           dash odd
33433
33434 2009-07-21  Eric Blake  <ebb9@byu.net>
33435
33436         dup2-tests: test previous patch
33437         * modules/dup2-tests: New file.
33438         * tests/test-dup2.c: Likewise.
33439         * tests/test-open.c (main): Avoid unspecified behavior.
33440         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
33441         test.
33442
33443         dup2: work around mingw and cygwin 1.5 bug
33444         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
33445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33446         * modules/unistd (Makefile.am): Substitute it.
33447         * lib/unistd.in.h (dup2): Declare the replacement.
33448         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
33449         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
33450         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
33451         * modules/execute (Depends-on): Add dup2.
33452         * modules/fseterr (Depends-on): Likewise.
33453         * modules/pipe (Depends-on): Likewise.
33454         * modules/posix_spawn-internal (Depends-on): Likewise.
33455
33456 2009-07-21  Bruno Haible  <bruno@clisp.org>
33457
33458         * modules/.gitattributes: New file.
33459
33460 2009-07-20  Bruno Haible  <bruno@clisp.org>
33461
33462         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
33463         (main): Use it.
33464
33465 2009-07-20  Eric Blake  <ebb9@byu.net>
33466
33467         test-pipe: make a bit more robust.
33468         * tests/test-pipe.c (myerr): Allow error messages regardless of
33469         what we do to stderr.
33470         (test_pipe): Rearrange to avoid deadlock.
33471         (child_main): Try a larger read, to ensure we avoided deadlock.
33472         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
33473         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
33474         if misused.
33475
33476 2009-07-19  Jim Meyering  <meyering@redhat.com>
33477
33478         fts: avoid false-positive cycle-detection
33479         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
33480         for each new command line argument.
33481
33482 2009-07-19  Bruno Haible  <bruno@clisp.org>
33483
33484         Fix build error on mingw with the modules sys_select and unistd.
33485         * modules/acl-tests (Depends-on): Add close.
33486         * modules/binary-io-tests (Depends-on): Likewise.
33487         * modules/closein-tests (Depends-on): Likewise.
33488         * modules/flock-tests (Depends-on): Likewise.
33489         * modules/fsync-tests (Depends-on): Likewise.
33490         * modules/lseek-tests (Depends-on): Likewise.
33491         * modules/pipe-tests (Depends-on): Likewise.
33492         * modules/posix_spawn-tests (Depends-on): Likewise.
33493         * modules/posix_spawnp-tests (Depends-on): Likewise.
33494         * modules/stat-time-tests (Depends-on): Likewise.
33495         * modules/yesno-tests (Depends-on): Likewise.
33496
33497 2009-07-19  Bruno Haible  <bruno@clisp.org>
33498
33499         Unify conditionals.
33500         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
33501         macros, not at the compiler macros.
33502         * lib/pipe.c: Likewise.
33503         * lib/execute.c: Likewise.
33504         * lib/spawni.c: Likewise.
33505
33506 2009-07-19  Bruno Haible  <bruno@clisp.org>
33507
33508         Fix handling of closed stdin/stdout/stderr on mingw.
33509         * lib/w32spawn.h: Include unistd.h.
33510         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
33511         file descriptor with O_NOINHERIT flag.
33512         (fd_safer_noinherit): New function, based on fd-safer.c.
33513         (dup_safer_noinherit): New function, based on dup-safer.c.
33514         (undup_safer_noinherit): New function.
33515         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
33516         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
33517         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
33518         instead of fd_safer.
33519         * tests/test-pipe.c: Include <windows.h>.
33520         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
33521         result.
33522
33523         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
33524         from main.
33525         (test_pipe): Pass an extra argument for disambiguation.
33526         (main): Invoke parent_main or child_main.
33527
33528         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
33529         consistently.
33530
33531 2009-07-18  Eric Blake  <ebb9@byu.net>
33532
33533         test-pipe: fix mingw build
33534         * tests/test-pipe.c (main): Avoid fcntl on mingw.
33535
33536 2009-07-18  Bruno Haible  <bruno@clisp.org>
33537
33538         * modules/pipe-tests (Makefile.am): Fix typo.
33539
33540 2009-07-18  Eric Blake  <ebb9@byu.net>
33541
33542         error: fix mingw build
33543         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
33544         Reported by Bruno Haible.
33545
33546         error: avoid undefined use of stdout
33547         * lib/error.c (error, error_at_line): Check that fd 1 is open
33548         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
33549         is handling faults and the close_stdout module wants to report the
33550         detection of closed stdout as an error.
33551
33552 2009-07-17  Eric Blake  <ebb9@byu.net>
33553
33554         pipe: be robust in face of closed fds
33555         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
33556         should cause child to misbehave.
33557         * modules/pipe-tests: New module.
33558         * tests/test-pipe.c: New file.
33559         * tests/test-pipe.sh: New file.
33560         Reported by Akim Demaille.
33561
33562 2009-07-14  Bruno Haible  <bruno@clisp.org>
33563
33564         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
33565         Reported by anonymous kc.
33566
33567 2009-07-07  Jim Meyering  <meyering@redhat.com>
33568
33569         maint.mk: don't look for translatable strings in *.m4 or *.mk
33570         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
33571         when searching for translatable strings.
33572
33573 2009-07-05  Jim Meyering  <meyering@redhat.com>
33574
33575         remove superfluous parentheses in STREQ definition
33576         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
33577         * lib/getugroups.c (STREQ): Likewise.
33578         * lib/fnmatch.c (STREQ): Likewise.
33579         Spotted by Bruno Haible.
33580
33581 2009-07-04  Jim Meyering  <meyering@redhat.com>
33582
33583         argv-iter: new module
33584         * MODULES.html.sh: Add argv-iter.
33585         * lib/argv-iter.c, lib/argv-iter.h: New files.
33586         * modules/argv-iter: New file.
33587         * modules/argv-iter-tests: New file.
33588         * tests/test-argv-iter.c: Test it.
33589
33590 2009-07-04  Bruno Haible  <bruno@clisp.org>
33591
33592         Fix assertion.
33593         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
33594         contains more exact copies of a given entry than file2, leave the extra
33595         copies unpaired rather than aborting.
33596         Reported by Eric Blake.
33597
33598 2009-07-02  Bruno Haible  <bruno@clisp.org>
33599
33600         Speedup git-merge-changelog for git cherry-pick.
33601         * lib/git-merge-changelog.c (struct entries_mapping): New type.
33602         (entries_mapping_get): New function, extracted from compute_mapping.
33603         (entries_mapping_reverse_get): New function.
33604         (compute_mapping): Add a 'full' argument. Return the result in a
33605         'struct entries_mapping'.
33606         (main): Update. Access the mappings through entries_mapping_get.
33607         Reported by Eric Blake.
33608
33609 2009-07-02  Bruno Haible  <bruno@clisp.org>
33610
33611         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
33612         best_i.
33613
33614 2009-07-02  Bruno Haible  <bruno@clisp.org>
33615
33616         Speed up approximate search for matching ChangeLog entries.
33617         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
33618         argument. Call fstrcmp_bounded instead of fstrcmp.
33619         (compute_mapping, try_split_merged_entry, main): Update callers.
33620
33621 2009-07-02  Bruno Haible  <bruno@clisp.org>
33622
33623         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
33624
33625 2009-06-30  Bruno Haible  <bruno@clisp.org>
33626
33627         Reduce the number of uc_is_cased calls.
33628         * lib/unicase.h (casing_suffix_context_t): Add
33629         'first_char_except_ignorable' field.
33630         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
33631         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
33632         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
33633         Update initializer.
33634         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
33635         case-ignorable characters.
33636         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
33637         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
33638         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
33639         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
33640         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
33641
33642 2009-06-30  Bruno Haible  <bruno@clisp.org>
33643
33644         Tests for module 'unicase/ignorable'.
33645         * modules/unicase/ignorable-tests: New file.
33646         * tests/unicase/test-ignorable.c: New file, generated by
33647         gen-uni-tables.
33648
33649         Tests for module 'unicase/cased'.
33650         * modules/unicase/cased-tests: New file.
33651         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
33652         * tests/unicase/test-predicate-part1.h: New file, derived from
33653         tests/unictype/test-predicate-part1.h.
33654         * tests/unicase/test-predicate-part2.h: New file, same as
33655         tests/unictype/test-predicate-part2.h.
33656
33657         Fix evaluation of "Before C" condition of FINAL_SIGMA.
33658         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
33659         (output_casing_properties): New function.
33660         (main): Call it.
33661         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
33662         * lib/unicase/cased.c: Include unictype/bitmap.h.
33663         (uc_is_cased): Define through a bitmap lookup.
33664         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
33665         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
33666         (uc_is_case_ignorable): Define through a bitmap lookup.
33667         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
33668         lib/unictype/bitmap.h.
33669         (Depends-on): Add inline. Clean up.
33670         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
33671         lib/unictype/bitmap.h.
33672         (Depends-on): Add inline. Clean up.
33673         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
33674         recognition.
33675         * tests/unicase/test-u16-tolower.c (main): Likewise.
33676         * tests/unicase/test-u32-tolower.c (main): Likewise.
33677
33678 2009-06-30  Bruno Haible  <bruno@clisp.org>
33679
33680         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
33681         * lib/unicase/u16-casemap.c: Likewise.
33682         * lib/unicase/u32-casemap.c: Likewise.
33683
33684 2009-06-29  Bruno Haible  <bruno@clisp.org>
33685
33686         Define u32_casefold as a wrapper around u32_ct_casefold.
33687         * lib/unicase/u32-casefold.c: Update.
33688         * modules/unicase/u32-casefold (Depends-on): Add
33689         unicase/u32-ct-casefold, unicase/empty-prefix-context,
33690         unicase/empty-suffix-context. Clean up.
33691
33692         Define u16_casefold as a wrapper around u16_ct_casefold.
33693         * lib/unicase/u16-casefold.c: Update.
33694         * modules/unicase/u16-casefold (Depends-on): Add
33695         unicase/u16-ct-casefold, unicase/empty-prefix-context,
33696         unicase/empty-suffix-context. Clean up.
33697
33698         Define u8_casefold as a wrapper around u8_ct_casefold.
33699         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
33700         * lib/unicase/u8-casefold.c: Update.
33701         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
33702         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33703
33704         Define u32_totitle as a wrapper around u32_ct_totitle.
33705         * lib/unicase/u32-totitle.c: Update.
33706         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
33707         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33708
33709         Define u16_totitle as a wrapper around u16_ct_totitle.
33710         * lib/unicase/u16-totitle.c: Update.
33711         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
33712         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33713
33714         Define u8_totitle as a wrapper around u8_ct_totitle.
33715         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
33716         functions.
33717         (FUNC): Delegate to U_CT_TOTITLE.
33718         * lib/unicase/u8-totitle.c: Update.
33719         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
33720         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33721
33722         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
33723         invocation.
33724         * modules/unicase/u32-tolower (Depends-on): Add
33725         unicase/empty-prefix-context, unicase/empty-suffix-context.
33726
33727         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
33728         invocation.
33729         * modules/unicase/u16-tolower (Depends-on): Add
33730         unicase/empty-prefix-context, unicase/empty-suffix-context.
33731
33732         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
33733         * modules/unicase/u8-tolower (Depends-on): Add
33734         unicase/empty-prefix-context, unicase/empty-suffix-context.
33735
33736         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
33737         invocation.
33738         * modules/unicase/u32-toupper (Depends-on): Add
33739         unicase/empty-prefix-context, unicase/empty-suffix-context.
33740
33741         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
33742         invocation.
33743         * modules/unicase/u16-toupper (Depends-on): Add
33744         unicase/empty-prefix-context, unicase/empty-suffix-context.
33745
33746         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
33747         * modules/unicase/u8-toupper (Depends-on): Add
33748         unicase/empty-prefix-context, unicase/empty-suffix-context.
33749
33750         New module 'unicase/u32-ct-casefold'.
33751         * lib/unicase/u32-ct-casefold.c: New file.
33752         * modules/unicase/u32-ct-casefold: New file.
33753
33754         New module 'unicase/u16-ct-casefold'.
33755         * lib/unicase/u16-ct-casefold.c: New file.
33756         * modules/unicase/u16-ct-casefold: New file.
33757
33758         New module 'unicase/u8-ct-casefold'.
33759         * lib/unicase/u8-ct-casefold.c: New file.
33760         * lib/unicase/u-ct-casefold.h: New file, derived from
33761         lib/unicase/u-casefold.h.
33762         * modules/unicase/u8-ct-casefold: New file.
33763
33764         New module 'unicase/u32-ct-totitle'.
33765         * lib/unicase/u32-ct-totitle.c: New file.
33766         * modules/unicase/u32-ct-totitle: New file.
33767
33768         New module 'unicase/u16-ct-totitle'.
33769         * lib/unicase/u16-ct-totitle.c: New file.
33770         * modules/unicase/u16-ct-totitle: New file.
33771
33772         New module 'unicase/u8-ct-totitle'.
33773         * lib/unicase/u8-ct-totitle.c: New file.
33774         * lib/unicase/u-ct-totitle.h: New file, derived from
33775         lib/unicase/u-totitle.h.
33776         * modules/unicase/u8-ct-totitle: New file.
33777
33778         New module 'unicase/u32-ct-tolower'.
33779         * lib/unicase/u32-ct-tolower.c: New file.
33780         * modules/unicase/u32-ct-tolower: New file.
33781
33782         New module 'unicase/u16-ct-tolower'.
33783         * lib/unicase/u16-ct-tolower.c: New file.
33784         * modules/unicase/u16-ct-tolower: New file.
33785
33786         New module 'unicase/u8-ct-tolower'.
33787         * lib/unicase/u8-ct-tolower.c: New file.
33788         * modules/unicase/u8-ct-tolower: New file.
33789
33790         New module 'unicase/u32-ct-toupper'.
33791         * lib/unicase/u32-ct-toupper.c: New file.
33792         * modules/unicase/u32-ct-toupper: New file.
33793
33794         New module 'unicase/u16-ct-toupper'.
33795         * lib/unicase/u16-ct-toupper.c: New file.
33796         * modules/unicase/u16-ct-toupper: New file.
33797
33798         New module 'unicase/u8-ct-toupper'.
33799         * lib/unicase/u8-ct-toupper.c: New file.
33800         * modules/unicase/u8-ct-toupper: New file.
33801
33802         Add context arguments to u*_casemap functions.
33803         * lib/unicase/unicasemap.h: Include unicase.h.
33804         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
33805         suffix_context arguments.
33806         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
33807         functions.
33808         (FUNC): Add prefix_context and suffix_context arguments. Use
33809         uc_is_cased and uc_is_case_ignorable.
33810         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
33811         * lib/unicase/u16-casemap.c: Likewise.
33812         * lib/unicase/u32-casemap.c: Likewise.
33813         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
33814         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33815         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
33816         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33817         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
33818         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33819
33820         New module 'unicase/u32-suffix-context'.
33821         * lib/unicase/u32-suffix-context.c: New file.
33822         * modules/unicase/u32-suffix-context: New file.
33823
33824         New module 'unicase/u16-suffix-context'.
33825         * lib/unicase/u16-suffix-context.c: New file.
33826         * modules/unicase/u16-suffix-context: New file.
33827
33828         New module 'unicase/u8-suffix-context'.
33829         * lib/unicase/u8-suffix-context.c: New file.
33830         * lib/unicase/u-suffix-context.h: New file.
33831         * modules/unicase/u8-suffix-context: New file.
33832
33833         New module 'unicase/empty-suffix-context'.
33834         * lib/unicase/empty-suffix-context.c: New file.
33835         * modules/unicase/empty-suffix-context: New file.
33836
33837         New module 'unicase/u32-prefix-context'.
33838         * lib/unicase/u32-prefix-context.c: New file.
33839         * modules/unicase/u32-prefix-context: New file.
33840
33841         New module 'unicase/u16-prefix-context'.
33842         * lib/unicase/u16-prefix-context.c: New file.
33843         * modules/unicase/u16-prefix-context: New file.
33844
33845         New module 'unicase/u8-prefix-context'.
33846         * lib/unicase/u8-prefix-context.c: New file.
33847         * lib/unicase/u-prefix-context.h: New file.
33848         * lib/unicase/context.h: New file.
33849         * modules/unicase/u8-prefix-context: New file.
33850
33851         New module 'unicase/empty-prefix-context'.
33852         * lib/unicase/empty-prefix-context.c: New file.
33853         * modules/unicase/empty-prefix-context: New file.
33854
33855         New module 'unicase/ignorable'.
33856         * lib/unicase/ignorable.c: New file.
33857         * modules/unicase/ignorable: New file.
33858
33859         New module 'unicase/cased'.
33860         * lib/unicase/caseprop.h: New file.
33861         * lib/unicase/cased.c: New file.
33862         * modules/unicase/cased: New file.
33863
33864         New functions for case mapping of substrings.
33865         * lib/unicase.h (casing_prefix_context_t): New type.
33866         (unicase_empty_prefix_context): New variable.
33867         (u8_casing_prefix_context, u16_casing_prefix_context,
33868         u32_casing_prefix_context, u8_casing_prefixes_context,
33869         u16_casing_prefixes_context, u32_casing_prefixes_context): New
33870         declarations.
33871         (casing_suffix_context_t): New type.
33872         (unicase_empty_suffix_context): New variable.
33873         (u8_casing_suffix_context, u16_casing_suffix_context,
33874         u32_casing_suffix_context, u8_casing_suffixes_context,
33875         u16_casing_suffixes_context, u32_casing_suffixes_context,
33876         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
33877         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
33878         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
33879         declarations.
33880
33881 2009-06-28  Jim Meyering  <meyering@redhat.com>
33882
33883         boostrap: indent only with spaces
33884         * build-aux/bootstrap: Indent only with spaces, never TABs.
33885
33886         bootstrap: split long lines
33887         * build-aux/bootstrap: Keep line length < 80.
33888
33889         bootstrap: sync from coreutils
33890         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
33891         just as autoreconf does.  Verify a list of prerequisite
33892         package-name,version-number pairs if defined in bootstrap.conf.
33893         Refer to README-prereq, if prerequisites are not satisfied.
33894
33895 2009-06-27  Eric Blake  <ebb9@byu.net>
33896
33897         tests: add test for bogus NULL definition
33898         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
33899         * tests/test-stdlib.c: Likewise.
33900         * tests/test-string.c: Likewise.
33901         * tests/test-locale.c: Likewise.
33902         * tests/test-unistd.c: Likewise.
33903         * modules/stdio-tests (Depends-on): Add verify.
33904         * modules/stdlib-tests (Depends-on): Likewise.
33905         * modules/string-tests (Depends-on): Likewise.
33906         * modules/locale-tests (Depends-on): Likewise.
33907         * modules/unistd-tests (Depends-on): Likewise.
33908
33909 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
33910
33911         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
33912         self-explaining comment.
33913         * m4/selinux-selinux-h: Update serial.
33914         (gl_LIBSELINUX): New macro, adding a warning for missing development
33915         packages to code extracted from...
33916         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
33917         Add warning for missing development packages here, too.
33918
33919 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
33920
33921         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
33922
33923 2009-06-25  Eric Blake  <ebb9@byu.net>
33924
33925         version-etc: fix regression
33926         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
33927         gcc.
33928         (version_etc): Use it, to catch bugs with trailing NULL.
33929         * lib/version-etc.c (version_etc_arn): Delete unused argument.
33930         (version_etc_va): Fix logic bug.
33931         * modules/version-etc-tests: Add test.
33932         * tests/test-version-etc.c: New file.
33933         * tests/test-version-etc.sh: Likewise.
33934
33935 2009-06-25  Sam Steingold  <sds@gnu.org>
33936
33937         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
33938         mbtowc declaration.
33939
33940 2009-06-25  Eric Blake  <ebb9@byu.net>
33941
33942         fpurge: migrate into <stdio.h>
33943         * lib/fpurge.h: Delete...
33944         * lib/stdio.in.h (fpurge): ...and declare here, instead.
33945         * lib/fpurge.c (fpurge): Change declaring header.
33946         * modules/fpurge (Files): Drop deleted file.
33947         (Depends-on): Add stdio.
33948         (configure.ac): Set witness.
33949         * modules/stdio (Makefile.am): Support fpurge macros.
33950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33951         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
33952         * lib/fflush.c: Update client.
33953         * tests/test-fpurge.c: Likewise.
33954         * NEWS: Mention the change.
33955
33956 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33957
33958         * lib/argp-version-etc.c (program_authors): Add const
33959         qualifier.
33960         * lib/version-etc.c: Fix typos in the comments.
33961         * modules/argp-version-etc: Depends on version-etc.
33962
33963 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33964
33965         argp-version-etc: new module.
33966
33967         * lib/argp-version-etc.c: New file.
33968         * lib/argp-version-etc.h: New file.
33969         * modules/argp-version-etc: New file.
33970         * modules/argp-version-etc-tests: New file.
33971         * tests/test-argp-version-etc.c: New test.
33972         * tests/test-argp-version-etc-1.sh: New test.
33973
33974 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33975
33976         Provide additional interfaces and documentation for version-etc
33977         module.
33978
33979         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
33980         interfaces.
33981         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
33982         prototypes.
33983
33984 2009-06-24  Bruno Haible  <bruno@clisp.org>
33985
33986         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
33987         HAVE_LIB${NAME} macro.
33988         Reported by Sam Steingold <sds@gnu.org>.
33989
33990 2009-06-23  Simon Josefsson  <simon@josefsson.org>
33991
33992         * modules/hash-tests (test_hash_LDADD): Link to libintl when
33993         needed.
33994
33995 2009-06-21  Bruno Haible  <bruno@clisp.org>
33996
33997         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
33998         work.
33999         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34000         together with LIB${NAME}, LTLIB${NAME}.
34001         Reported by Sam Steingold <sds@gnu.org>.
34002
34003 2009-06-20  Jim Meyering  <meyering@redhat.com>
34004
34005         tests: make sc_require_test_exit_idiom more generic
34006         * top/maint.mk (Exit_witness_file): New overridable variable.
34007         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34008         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34009
34010 2009-06-19  Jim Meyering  <meyering@redhat.com>
34011
34012         hash: reverse order of src/dst parameters in an internal interface
34013         * lib/hash.c (transfer_entries): Reverse order of parameters to
34014         put DST before SRC.  Adjust callers.
34015
34016         tests: test-hash: avoid wholesale duplication
34017         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34018         Instead, use a loop and add a single conditional.
34019
34020         tests: test-hash: allow seed selection via a command line argument
34021         * tests/test-hash.c (get_seed): New function.
34022         (main): Use it.
34023
34024 2009-06-19  Eric Blake  <ebb9@byu.net>
34025
34026         hash: avoid memory leak on allocation failure
34027         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34028         failure.  Factor repeated algorithm...
34029         (transfer_entries): ...into new helper routine.
34030         (hash_delete): React to hash_rehash return value.
34031
34032         hash: reduce memory pressure in hash_rehash no-op case
34033         * lib/hash.c (next_prime): Avoid overflow.
34034         (hash_initialize): Factor bucket size computation...
34035         (compute_bucket_size): ...into new helper function.
34036         (hash_rehash): Use new function and open coding to reduce memory
34037         pressure, and avoid a memory leak in USE_OBSTACK code.
34038         Reported by Jim Meyering.
34039
34040 2009-06-18  Eric Blake  <ebb9@byu.net>
34041
34042         hash: make rotation more obvious
34043         * modules/hash (Depends-on): Add bitrotate and stdint.
34044         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34045         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34046         (SIZE_MAX): Rely on headers for definition.
34047         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34048         (raw_hasher): Use rotr_sz.
34049         Suggested by Jim Meyering.
34050
34051         hash: fix memory leak in last patch
34052         * lib/hash.c (hash_rehash): Avoid memory leak.
34053
34054         hash: avoid no-op rehashing
34055         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34056
34057         hash: provide default callback functions
34058         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34059         (hash_initialize): Use them as defaults.
34060         * tests/test-hash.c (main): Test this.
34061
34062         hash: minor optimization
34063         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34064         when possible.
34065         (hash_initialize): Document this promise.
34066         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34067         * tests/test-hash.c (hash_compare_strings): Test this.
34068
34069 2009-06-18  Bruno Haible  <bruno@clisp.org>
34070
34071         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34072         going to be replaced anyway.
34073
34074 2009-06-18  Bruno Haible  <bruno@clisp.org>
34075
34076         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34077         in one place.
34078         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34079         be replaced anyway.
34080
34081 2009-06-18  Eric Blake  <ebb9@byu.net>
34082
34083         hash: check for resize before insertion
34084         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34085         threshold before insertion, so that a pathological hash_rehash
34086         that fills every bucket can still trigger another rehash.
34087
34088 2009-06-18  Jim Meyering  <meyering@redhat.com>
34089
34090         hash-tests: add a loop around the small tests
34091         * tests/test-hash.c (main): Repeat small tests with selected
34092         small initial table sizes.
34093
34094 2009-06-17  Eric Blake  <ebb9@byu.net>
34095
34096         hash: minor cleanups
34097         * lib/hash.h (hash_entry): Make opaque, by moving...
34098         * lib/hash.c (hash_entry): ...here.
34099         (hash_insert): Clarify restrictions on what can be inserted.
34100         (hash_get_next): Clarify when it is safe to remove an element
34101         during traversal.
34102         (check_tuning): Skip verification when tuning is known safe.
34103         (hash_initialize): Clarify restrictions on tuning.
34104
34105 2009-06-17  Jim Meyering  <jim@meyering.net>
34106         and Eric Blake  <ebb9@byu.net>
34107
34108         hash-tests: new module
34109         * modules/hash-tests: New file.
34110         * tests/test-hash.c: New file.
34111
34112 2009-06-17  Eric Blake  <ebb9@byu.net>
34113
34114         strstr-simple: document new module
34115         * MODULES.html.sh: Document new module.
34116
34117         strstr, strcasestr: replace on platforms with broken memchr
34118         * modules/strstr: Split into...
34119         * modules/strstr-simple: ...new module that does not care about
34120         performance, but does care about glibc bug.
34121         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34122         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34123         if platform memchr is broken, per Debian bug 521737.
34124         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34125         memchr.
34126         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34127         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34128         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34129         * modules/mountlist (Depends-on): Add strstr-simple.
34130         * modules/gen-uni-tables (Depends-on): Likewise.
34131         * modules/argz (Depends-on): Add strstr.
34132
34133 2009-06-17  Bruno Haible  <bruno@clisp.org>
34134
34135         * modules/posix_spawn-internal (Depends-on): Add errno.
34136
34137 2009-06-17  Bruno Haible  <bruno@clisp.org>
34138
34139         Define missing ESTALE on Interix 3.5.
34140         * lib/errno.in.h (ESTALE): Assign a value if missing.
34141         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34142         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34143         missing.
34144         * doc/posix-headers/errno.texi: Mention the Interix bug.
34145         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
34146
34147 2009-06-15  Eric Blake  <ebb9@byu.net>
34148
34149         memchr, memchr2: add valgrind exception
34150         * lib/memchr.valgrind: New file.
34151         * lib/memchr2.valgrind: New file.
34152         * modules/memchr (Files): Distribute valgrind file.
34153         * modules/memchr2 (Files): Likewise.
34154
34155         docs: memchr is no longer obsolete
34156         * MODULES.html.sh: Move memchr from obsolete to string.h section.
34157         * lib/string.in.h (memchr): Simplify logic.
34158
34159 2009-06-14  Jim Meyering  <meyering@redhat.com>
34160
34161         link-follow: fix the "checking..." message to not mention trailing slash
34162         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
34163         never considered trailing slashes.
34164
34165 2009-06-14  Bruno Haible  <bruno@clisp.org>
34166
34167         * m4/memchr.m4: Mention also the bug on IA-64.
34168         * doc/posix-functions/memchr.texi: Likewise.
34169
34170 2009-06-12  Eric Blake  <ebb9@byu.net>
34171
34172         memchr: detect broken x86_64 and alpha implementations
34173         * modules/memchr-tests (Depends-on): Move mmap detection...
34174         * modules/memchr (Depends-on): ...here.
34175         (configure.ac): Set indicator.
34176         * lib/string.in.h (memchr): Declare replacement.
34177         * modules/string (Makefile.am): Trigger replacement.
34178         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34179         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
34180         bugs.
34181         * doc/posix-functions/memchr.texi (memchr): Document the bug.
34182         * modules/getpagesize (License): Relax license.
34183
34184 2009-06-11  Bruno Haible  <bruno@clisp.org>
34185
34186         * lib/idpriv.h: Add more references.
34187
34188 2009-06-08  Bruno Haible  <bruno@clisp.org>
34189
34190         Tests for module 'idpriv-droptemp'.
34191         * modules/idpriv-droptemp-tests: New file.
34192         * tests/test-idpriv-droptemp.sh: New file.
34193         * tests/test-idpriv-droptemp.su.sh: New file.
34194         * tests/test-idpriv-droptemp.c: New file.
34195
34196         New module 'idpriv-droptemp'.
34197         * lib/idpriv-droptemp.c: New file.
34198         * modules/idpriv-droptemp: New file.
34199
34200 2009-06-08  Bruno Haible  <bruno@clisp.org>
34201
34202         Tests for module 'idpriv-drop'.
34203         * modules/idpriv-drop-tests: New file.
34204         * tests/test-idpriv-drop.sh: New file.
34205         * tests/test-idpriv-drop.su.sh: New file.
34206         * tests/test-idpriv-drop.c: New file.
34207
34208         New module 'idpriv-drop'.
34209         * lib/idpriv.h: New file.
34210         * lib-idpriv-drop.c: New file.
34211         * m4/idpriv.m4: New file.
34212         * modules/idpriv-drop: New file.
34213
34214 2009-06-08  Bruno Haible  <bruno@clisp.org>
34215
34216         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
34217         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34218         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34219         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34220         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34221         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34222         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34223
34224 2009-06-08  Eric Blake  <ebb9@byu.net>
34225
34226         test-strstr: use memory fence, when possible
34227         * tests/test-strstr.c (main): Use memory fence, in order to be
34228         more likely to trigger Debian bug 521737.
34229         * modules/strstr-tests (Files): Pull in additional files.
34230
34231         memchr: no longer obsolete, for wider field testing
34232         * modules/memchr (Status, Notice): Delete, this module is no
34233         longer obsolete.
34234         * modules/vasnprintf (Depends-on): Add memchr.
34235
34236 2009-06-07  Jim Meyering  <meyering@redhat.com>
34237
34238         hash: declare some functions with the warn_unused_result attribute
34239         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
34240
34241 2009-06-07  Bruno Haible  <bruno@clisp.org>
34242
34243         * tests/test-alignof.c: Don't test int64_t if it does not exist.
34244         Reported by Eric Blake.
34245
34246 2009-06-06  Eric Blake  <ebb9@byu.net>
34247
34248         test-alignof: fix typo with long double
34249         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
34250         compiler error.
34251
34252 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
34253
34254         Escape non-texinfo { and }s.
34255         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
34256         markup error.
34257
34258 2009-06-04  Jim Meyering  <meyering@redhat.com>
34259
34260         gitlog-to-changelog: don't infloop on an empty commit log
34261         * build-aux/gitlog-to-changelog: Warn about an empty log message.
34262         Reported by Boris Petersen <transacid@centerim.org>.
34263
34264 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
34265
34266         version-etc: extend for packagers
34267         Add three new configure options, intended for packagers:
34268           --with-packager="packager name"
34269           --with-packager-version="packager-specific version"
34270           --with-packager-bug-reports="packager bug reporting"
34271         An example with coreutils:
34272           $ ./configure \
34273             --with-packager=Gentoo \
34274             --with-packager-bug-report=http://bugs.gentoo.org/ \
34275             --with-packager-version="patchset 1.6"
34276           $ ./src/ls --version | head -n2
34277           ls (GNU coreutils) 7.1-dirty
34278           Packaged by Gentoo (patchset 1.6)
34279         Note that the bug reporting info via --help doesn't show up because
34280         coreutils uses its own custom emit_bug_reporting_address() implementation
34281         in src/system.h.  If it didn't, it'd look like:
34282           $ ./src/ls --help | tail -n4
34283           Report bugs to <bug-coreutils@gnu.org>.
34284           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34285           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34286           General help using GNU software: <http://www.gnu.org/gethelp/>.
34287         * lib/version-etc.c: Print new information, if provided.
34288         * m4/version-etc.m4: New file.
34289         * modules/version-etc (Files): Add m4/version-etc.m4.
34290         (configure.ac): Add gl_VERSION_ETC.
34291
34292 2009-05-31  Bruno Haible  <bruno@clisp.org>
34293
34294         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34295         and 'int64_t'.
34296         * modules/alignof-tests (Dependencies): Add stdint.
34297         Reported by Eric Blake.
34298
34299 2009-05-31  Bruno Haible  <bruno@clisp.org>
34300
34301         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34302         restriction due to compiler bugs.
34303         Reported by Eric Blake.
34304
34305 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34306             Bruno Haible  <bruno@clisp.org>
34307
34308         Fix test-alignof failure.
34309         * lib/alignof.h (alignof_slot): New macro.
34310         (alignof_type): New macro, with the same semantics as the previous
34311         'alignof'.
34312         (alignof): Alias to alignof_slot.
34313         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
34314         check that the results are usable as constant expressions.
34315
34316 2009-05-31  Bruno Haible  <bruno@clisp.org>
34317
34318         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
34319         * tests/test-memchr.c (main): Check that memchr does not read past the
34320         first occurrence of the byte.
34321         * tests/test-strstr.c (main): Update comment.
34322         Suggested by Eric Blake.
34323
34324 2009-05-30  Bruno Haible  <bruno@clisp.org>
34325
34326         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
34327         detail how to use dumpbin.
34328         Reported by David Byron <dbyron@dbyron.com>.
34329
34330 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34331
34332         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
34333
34334 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34335
34336         * m4/manywarnings.m4: Add GCC 4.4 warnings.
34337
34338 2009-05-28  Bruno Haible  <bruno@clisp.org>
34339
34340         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
34341         build-aux/ files.
34342
34343 2009-05-28  Simon Josefsson  <simon@josefsson.org>
34344
34345         * gnulib-tool (func_import): Transform license on build-aux/ files too.
34346
34347 2009-05-27  Simon Josefsson  <simon@josefsson.org>
34348
34349         * gnulib-tool (sed_transform_main_lib_file)
34350         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
34351         regexps.
34352
34353 2009-05-26  Simon Josefsson  <simon@josefsson.org>
34354
34355         * tests/test-strstr.c: Add another self-test.
34356         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
34357         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
34358
34359 2009-05-23  Bruno Haible  <bruno@clisp.org>
34360
34361         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
34362         change.
34363
34364 2009-05-21  Bruno Haible  <bruno@clisp.org>
34365
34366         Simplify use of mode_t varargs.
34367         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
34368         uses 'mode_t' or 'int'.
34369         * lib/openat.c (openat): Likewise.
34370         * lib/open-safer.c (open_safer): Likewise.
34371         * m4/mode_t.m4: New file.
34372         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
34373         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
34374         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
34375         * modules/open (Files): Add m4/mode_t.m4.
34376         * modules/openat (Files): Likewise.
34377         * modules/fcntl-safer (Files): Likewise.
34378         Suggested by Eric Blake.
34379
34380 2009-05-21  Pádraig Brady  <P@draigbrady.com>
34381
34382         * doc/glibc-functions/fallocate.texi: New file.
34383         * doc/gnulib.texi: Include it.
34384
34385 2009-05-21  Eric Blake  <ebb9@byu.net>
34386             Bruno Haible  <bruno@clisp.org>
34387
34388         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
34389         invocations.
34390         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34391
34392 2009-05-21  Eric Blake  <ebb9@byu.net>
34393             Bruno Haible  <bruno@clisp.org>
34394
34395         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
34396         include_next. Fix of 2008-11-20 commit.
34397         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
34398         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
34399         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
34400         NEXT_MATH_H.
34401         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
34402         instead of NEXT_MATH_H.
34403
34404 2009-05-21  Bruno Haible  <bruno@clisp.org>
34405
34406         Avoid redefinition warnings for SIZE_MAX.
34407         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
34408         Reported by Simon Josefsson.
34409
34410 2009-05-21  Bruno Haible  <bruno@clisp.org>
34411
34412         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
34413         AC_CACHE_VAL.
34414
34415 2009-05-20  Bruno Haible  <bruno@clisp.org>
34416
34417         Make zeroptr.h work on mingw.
34418         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
34419         mprotect.
34420         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
34421         * modules/memchr2-tests (configure.ac): Likewise.
34422         * modules/memcmp-tests (configure.ac): Likewise.
34423         * modules/memmem-tests (configure.ac): Likewise.
34424         * modules/memrchr-tests (configure.ac): Likewise.
34425         Reported by Simon Josefsson.
34426
34427 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34428
34429         * tests/test-glob.c: Include string.h for strcmp prototype.
34430
34431 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34432
34433         * modules/getdelim (Depends-on): Add explicit stdint, although it
34434         was implicitly already pulled in via realloc-posix.
34435         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
34436
34437 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34438
34439         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
34440         G. Christensen" <tgc@jupiterrise.com>.
34441         * m4/sys_socket_h.m4: Check for sa_family_t.
34442         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
34443         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
34444         * tests/test-sys_socket.c: Check that sa_family_t works.
34445
34446 2009-05-18  Eric Blake  <ebb9@byu.net>
34447
34448         maint.mk: allow gnulib_dir in VPATH build
34449         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
34450
34451 2009-05-15  Jim Meyering  <meyering@redhat.com>
34452
34453         maint.mk: Give gnulib_dir a default definition.
34454         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
34455         Thus, most packages no longer need to specify this variable in cfg.mk
34456
34457 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
34458
34459         rename.m4: fix typos that would make non-mingw cross-configure fail
34460         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
34461
34462 2009-05-13  Eric Blake  <ebb9@byu.net>
34463
34464         mmap-anon: avoid out-of-order autoconf expansion
34465         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
34466         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
34467         * modules/memchr-tests (Depends-on): Add extensions.
34468         * modules/memchr2-tests (Depends-on): Add extensions.
34469         * modules/memcmp-tests (Depends-on): Add extensions.
34470         * modules/memmem-tests (Depends-on): Add extensions.
34471         * modules/memrchr-tests (Depends-on): Add extensions.
34472
34473 2009-05-13  Bruno Haible  <bruno@clisp.org>
34474
34475         Make some tests ISO C 99 compliant.
34476         * tests/zerosize-ptr.h: New file.
34477         * tests/test-memchr.c: Include zerosize-ptr.h.
34478         (main): Use a zero-size object pointer instead of NULL.
34479         * tests/test-memchr2.c: Include zerosize-ptr.h.
34480         (main): Use a zero-size object pointer instead of NULL.
34481         * tests/test-memcmp.c: Include zerosize-ptr.h.
34482         (main): Use a zero-size object pointer instead of NULL.
34483         * tests/test-memmem.c: Include zerosize-ptr.h.
34484         (main): Use a zero-size object pointer instead of NULL.
34485         * tests/test-memrchr.c: Include zerosize-ptr.h.
34486         (main): Use a zero-size object pointer instead of NULL.
34487         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
34488         m4/mmap-anon.m4.
34489         (Depends-on): Add getpagesize.
34490         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34491         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
34492         m4/mmap-anon.m4.
34493         (Depends-on): Add getpagesize.
34494         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34495         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
34496         m4/mmap-anon.m4.
34497         (Depends-on): Add getpagesize.
34498         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34499         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
34500         m4/mmap-anon.m4.
34501         (Depends-on): Add getpagesize.
34502         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34503         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
34504         m4/mmap-anon.m4.
34505         (Depends-on): Add getpagesize.
34506         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34507
34508 2009-05-12  Bruno Haible  <bruno@clisp.org>
34509
34510         Tests for module 'alignof'.
34511         * modules/alignof-tests: New file.
34512         * tests/test-alignof.c: New file.
34513
34514 2009-05-12  Bruno Haible  <bruno@clisp.org>
34515
34516         Fix alignof macro.
34517         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
34518         vendor compilers that are always correct.
34519
34520 2009-05-12  Bruno Haible  <bruno@clisp.org>
34521
34522         Make the MAP_ANONYMOUS detection work on HP-UX 11.
34523         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
34524         not whether its fully works.
34525
34526 2009-05-12  Bruno Haible  <bruno@clisp.org>
34527
34528         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
34529
34530 2009-05-12  Jim Meyering  <meyering@redhat.com>
34531
34532         * top/maint.mk: Adjust backslash alignment.
34533
34534 2009-05-11  Simon Josefsson  <simon@josefsson.org>
34535
34536         * top/maint.mk: Make $(srcdir)/build-aux configurable.
34537
34538 2009-05-11  Eric Blake  <ebb9@byu.net>
34539
34540         argp: avoid undefined behavior
34541         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
34542         macros.
34543
34544 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34545
34546         * tests/test-vc-list-files-git.sh: Do git config of user.email and
34547         user.name to prevent git commit from complaining.
34548
34549 2009-05-10  Bruno Haible  <bruno@clisp.org>
34550
34551         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
34552         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
34553         it rewrites every file name only once.
34554         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
34555
34556 2009-05-08  Bruno Haible  <bruno@clisp.org>
34557
34558         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
34559         instead of 'max'.
34560
34561 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34562
34563         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
34564         sockaddr_storage test.
34565
34566 2009-05-07  Simon Josefsson  <simon@josefsson.org>
34567
34568         * modules/sys_socket (Makefile.am): Substitute
34569         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
34570         * m4/sys_socket_h.m4: Check for sockaddr_storage.
34571         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
34572         * tests/test-sys_socket.c: Check sockaddr_storage.
34573
34574 2009-05-08  Bruno Haible  <bruno@clisp.org>
34575
34576         New module 'alignof'.
34577         * lib/alignof.h: New file.
34578         * modules/alignof: New file.
34579
34580 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34581             Bruno Haible  <bruno@clisp.org>
34582
34583         Fix test-file-has-acl on FreeBSD.
34584         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
34585         mask is implicitly added.
34586         * tests/test-file-has-acl.c: Include <signal.h>.
34587         (main): Terminate the test after 5 seconds.
34588         * modules/acl-tests (configure.ac): Check for alarm function.
34589
34590 2009-05-04  Bruno Haible  <bruno@clisp.org>
34591
34592         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
34593         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
34594         * modules/errno (configure.ac): Drop AC_REQUIRE.
34595         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
34596         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
34597
34598 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34599
34600         * modules/glob-tests: New module.
34601         * tests/test-glob.c: Add.
34602
34603 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34604
34605         * modules/fnmatch-tests: New module.
34606         * tests/test-fnmatch.c: Add.
34607
34608 2009-05-04  Eric Blake  <ebb9@byu.net>
34609
34610         maint: make the new no-submodule-changes rule VPATH-safe
34611         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
34612
34613 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34614             Bruno Haible  <bruno@clisp.org>
34615
34616         acl: Fix infinite loop on FreeBSD.
34617         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
34618         of return value from acl_get_entry.
34619         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
34620         Likewise.
34621
34622 2009-05-03  Bruno Haible  <bruno@clisp.org>
34623
34624         * lib/acl-internal.h (acl_entries): Clarify return value.
34625         * lib/acl_entries.c (acl_entries): Likewise.
34626
34627 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34628
34629         Bug fix in acl module.
34630         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
34631
34632 2009-05-03  Bruno Haible  <bruno@clisp.org>
34633
34634         Create gperf-generated file in the source dir, not in the build dir.
34635         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
34636         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
34637         * modules/unicase/locale-language (unicase/locale-languages.h):
34638         Likewise.
34639         * modules/unicase/special-casing (unicase/special-casing-table.h):
34640         Likewise.
34641         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
34642         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
34643         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
34644         Reported by Ralf Wildenhues.
34645
34646 2009-05-03  Bruno Haible  <bruno@clisp.org>
34647
34648         * modules/fnmatch (Description, configure.ac): Taken from
34649         fnmatch-posix.
34650         * modules/fnmatch-posix: Turn into a symbolic reference to the
34651         'fnmatch' module, and deprecate.
34652         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
34653
34654 2009-05-03  Bruno Haible  <bruno@clisp.org>
34655
34656         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
34657         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
34658         Reported by Ralf Wildenhues.
34659
34660 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34661
34662         * m4/fnmatch.m4: Fix fnmatch re-define.
34663
34664 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34665
34666         priv-set: new module and tests; adapt write-any-file
34667         * lib/priv-set.c: New file.
34668         * lib/priv-set.h: New file.
34669         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
34670         * lib/write-any-file.c: Simplify by using priv-set module.
34671         * m4/priv-set.m4: New file.
34672         * modules/priv-set: New file.
34673         * modules/unlinkdir: Add dependency on priv-set module.
34674         * modules/write-any-file: Likewise.
34675
34676         Tests for module 'priv-set'.
34677         * modules/priv-set-tests: New file.
34678         * tests/test-priv-set.c: New file.
34679
34680 2009-05-03  Jim Meyering  <meyering@redhat.com>
34681             Bruno Haible  <bruno@clisp.org>
34682
34683         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
34684         use the converted UTF-8 variant of the name instead.
34685
34686 2009-05-03  Jim Meyering  <meyering@redhat.com>
34687
34688         tests: tighten some getdate tests
34689         * tests/test-getdate.c (main): Tighten tests: require equality,
34690         not just greater than.  Set TZ envvar to UTC0.
34691
34692 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34693
34694         getdate: correctly interpret "next monday" when run on a Monday
34695         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
34696         that e.g., "next tues" (when run on a tuesday) results in a date
34697         that is one week in the future, and not today's date.
34698         I.e., add a week when the wday is the same as the current one.
34699         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
34700         and earlier by Martin Bernreuther and Jan Minář.
34701         * tests/test-getdate.c (main): Check that "next DAY" is always in
34702         the future and that "last DAY" is always in the past.
34703
34704 2009-05-02  Jim Meyering  <meyering@redhat.com>
34705
34706         build: ensure that a release build fails when a submodule is unclean
34707         * top/maint.mk (no-submodule-changes): New rule.
34708         (alpha beta major): Depend on it.
34709
34710 2009-05-02  Bruno Haible  <bruno@clisp.org>
34711
34712         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
34713         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
34714         shell variable gl_fnmatch_required to detect which variant is
34715         requested.
34716         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
34717         gl_FUNC_FNMATCH_POSIX.
34718         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
34719         exclude fnmatch-posix.
34720
34721 2009-05-02  Bruno Haible  <bruno@clisp.org>
34722
34723         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
34724         * modules/mbsrtowcs (License): Change to LGPLv2+.
34725         * modules/strnlen1 (License): Likewise.
34726         Reported by Simon Josefsson.
34727
34728 2009-05-02  Bruno Haible  <bruno@clisp.org>
34729
34730         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
34731         "cross".
34732         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
34733         gnulib-tool was called with option --source-base=lib.
34734
34735 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34736
34737         Use automake *-local hooks without commands, for extensibility.
34738         * modules/localcharset (Makefile.am): Rename install-exec-local
34739         rule to install-exec-localcharset, and make it a prerequisite of
34740         install-exec-local.  Likewise, rename the uninstall-local rule to
34741         uninstall-localcharset, and make it a prerequisite of the former.
34742
34743 2009-05-01  Bruno Haible  <bruno@clisp.org>
34744
34745         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
34746         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34747         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
34748         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
34749         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
34750         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34751         m4/locale-zh.m4, m4/codeset.m4.
34752
34753         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34754         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
34755         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34756         m4/locale-zh.m4.
34757
34758         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
34759         REPLACE_WCRTOMB if mbstate_t must be replaced.
34760         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
34761         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
34762
34763 2009-05-01  Bruno Haible  <bruno@clisp.org>
34764
34765         Avoid compiler warnings when redefining macros defined by <libintl.h>.
34766         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
34767         dngettext, dcngettext, textdomain, bindtextdomain,
34768         bind_textdomain_codeset): Undefine before redefining.
34769
34770 2009-04-30  Bruno Haible  <bruno@clisp.org>
34771
34772         Fix bug introduced on 2009-04-25.
34773         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
34774         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
34775         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
34776         is defined.
34777         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
34778         is defined.
34779         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
34780         is defined.
34781         Reported by Elbert_Pol <elbert.pol@gmail.com>.
34782
34783 2009-04-28  Bruno Haible  <bruno@clisp.org>
34784
34785         Comment tweaks.
34786         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
34787         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
34788         * lib/unicase.h (u*_casexfrm): Likewise.
34789         Reported by Paolo Bonzini.
34790
34791 2009-04-28  Bruno Haible  <bruno@clisp.org>
34792
34793         Fix a compilation error.
34794         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
34795         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34796         Reported by Jim Meyering.
34797
34798 2009-04-27  Bruno Haible  <bruno@clisp.org>
34799
34800         New module 'libunistring'.
34801         * modules/libunistring: New file.
34802         * m4/libunistring.m4: New file.
34803         * MODULES.html.sh (Unicode string functions): Add it.
34804
34805 2009-04-27  Eric Blake  <ebb9@byu.net>
34806
34807         maint.mk: allow package-specific header to provide <config.h>
34808         * top/maint.mk (sc_require_config_h): New variable.
34809         (sc_require_config_h, sc_require_config_h_first): Use it.
34810
34811 2009-04-27  Simon Josefsson  <simon@josefsson.org>
34812
34813         * top/maint.mk (sc_avoid_if_before_free): Except
34814         useless-if-before-free script.
34815
34816 2009-04-27  Eric Blake  <ebb9@byu.net>
34817
34818         maintainer-makefile: depend on all required helper scripts
34819         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
34820         useless-if-before-free.
34821         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
34822         version, rather than assuming gnulib checkout is available.
34823         Reported by Simen Josefsson.
34824
34825 2009-04-26  Bruno Haible  <bruno@clisp.org>
34826
34827         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
34828         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
34829         "../" or "..".
34830
34831 2009-04-26  Bruno Haible  <bruno@clisp.org>
34832
34833         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
34834         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
34835         AC_LIB_HAVE_LINKFLAGS.
34836
34837 2009-04-26  Bruno Haible  <bruno@clisp.org>
34838
34839         Simplify calling convention of u*_conv_from_encoding.
34840         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
34841         u32_conv_from_encoding): Expect a resultbuf argument and return the
34842         result directly as a pointer.
34843         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
34844         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
34845         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
34846         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
34847         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
34848         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
34849         Update.
34850         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
34851         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
34852         * lib/vasnprintf.c (VASNPRINTF): Update.
34853         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
34854         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
34855         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
34856         * NEWS: Mention the change.
34857
34858 2009-04-26  Bruno Haible  <bruno@clisp.org>
34859
34860         Simplify calling convention of u*_conv_to_encoding.
34861         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34862         u32_conv_to_encoding): Expect a resultbuf argument and return the
34863         result directly as a pointer.
34864         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
34865         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
34866         freeing scaled_offsets if mem_iconveha failed.
34867         * lib/unicase/u-casexfrm.h (FUNC): Update.
34868         * lib/uninorm/u-normxfrm.h (FUNC): Update.
34869         * lib/vasnprintf.c (VASNPRINTF): Update.
34870         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
34871         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
34872         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
34873         * NEWS: Mention the change.
34874
34875 2009-04-26  Bruno Haible  <bruno@clisp.org>
34876
34877         Avoid test failures on AIX and OSF/1.
34878         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
34879         malloc(0).
34880         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
34881         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
34882         Likewise.
34883         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
34884         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
34885         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
34886         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
34887         * doc/posix-functions/malloc.texi: Document the portability problem
34888         related to malloc(0).
34889
34890 2009-04-26  Bruno Haible  <bruno@clisp.org>
34891
34892         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
34893         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
34894         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
34895
34896 2009-04-25  Bruno Haible  <bruno@clisp.org>
34897
34898         Avoid link error when creating a namespace clean library.
34899         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
34900         as macro with arguments if already defined as an alias.
34901         * lib/signbitf.c (gl_signbitf): Don't undefine.
34902         * lib/signbitd.c (gl_signbitd): Don't undefine.
34903         * lib/signbitl.c (gl_signbitl): Don't undefine.
34904
34905 2009-04-25  Jim Meyering  <meyering@redhat.com>
34906
34907         vc-list-files: fix another quoting bug
34908         * build-aux/vc-list-files: Avoid sed backslash expansion
34909         of pathological directory names.
34910
34911 2009-04-25  Eric Blake  <ebb9@byu.net>
34912
34913         vc-list-files: fix shell quoting error
34914         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
34915         timestamp.
34916
34917 2009-04-25  Jim Meyering  <meyering@redhat.com>
34918
34919         vc-list-files: restore lost functionality with subdir argument
34920         * build-aux/vc-list-files: When given a non-"." sub-directory
34921         argument, substitute the $dir/ prefix back onto each resulting name.
34922         Otherwise, coreutils' root_tests check would fail.
34923
34924 2009-04-24  Eric Blake  <ebb9@byu.net>
34925
34926         vc-list-files: ignore git symlinks
34927         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
34928         than ls-files, to ignore git symlinks.
34929
34930         maint.mk: import improvements from m4
34931         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
34932         (move_if_change): Delete unused macro.
34933         (news-date-check, vc-diff-check): Support VPATH builds.
34934         (announcement): Likewise.  Split --bootstrap-tools list...
34935         (boostrap-tools): ...into separate list, which can be overridden
34936         in cfg.mk.
34937         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
34938         requiring dependency on useless-if-before-free module.
34939         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
34940         Support VPATH builds.
34941
34942 2009-04-24  Jim Meyering  <meyering@redhat.com>
34943
34944         maint.mk: remove coreutils-specific rules and variables
34945         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
34946         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
34947         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
34948
34949         maint.mk: remove obsolete rule
34950         * top/maint.mk (rel-check): Remove rule.
34951         (WGET, WGETFLAGS): Remove now-unused variables.
34952
34953 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34954
34955         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
34956         consistency.
34957
34958         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
34959         '$(PATH_SEPARATOR)' instead of ':'.
34960
34961 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34962
34963         * lib/getopt1.c (main): Use 'const' for static array.
34964
34965 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34966
34967         * top/maint.mk: Sync with coreutils.
34968         * NEWS: Explain incompatibilities.
34969
34970 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34971             Bruno Haible  <bruno@clisp.org>
34972
34973         Fix cross-compilation results.
34974         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
34975         statement, as third argument of AC_TRY_RUN.
34976         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
34977         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
34978         Likewise.
34979         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
34980         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
34981         Likewise.
34982         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
34983         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
34984         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
34985
34986 2009-04-20  Bruno Haible  <bruno@clisp.org>
34987
34988         Avoid test failure on mingw.
34989         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
34990
34991 2009-04-20  Bruno Haible  <bruno@clisp.org>
34992
34993         Avoid compilation error on mingw.
34994         * modules/localename-tests (Depends-on): Add locale.
34995
34996 2009-04-19  Bruno Haible  <bruno@clisp.org>
34997
34998         Support for building a shared library on Windows platforms.
34999         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35000         (main): Test the presence of UNINORM_NFC here.
35001         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35002         (main): Test the presence of UNINORM_NFD here.
35003         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35004         (main): Test the presence of UNINORM_NFKC here.
35005         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35006         (main): Test the presence of UNINORM_NFKD here.
35007
35008 2009-04-19  Bruno Haible  <bruno@clisp.org>
35009
35010         Avoid a compiler warning.
35011         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35012         Change type of variable 'sequence'.
35013
35014 2009-04-19  Bruno Haible  <bruno@clisp.org>
35015
35016         * modules/configmake (Makefile.am): When the contents of configmake.h
35017         does not change, arrange to preserve its modification time.
35018
35019 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35020
35021         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35022         gettext domain.
35023
35024 2009-04-16  Jim Meyering  <meyering@redhat.com>
35025
35026         useless-if-before-free: improve conversion code
35027         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35028         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35029
35030 2009-04-14  Bruno Haible  <bruno@clisp.org>
35031
35032         * modules/fcntl (Depends-on): Add extensions.
35033         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35034
35035 2009-04-12  Ben Pfaff  <blp@gnu.org>
35036
35037         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35038         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35039
35040 2009-03-20  Ben Pfaff  <blp@gnu.org>
35041
35042         Make rename replace existing destinations on Windows.
35043         * m4/rename.m4: Add test for Mingw.
35044         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35045         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35046         * doc/posix-functions/rename.texi: Document.
35047
35048 2009-04-10  Bruno Haible  <bruno@clisp.org>
35049
35050         New include file "iconveh.h".
35051         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35052         * lib/striconveh.h: Include it.
35053         (enum iconv_ilseq_handler): Remove definition.
35054         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35055         striconveh.h.
35056         * lib/striconveha.c: Include striconveh.h.
35057         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35058         * modules/striconveh (Files): Add lib/iconveh.h.
35059         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35060         lib/striconveh.h.
35061
35062 2009-04-10  Bruno Haible  <bruno@clisp.org>
35063
35064         * lib/uniconv.h: Update comment.
35065
35066 2009-04-10  Bruno Haible  <bruno@clisp.org>
35067
35068         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35069         always.
35070         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35071         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35072         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35073         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35074         "unistring-notinline.h", so that the function gets defined always.
35075         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35076         * lib/unistr/u8-uctomb.c: Likewise.
35077         * lib/unistr/u16-mbtouc.c: Likewise.
35078         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35079         * lib/unistr/u16-uctomb.c: Likewise.
35080         * lib/unistr/u32-mbtouc.c: Likewise.
35081         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35082         * lib/unistr/u32-uctomb.c: Likewise.
35083
35084 2009-04-10  Bruno Haible  <bruno@clisp.org>
35085
35086         Mark 'utime' obsolete.
35087         * modules/utime (Status, Notice): New sections.
35088         Suggested by Jim Meyering.
35089
35090         Fix cross-compile guess for utime test.
35091         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35092         autoconf.
35093         * doc/posix-functions/utime.texi: Give more precisions.
35094         Reported by Jan <ipif@ymail.com>.
35095
35096 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35097
35098         filevercmp: correct today's change
35099         * lib/filevercmp.c: Also handle coreutils' test inputs.
35100         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35101
35102         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35103         for reporting it.
35104         * lib/filevercmp.c: Special handle for "", "." and "..".
35105         * tests/test-filevercmp.c: Enlarge the set suite.
35106
35107 2009-04-07  Jim Meyering  <meyering@redhat.com>
35108
35109         useless-if-before-free: show how to remove braced useless free, too
35110         * build-aux/useless-if-before-free: still only in a comment, though.
35111
35112 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35113
35114         maint.mk: import changes to syntax-check macros from coreutils
35115         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35116         Use them in the relevant macros.
35117
35118 2009-04-06  Bruno Haible  <bruno@clisp.org>
35119
35120         Fix unportable use of bit-fields.
35121         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35122         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35123         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35124
35125 2009-04-06  Bruno Haible  <bruno@clisp.org>
35126
35127         Avoid test failures on AIX and OSF/1.
35128         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35129         that malloc(0) = NULL.
35130         * tests/unicase/test-u8-tolower.c (check): Likewise.
35131         * tests/unicase/test-u8-totitle.c (check): Likewise.
35132         * tests/unicase/test-u8-toupper.c (check): Likewise.
35133         * tests/unicase/test-u16-casefold.c (check): Likewise.
35134         * tests/unicase/test-u16-tolower.c (check): Likewise.
35135         * tests/unicase/test-u16-totitle.c (check): Likewise.
35136         * tests/unicase/test-u16-toupper.c (check): Likewise.
35137         * tests/unicase/test-u32-casefold.c (check): Likewise.
35138         * tests/unicase/test-u32-tolower.c (check): Likewise.
35139         * tests/unicase/test-u32-totitle.c (check): Likewise.
35140         * tests/unicase/test-u32-toupper.c (check): Likewise.
35141         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35142         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35143         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
35144         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
35145         * tests/uninorm/test-u16-nfc.c (check): Likewise.
35146         * tests/uninorm/test-u16-nfd.c (check): Likewise.
35147         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
35148         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
35149         * tests/uninorm/test-u32-nfc.c (check): Likewise.
35150         * tests/uninorm/test-u32-nfd.c (check): Likewise.
35151         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
35152         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
35153
35154 2009-04-05  Bruno Haible  <bruno@clisp.org>
35155
35156         Work around an autoconf limitation.
35157         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
35158         comment line if it would be longer than 3 KB.
35159
35160 2009-04-05  Bruno Haible  <bruno@clisp.org>
35161
35162         Avoid test failure with libiconv-1.13.
35163         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
35164         of the expected test results.
35165
35166 2009-04-05  Bruno Haible  <bruno@clisp.org>
35167
35168         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
35169         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
35170         that it should be installed.
35171
35172 2009-04-05  Bruno Haible  <bruno@clisp.org>
35173
35174         * gnulib-tool: New option --copy-file.
35175         (func_usage): Document it.
35176         (func_dest_tmpfilename): Moved out of func_import.
35177         (func_add_file, func_update_file): New functions, extracted from
35178         func_import.
35179         (func_import): Update.
35180
35181 2009-04-05  Karl Berry  <karl@gnu.org>
35182
35183         * README: prominently mention gnulib-tool.
35184         Rearrange sections so getting the code is near the top.
35185
35186 2009-04-05  Bruno Haible  <bruno@clisp.org>
35187
35188         * lib/unicase.h: Mention u*_cmp2.
35189         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35190         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
35191         * lib/unicase/ulc-casecmp.c: Likewise.
35192         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
35193         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
35194         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
35195         unistr/u8-cmp.
35196         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
35197         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
35198         unistr/u16-cmp.
35199         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
35200         unistr/u32-cmp.
35201
35202         * lib/uninorm.h: Mention u*_cmp2.
35203         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35204         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
35205         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35206         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
35207         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
35208         unistr/u8-cmp.
35209         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
35210         unistr/u16-cmp.
35211         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
35212         unistr/u32-cmp.
35213
35214         New module 'unistr/u32-cmp2'.
35215         * lib/unistr/u32-cmp2.c: New file.
35216         * modules/unistr/u32-cmp2: New file.
35217
35218         New module 'unistr/u16-cmp2'.
35219         * lib/unistr/u16-cmp2.c: New file.
35220         * modules/unistr/u16-cmp2: New file.
35221
35222         New module 'unistr/u8-cmp2'.
35223         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
35224         * lib/unistr/u8-cmp2.c: New file.
35225         * lib/unistr/u-cmp2.h: New file.
35226         * modules/unistr/u8-cmp2: New file.
35227
35228 2009-04-05  Bruno Haible  <bruno@clisp.org>
35229
35230         * lib/unictype.h (uc_property_is_valid): New macro.
35231         * tests/unictype/test-pr_byname.c (main): Use it.
35232
35233         * lib/unistr.h: Doc fixes.
35234         * lib/uniconv.h: Doc fixes.
35235         * lib/unictype.h: Doc fixes.
35236
35237 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
35238
35239         Port coreutils 7.2 to Solaris 8.
35240
35241         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
35242         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
35243         for Solaris 8.  This is a bit of a hack, as it means it's the
35244         caller's responsibility to add -lnsl if needed, but most likely it
35245         won't be needed since only getaddrinfo uses this and getaddrinfo
35246         isn't needed on Solaris 8.
35247
35248         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
35249         problem to Solaris 8 encountered with coreutils 7.2, which
35250         resulted in a message "fnmatch.c:292: warning: passing argument 4
35251         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
35252         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
35253
35254 2009-04-03  Simon Josefsson  <simon@josefsson.org>
35255
35256         * m4/ld-version-script.m4: Add FIXME comment.
35257
35258 2009-04-02  Simon Josefsson  <simon@josefsson.org>
35259
35260         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
35261         SOVERSION variable.
35262
35263 2009-04-02  Bruno Haible  <bruno@clisp.org>
35264
35265         * Makefile (info, html, dvi, pdf): Combine the rules.
35266         Suggested by Jim Meyering.
35267
35268 2009-04-01  Bruno Haible  <bruno@clisp.org>
35269
35270         * Makefile (info, html, dvi, pdf): New targets.
35271         Reported by Reuben Thomas <rrt@sc3d.org>.
35272
35273 2009-04-01  Bruno Haible  <bruno@clisp.org>
35274
35275         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35276         can be put into PATH.
35277         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35278
35279 2009-04-01  Bruno Haible  <bruno@clisp.org>
35280
35281         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35282
35283 2009-04-01  Bruno Haible  <bruno@clisp.org>
35284
35285         Rename module 'visibility'.
35286         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35287         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35288         * doc/gnulib.texi: Update.
35289         * MODULES.html.sh (Misc): Update.
35290         * NEWS: Mention the change.
35291
35292 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35293
35294         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35295         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35296         Eric Blake <ebb9@byu.net> for review.
35297         * MODULES.html.sh: Add lib-msvc-compat.
35298         * doc/gnulib.texi: Link to new section.
35299         * m4/ld-output-def.m4: New file.
35300         * doc/ld-output-def.texi: New file.
35301
35302 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35303
35304         Rename ld-version-script to lib-symbol-versions.  Suggested by
35305         Bruno Haible <bruno@clisp.org>.
35306         * modules/ld-version-script: Renamed to lib-symbol-versions.
35307         * doc/ld-version-script.texi: Fix module name.
35308         * MODULES.html.sh: Add lib-symbol-versions.
35309
35310 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35311
35312         * modules/u64-tests: New file.
35313         * tests/test-u64.c: New file.
35314
35315 2009-03-04  Simon Josefsson  <simon@josefsson.org>
35316
35317         * MODULES.html.sh: Mention u64.
35318         * modules/u64: New module.
35319         * modules/crypto/sha512: Depend on u64 module instead of providing
35320         u64.h.
35321
35322 2009-03-27  Eric Blake  <ebb9@byu.net>
35323
35324         test-strerror: make debugging EAI_SYSTEM easier
35325         * modules/getaddrinfo-tests (Depends-on): Add strerror.
35326         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
35327         failure was EAI_SYSTEM.
35328
35329 2009-03-25  Bruno Haible  <bruno@clisp.org>
35330
35331         Fix a problem with --enable-relocatable on Solaris 7.
35332         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
35333         since 2008-02-24.
35334
35335 2009-03-25  Eric Blake  <ebb9@byu.net>
35336
35337         test-sockets: avoid gcc warning
35338         * tests/test-sockets.c (main): Silence compiler warning.
35339
35340 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35341
35342         New modules nproc, pthread, contributed by Glen Lenker.
35343
35344         * MODULES.html.sh: Add pthread, nproc.
35345         * lib/nproc.c: New file.
35346         * lib/nproc.h: New file.
35347         * lib/pthread.in.h: New file.
35348         * m4/pthread.m4: New file.
35349         * modules/nproc: New file.
35350         * modules/pthread: New file.
35351
35352 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35353
35354         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
35355         New variable.
35356
35357 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
35358
35359         filevercmp: handle simple~ and numbered.~3~ backup suffixes
35360         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
35361         * tests/test-filevercmp.c: Add tests for backup suffixes.
35362
35363 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35364
35365         * modules/stdlib (Depends-on): Add stdint, needed when defining
35366         struct random_data on, for example, HP-UX 10.20.  Reported by
35367         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35368
35369 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35370
35371         * lib/readline.c (readline): Call fflush on stdout after printing
35372         prompt.
35373
35374 2009-03-20  Bruno Haible  <bruno@clisp.org>
35375
35376         Remove dependency from 'close' module to -lws2_32 on native Windows.
35377         * lib/close-hook.h: New file.
35378         * lib/close-hook.c: New file.
35379         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
35380         w32sock.h.
35381         (_gl_close_fd_maybe_socket): Remove function.
35382         (rpl_close): Invoke execute_all_close_hooks instead of
35383         _gl_close_fd_maybe_socket.
35384         * lib/sockets.c: Include close-hook.h, w32sock.h.
35385         (close_fd_maybe_socket): New function, essentially from lib/close.c.
35386         (close_sockets_hook): New variable.
35387         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
35388         (gl_sockets_cleanup): Unregister it.
35389         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
35390         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
35391         * modules/close-hook: New file.
35392         * modules/close (Files): Remove lib/w32sock.h.
35393         (Depends-on): Add close-hook.
35394         (Link): Remove section.
35395         * modules/sockets (Files): Add lib/w32sock.h.
35396         (Depends-on): Add close-hook.
35397         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
35398         invocation.
35399         * NEWS: Mention that LIB_CLOSE is gone.
35400
35401 2009-03-23  Eric Blake  <ebb9@byu.net>
35402
35403         signal-tests: test previous patch
35404         * tests/test-signal.c: New file.
35405         * modules/signal-tests: Likewise.
35406
35407         signal.h: always support 'volatile sig_atomic_t'
35408         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
35409         (gl_SIGNAL_H_DEFAULTS): Add a default.
35410         * modules/signal (Makefile.am): Substitute if needed.
35411         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
35412         users can blindly add volatile.
35413         * doc/posix-headers/signal.texi (signal.h): Document it.
35414         Reported by Matthew Woehlke.
35415
35416 2009-03-23  Jim Meyering  <meyering@redhat.com>
35417
35418         pathmax: PATH_MAX: use pathconf only when available
35419         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
35420         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
35421         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
35422         This avoids a link failure in a PSP cross-compilation environment
35423         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
35424
35425         * lib/vasnprintf.c (divide): Fix typo in comment.
35426
35427 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35428
35429         * gnulib-tool (func_filter_filelist): Fix comment.
35430
35431 2009-03-20  Bruno Haible  <bruno@clisp.org>
35432
35433         Make sockets.h self-contained.
35434         * lib/sockets.c: Include sockets.h first.
35435         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
35436
35437 2009-03-19  Eric Blake  <ebb9@byu.net>
35438
35439         doc: mention more functions added in cygwin 1.7.0
35440         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
35441         addition.
35442         * doc/posix-functions/log2f.texi: Likewise.
35443
35444 2009-03-19  Jim Meyering  <meyering@redhat.com>
35445
35446         fsusage: avoid syntax error due to statement-before-declaration
35447         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
35448         after all declarations.  Reported by Matthew Woehlke in
35449         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
35450
35451 2009-03-18  Eric Blake  <ebb9@byu.net>
35452
35453         build-aux/compile: sync from automake
35454         * build-aux/compile: New file, from automake.
35455         * config/srclist.txt: Mention build-aux/compile.
35456
35457 2009-03-17  Bruno Haible  <bruno@clisp.org>
35458
35459         * lib/git-merge-changelog.c: Fix typo in comment.
35460         Reported by Reuben Thomas <rrt@sc3d.org>.
35461
35462 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
35463
35464         * m4/regex.m4: update and improve help for
35465         --without-included-regex.
35466
35467 2009-03-17  Simon Josefsson  <simon@josefsson.org>
35468
35469         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
35470         failure on missing include files.
35471
35472 2009-03-17  Eric Blake  <ebb9@byu.net>
35473
35474         doc: mention more functions added in cygwin 1.7.0
35475         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
35476         addition.
35477         * doc/posix-functions/fwscanf.texi: Likewise.
35478         * doc/posix-functions/swprintf.texi: Likewise.
35479         * doc/posix-functions/swscanf.texi: Likewise.
35480         * doc/posix-functions/vfwprintf.texi: Likewise.
35481         * doc/posix-functions/vfwscanf.texi: Likewise.
35482         * doc/posix-functions/vswprintf.texi: Likewise.
35483         * doc/posix-functions/vswscanf.texi: Likewise.
35484         * doc/posix-functions/vwprintf.texi: Likewise.
35485         * doc/posix-functions/vwscanf.texi: Likewise.
35486         * doc/posix-functions/wcscasecmp.texi: Likewise.
35487         * doc/posix-functions/wcsdup.texi: Likewise.
35488         * doc/posix-functions/wcsftime.texi: Likewise.
35489         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35490         * doc/posix-functions/wprintf.texi: Likewise.
35491         * doc/posix-functions/wscanf.texi: Likewise.
35492         * doc/glibc-functions/gethostbyname2.texi: Likewise.
35493
35494 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35495
35496         maint.mk: really add $(AM_MAKEFLAGS)
35497         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
35498         was inadvertently omitted in the last commit.
35499         Spotted by Bruno Haible.
35500
35501         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
35502         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
35503         $(AM_MAKEFLAGS)' rather than plain `make'.
35504
35505         gnulib-tool: execute $MAKE not make
35506         * gnulib-tool: Default $MAKE to 'make'.
35507         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
35508         than make.  Initialize $MAKE in the do-autobuild script.
35509
35510         gnulib-tool: use $MAKE not make in generated files
35511         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
35512         make, in generated files.  Initialize $MAKE in the do-autobuild
35513         script.
35514
35515         * top/GNUmakefile (_have-git-version-gen): Fix typo.
35516
35517         GNUmakefile: disable parallelism only for multiple, recursive targets
35518         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
35519         additions in the Makefile.
35520         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
35521         by Automake.
35522         (.NOTPARALLEL): Only disable parallel builds if multiple targets
35523         are listed on the command line and at least one of them is
35524         listed in $(ALL_RECURSIVE_TARGETS).
35525
35526 2009-03-14  Bruno Haible  <bruno@clisp.org>
35527
35528         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
35529         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
35530         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
35531         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
35532         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
35533         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
35534         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
35535         unistr/u8-uctomb.
35536         * modules/unistr/u8-strchr (Depends-on): Likewise.
35537         * modules/unistr/u8-strrchr (Depends-on): Likewise.
35538         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
35539         unistr/u16-uctomb.
35540         * modules/unistr/u16-strchr (Depends-on): Likewise.
35541         * modules/unistr/u16-strrchr (Depends-on): Likewise.
35542
35543 2009-03-12  Bruno Haible  <bruno@clisp.org>
35544
35545         Work around select() bug on Interix 3.5.
35546         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
35547         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
35548         * m4/select.m4: New file.
35549         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
35550         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
35551         * modules/select (Files): Add m4/select.m4.
35552         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
35553         * modules/nanosleep (Depends-on): Add select.
35554         * modules/poll (Depends-on): Likewise.
35555         * doc/posix-functions/select.texi: Mention the Interix bug.
35556         Reported by Markus Duft <mduft@gentoo.org>.
35557
35558         * lib/select.c: Renamed from lib/winsock-select.c.
35559         * modules/select (Files): Add lib/select.c, remove
35560         lib/winsock-select.c.
35561         (configure.ac): Update.
35562
35563 2009-03-12  Jim Meyering  <meyering@redhat.com>
35564
35565         avoid gcc warnings about unused macro definitions
35566         * lib/readtokens.c (STREQ): Remove unused definition.
35567         * lib/xmalloc.c (SIZE_MAX): Likewise.
35568         * lib/openat-die.c (N_): Likewise.
35569         * lib/mountlist.c (SIZE_MAX): Remove definition.
35570         Instead, include <stdint.h>.
35571         * lib/readutmp.c: Likewise.
35572         * modules/readutmp (Depends-on): Add stdint.
35573         * modules/mountlist (Depends-on): Add stdint.
35574         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
35575
35576 2009-03-10  Bruno Haible  <bruno@clisp.org>
35577
35578         Tests for module 'mbmemcasecoll'.
35579         * modules/mbmemcasecoll-tests: New file.
35580         * tests/test-mbmemcasecoll1.sh: New file.
35581         * tests/test-mbmemcasecoll2.sh: New file.
35582         * tests/test-mbmemcasecoll3.sh: New file.
35583         * tests/test-mbmemcasecoll.c: New file.
35584
35585         New module 'mbmemcasecoll'.
35586         * lib/mbmemcasecoll.h: New file.
35587         * lib/mbmemcasecoll.c: New file.
35588         * modules/mbmemcasecoll: New file.
35589
35590         * tests/test-mbmemcasecmp.h: New file, extracted from
35591         tests/test-mbmemcasecmp.c.
35592         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
35593         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
35594         (main): Update.
35595         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
35596
35597 2009-03-09  Bruno Haible  <bruno@clisp.org>
35598
35599         Tests for module 'mbmemcasecmp'.
35600         * modules/mbmemcasecmp-tests: New file.
35601         * tests/test-mbmemcasecmp1.sh: New file.
35602         * tests/test-mbmemcasecmp2.sh: New file.
35603         * tests/test-mbmemcasecmp3.sh: New file.
35604         * tests/test-mbmemcasecmp.c: New file.
35605
35606         New module 'mbmemcasecmp'.
35607         * lib/mbmemcasecmp.h: New file.
35608         * lib/mbmemcasecmp.c: New file.
35609         * modules/mbmemcasecmp: New file.
35610
35611 2009-03-09  Bruno Haible  <bruno@clisp.org>
35612
35613         Tests for module 'unicase/ulc-casecoll'.
35614         * modules/unicase/ulc-casecoll-tests: New file.
35615         * tests/unicase/test-ulc-casecoll1.sh: New file.
35616         * tests/unicase/test-ulc-casecoll2.sh: New file.
35617         * tests/unicase/test-ulc-casecoll.c: New file.
35618
35619         New module 'unicase/ulc-casecoll'.
35620         * lib/unicase.h (ulc_casecoll): New declaration.
35621         * lib/unicase/ulc-casecoll.c: New file.
35622         * modules/unicase/ulc-casecoll: New file.
35623
35624         New module 'unicase/ulc-casexfrm'.
35625         * lib/unicase.h (ulc_casexfrm): New declaration.
35626         * lib/unicase/ulc-casexfrm.c: New file.
35627         * modules/unicase/ulc-casexfrm: New file.
35628
35629 2009-03-09  Bruno Haible  <bruno@clisp.org>
35630
35631         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
35632         invocations.
35633
35634         * m4/mbscasecmp.m4: Remove file.
35635         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
35636         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
35637
35638         * m4/mbscasestr.m4: Remove file.
35639         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
35640         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
35641
35642         * m4/mbschr.m4: Remove file.
35643         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
35644         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
35645
35646         * m4/mbscspn.m4: Remove file.
35647         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
35648         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
35649
35650         * m4/mbslen.m4: Remove file.
35651         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
35652         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
35653
35654         * m4/mbsncasecmp.m4: Remove file.
35655         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
35656         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
35657
35658         * m4/mbsnlen.m4: Remove file.
35659         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
35660         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
35661
35662         * m4/mbspbrk.m4: Remove file.
35663         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
35664         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
35665
35666         * m4/mbspcasecmp.m4: Remove file.
35667         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
35668         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
35669
35670         * m4/mbsrchr.m4: Remove file.
35671         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
35672         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
35673
35674         * m4/mbssep.m4: Remove file.
35675         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
35676         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
35677
35678         * m4/mbsspn.m4: Remove file.
35679         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
35680         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
35681
35682         * m4/mbsstr.m4: Remove file.
35683         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
35684         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
35685
35686         * m4/mbstok_r.m4: Remove file.
35687         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
35688         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
35689
35690         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
35691
35692         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
35693         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
35694
35695         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
35696
35697 2009-03-08  Bruno Haible  <bruno@clisp.org>
35698
35699         Tests for module 'unicase/ulc-casecmp'.
35700         * modules/unicase/ulc-casecmp-tests: New file.
35701         * tests/unicase/test-ulc-casecmp1.sh: New file.
35702         * tests/unicase/test-ulc-casecmp2.sh: New file.
35703         * tests/unicase/test-ulc-casecmp.c: New file.
35704
35705         New module 'unicase/ulc-casecmp'.
35706         * lib/unicase.h (ulc_casecmp): New declaration.
35707         * lib/unicase/ulc-casecmp.c: New file.
35708         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
35709         'const SRC_UNIT *'.
35710         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
35711         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
35712         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
35713         * modules/unicase/ulc-casecmp: New file.
35714
35715         Tests for module 'unicase/u32-is-cased'.
35716         * modules/unicase/u32-is-cased-tests: New file.
35717         * tests/unicase/test-u32-is-cased.c: New file.
35718
35719         Tests for module 'unicase/u16-is-cased'.
35720         * modules/unicase/u16-is-cased-tests: New file.
35721         * tests/unicase/test-u16-is-cased.c: New file.
35722
35723         Tests for module 'unicase/u8-is-cased'.
35724         * modules/unicase/u8-is-cased-tests: New file.
35725         * tests/unicase/test-u8-is-cased.c: New file.
35726         * tests/unicase/test-is-cased.h: New file.
35727
35728         New module 'unicase/u32-is-cased'.
35729         * lib/unicase/u32-is-cased.c: New file.
35730         * modules/unicase/u32-is-cased: New file.
35731
35732         New module 'unicase/u16-is-cased'.
35733         * lib/unicase/u16-is-cased.c: New file.
35734         * modules/unicase/u16-is-cased: New file.
35735
35736         New module 'unicase/u8-is-cased'.
35737         * lib/unicase/u8-is-cased.c: New file.
35738         * lib/unicase/u-is-cased.h: New file.
35739         * modules/unicase/u8-is-cased: New file.
35740
35741         Tests for module 'unicase/u32-is-casefolded'.
35742         * modules/unicase/u32-is-casefolded-tests: New file.
35743         * tests/unicase/test-u32-is-casefolded.c: New file.
35744
35745         Tests for module 'unicase/u16-is-casefolded'.
35746         * modules/unicase/u16-is-casefolded-tests: New file.
35747         * tests/unicase/test-u16-is-casefolded.c: New file.
35748
35749         Tests for module 'unicase/u8-is-casefolded'.
35750         * modules/unicase/u8-is-casefolded-tests: New file.
35751         * tests/unicase/test-u8-is-casefolded.c: New file.
35752         * tests/unicase/test-is-casefolded.h: New file.
35753
35754         New module 'unicase/u32-is-casefolded'.
35755         * lib/unicase/u32-is-casefolded.c: New file.
35756         * modules/unicase/u32-is-casefolded: New file.
35757
35758         New module 'unicase/u16-is-casefolded'.
35759         * lib/unicase/u16-is-casefolded.c: New file.
35760         * modules/unicase/u16-is-casefolded: New file.
35761
35762         New module 'unicase/u8-is-casefolded'.
35763         * lib/unicase/u8-is-casefolded.c: New file.
35764         * modules/unicase/u8-is-casefolded: New file.
35765
35766         Tests for module 'unicase/u32-is-titlecase'.
35767         * modules/unicase/u32-is-titlecase-tests: New file.
35768         * tests/unicase/test-u32-is-titlecase.c: New file.
35769
35770         Tests for module 'unicase/u16-is-titlecase'.
35771         * modules/unicase/u16-is-titlecase-tests: New file.
35772         * tests/unicase/test-u16-is-titlecase.c: New file.
35773
35774         Tests for module 'unicase/u8-is-titlecase'.
35775         * modules/unicase/u8-is-titlecase-tests: New file.
35776         * tests/unicase/test-u8-is-titlecase.c: New file.
35777         * tests/unicase/test-is-titlecase.h: New file.
35778
35779         New module 'unicase/u32-is-titlecase'.
35780         * lib/unicase/u32-is-titlecase.c: New file.
35781         * modules/unicase/u32-is-titlecase: New file.
35782
35783         New module 'unicase/u16-is-titlecase'.
35784         * lib/unicase/u16-is-titlecase.c: New file.
35785         * modules/unicase/u16-is-titlecase: New file.
35786
35787         New module 'unicase/u8-is-titlecase'.
35788         * lib/unicase/u8-is-titlecase.c: New file.
35789         * modules/unicase/u8-is-titlecase: New file.
35790
35791         Tests for module 'unicase/u32-is-lowercase'.
35792         * modules/unicase/u32-is-lowercase-tests: New file.
35793         * tests/unicase/test-u32-is-lowercase.c: New file.
35794
35795         Tests for module 'unicase/u16-is-lowercase'.
35796         * modules/unicase/u16-is-lowercase-tests: New file.
35797         * tests/unicase/test-u16-is-lowercase.c: New file.
35798
35799         Tests for module 'unicase/u8-is-lowercase'.
35800         * modules/unicase/u8-is-lowercase-tests: New file.
35801         * tests/unicase/test-u8-is-lowercase.c: New file.
35802         * tests/unicase/test-is-lowercase.h: New file.
35803
35804         New module 'unicase/u32-is-lowercase'.
35805         * lib/unicase/u32-is-lowercase.c: New file.
35806         * modules/unicase/u32-is-lowercase: New file.
35807
35808         New module 'unicase/u16-is-lowercase'.
35809         * lib/unicase/u16-is-lowercase.c: New file.
35810         * modules/unicase/u16-is-lowercase: New file.
35811
35812         New module 'unicase/u8-is-lowercase'.
35813         * lib/unicase/u8-is-lowercase.c: New file.
35814         * modules/unicase/u8-is-lowercase: New file.
35815
35816         Tests for module 'unicase/u32-is-uppercase'.
35817         * modules/unicase/u32-is-uppercase-tests: New file.
35818         * tests/unicase/test-u32-is-uppercase.c: New file.
35819
35820         Tests for module 'unicase/u16-is-uppercase'.
35821         * modules/unicase/u16-is-uppercase-tests: New file.
35822         * tests/unicase/test-u16-is-uppercase.c: New file.
35823
35824         Tests for module 'unicase/u8-is-uppercase'.
35825         * modules/unicase/u8-is-uppercase-tests: New file.
35826         * tests/unicase/test-u8-is-uppercase.c: New file.
35827         * tests/unicase/test-is-uppercase.h: New file.
35828
35829         New module 'unicase/u32-is-uppercase'.
35830         * lib/unicase/u32-is-uppercase.c: New file.
35831         * modules/unicase/u32-is-uppercase: New file.
35832
35833         New module 'unicase/u16-is-uppercase'.
35834         * lib/unicase/u16-is-uppercase.c: New file.
35835         * modules/unicase/u16-is-uppercase: New file.
35836
35837         New module 'unicase/u8-is-uppercase'.
35838         * lib/unicase/u8-is-uppercase.c: New file.
35839         * modules/unicase/u8-is-uppercase: New file.
35840
35841         New module 'unicase/u32-is-invariant'.
35842         * lib/unicase/u32-is-invariant.c: New file.
35843         * modules/unicase/u32-is-invariant: New file.
35844
35845         New module 'unicase/u16-is-invariant'.
35846         * lib/unicase/u16-is-invariant.c: New file.
35847         * modules/unicase/u16-is-invariant: New file.
35848
35849         New module 'unicase/u8-is-invariant'.
35850         * lib/unicase/u8-is-invariant.c: New file.
35851         * lib/unicase/invariant.h: New file.
35852         * lib/unicase/u-is-invariant.h: New file.
35853         * modules/unicase/u8-is-invariant: New file.
35854
35855         Tests for module 'unicase/u32-casecoll'.
35856         * modules/unicase/u32-casecoll-tests: New file.
35857         * tests/unicase/test-u32-casecoll.c: New file.
35858
35859         Tests for module 'unicase/u16-casecoll'.
35860         * modules/unicase/u16-casecoll-tests: New file.
35861         * tests/unicase/test-u16-casecoll.c: New file.
35862
35863         Tests for module 'unicase/u8-casecoll'.
35864         * modules/unicase/u8-casecoll-tests: New file.
35865         * tests/unicase/test-u8-casecoll.c: New file.
35866
35867         New module 'unicase/u32-casecoll'.
35868         * lib/unicase/u32-casecoll.c: New file.
35869         * modules/unicase/u32-casecoll: New file.
35870
35871         New module 'unicase/u16-casecoll'.
35872         * lib/unicase/u16-casecoll.c: New file.
35873         * modules/unicase/u16-casecoll: New file.
35874
35875         New module 'unicase/u8-casecoll'.
35876         * lib/unicase/u8-casecoll.c: New file.
35877         * lib/unicase/u-casecoll.h: New file.
35878         * modules/unicase/u8-casecoll: New file.
35879
35880         New module 'unicase/u32-casexfrm'.
35881         * lib/unicase/u32-casexfrm.c: New file.
35882         * modules/unicase/u32-casexfrm: New file.
35883
35884         New module 'unicase/u16-casexfrm'.
35885         * lib/unicase/u16-casexfrm.c: New file.
35886         * modules/unicase/u16-casexfrm: New file.
35887
35888         New module 'unicase/u8-casexfrm'.
35889         * lib/unicase/u8-casexfrm.c: New file.
35890         * lib/unicase/u-casexfrm.h: New file.
35891         * modules/unicase/u8-casexfrm: New file.
35892
35893         Tests for module 'unicase/u32-casecmp'.
35894         * modules/unicase/u32-casecmp-tests: New file.
35895         * tests/unicase/test-u32-casecmp.c: New file.
35896
35897         Tests for module 'unicase/u16-casecmp'.
35898         * modules/unicase/u16-casecmp-tests: New file.
35899         * tests/unicase/test-u16-casecmp.c: New file.
35900
35901         Tests for module 'unicase/u8-casecmp'.
35902         * modules/unicase/u8-casecmp-tests: New file.
35903         * tests/unicase/test-u8-casecmp.c: New file.
35904         * tests/unicase/test-casecmp.h: New file.
35905
35906         New module 'unicase/u32-casecmp'.
35907         * lib/unicase/u32-casecmp.c: New file.
35908         * modules/unicase/u32-casecmp: New file.
35909
35910         New module 'unicase/u16-casecmp'.
35911         * lib/unicase/u16-casecmp.c: New file.
35912         * modules/unicase/u16-casecmp: New file.
35913
35914         New module 'unicase/u8-casecmp'.
35915         * lib/unicase/u8-casecmp.c: New file.
35916         * lib/unicase/u-casecmp.h: New file.
35917         * modules/unicase/u8-casecmp: New file.
35918
35919         Tests for module 'unicase/u32-casefold'.
35920         * modules/unicase/u32-casefold-tests: New file.
35921         * tests/unicase/test-u32-casefold.c: New file.
35922
35923         Tests for module 'unicase/u16-casefold'.
35924         * modules/unicase/u16-casefold-tests: New file.
35925         * tests/unicase/test-u16-casefold.c: New file.
35926
35927         Tests for module 'unicase/u8-casefold'.
35928         * modules/unicase/u8-casefold-tests: New file.
35929         * tests/unicase/test-u8-casefold.c: New file.
35930
35931         New module 'unicase/u32-casefold'.
35932         * lib/unicase/u32-casefold.c: New file.
35933         * modules/unicase/u32-casefold: New file.
35934
35935         New module 'unicase/u16-casefold'.
35936         * lib/unicase/u16-casefold.c: New file.
35937         * modules/unicase/u16-casefold: New file.
35938
35939         New module 'unicase/u8-casefold'.
35940         * lib/unicase/u8-casefold.c: New file.
35941         * lib/unicase/u-casefold.h: New file.
35942         * modules/unicase/u8-casefold: New file.
35943
35944         New module 'unicase/tocasefold'.
35945         * lib/unicase/casefold.h: New file.
35946         * lib/unicase/tocasefold.c: New file.
35947         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
35948         * modules/unicase/tocasefold: New file.
35949
35950         Tests for module 'unicase/u32-totitle'.
35951         * modules/unicase/u32-totitle-tests: New file.
35952         * tests/unicase/test-u32-totitle.c: New file.
35953
35954         Tests for module 'unicase/u16-totitle'.
35955         * modules/unicase/u16-totitle-tests: New file.
35956         * tests/unicase/test-u16-totitle.c: New file.
35957
35958         Tests for module 'unicase/u8-totitle'.
35959         * modules/unicase/u8-totitle-tests: New file.
35960         * tests/unicase/test-u8-totitle.c: New file.
35961
35962         New module 'unicase/u32-totitle'.
35963         * lib/unicase/u32-totitle.c: New file.
35964         * modules/unicase/u32-totitle: New file.
35965
35966         New module 'unicase/u16-totitle'.
35967         * lib/unicase/u16-totitle.c: New file.
35968         * modules/unicase/u16-totitle: New file.
35969
35970         New module 'unicase/u8-totitle'.
35971         * lib/unicase/u8-totitle.c: New file.
35972         * lib/unicase/u-totitle.h: New file.
35973         * modules/unicase/u8-totitle: New file.
35974
35975         Tests for module 'unicase/u32-tolower'.
35976         * modules/unicase/u32-tolower-tests: New file.
35977         * tests/unicase/test-u32-tolower.c: New file.
35978
35979         Tests for module 'unicase/u16-tolower'.
35980         * modules/unicase/u16-tolower-tests: New file.
35981         * tests/unicase/test-u16-tolower.c: New file.
35982
35983         Tests for module 'unicase/u8-tolower'.
35984         * modules/unicase/u8-tolower-tests: New file.
35985         * tests/unicase/test-u8-tolower.c: New file.
35986
35987         New module 'unicase/u32-tolower'.
35988         * lib/unicase/u32-tolower.c: New file.
35989         * modules/unicase/u32-tolower: New file.
35990
35991         New module 'unicase/u16-tolower'.
35992         * lib/unicase/u16-tolower.c: New file.
35993         * modules/unicase/u16-tolower: New file.
35994
35995         New module 'unicase/u8-tolower'.
35996         * lib/unicase/u8-tolower.c: New file.
35997         * modules/unicase/u8-tolower: New file.
35998
35999         Tests for module 'unicase/u32-toupper'.
36000         * modules/unicase/u32-toupper-tests: New file.
36001         * tests/unicase/test-u32-toupper.c: New file.
36002
36003         Tests for module 'unicase/u16-toupper'.
36004         * modules/unicase/u16-toupper-tests: New file.
36005         * tests/unicase/test-u16-toupper.c: New file.
36006
36007         Tests for module 'unicase/u8-toupper'.
36008         * modules/unicase/u8-toupper-tests: New file.
36009         * tests/unicase/test-u8-toupper.c: New file.
36010
36011         New module 'unicase/u32-toupper'.
36012         * lib/unicase/u32-toupper.c: New file.
36013         * modules/unicase/u32-toupper: New file.
36014
36015         New module 'unicase/u16-toupper'.
36016         * lib/unicase/u16-toupper.c: New file.
36017         * modules/unicase/u16-toupper: New file.
36018
36019         New module 'unicase/u8-toupper'.
36020         * lib/unicase/u8-toupper.c: New file.
36021         * modules/unicase/u8-toupper: New file.
36022
36023         New module 'unicase/u32-casemap'.
36024         * lib/unicase/u32-casemap.c: New file.
36025         * modules/unicase/u32-casemap: New file.
36026
36027         New module 'unicase/u16-casemap'.
36028         * lib/unicase/u16-casemap.c: New file.
36029         * modules/unicase/u16-casemap: New file.
36030
36031         New module 'unicase/u8-casemap'.
36032         * lib/unicase/unicasemap.h: New file.
36033         * lib/unicase/u8-casemap.c: New file.
36034         * lib/unicase/u-casemap.h: New file.
36035         * modules/unicase/u8-casemap: New file.
36036
36037         New module 'unicase/special-casing'.
36038         * lib/unicase/special-casing.h: New file.
36039         * lib/unicase/special-casing.c: New file.
36040         * lib/unicase/special-casing-table.gperf: New file, generated by
36041         gen-uni-tables.c.
36042         * modules/unicase/special-casing: New file.
36043
36044         Tests for module 'unicase/locale-language'.
36045         * modules/unicase/locale-language-tests: New file.
36046         * tests/unicase/test-locale-language.sh: New file.
36047         * tests/unicase/test-locale-language.c: New file.
36048
36049         New module 'unicase/locale-language'.
36050         * lib/unicase/locale-language.c: New file.
36051         * lib/unicase/locale-languages.gperf: New file.
36052         * modules/unicase/locale-language: New file.
36053
36054         Generate more tables for case conversion and case folding.
36055         * lib/gen-uni-tables.c (SCC_*): New enum items.
36056         (struct special_casing_rule): New type.
36057         (casing_rules, num_casing_rules, allocated_casing_rules): New
36058         variables.
36059         (add_casing_rule, fill_casing_rules): New functions.
36060         (struct casefold_rule): New type.
36061         (casefolding_rules, num_casefolding_rules,
36062         allocated_casefolding_rules): New variables.
36063         (fill_casefolding_rules): New function.
36064         (unicode_casefold): New variable.
36065         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36066         sort_casing_rules, output_casing_rules): New functions.
36067         (main): Accept to more arguments: SpecialCasing.txt and
36068         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36069         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36070         Output mapping for casefolding.
36071
36072         * lib/unicase.h: Include stdbool.h, uninorm.h.
36073         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36074         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36075         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36076         arguments.
36077         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36078         resultp arguments.
36079         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36080         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36081         resultp arguments.
36082         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36083         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36084         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36085         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36086         declarations.
36087         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36088
36089 2009-03-08  Bruno Haible  <bruno@clisp.org>
36090
36091         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36092         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36093         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36094         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36095
36096 2009-03-07  Bruno Haible  <bruno@clisp.org>
36097
36098         Adjust u*_normcmp, u*_normcoll API.
36099         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36100         u16_normcoll, u32_normcoll): Change failure conventions.
36101         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36102         errno and return -1.
36103         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36104
36105 2009-03-07  Bruno Haible  <bruno@clisp.org>
36106
36107         Tests for module 'uninorm/u32-normcoll'.
36108         * modules/uninorm/u32-normcoll-tests: New file.
36109         * tests/uninorm/test-u32-normcoll.c: New file.
36110
36111         Tests for module 'uninorm/u16-normcoll'.
36112         * modules/uninorm/u16-normcoll-tests: New file.
36113         * tests/uninorm/test-u16-normcoll.c: New file.
36114
36115         Tests for module 'uninorm/u8-normcoll'.
36116         * modules/uninorm/u8-normcoll-tests: New file.
36117         * tests/uninorm/test-u8-normcoll.c: New file.
36118
36119 2009-03-07  Bruno Haible  <bruno@clisp.org>
36120
36121         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36122         tests/uninorm/test-u32-normcmp.c.
36123         * tests/uninorm/test-u32-normcmp.c: Include it.
36124         (test_nonascii): New function, extracted from main. Add some more
36125         tests.
36126         (main): Invoke test_ascii and test_nonascii.
36127         * modules/uninorm/u32-normcmp-tests (Files): Add
36128         tests/uninorm/test-u32-normcmp.h.
36129         (Depends-on): Remove uninorm/u32-normcmp.
36130
36131         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36132         tests/uninorm/test-u16-normcmp.c.
36133         * tests/uninorm/test-u16-normcmp.c: Include it.
36134         (test_nonascii): New function, extracted from main. Add some more
36135         tests.
36136         (main): Invoke test_ascii and test_nonascii.
36137         * modules/uninorm/u16-normcmp-tests (Files): Add
36138         tests/uninorm/test-u16-normcmp.h.
36139         (Depends-on): Remove uninorm/u16-normcmp.
36140
36141         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36142         tests/uninorm/test-u8-normcmp.c.
36143         * tests/uninorm/test-u8-normcmp.c: Include it.
36144         (test_nonascii): New function, extracted from main. Add some more
36145         tests.
36146         (main): Invoke test_ascii and test_nonascii.
36147         * modules/uninorm/u8-normcmp-tests (Files): Add
36148         tests/uninorm/test-u8-normcmp.h.
36149         (Depends-on): Remove uninorm/u8-normcmp.
36150
36151 2009-03-07  Bruno Haible  <bruno@clisp.org>
36152
36153         New module 'uninorm/u32-normcoll'.
36154         * lib/uninorm/u32-normcoll.c: New file.
36155         * modules/uninorm/u32-normcoll: New file.
36156
36157         New module 'uninorm/u16-normcoll'.
36158         * lib/uninorm/u16-normcoll.c: New file.
36159         * modules/uninorm/u16-normcoll: New file.
36160
36161         New module 'uninorm/u8-normcoll'.
36162         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
36163         declarations.
36164         * lib/uninorm/u8-normcoll.c: New file.
36165         * lib/uninorm/u-normcoll.h: New file.
36166         * modules/uninorm/u8-normcoll: New file.
36167
36168         New module 'uninorm/u32-normxfrm'.
36169         * lib/uninorm/u32-normxfrm.c: New file.
36170         * modules/uninorm/u32-normxfrm: New file.
36171
36172         New module 'uninorm/u16-normxfrm'.
36173         * lib/uninorm/u16-normxfrm.c: New file.
36174         * modules/uninorm/u16-normxfrm: New file.
36175
36176         New module 'uninorm/u8-normxfrm'.
36177         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
36178         declarations.
36179         * lib/uninorm/u8-normxfrm.c: New file.
36180         * lib/uninorm/u-normxfrm.h: New file.
36181         * modules/uninorm/u8-normxfrm: New file.
36182
36183 2009-03-07  Bruno Haible  <bruno@clisp.org>
36184
36185         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
36186         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
36187         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
36188
36189 2009-03-07  Bruno Haible  <bruno@clisp.org>
36190
36191         New module 'memxfrm'.
36192         * lib/memxfrm.h: New file.
36193         * lib/memxfrm.c: New file.
36194         * modules/memxfrm: New file.
36195
36196 2009-03-07  Bruno Haible  <bruno@clisp.org>
36197
36198         New module 'memcmp2'.
36199         * lib/memcmp2.h: New file.
36200         * lib/memcmp2.c: New file.
36201         * modules/memcmp2: New file.
36202
36203 2009-03-07  Bruno Haible  <bruno@clisp.org>
36204
36205         Tests for module 'uninorm/decomposing-form'.
36206         * modules/uninorm/decomposing-form-tests: New file.
36207         * tests/uninorm/test-decomposing-form.c: New file.
36208
36209         New module 'uninorm/decomposing-form'.
36210         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
36211         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
36212         Add 'decomposing_variant' field.
36213         * lib/uninorm/decomposing-form.c: New file.
36214         * lib/uninorm/nfc.c (uninorm_nfc): Update.
36215         * lib/uninorm/nfd.c (uninorm_nfd): Update.
36216         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
36217         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
36218         * modules/uninorm/decomposing-form: New file.
36219         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
36220         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
36221
36222 2009-03-07  Bruno Haible  <bruno@clisp.org>
36223
36224         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
36225         strings.
36226
36227 2009-03-06  Bruno Haible  <bruno@clisp.org>
36228
36229         Tests for module 'uninorm/u32-normcmp'.
36230         * tests/uninorm/test-u32-normcmp.c: New file.
36231         * modules/uninorm/u32-normcmp-tests: New file.
36232
36233         Tests for module 'uninorm/u16-normcmp'.
36234         * tests/uninorm/test-u16-normcmp.c: New file.
36235         * modules/uninorm/u16-normcmp-tests: New file.
36236
36237         Tests for module 'uninorm/u8-normcmp'.
36238         * tests/uninorm/test-u8-normcmp.c: New file.
36239         * modules/uninorm/u8-normcmp-tests: New file.
36240
36241         New module 'uninorm/u32-normcmp'.
36242         * lib/uninorm/u32-normcmp.c: New file.
36243         * modules/uninorm/u32-normcmp: New file.
36244
36245         New module 'uninorm/u16-normcmp'.
36246         * lib/uninorm/u16-normcmp.c: New file.
36247         * modules/uninorm/u16-normcmp: New file.
36248
36249         New module 'uninorm/u8-normcmp'.
36250         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
36251         declarations.
36252         * lib/uninorm/u8-normcmp.c: New file.
36253         * lib/uninorm/u-normcmp.h: New file.
36254         * modules/uninorm/u8-normcmp: New file.
36255
36256 2009-03-06  Bruno Haible  <bruno@clisp.org>
36257
36258         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
36259         Reported by Eric Blake.
36260
36261 2009-03-06  Eric Blake  <ebb9@byu.net>
36262             Bruno Haible  <bruno@clisp.org>
36263
36264         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
36265         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
36266         condition.
36267         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36268         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
36269         condition.
36270         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36271
36272 2009-03-06  Eric Blake  <ebb9@byu.net>
36273
36274         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36275         to avoid compiler warnings.
36276         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36277
36278 2009-03-05  Bruno Haible  <bruno@clisp.org>
36279
36280         * tests/test-ftell.c (main): Disable test beyond end of file on
36281         FreeMiNT.
36282         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36283
36284 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36285
36286         * lib/filevercmp.c: Move hidden files up in ordering.
36287         * tests/test-filevercmp.c: Add tests for hidden files.
36288
36289 2009-03-04  Bruno Haible  <bruno@clisp.org>
36290
36291         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36292         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36293         AM_CFLAGS.
36294         Reported by Simon Josefsson.
36295
36296 2009-03-03  Bruno Haible  <bruno@clisp.org>
36297
36298         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36299         Reported by Simon Josefsson.
36300
36301         * doc/ld-version-script.texi: Update node reference.
36302
36303 2009-03-03  Bruno Haible  <bruno@clisp.org>
36304
36305         * modules/visibility (License): Change to 'unlimited'.
36306         Suggested by Simon Josefsson.
36307
36308 2009-03-03  Jim Meyering  <meyering@redhat.com>
36309
36310         unlinkdir: cannot_unlink_dir may modify process state
36311         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
36312         it's neither thread-safe nor appropriate for use in a library.
36313
36314 2009-03-03  Eric Blake  <ebb9@byu.net>
36315
36316         test-closein: silence test under Darwin
36317         * tests/test-closein.sh: Ignore stderr from cat, since we don't
36318         care if it dies from EPIPE or EBADF.
36319
36320 2009-03-03  Bruno Haible  <bruno@clisp.org>
36321
36322         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
36323         earlier.
36324         * doc/visibility.texi: Fix @node and @section.
36325
36326 2009-03-03  Simon Josefsson  <simon@josefsson.org>
36327
36328         * doc/gnulib.texi: Link to sections for ld version script and
36329         visibility.
36330         * doc/visibility.texi: Add @node and @section.
36331         * modules/ld-version-script: New module.
36332         * m4/ld-version-script.m4: New file.
36333         * doc/ld-version-script.texi: New file.
36334
36335 2009-03-02  David Lutterkort  <lutter@redhat.com>
36336
36337         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
36338         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36339
36340 2009-03-02  Bruno Haible  <bruno@clisp.org>
36341
36342         * doc/visibility.texi: Mention libtool's -export-symbols option.
36343
36344 2009-03-02  Jim Meyering  <meyering@redhat.com>
36345
36346         announce-gen: new option: --no-print-checksums
36347         * build-aux/announce-gen (usage): Describe it.
36348         (print_checksums): Print a newline here, not in the [*] footnote.
36349         (main): Honor it.
36350
36351 2009-03-01  Bruno Haible  <bruno@clisp.org>
36352
36353         Use socklen_t in the native Windows replacements prototypes.
36354         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
36355         instead of 'int'.
36356         * lib/getsockopt.c (rpl_getsockopt): Likewise.
36357         * lib/setsockopt.c (rpl_setsockopt): Likewise.
36358         * modules/getsockopt (Depends-on): Add socklen.
36359         * modules/setsockopt (Depends-on): Add socklen.
36360
36361 2009-03-01  Bruno Haible  <bruno@clisp.org>
36362
36363         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
36364         least 4.2.
36365
36366 2009-03-01  Eric Blake  <ebb9@byu.net>
36367             Bruno Haible  <bruno@clisp.org>
36368
36369         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
36370         error messages.
36371         * lib/wait-process.c (wait_subprocess): Omit error message about
36372         deadly signal sent to the child of termsigp != NULL.
36373
36374 2009-03-01  Eric Blake  <ebb9@byu.net>
36375
36376         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
36377
36378 2009-03-01  Bruno Haible  <bruno@clisp.org>
36379
36380         Avoid a gcc warning.
36381         * tests/test-sched.c (b): Make global.
36382         Reported by Eric Blake.
36383
36384 2009-01-19  Martin Lambers  <marlam@marlam.de>
36385
36386         Provide POSIX semantics for socket timeout options on W32.
36387         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
36388         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
36389         * modules/setsockopt: Depend on sys_time module for struct timeval.
36390         * modules/getsockopt: Depend on sys_time module for struct timeval.
36391
36392 2009-03-01  Simon Josefsson  <simon@josefsson.org>
36393
36394         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
36395         __USE_GNU, for consistency with netdb.in.h.
36396         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36397
36398 2009-03-01  Bruno Haible  <bruno@clisp.org>
36399
36400         More support for FreeMiNT.
36401         * lib/fseeko.c (rpl_fseeko): Complete last commit.
36402         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36403
36404 2009-03-01  Bruno Haible  <bruno@clisp.org>
36405
36406         More support for FreeMiNT.
36407         * lib/fpurge.c (fpurge): Correct last commit.
36408         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36409
36410 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36411
36412         Fix unportable awk script in vc-list-files.
36413         * build-aux/vc-list-files: In the replacement awk script, use
36414         substr with a second argument of 1, not zero.
36415         Report by Simon Josefsson.
36416
36417 2009-02-28  Bruno Haible  <bruno@clisp.org>
36418
36419         More support for FreeMiNT.
36420         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
36421         to FreeMiNT today.
36422         * lib/fwriting.c (fwriting): Likewise.
36423         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
36424
36425 2009-02-28  Bruno Haible  <bruno@clisp.org>
36426
36427         * tests/test-freadseek.c (main): Disable test beyond end of file on
36428         FreeMiNT.
36429         * tests/test-ftello.c (main): Likewise.
36430         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36431
36432 2009-02-28  Bruno Haible  <bruno@clisp.org>
36433
36434         Add tentative support for FreeMiNT.
36435         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
36436         * lib/fpurge.c (fpurge): Likewise.
36437         * lib/freadable.c (freadable): Likewise.
36438         * lib/freading.c (freading): Likewise.
36439         * lib/freadptr.c (freadptr): Likewise.
36440         * lib/freadseek.c (freadptrinc): Likewise.
36441         * lib/fseeko.c (rpl_fseeko): Likewise.
36442         * lib/fseterr.c (fseterr): Likewise.
36443         * lib/fwritable.c (fwritable): Likewise.
36444         * lib/fwriting.c (fwriting): Likewise.
36445         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
36446         Hourihane.
36447         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36448
36449 2009-02-28  Bruno Haible  <bruno@clisp.org>
36450
36451         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
36452         SIGCHLD.
36453         Reported by Jim Meyering.
36454
36455 2009-02-28  Bruno Haible  <bruno@clisp.org>
36456
36457         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
36458         Mention the results of these tests on various platforms.
36459         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
36460         order.
36461         * doc/posix-functions/printf.texi: Likewise.
36462         * doc/posix-functions/snprintf.texi: Likewise.
36463         * doc/posix-functions/sprintf.texi: Likewise.
36464         * doc/posix-functions/vfprintf.texi: Likewise.
36465         * doc/posix-functions/vprintf.texi: Likewise.
36466         * doc/posix-functions/vsnprintf.texi: Likewise.
36467         * doc/posix-functions/vsprintf.texi: Likewise.
36468         * doc/glibc-functions/obstack_printf.texi: Likewise.
36469         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
36470
36471 2009-02-28  Bruno Haible  <bruno@clisp.org>
36472
36473         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
36474         Reported by Loïc Minier <lool@dooz.org>.
36475
36476 2009-02-27  Bruno Haible  <bruno@clisp.org>
36477
36478         * gnulib-tool (func_import): Make the sed expression used to create the
36479         sed script for updating the .gitignore file POSIX compliant.
36480         Reported by Eric Blake.
36481
36482 2009-02-27  Bruno Haible  <bruno@clisp.org>
36483
36484         * gnulib-tool (sed): Don't alias as "sed --posix".
36485         Reported by Eric Blake.
36486
36487 2009-02-27  Bruno Haible  <bruno@clisp.org>
36488
36489         Avoid test link errors.
36490         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
36491         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
36492         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
36493         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
36494         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36495
36496 2009-02-27  Bruno Haible  <bruno@clisp.org>
36497
36498         Avoid spurious "(cached)" in configure output.
36499         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
36500         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
36501         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36502         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36503         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36504         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
36505         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36506         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
36507         Reported by Eric Blake.
36508
36509 2009-02-27  Eric Blake  <ebb9@byu.net>
36510
36511         printf: fix regression in previous patch
36512         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
36513
36514 2009-02-27  Bruno Haible  <bruno@clisp.org>
36515
36516         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
36517         value.
36518         * lib/stdint.in.h: Likewise.
36519         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
36520
36521 2009-02-27  Eric Blake  <ebb9@byu.net>
36522
36523         doc: mention more functions added in cygwin 1.7.0
36524         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
36525         addition.
36526         * doc/posix-functions/open_wmemstream.texi: Likewise.
36527         * doc/posix-functions/wcsnlen.texi: Likewise.
36528         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36529         * doc/posix-functions/wcstod.texi: Likewise.
36530         * doc/posix-functions/wcstof.texi: Likewise.
36531         * doc/posix-functions/wcstoimax.texi: Likewise.
36532         * doc/posix-functions/wcstok.texi: Likewise.
36533         * doc/posix-functions/wcstoumax.texi: Likewise.
36534
36535         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
36536         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
36537         * doc/posix-functions/fprintf.texi: Update.
36538         * doc/posix-functions/printf.texi: Update.
36539         * doc/posix-functions/snprintf.texi: Update.
36540         * doc/posix-functions/sprintf.texi: Update.
36541         * doc/posix-functions/vfprintf.texi: Update.
36542         * doc/posix-functions/vprintf.texi: Update.
36543         * doc/posix-functions/vsnprintf.texi: Update.
36544         * doc/posix-functions/vsprintf.texi: Update.
36545         * doc/glibc-functions/obstack_printf.texi: Update.
36546         * doc/glibc-functions/obstack_vprintf.texi: Update.
36547
36548 2009-02-26  Eric Blake  <ebb9@byu.net>
36549
36550         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
36551         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
36552         compilation bug by using runtime conversion.
36553         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
36554         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
36555         * modules/ceill-tests (Files): Use nan.h.
36556         * modules/floorl-tests (Files): Likewise.
36557         * modules/frexpl-tests (Files): Likewise.
36558         * modules/isnanl-tests (Files): Likewise.
36559         * modules/ldexpl-tests (Files): Likewise.
36560         * modules/roundl-tests (Files): Likewise.
36561         * modules/truncl-tests (Files): Likewise.
36562         * tests/test-ceill.c (main): Use a working NaN.
36563         * tests/test-floorl.c (main): Likewise.
36564         * tests/test-frexpl.c (main): Likewise.
36565         * tests/test-isnan.c (test_long_double): Likewise.
36566         * tests/test-isnanl.h (main): Likewise.
36567         * tests/test-ldexpl.h (main): Likewise.
36568         * tests/test-roundl.h (main): Likewise.
36569         * tests/test-truncl.h (main): Likewise.
36570         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
36571
36572 2009-02-26  Eric Blake  <ebb9@byu.net>
36573             Bruno Haible  <bruno@clisp.org>
36574
36575         Work around a *printf bug with %ls on Solaris.
36576         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
36577         precision is specified, sprintf stops converting the wide string
36578         argument when the number of bytes that have been produced by this
36579         conversion equals or exceeds the precision.
36580         * doc/posix-functions/fprintf.texi: Update.
36581         * doc/posix-functions/printf.texi: Update.
36582         * doc/posix-functions/snprintf.texi: Update.
36583         * doc/posix-functions/sprintf.texi: Update.
36584         * doc/posix-functions/vfprintf.texi: Update.
36585         * doc/posix-functions/vprintf.texi: Update.
36586         * doc/posix-functions/vsnprintf.texi: Update.
36587         * doc/posix-functions/vsprintf.texi: Update.
36588         * doc/glibc-functions/obstack_printf.texi: Update.
36589         * doc/glibc-functions/obstack_vprintf.texi: Update.
36590
36591 2009-02-26  Eric Blake  <ebb9@byu.net>
36592
36593         stdlib: favor compiler check of random.h
36594         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
36595         to avoid an ObjC random.h installed by Swarm.
36596
36597 2009-02-26  Bruno Haible  <bruno@clisp.org>
36598
36599         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
36600         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
36601         Reported by Gary V. Vaughan <gary@gnu.org>.
36602
36603 2009-02-26  Bruno Haible  <bruno@clisp.org>
36604
36605         Fix *printf behaviour regarding the %ls directive.
36606         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
36607         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
36608         NEED_PRINTF_DIRECTIVE_LS.
36609         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
36610         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36611         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36612         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
36613         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
36614         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
36615         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36616         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36617         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36618         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36619         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36620         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
36621         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36622         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36623         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36624         * doc/posix-functions/fprintf.texi: Update.
36625         * doc/posix-functions/printf.texi: Update.
36626         * doc/posix-functions/snprintf.texi: Update.
36627         * doc/posix-functions/sprintf.texi: Update.
36628         * doc/posix-functions/vfprintf.texi: Update.
36629         * doc/posix-functions/vprintf.texi: Update.
36630         * doc/posix-functions/vsnprintf.texi: Update.
36631         * doc/posix-functions/vsprintf.texi: Update.
36632         * doc/glibc-functions/obstack_printf.texi: Update.
36633         * doc/glibc-functions/obstack_vprintf.texi: Update.
36634         Reported by Eric Blake.
36635
36636 2009-02-25  Bruno Haible  <bruno@clisp.org>
36637
36638         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
36639         with known value.
36640         Reported by Gary V. Vaughan <gary@gnu.org>.
36641
36642 2009-02-25  Bruno Haible  <bruno@clisp.org>
36643
36644         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
36645         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
36646         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
36647         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
36648         Reported by Gary V. Vaughan <gary@gnu.org>.
36649
36650 2009-02-25  Bruno Haible  <bruno@clisp.org>
36651
36652         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
36653         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
36654         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
36655         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
36656         Reported by Gary V. Vaughan <gary@gnu.org>.
36657
36658 2009-02-25  Eric Blake  <ebb9@byu.net>
36659
36660         tests: skip fseek/ftell tests if ungetc is broken
36661         * m4/ungetc.m4: New file.
36662         * modules/fseek-tests: Split test, so ungetc dependency is
36663         separate from rest of test.
36664         * modules/fseeko-tests: Likewise.
36665         * modules/ftell-tests: Likewise.
36666         * modules/ftello-tests: Likewise.
36667         * tests/test-fseek.c (main): Isolate ungetc dependency.
36668         * tests/test-fseeko.c (main): Likewise.
36669         * tests/test-ftell.c (main): Likewise.
36670         * tests/test-ftello.c (main): Likewise.
36671         * tests/test-fseek2.sh: New file.
36672         * tests/test-fseeko2.sh: Likewise.
36673         * tests/test-ftell2.sh: Likewise.
36674         * tests/test-ftello2.sh: Likewise.
36675
36676 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
36677
36678         test-getaddrinfo: fix usage of skip return code 77
36679         * tests/test-gettaddrinfo.c: Return skip code 77 only
36680         for first occurance of skip (4x77 is not 77)
36681
36682 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
36683
36684         strtod: avoid C99 decl-after-statement
36685         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
36686
36687 2009-02-24  Eric Blake  <ebb9@byu.net>
36688
36689         strtod: detect HP-UX 11.31 bug
36690         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
36691         Reported by Gary V. Vaughan.
36692
36693 2009-02-23  Bruno Haible  <bruno@clisp.org>
36694
36695         Fix invalid read past end of memory block.
36696         * lib/vasnprintf.c (DCHAR_SET): Define.
36697         (local_wcslen): Define only when needed.
36698         (local_strnlen, local_wcsnlen): New functions.
36699         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
36700         directives that involve a conversion ourselves.
36701         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
36702         wcsnlen, mbrtowc, wcrtomb.
36703         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
36704         * tests/test-vasprintf-posix.c (test_function): Likewise.
36705         * tests/test-snprintf-posix.h (test_function): Likewise.
36706         * tests/test-sprintf-posix.h (test_function): Likewise.
36707         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36708
36709 2009-02-22  Bruno Haible  <bruno@clisp.org>
36710
36711         Implement new clarified decomposition of Hangul syllables.
36712         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
36713         of type LTV, return only a pairwise decomposition.
36714         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
36715         Likewise.
36716         * tests/uninorm/test-decomposition.c (main): Updated expected result.
36717         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
36718         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
36719
36720 2009-02-22  Bruno Haible  <bruno@clisp.org>
36721
36722         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
36723         zero-length results and shrink excess allocated memory.
36724         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
36725         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
36726         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
36727         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
36728         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
36729         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
36730         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
36731         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
36732         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
36733         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
36734         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
36735         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
36736
36737 2009-02-21  Bruno Haible  <bruno@clisp.org>
36738
36739         * doc/gnulib.texi: Include safe-alloc.texi earlier.
36740         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
36741         spaces after a period. Put a space between a macro name and its
36742         argument list. Trivial rewordings.
36743         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
36744         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
36745         (main): Return 0 explicitly.
36746
36747 2009-02-21  Bruno Haible  <bruno@clisp.org>
36748
36749         Tests for module 'uninorm/filter'.
36750         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
36751         * modules/uninorm/filter-tests: New file.
36752
36753         New module 'uninorm/filter'.
36754         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
36755         uninorm_filter_flush, uninorm_filter_free): New declarations.
36756         * lib/uninorm/uninorm-filter.c: New file.
36757         * modules/uninorm/filter: New file.
36758
36759 2009-02-21  Bruno Haible  <bruno@clisp.org>
36760
36761         Tests for module 'uninorm/nfkc'.
36762         * tests/uninorm/test-nfkc.c: New file.
36763         * tests/uninorm/test-u8-nfkc.c: New file.
36764         * tests/uninorm/test-u16-nfkc.c: New file.
36765         * tests/uninorm/test-u32-nfkc.c: New file.
36766         * tests/uninorm/test-u32-nfkc-big.sh: New file.
36767         * tests/uninorm/test-u32-nfkc-big.c: New file.
36768         * modules/uninorm/nfkc-tests: New file.
36769
36770         New module 'uninorm/nfkc'.
36771         * lib/uninorm/nfkc.c: New file.
36772         * modules/uninorm/nfkc: New file.
36773
36774         Tests for module 'uninorm/nfkd'.
36775         * tests/uninorm/test-nfkd.c: New file.
36776         * tests/uninorm/test-u8-nfkd.c: New file.
36777         * tests/uninorm/test-u16-nfkd.c: New file.
36778         * tests/uninorm/test-u32-nfkd.c: New file.
36779         * tests/uninorm/test-u32-nfkd-big.sh: New file.
36780         * tests/uninorm/test-u32-nfkd-big.c: New file.
36781         * modules/uninorm/nfkd-tests: New file.
36782
36783         New module 'uninorm/nfkd'.
36784         * lib/uninorm/nfkd.c: New file.
36785         * modules/uninorm/nfkd: New file.
36786
36787         Tests for module 'uninorm/nfc'.
36788         * tests/uninorm/test-nfc.c: New file.
36789         * tests/uninorm/test-u8-nfc.c: New file.
36790         * tests/uninorm/test-u16-nfc.c: New file.
36791         * tests/uninorm/test-u32-nfc.c: New file.
36792         * tests/uninorm/test-u32-nfc-big.sh: New file.
36793         * tests/uninorm/test-u32-nfc-big.c: New file.
36794         * modules/uninorm/nfc-tests: New file.
36795
36796         New module 'uninorm/nfc'.
36797         * lib/uninorm/nfc.c: New file.
36798         * modules/uninorm/nfc: New file.
36799
36800         Tests for module 'uninorm/nfd'.
36801         * tests/uninorm/test-nfd.c: New file.
36802         * tests/uninorm/test-u8-nfd.c: New file.
36803         * tests/uninorm/test-u16-nfd.c: New file.
36804         * tests/uninorm/test-u32-nfd.c: New file.
36805         * tests/uninorm/test-u32-nfd-big.sh: New file.
36806         * tests/uninorm/test-u32-nfd-big.c: New file.
36807         * tests/uninorm/test-u32-normalize-big.h: New file.
36808         * tests/uninorm/test-u32-normalize-big.c: New file.
36809         * tests/uninorm/NormalizationTest.txt: New file, created from
36810         Unicode 5.1.0 NormalizationTest.txt.
36811         * modules/uninorm/nfd-tests: New file.
36812
36813         New module 'uninorm/nfd'.
36814         * lib/uninorm/nfd.c: New file.
36815         * modules/uninorm/nfd: New file.
36816
36817         New module 'uninorm/u32-normalize'.
36818         * lib/uninorm/u32-normalize.c: New file.
36819         * modules/uninorm/u32-normalize: New file.
36820
36821         New module 'uninorm/u16-normalize'.
36822         * lib/uninorm/u16-normalize.c: New file.
36823         * modules/uninorm/u16-normalize: New file.
36824
36825         New module 'uninorm/u8-normalize'.
36826         * lib/uninorm/u8-normalize.c: New file.
36827         * lib/uninorm/normalize-internal.h: New file.
36828         * lib/uninorm/u-normalize-internal.h: New file.
36829         * modules/uninorm/u8-normalize: New file.
36830
36831         New module 'uninorm/decompose-internal'.
36832         * lib/uninorm/decompose-internal.c: New file.
36833         * modules/uninorm/decompose-internal: New file.
36834
36835         Tests for module 'uninorm/composition'.
36836         * tests/uninorm/test-composition.c: New file.
36837         * modules/uninorm/composition-tests: New file.
36838
36839         New module 'uninorm/composition'.
36840         * lib/uninorm/composition.c: New file.
36841         * lib/uninorm/composition-table.gperf: New file, generated by
36842         gen-uni-tables.
36843         * modules/uninorm/composition: New file.
36844
36845         Tests for module 'uninorm/compat-decomposition'.
36846         * tests/uninorm/test-compat-decomposition.c: New file.
36847         * modules/uninorm/compat-decomposition-tests: New file.
36848
36849         New module 'uninorm/compat-decomposition'.
36850         * lib/uninorm/decompose-internal.h: New file.
36851         * lib/uninorm/compat-decomposition.c: New file.
36852         * modules/uninorm/compat-decomposition: New file.
36853
36854         Tests for module 'uninorm/canonical-decomposition'.
36855         * tests/uninorm/test-canonical-decomposition.c: New file.
36856         * modules/uninorm/canonical-decomposition-tests: New file.
36857
36858         New module 'uninorm/canonical-decomposition'.
36859         * lib/uninorm/canonical-decomposition.c: New file.
36860         * modules/uninorm/canonical-decomposition: New file.
36861
36862         Tests for module 'uninorm/decomposition'.
36863         * tests/uninorm/test-decomposition.c: New file.
36864         * modules/uninorm/decomposition-tests: New file.
36865
36866         New module 'uninorm/decomposition'.
36867         * lib/uninorm/decomposition.c: New file.
36868         * modules/uninorm/decomposition: New file.
36869
36870         New module 'uninorm/decomposition-table'.
36871         * lib/uninorm/decomposition-table.h: New file.
36872         * lib/uninorm/decomposition-table.c: New file.
36873         * lib/uninorm/decomposition-table1.h: New file, generated by
36874         gen-uni-tables.
36875         * lib/uninorm/decomposition-table2.h: New file, generated by
36876         gen-uni-tables.
36877         * modules/uninorm/decomposition-table: New file.
36878
36879         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
36880         (UC_DECOMP_*): New enumeration items.
36881         (get_decomposition): New function.
36882         (struct decomp_table): New type.
36883         (output_decomposition, output_decomposition_tables): New functions.
36884         (unicode_composition_exclusions): New variable.
36885         (fill_composition_exclusions, debug_output_composition_tables): New
36886         functions.
36887         (main): Accept one more argument. Invoke fill_composition_exclusions.
36888         Output decomposition and composition tables.
36889
36890         New module 'uninorm/base'.
36891         * lib/uninorm.h: New file.
36892         * lib/unictype.h: Update comment.
36893         * modules/uninorm/base: New file.
36894
36895 2009-02-21  David Lutterkort  <lutter@redhat.com>
36896
36897         Tests for module 'safe-alloc'.
36898         * tests/test-safe-alloc.c: New file.
36899         * modules/safe-alloc-tests: New file.
36900
36901         New module 'safe-alloc'.
36902         * lib/safe-alloc.h: New file.
36903         * lib/safe-alloc.c: New file.
36904         * m4/safe-alloc.m4: New file.
36905         * modules/safe-alloc: New file.
36906         * doc/safe-alloc.texi: New file.
36907         * doc/gnulib.texi: Include it.
36908         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
36909         safe-alloc.
36910
36911 2009-02-18  Bruno Haible  <bruno@clisp.org>
36912
36913         Fix link error on non-glibc systems.
36914         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
36915         variable.
36916         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36917
36918 2009-02-18  Jim Meyering  <meyering@redhat.com>
36919
36920         fts: avoid used-uninitialized error due to recent change
36921         * lib/fts.c (fts_read): Guard uses of the new member,
36922         parent->fts_n_dirs_remaining, since it's not relevant for
36923         the parent of a directory specified on the command-line.
36924
36925 2009-02-17  James Youngman  <jay@gnu.org>
36926             Bruno Haible  <bruno@clisp.org>
36927
36928         * m4/include_next.m4: Reformulate comment.
36929
36930 2009-02-16  Jim Meyering  <meyering@redhat.com>
36931
36932         fts: add #if guards so that the fts_lgpl module still builds
36933         * lib/fts.c: Guard just-added hash-table-using parts with
36934         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
36935         Reported by Simon Josefsson.
36936
36937 2009-02-15  Bruno Haible  <bruno@clisp.org>
36938
36939         * modules/array-mergesort-tests: New file.
36940         * tests/test-array-mergesort.c: New file.
36941
36942         New module 'array-mergesort'.
36943         * modules/array-mergesort: New file.
36944         * lib/array-mergesort.h: New file.
36945
36946 2009-02-15  Bruno Haible  <bruno@clisp.org>
36947
36948         Fix 2009-02-07 commit.
36949         * lib/gen-uni-tables.c (output_predicate, output_category,
36950         output_combclass, output_bidi_category, output_decimal_digit,
36951         output_digit, output_numeric, output_mirror, output_scripts,
36952         output_ident_category, output_simple_mapping): Fix format directives.
36953         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
36954
36955 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
36956
36957         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
36958         fixes are available from IBM.
36959
36960 2009-02-13  Jim Meyering  <meyering@redhat.com>
36961
36962         fts: arrange not to stat non-directories in more cases
36963         This makes GNU find (when it doesn't need to stat each file)
36964         *much* more efficient at traversing reiserfs file systems.
36965         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
36966         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
36967         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
36968         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
36969         (leaf_optimization_applies): New function.
36970         (LCO_hash, LCO_compare): New helper functions.
36971         (link_count_optimize_ok): New function.
36972         (fts_stat): Initialize new member (if dir).
36973         (fts_read): Decrement parent's fts_n_dirs_remaining count if
36974         we've just stat'ed a directory.  Skip the stat call when possible.
36975         ---
36976         Note this AFS-related exchange:
36977         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
36978         and note find's pioctl call in find/fstype.c.
36979         But that is necessary only if you want to enable the
36980         optimization for AFS, and for now, I don't.
36981
36982         fts: move a function definition "up" (no semantic change)
36983         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
36984         "up" to precede upcoming use of a related function.
36985
36986 2009-02-11  Jim Meyering  <meyering@redhat.com>
36987
36988         fts: correct internal computation of nlinks (optimization-related)
36989         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
36990         whether the current entry is a directory, so don't test it.
36991
36992 2009-02-10  Bruno Haible  <bruno@clisp.org>
36993
36994         Tests for module 'uniwbrk/ulc-wordbreaks'.
36995         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
36996         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
36997         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
36998
36999         Tests for module 'uniwbrk/u32-wordbreaks'.
37000         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37001         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37002
37003         Tests for module 'uniwbrk/u16-wordbreaks'.
37004         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37005         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37006
37007         Tests for module 'uniwbrk/u8-wordbreaks'.
37008         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37009         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37010
37011 2009-02-10  Bruno Haible  <bruno@clisp.org>
37012
37013         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37014         property.
37015         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37016         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37017         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37018
37019 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37020
37021         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37022         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37023
37024 2009-02-10  Bruno Haible  <bruno@clisp.org>
37025
37026         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37027         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37028         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37029         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37030         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37031         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37032
37033 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37034
37035         * lib/sockets.h (gl_fd_to_handle): New function.
37036
37037         * tests/test-sockets.c: Call gl_fd_to_handle.
37038
37039 2009-02-09  Bruno Haible  <bruno@clisp.org>
37040
37041         * doc/havelib.texi: Document the conventions on bi-arch systems.
37042
37043 2009-02-08  Bruno Haible  <bruno@clisp.org>
37044
37045         Document the AC_LIB_LINKFLAGS macro.
37046         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37047         * doc/gnulib.texi: Include it.
37048
37049 2009-02-08  Bruno Haible  <bruno@clisp.org>
37050
37051         Fix wrong order of sections, compared to TOC.
37052         * doc/gnulib.texi: Include relocatable-maint.texi after the
37053         "Regular expressions" node, not before.
37054
37055 2009-02-08  Bruno Haible  <bruno@clisp.org>
37056
37057         Tests for module 'unicase/totitle'.
37058         * modules/unicase/totitle-tests: New file.
37059
37060         Tests for module 'unicase/tolower'.
37061         * modules/unicase/tolower-tests: New file.
37062
37063         Tests for module 'unicase/toupper'.
37064         * modules/unicase/toupper-tests: New file.
37065         * tests/unicase/test-mapping-part1.h: New file.
37066         * tests/unicase/test-mapping-part2.h: New file.
37067
37068         New module 'unicase/totitle'.
37069         * modules/unicase/totitle: New file.
37070         * lib/unicase/totitle.c: New file.
37071
37072         New module 'unicase/tolower'.
37073         * modules/unicase/tolower: New file.
37074         * lib/unicase/tolower.c: New file.
37075
37076         New module 'unicase/toupper'.
37077         * modules/unicase/toupper: New file.
37078         * lib/unicase/toupper.c: New file.
37079         * lib/unicase/simple-mapping.h: New file.
37080
37081         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37082         (mapping_table): New structure.
37083         (output_simple_mapping): New function.
37084         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37085         * modules/gen-uni-tables (Description): Update.
37086         * lib/unicase/toupper.h: New file, automatically generated by
37087         gen-uni-tables.
37088         * lib/unicase/tolower.h: New file, automatically generated by
37089         gen-uni-tables.
37090         * lib/unicase/totitle.h: New file, automatically generated by
37091         gen-uni-tables.
37092         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37093         gen-uni-tables.
37094         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37095         gen-uni-tables.
37096         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37097         gen-uni-tables.
37098
37099         New module 'unicase/base'.
37100         * modules/unicase/base: New file.
37101         * lib/unicase.h: New file.
37102
37103 2009-02-08  Bruno Haible  <bruno@clisp.org>
37104
37105         New module 'uniwbrk/ulc-wordbreaks'.
37106         * modules/uniwbrk/ulc-wordbreaks: New file.
37107         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37108
37109         New module 'uniwbrk/u32-wordbreaks'.
37110         * modules/uniwbrk/u32-wordbreaks: New file.
37111         * lib/uniwbrk/u32-wordbreaks.c: New file.
37112
37113         New module 'uniwbrk/u16-wordbreaks'.
37114         * modules/uniwbrk/u16-wordbreaks: New file.
37115         * lib/uniwbrk/u16-wordbreaks.c: New file.
37116
37117         New module 'uniwbrk/u8-wordbreaks'.
37118         * modules/uniwbrk/u8-wordbreaks: New file.
37119         * lib/uniwbrk/u8-wordbreaks.c: New file.
37120         * lib/uniwbrk/u-wordbreaks.h: New file.
37121
37122         New module 'uniwbrk/table'.
37123         * modules/uniwbrk/table: New file.
37124         * lib/uniwbrk/wbrktable.h: New file.
37125         * lib/uniwbrk/wbrktable.c: New file.
37126
37127         New module 'uniwbrk/wordbreak-property'.
37128         * modules/uniwbrk/wordbreak-property: New file.
37129         * lib/uniwbrk/wordbreak-property.c: New file.
37130
37131         * lib/gen-uni-tables.c (WBP_*): New enum items.
37132         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37133         (unicode_org_wbp): New variable.
37134         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37135         New functions.
37136         (wbp_table): New structure.
37137         (output_wbp, output_wbrk_tables): New functions.
37138         (main): Accept additional argument. Invoke fill_org_wbp,
37139         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37140         output_wbrk_tables.
37141         * modules/gen-uni-tables (Description): Update.
37142         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37143         gen-uni-tables.
37144
37145         New module 'uniwbrk/base'.
37146         * modules/uniwbrk/base: New file.
37147         * lib/uniwbrk.h: New file.
37148
37149 2009-02-08  Bruno Haible  <bruno@clisp.org>
37150
37151         Update to Unicode 5.1.0.
37152         * lib/gen-uni-tables.c (is_property_alphabetic): Include
37153         U+2185..U+2188.
37154         (is_property_default_ignorable_code_point): Don't include characters
37155         of category Cc or Cs and not-a-characters.
37156         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
37157         U+0D79, U+109E, U+109F, U+A60C.
37158         * lib/unictype/bidi_of.h: Regenerated.
37159         * lib/unictype/blocks.h: Regenerated.
37160         * lib/unictype/categ_C.h: Regenerated.
37161         * lib/unictype/categ_Cf.h: Regenerated.
37162         * lib/unictype/categ_Cn.h: Regenerated.
37163         * lib/unictype/categ_L.h: Regenerated.
37164         * lib/unictype/categ_Ll.h: Regenerated.
37165         * lib/unictype/categ_Lm.h: Regenerated.
37166         * lib/unictype/categ_Lo.h: Regenerated.
37167         * lib/unictype/categ_Lu.h: Regenerated.
37168         * lib/unictype/categ_M.h: Regenerated.
37169         * lib/unictype/categ_Mc.h: Regenerated.
37170         * lib/unictype/categ_Me.h: Regenerated.
37171         * lib/unictype/categ_Mn.h: Regenerated.
37172         * lib/unictype/categ_N.h: Regenerated.
37173         * lib/unictype/categ_Nd.h: Regenerated.
37174         * lib/unictype/categ_Nl.h: Regenerated.
37175         * lib/unictype/categ_No.h: Regenerated.
37176         * lib/unictype/categ_P.h: Regenerated.
37177         * lib/unictype/categ_Pd.h: Regenerated.
37178         * lib/unictype/categ_Pe.h: Regenerated.
37179         * lib/unictype/categ_Pf.h: Regenerated.
37180         * lib/unictype/categ_Pi.h: Regenerated.
37181         * lib/unictype/categ_Po.h: Regenerated.
37182         * lib/unictype/categ_Ps.h: Regenerated.
37183         * lib/unictype/categ_S.h: Regenerated.
37184         * lib/unictype/categ_Sk.h: Regenerated.
37185         * lib/unictype/categ_Sm.h: Regenerated.
37186         * lib/unictype/categ_So.h: Regenerated.
37187         * lib/unictype/categ_of.h: Regenerated.
37188         * lib/unictype/combining.h: Regenerated.
37189         * lib/unictype/ctype_alnum.h: Regenerated.
37190         * lib/unictype/ctype_alpha.h: Regenerated.
37191         * lib/unictype/ctype_graph.h: Regenerated.
37192         * lib/unictype/ctype_lower.h: Regenerated.
37193         * lib/unictype/ctype_print.h: Regenerated.
37194         * lib/unictype/ctype_punct.h: Regenerated.
37195         * lib/unictype/ctype_upper.h: Regenerated.
37196         * lib/unictype/decdigit.h: Regenerated.
37197         * lib/unictype/digit.h: Regenerated.
37198         * lib/unictype/mirror.h: Regenerated.
37199         * lib/unictype/numeric.h: Regenerated.
37200         * lib/unictype/pr_alphabetic.h: Regenerated.
37201         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
37202         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
37203         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
37204         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
37205         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
37206         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
37207         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
37208         * lib/unictype/pr_combining.h: Regenerated.
37209         * lib/unictype/pr_dash.h: Regenerated.
37210         * lib/unictype/pr_decimal_digit.h: Regenerated.
37211         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
37212         * lib/unictype/pr_deprecated.h: Regenerated.
37213         * lib/unictype/pr_diacritic.h: Regenerated.
37214         * lib/unictype/pr_extender.h: Regenerated.
37215         * lib/unictype/pr_format_control.h: Regenerated.
37216         * lib/unictype/pr_grapheme_base.h: Regenerated.
37217         * lib/unictype/pr_grapheme_extend.h: Regenerated.
37218         * lib/unictype/pr_grapheme_link.h: Regenerated.
37219         * lib/unictype/pr_id_continue.h: Regenerated.
37220         * lib/unictype/pr_id_start.h: Regenerated.
37221         * lib/unictype/pr_ideographic.h: Regenerated.
37222         * lib/unictype/pr_ignorable_control.h: Regenerated.
37223         * lib/unictype/pr_lowercase.h: Regenerated.
37224         * lib/unictype/pr_math.h: Regenerated.
37225         * lib/unictype/pr_numeric.h: Regenerated.
37226         * lib/unictype/pr_other_alphabetic.h: Regenerated.
37227         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
37228         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
37229         * lib/unictype/pr_other_id_continue.h: Regenerated.
37230         * lib/unictype/pr_other_lowercase.h: Regenerated.
37231         * lib/unictype/pr_other_math.h: Regenerated.
37232         * lib/unictype/pr_punctuation.h: Regenerated.
37233         * lib/unictype/pr_sentence_terminal.h: Regenerated.
37234         * lib/unictype/pr_soft_dotted.h: Regenerated.
37235         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
37236         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
37237         * lib/unictype/pr_unified_ideograph.h: Regenerated.
37238         * lib/unictype/pr_uppercase.h: Regenerated.
37239         * lib/unictype/pr_xid_continue.h: Regenerated.
37240         * lib/unictype/pr_xid_start.h: Regenerated.
37241         * lib/unictype/pr_zero_width.h: Regenerated.
37242         * lib/unictype/scripts.h: Regenerated.
37243         * lib/unictype/scripts_byname.gperf: Regenerated.
37244         * lib/unictype/sy_java_ident.h: Regenerated.
37245         * lib/unilbrk/lbrkprop1.h: Regenerated.
37246         * lib/unilbrk/lbrkprop2.h: Regenerated.
37247         * tests/unictype/test-categ_C.c: Regenerated.
37248         * tests/unictype/test-categ_Cf.c: Regenerated.
37249         * tests/unictype/test-categ_Cn.c: Regenerated.
37250         * tests/unictype/test-categ_L.c: Regenerated.
37251         * tests/unictype/test-categ_Ll.c: Regenerated.
37252         * tests/unictype/test-categ_Lm.c: Regenerated.
37253         * tests/unictype/test-categ_Lo.c: Regenerated.
37254         * tests/unictype/test-categ_Lu.c: Regenerated.
37255         * tests/unictype/test-categ_M.c: Regenerated.
37256         * tests/unictype/test-categ_Mc.c: Regenerated.
37257         * tests/unictype/test-categ_Me.c: Regenerated.
37258         * tests/unictype/test-categ_Mn.c: Regenerated.
37259         * tests/unictype/test-categ_N.c: Regenerated.
37260         * tests/unictype/test-categ_Nd.c: Regenerated.
37261         * tests/unictype/test-categ_Nl.c: Regenerated.
37262         * tests/unictype/test-categ_No.c: Regenerated.
37263         * tests/unictype/test-categ_P.c: Regenerated.
37264         * tests/unictype/test-categ_Pd.c: Regenerated.
37265         * tests/unictype/test-categ_Pe.c: Regenerated.
37266         * tests/unictype/test-categ_Pf.c: Regenerated.
37267         * tests/unictype/test-categ_Pi.c: Regenerated.
37268         * tests/unictype/test-categ_Po.c: Regenerated.
37269         * tests/unictype/test-categ_Ps.c: Regenerated.
37270         * tests/unictype/test-categ_S.c: Regenerated.
37271         * tests/unictype/test-categ_Sk.c: Regenerated.
37272         * tests/unictype/test-categ_Sm.c: Regenerated.
37273         * tests/unictype/test-categ_So.c: Regenerated.
37274         * tests/unictype/test-ctype_alnum.c: Regenerated.
37275         * tests/unictype/test-ctype_alpha.c: Regenerated.
37276         * tests/unictype/test-ctype_graph.c: Regenerated.
37277         * tests/unictype/test-ctype_lower.c: Regenerated.
37278         * tests/unictype/test-ctype_print.c: Regenerated.
37279         * tests/unictype/test-ctype_punct.c: Regenerated.
37280         * tests/unictype/test-ctype_upper.c: Regenerated.
37281         * tests/unictype/test-decdigit.h: Regenerated.
37282         * tests/unictype/test-digit.h: Regenerated.
37283         * tests/unictype/test-numeric.h: Regenerated.
37284         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37285         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37286         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37287         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37288         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37289         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37290         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37291         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37292         * tests/unictype/test-pr_combining.c: Regenerated.
37293         * tests/unictype/test-pr_dash.c: Regenerated.
37294         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37295         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37296         * tests/unictype/test-pr_deprecated.c: Regenerated.
37297         * tests/unictype/test-pr_diacritic.c: Regenerated.
37298         * tests/unictype/test-pr_extender.c: Regenerated.
37299         * tests/unictype/test-pr_format_control.c: Regenerated.
37300         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37301         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37302         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37303         * tests/unictype/test-pr_id_continue.c: Regenerated.
37304         * tests/unictype/test-pr_id_start.c: Regenerated.
37305         * tests/unictype/test-pr_ideographic.c: Regenerated.
37306         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37307         * tests/unictype/test-pr_lowercase.c: Regenerated.
37308         * tests/unictype/test-pr_math.c: Regenerated.
37309         * tests/unictype/test-pr_numeric.c: Regenerated.
37310         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
37311         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
37312         Regenerated.
37313         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
37314         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
37315         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
37316         * tests/unictype/test-pr_other_math.c: Regenerated.
37317         * tests/unictype/test-pr_punctuation.c: Regenerated.
37318         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
37319         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
37320         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
37321         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
37322         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
37323         * tests/unictype/test-pr_uppercase.c: Regenerated.
37324         * tests/unictype/test-pr_xid_continue.c: Regenerated.
37325         * tests/unictype/test-pr_xid_start.c: Regenerated.
37326         * tests/unictype/test-pr_zero_width.c: Regenerated.
37327
37328         Update to Unicode 5.1.0.
37329         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
37330         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
37331         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
37332         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
37333         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
37334         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
37335         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
37336         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
37337         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
37338         (nonspacing_table_ind): Update.
37339         * tests/uniwidth/test-uc_width2.sh: Update expected result.
37340
37341         Update to Unicode 5.1.0.
37342         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
37343         code transform.
37344         * lib/uniname/uniname.c (unicode_character_name,
37345         unicode_name_character): Add the range 0x1Fxxx to the code transform.
37346         * lib/uniname/uninames.h: Regenerated.
37347         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
37348
37349 2009-02-07  Bruno Haible  <bruno@clisp.org>
37350
37351         Merge gen-ctype and gen-lbrk into a single program.
37352         * lib/gen-uni-tables.c: New file, incorporating
37353         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
37354         Add directory prefixes to the names of the generated files.
37355         * lib/unictype/gen-ctype.c: Remove file.
37356         * lib/unilbrk/gen-lbrk.c: Remove file.
37357         * modules/gen-uni-tables: New file.
37358         * modules/unictype/gen-ctype: Remove file.
37359         * modules/unilbrk/gen-lbrk: Remove file.
37360
37361 2009-02-07  Bruno Haible  <bruno@clisp.org>
37362
37363         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
37364
37365         New module 'unistr/u32-strcoll'.
37366         * modules/unistr/u32-strcoll: New file.
37367         * lib/unistr/u32-strcoll.c: New file.
37368
37369         New module 'unistr/u16-strcoll'.
37370         * modules/unistr/u16-strcoll: New file.
37371         * lib/unistr/u16-strcoll.c: New file.
37372
37373         New module 'unistr/u8-strcoll'.
37374         * modules/unistr/u8-strcoll: New file.
37375         * lib/unistr/u8-strcoll.c: New file.
37376         * lib/unistr/u-strcoll.h: New file.
37377
37378 2009-02-07  Bruno Haible  <bruno@clisp.org>
37379
37380         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
37381         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37382         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37383         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
37384         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
37385         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
37386
37387 2009-02-07  Bruno Haible  <bruno@clisp.org>
37388
37389         Make 64-bit clean.
37390         * lib/unictype/gen-ctype.c (output_predicate, output_category,
37391         output_combclass, output_bidi_category, output_decimal_digit,
37392         output_digit, output_numeric, output_mirror, output_scripts,
37393         output_ident_category): Use proper width specifier in format strings.
37394
37395 2009-02-07  Bruno Haible  <bruno@clisp.org>
37396
37397         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
37398         failure behaviour.
37399
37400 2009-02-07  Jim Meyering  <meyering@redhat.com>
37401
37402         regex: avoid compilation failure with upcoming gcc-4.4
37403         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
37404         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
37405         "... error: integer overflow in preprocessor expression".
37406
37407 2009-02-05  Ben Pfaff  <blp@gnu.org>
37408
37409         Fix link errors on Windows when close module is used.
37410         * modules/close: Add $(LIB_CLOSE) to Link section.
37411         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
37412         $(LIB_CLOSE) on Windows.
37413
37414 2009-02-05  Jim Meyering  <meyering@redhat.com>
37415
37416         still avoid unused-parameter warnings, but do it cleanly
37417         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
37418         (get_fs_usage): Cast to void instead.
37419         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
37420         (dev_from_mount_options, read_file_system_list): Cast to void.
37421         Prompted by Bruno Haible.
37422
37423 2009-02-04  Jim Meyering  <meyering@redhat.com>
37424
37425         fsusage.c: correct copyright year
37426         * lib/fsusage.c: Reflect year in which the change is pushed into
37427
37428         avoid misc. warnings
37429         * lib/fsusage.c (UNUSED_PARAM): Define.
37430         (get_fs_usage): Mark parameter "disk" as unused.
37431         * lib/getugroups.c (getgrent): Use "void" in prototype.
37432         * lib/mountlist.c: Mark unused parameters.
37433         (read_file_system_list): Declare a local with "const".
37434         * lib/nanosleep.c (getnow): Declare static.
37435         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
37436
37437         dirfd: set errno upon failure
37438         * lib/dirfd.c: Include <errno.h>.
37439         Set errno to ENOTSUP when returning -1.
37440         * modules/dirfd (Depends-on): Add errno.
37441         Suggested by John Kodis <kodis@comcast.net>.
37442
37443 2009-02-01  Bruno Haible  <bruno@clisp.org>
37444
37445         Don't assume sizeof (long) >= sizeof (void *).
37446         * lib/memcmp.c: Include stdint.h.
37447         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
37448         srcp2 to 'const byte *'.
37449         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
37450         types to uintptr_t.
37451         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
37452         * modules/memcmp (Depends-on): Add stdint.
37453         Reported by Ozkan Sezer <sezeroz@gmail.com>.
37454
37455 2009-01-30  Eric Blake  <ebb9@byu.net>
37456
37457         fix more require-before-expand issues
37458         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
37459         expand, AC_PROG_AWK.
37460         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
37461
37462 2009-01-28  Eric Blake  <ebb9@byu.net>
37463
37464         version-etc: use consistent URL formatting
37465         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
37466         Improve formatting.  Use fputs for string without %.
37467
37468 2009-01-28  Jim Meyering  <meyering@redhat.com>
37469
37470         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
37471         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
37472         "underquoted definition of NAME" from autoconf-2.59.
37473
37474 2009-01-28  Bruno Haible  <bruno@clisp.org>
37475
37476         * doc/gnulib.texi: Add "Obsolete modules" to index.
37477
37478 2009-01-28  Jim Meyering  <meyering@redhat.com>
37479
37480         useless-if-before-free: recognize more variants
37481         * build-aux/useless-if-before-free: Also recognize e.g.,
37482         if (NULL != p) free (p);
37483
37484 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
37485
37486         test-getaddrinfo: skip (don't fail) this test when there's no network
37487         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
37488         on the presumption that it means you lack network access.
37489
37490 2009-01-26  Jim Meyering  <meyering@redhat.com>
37491
37492         fflush: avoid warnings on modern systems
37493         * lib/fflush.c (rpl_fflush): Move declarations of locals,
37494         pos and result, into scopes where they're used.
37495
37496 2009-01-26  Eric Blake  <ebb9@byu.net>
37497
37498         Silence warning reintroduced by recent extensions patch.
37499         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
37500         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
37501         autoconf.
37502
37503         Backport improved autoconf semantics of AC_DEFUN_ONCE.
37504         * m4/00gnulib.m4: New file.
37505         * gnulib-tool (func_get_filelist): Always use it.
37506         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
37507         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
37508
37509 2009-01-25  Bruno Haible  <bruno@clisp.org>
37510
37511         Make test-quotearg work on MacOS X and AIX.
37512         * tests/test-quotearg.sh: New file.
37513         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
37514         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
37515         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
37516         include <libintl.h>.
37517         (fake_locale): Remove variable.
37518         (gettext, dgettext, dcgettext): Remove functions.
37519         (main): Instead of setting a fake locale, set a real locale. Call
37520         textdomain and bindtextdomain.
37521         * modules/quotearg-tests (Files): Add the new files.
37522         (Depends-on): Add gettext, setenv, unsetenv.
37523         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37524         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
37525         Augment TESTS_ENVIRONMENT.
37526
37527 2009-01-25  Bruno Haible  <bruno@clisp.org>
37528
37529         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
37530         fr_FR.ISO8859-1 locale on MacOS X.
37531         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
37532         ja_JP.eucJP locale on MacOS X.
37533         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
37534         zh_CN.GB18030 locale on MacOS X.
37535
37536 2009-01-25  Bruno Haible  <bruno@clisp.org>
37537
37538         Avoid link errors on MacOS X 10.3.
37539         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
37540         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37541
37542 2009-01-25  Bruno Haible  <bruno@clisp.org>
37543
37544         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37545         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
37546         * modules/pipe (Files): Remove m4/posix_spawn.m4.
37547         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37548         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
37549         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37550         posix_spawnattr_init, posix_spawnattr_setsigmask,
37551         posix_spawnattr_setflags, posix_spawnattr_destroy.
37552
37553         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37554         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
37555         * modules/execute (Files): Remove m4/posix_spawn.m4.
37556         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37557         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37558         posix_spawnattr_init, posix_spawnattr_setsigmask,
37559         posix_spawnattr_setflags, posix_spawnattr_destroy.
37560
37561 2009-01-25  Bruno Haible  <bruno@clisp.org>
37562
37563         * lib/glthread/threadlib.c: Include <stdlib.h>.
37564
37565 2009-01-25  Bruno Haible  <bruno@clisp.org>
37566
37567         * lib/glthread/threadlib.c (dummy): New declaration.
37568
37569 2009-01-25  Bruno Haible  <bruno@clisp.org>
37570
37571         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
37572         multibyte characters also for the GB18030 encoding. Don't crash when
37573         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
37574
37575 2009-01-25  Bruno Haible  <bruno@clisp.org>
37576
37577         Avoid redefining 'struct random_data' on OSF/1 5.1.
37578         * lib/stdlib.in.h: Include <random.h> if it exists.
37579         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
37580         HAVE_RANDOM_H. Include <random.h> when testing whether
37581         'struct random_data' exists.
37582         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
37583
37584 2009-01-25  Bruno Haible  <bruno@clisp.org>
37585
37586         Don't install charset.alias on MacOS X >= 10.3.
37587         * lib/localcharset.c (DARWIN7): New macro.
37588         (get_charset_aliases): Hardcode the result for Darwin7.
37589         * modules/localcharset (install-exec-local): Don't install
37590         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
37591
37592 2009-01-25  Bruno Haible  <bruno@clisp.org>
37593
37594         Don't install charset.alias on mingw and Cygwin.
37595         * modules/localcharset (install-exec-local): Don't install
37596         charset.alias on mingw and Cygwin, if the file does not yet exist.
37597         The result for these platforms is hardcoded in localcharset.c.
37598
37599 2009-01-25  Bruno Haible  <bruno@clisp.org>
37600
37601         Make it possible again to use AC_GNU_SOURCE together with gnulib.
37602         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
37603         before requiring AC_USE_SYSTEM_EXTENSIONS.
37604
37605 2009-01-25  Jim Meyering  <meyering@redhat.com>
37606
37607         c-strtod: avoid warnings
37608         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
37609         "assignment discards qualifiers from pointer target type" warnings.
37610
37611 2009-01-24  Bruno Haible  <bruno@clisp.org>
37612
37613         Add support for non-UTF-8 locales on MacOS X.
37614         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
37615         canonical encodings. For Darwin 7 and newer, don't map traditional
37616         encodings to UTF-8.
37617         Reported by Vincent Lefevre <vincent@vinc17.org>
37618         at <http://savannah.gnu.org/bugs/?25235>.
37619
37620 2009-01-24  Bruno Haible  <bruno@clisp.org>
37621
37622         * doc/gnulib.texi (Obsolete modules): New section.
37623         Reported by Mike Frysinger <vapier@gentoo.org>.
37624
37625 2009-01-24  Bruno Haible  <bruno@clisp.org>
37626
37627         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
37628         (%.dvi): New rule.
37629
37630 2009-01-24  Bruno Haible  <bruno@clisp.org>
37631
37632         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
37633         Reported by Eric Blake.
37634
37635 2009-01-24  Bruno Haible  <bruno@clisp.org>
37636
37637         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
37638         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
37639         Reported by Gary V. Vaughan <gary@gnu.org>.
37640
37641 2009-01-24  Bruno Haible  <bruno@clisp.org>
37642
37643         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
37644
37645 2009-01-23  Bruno Haible  <bruno@clisp.org>
37646
37647         Make c-strtod, c-strtold usable in libraries.
37648         * lib/c-strtod.c: Include string.h instead of xalloc.h.
37649         (C_STRTOD): Call strdup instead of xstrdup.
37650         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
37651         * modules/c-strtold (Depends-on): Likewise.
37652         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
37653         * NEWS: Mention the change.
37654         Reported by Michael Gold <mgold@ncf.ca>.
37655
37656 2009-01-23  Jim Meyering  <meyering@redhat.com>
37657
37658         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
37659         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
37660         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
37661
37662 2009-01-23  Simon Josefsson  <simon@josefsson.org>
37663
37664         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
37665         GNU CoreUtils.
37666         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
37667         * modules/version-etc (Description): Update.
37668
37669 2009-01-22  Bruno Haible  <bruno@clisp.org>
37670
37671         Cache the C locale object.
37672         * lib/c-strtod.c (c_locale_cache): New variable.
37673         (c_locale): New function.
37674         (C_STRTOD): Use it, and don't call freelocale.
37675         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
37676         Suggested by Paolo Bonzini.
37677
37678 2009-01-21  Bruno Haible  <bruno@clisp.org>
37679
37680         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
37681         conditions other than overflow.
37682
37683 2009-01-21  Bruno Haible  <bruno@clisp.org>
37684
37685         * lib/c-strtod.c: Include errno.h.
37686         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
37687         value from STRTOD_L and STRTOD.
37688
37689 2009-01-21  Bruno Haible  <bruno@clisp.org>
37690         and Jim Meyering  <meyering@redhat.com>
37691
37692         nanosleep: skip configure test (fail it) for apple universal builds
37693         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
37694         universal builds, assume that nanosleep does not work.
37695         * modules/nanosleep (Depends-on): Add multiarch.
37696
37697         mktime: skip configure test (fail it) for apple universal builds
37698         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
37699         universal builds, assume that mktime does not work.
37700         * modules/mktime (Depends-on): Add multiarch.
37701
37702 2009-01-21  Eric Blake  <ebb9@byu.net>
37703
37704         multiarch: avoid expand-before-require warning
37705         * modules/multiarch (configure.ac): Require, rather than expand,
37706         gl_MULTIARCH.
37707         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
37708         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
37709         enforce that all clients require it.  Partial reversion of
37710         2008-12-29 patch.
37711
37712         error: avoid expand-before-require warning
37713         * modules/errno (configure.ac): Require, rather than expand,
37714         gl_HEADER_ERRNO_H.
37715         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
37716         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
37717         enforce that all clients require it.
37718
37719         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
37720         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
37721         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
37722         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
37723
37724 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
37725
37726         Revert:
37727         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37728
37729         regex: do not depend on obsolete modules.
37730         * modules/regex: Remove memcmp and memmove.
37731
37732 2009-01-20  Bruno Haible  <bruno@clisp.org>
37733
37734         Make the 'link' module link on Windows NT 4.
37735         * lib/link.c (_WIN32_WINNT): Don't define.
37736         (CreateHardLinkFuncType): New type.
37737         (CreateHardLinkFunc, initialized): New variables.
37738         (initialize): New function.
37739         (link): Invoke CreateHardLink indirectly through the function pointer.
37740
37741 2009-01-20  Bruno Haible  <bruno@clisp.org>
37742
37743         Fix compilation failure on mingw.
37744         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
37745
37746 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
37747
37748         * doc/c-strtod.texi: Mention a couple of restrictions.
37749
37750 2009-01-20  Jim Meyering  <meyering@redhat.com>
37751
37752         gettimeofday: move more declarations out of functions
37753         * lib/gettimeofday.c: Move extern declarations of tzset and
37754         gmtime out of containing functions.  Prompted by Bruno Haible.
37755
37756 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37757
37758         regex: do not depend on obsolete modules.
37759         * modules/regex: Remove memcmp and memmove.
37760
37761 2009-01-19  Bruno Haible  <bruno@clisp.org>
37762
37763         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
37764         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
37765         gl_BIGENDIAN, not AC_C_BIGENDIAN.
37766         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
37767         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
37768
37769 2009-01-19  Bruno Haible  <bruno@clisp.org>
37770
37771         * tests/test-link.c: Include <errno.h>.
37772         (main): Exit with code 77 when a hard link cannot be created due to
37773         the file system.
37774         * tests/test-link.sh: Skip test when a hard link cannot be created due
37775         to the file system.
37776         Suggested by Eric Blake.
37777
37778 2009-01-19  Martin Lambers  <marlam@marlam.de>
37779
37780         * modules/link-tests: New file.
37781         * tests/test-link.sh: New file.
37782         * tests/test-link.c: New file.
37783
37784 2009-01-19  Eric Blake  <ebb9@byu.net>
37785
37786         doc: mention another function added in cygwin 1.7.0
37787         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
37788         Another new function in cygwin 1.7.
37789
37790 2009-01-19  Bruno Haible  <bruno@clisp.org>
37791
37792         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
37793         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
37794         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
37795         gl_BIGENDIAN, not AC_C_BIGENDIAN.
37796         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37797         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
37798         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
37799         * m4/md4.m4 (gl_MD4): Likewise.
37800         * m4/md5.m4 (gl_MD5): Likewise.
37801         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
37802         * m4/sha1.m4 (gl_SHA1): Likewise.
37803         * m4/sha256.m4 (gl_SHA256): Likewise.
37804         * m4/sha512.m4 (gl_SHA512): Likewise.
37805
37806 2009-01-19  Bruno Haible  <bruno@clisp.org>
37807
37808         * modules/uniname/uniname-tests (Depends-on): Add progname.
37809         * tests/uniname/test-uninames.c: Include progname.h.
37810         (main): Call set_program_name.
37811
37812         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
37813         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
37814         (main): Call set_program_name.
37815
37816         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
37817         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
37818         (main): Call set_program_name.
37819
37820         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
37821         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
37822         (main): Call set_program_name.
37823
37824         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
37825         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
37826         (main): Call set_program_name.
37827
37828         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
37829         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
37830         (main): Call set_program_name.
37831
37832         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
37833         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
37834         (main): Call set_program_name.
37835
37836         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
37837         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
37838         (main): Call set_program_name.
37839
37840         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
37841         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
37842         (main): Call set_program_name.
37843
37844 2009-01-19  Eric Blake  <ebb9@byu.net>
37845
37846         test-unistd: test previous patch
37847         * tests/test-unistd.c: Test *_FILENO macros.
37848
37849         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
37850         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37851         Guarantee a definition.
37852         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
37853         * modules/unistd-safer (Depends-on): Add dependency on unistd.
37854         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
37855         * lib/dup-safer.c (STDERR_FILENO): Likewise.
37856         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37857         Likewise.
37858         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
37859         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
37860         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37861         Likewise.
37862         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
37863         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
37864         (STDERR_FILENO): Likewise.
37865         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
37866         (STDERR_FILENO): Likewise.
37867         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
37868         (STDERR_FILENO): Likewise.
37869         Reported by Elbert Pol.
37870
37871 2009-01-19  Eric Blake  <ebb9@byu.net>
37872
37873         doc: mention more functions added in cygwin 1.7.0
37874         * doc/posix-functions/abort.texi (abort): Update wording related
37875         to cygwin.
37876         * doc/posix-functions/daylight.texi (daylight): Likewise.
37877         * doc/posix-functions/optarg.texi (optarg): Likewise.
37878         * doc/posix-functions/optarg.texi (opterr): Likewise.
37879         * doc/posix-functions/optarg.texi (optind): Likewise.
37880         * doc/posix-functions/optarg.texi (optopt): Likewise.
37881         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
37882         worked in 1.5.x, and was withdrawn in 1.7.
37883         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
37884         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
37885         cygwin versions.
37886         * doc/posix-functions/perror.texi (perror): Likewise.
37887         * doc/posix-functions/printf.texi (printf): Likewise.
37888         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
37889         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
37890         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
37891         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
37892         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
37893         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
37894         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37895         Likewise.
37896         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37897         Likewise.
37898         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
37899         this function.
37900         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
37901         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
37902         Likewise.
37903         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
37904         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
37905         * doc/posix-functions/confstr.texi (confstr): Likewise.
37906         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
37907         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
37908         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
37909         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
37910         * doc/posix-functions/fputws.texi (fputws): Likewise.
37911         * doc/posix-functions/fwide.texi (fwide): Likewise.
37912         * doc/posix-functions/getwc.texi (getwc): Likewise.
37913         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
37914         * doc/posix-functions/putwc.texi (putwc): Likewise.
37915         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
37916         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
37917         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
37918         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
37919         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
37920         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
37921         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
37922         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
37923         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
37924         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
37925         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
37926
37927 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37928
37929         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
37930         * lib/ioctl.c: Include <sys/ioctl.h>.
37931
37932 2009-01-19  Simon Josefsson  <simon@josefsson.org>
37933
37934         * modules/getdate-tests (Depends-on): Add progname.
37935         * tests/test-getdate.c: Use progname module, to avoid link errors
37936         on non-glibc systems.
37937
37938 2009-01-18  Simon Josefsson  <simon@josefsson.org>
37939
37940         * modules/filenamecat-tests (Depends-on): Add progname.
37941         * modules/fstrcmp-tests (Depends-on): Likewise.
37942
37943         * tests/test-filenamecat.c: Use progname module, to avoid link
37944         errors on non-glibc systems.
37945         * tests/test-fstrcmp.c: Likewise.
37946
37947 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37948
37949         gettimeofday: avoid warning: nested extern declaration of 'localtime'
37950         * lib/gettimeofday.c: Move extern declaration out of function.
37951
37952 2009-01-18  Bruno Haible  <bruno@clisp.org>
37953
37954         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
37955         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
37956         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
37957
37958 2009-01-18  Bruno Haible  <bruno@clisp.org>
37959
37960         * lib/strftime.c (MEMPCPY): Remove unused macro.
37961         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
37962
37963 2009-01-18  Martin Lambers  <marlam@marlam.de>
37964
37965         New module 'link'.
37966         * lib/unistd.in.h (link): New declaration.
37967         * lib/link.c: New file.
37968         * m4/link.m4: New file.
37969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
37970         HAVE_LINK.
37971         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
37972         * modules/link: New file.
37973         * doc/posix-functions/link.texi: Mention the new module.
37974
37975 2009-01-18  Bruno Haible  <bruno@clisp.org>
37976
37977         * tests/test-avltree_list.c (main): Call set_program_name.
37978         * tests/test-avltree_oset.c (main): Likewise.
37979         * tests/test-obstack-printf.c: Include progname.h.
37980         (main): Call set_program_name.
37981         * tests/test-quotearg.c: Include progname.h.
37982         (main): Call set_program_name.
37983         * tests/test-xmemdup0.c: Include progname.h.
37984         (main): Call set_program_name.
37985
37986 2009-01-18  Bruno Haible  <bruno@clisp.org>
37987
37988         New module 'alphasort'.
37989         * lib/dirent.in.h (alphasort): New declaration.
37990         * lib/alphasort.c: New file, from glibc with modifications.
37991         * m4/alphasort.m4: New file.
37992         * modules/alphasort: New file.
37993         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
37994         HAVE_ALPHASORT.
37995         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
37996         HAVE_ALPHASORT.
37997         * doc/posix-functions/alphasort.texi: Mention the new module and the
37998         portability problems.
37999
38000 2009-01-18  Bruno Haible  <bruno@clisp.org>
38001
38002         New module 'scandir'.
38003         * lib/dirent.in.h (scandir): New declaration.
38004         * lib/scandir.c: New file, from glibc with modifications.
38005         * m4/scandir.m4: New file.
38006         * modules/scandir: New file.
38007         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38008         HAVE_SCANDIR.
38009         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38010         HAVE_SCANDIR.
38011         * doc/posix-functions/scandir.texi: Mention the new module and the
38012         portability problems.
38013
38014 2009-01-17  Bruno Haible  <bruno@clisp.org>
38015
38016         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38017         Update documentation.
38018         (func_remove_suffix): Escape all dots in the suffix. Update
38019         documentation.
38020         (func_filter_filelist): Update documentation.
38021         Reported by Ralf Wildenhues.
38022
38023 2009-01-17  Bruno Haible  <bruno@clisp.org>
38024
38025         * modules/dprintf-posix-tests: New file.
38026         * tests/test-dprintf-posix.sh: New file.
38027         * tests/test-dprintf-posix.c: New file.
38028
38029         New modules 'dprintf', 'dprintf-posix'.
38030         * lib/stdio.in.h (dprintf): New declaration.
38031         * lib/dprintf.c: New file.
38032         * m4/dprintf.m4: New file.
38033         * m4/dprintf-posix.m4: New file.
38034         * modules/dprintf: New file.
38035         * modules/dprintf-posix: New file.
38036         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38037         HAVE_DPRINTF, REPLACE_DPRINTF.
38038         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38039         HAVE_DPRINTF, REPLACE_DPRINTF.
38040         * doc/posix-functions/dprintf.texi: Mention the new modules.
38041
38042 2009-01-17  Bruno Haible  <bruno@clisp.org>
38043
38044         * modules/vdprintf-posix-tests: New file.
38045         * tests/test-vdprintf-posix.sh: New file.
38046         * tests/test-vdprintf-posix.c: New file.
38047
38048         New modules 'vdprintf', 'vdprintf-posix'.
38049         * lib/stdio.in.h (vdprintf): New declaration.
38050         * lib/vdprintf.c: New file.
38051         * m4/vdprintf.m4: New file.
38052         * m4/vdprintf-posix.m4: New file.
38053         * modules/vdprintf: New file.
38054         * modules/vdprintf-posix: New file.
38055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38056         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38057         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38058         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38059         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38060
38061 2009-01-17  Bruno Haible  <bruno@clisp.org>
38062
38063         Fix replacement of fopen on mingw.
38064         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38065         mingw.
38066
38067 2009-01-17  Bruno Haible  <bruno@clisp.org>
38068
38069         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38070         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38071
38072 2009-01-17  Bruno Haible  <bruno@clisp.org>
38073
38074         Avoid test-fflush2.sh failure on mingw.
38075         * tests/test-fflush2.c: Include binary-io.h.
38076         (main): Put standard input into binary mode.
38077         * modules/fflush-tests (Depends-on): Add binary-io.
38078
38079 2009-01-17  Bruno Haible  <bruno@clisp.org>
38080
38081         * lib/wchar.in.h: In another particular situation, include only the
38082         system's <wchar.h> file.
38083         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38084         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38085         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38086
38087 2009-01-17  Bruno Haible  <bruno@clisp.org>
38088
38089         Support for stripping executables in --enable-relocatable.
38090         * build-aux/install-reloc: Expect one more argument, or an environment
38091         variable RELOC_STRIP_PROG. If set, strip the destination program and
38092         its wrapper.
38093         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38094         RELOC_STRIP_PROG.
38095         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38096         to set RELOCATABLE_STRIP.
38097         * NEWS: Mention the new Makefile requirement.
38098
38099 2009-01-17  Bruno Haible  <bruno@clisp.org>
38100
38101         * build-aux/install-reloc: Remove debugging information left over by
38102         C compiler on MacOS X.
38103
38104 2009-01-17  Bruno Haible  <bruno@clisp.org>
38105
38106         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38107         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38108         _NSGetExecutablePath.
38109
38110 2009-01-16  Jim Meyering  <meyering@redhat.com>
38111
38112         strerror: avoid warnings about discarding "const"
38113         * lib/strerror.c (rpl_strerror): Instead of returning a const
38114         string from each and every "case", use a variable, and add a single
38115         cast after the switch.
38116
38117 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38118
38119         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38120
38121 2009-01-16  Bruno Haible  <bruno@clisp.org>
38122
38123         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38124         array initializer syntax that also works in C++ mode.
38125         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38126
38127 2009-01-16  Jim Meyering  <meyering@redhat.com>
38128
38129         poll: suppress a warning
38130         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38131         to ignore "...unsigned expression < 0 is always false" warnings.
38132
38133 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38134
38135         poll: remove declarations of unused variables
38136         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38137         sockbuf and optlen.
38138
38139 2009-01-15  Bruno Haible  <bruno@clisp.org>
38140
38141         Make fflush-after-ungetc POSIX compliant on BSD systems.
38142         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38143         (clear_ungetc_buffer): Implement also for other systems.
38144         (rpl_fflush): On glibc systems, invoke
38145         clear_ungetc_buffer_preserving_position. Otherwise, invoke
38146         clear_ungetc_buffer after fetching the stream's position, not before.
38147
38148 2009-01-15  Bruno Haible  <bruno@clisp.org>
38149
38150         Make fflush-after-ungetc POSIX compliant on glibc systems.
38151         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
38152         after ungetc.
38153         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
38154         (rpl_fflush): On glibc systems, simply call the system's fflush
38155         function after clearing the ungetc buffer.
38156         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
38157         Instead, lseek only to the end of file, then use the system's fseeko
38158         for the rest. On glibc systems, reset the EOF indicator bit.
38159
38160 2009-01-15  Jim Meyering  <meyering@redhat.com>
38161
38162         openmp.m4: revert quote-adding change, for portability to older autoconf
38163         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
38164         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
38165         Simon Josefsson noticed the problem when using autoconf-2.61.
38166
38167 2009-01-15  Bruno Haible  <bruno@clisp.org>
38168
38169         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
38170         * tests/test-fflush2.c (ASSERT): Always fail.
38171         (main): Add two tests for fflush() after ungetc(), taking into account
38172         the Austin Group's clarification.
38173         Suggested by Eric Blake.
38174
38175 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
38176
38177         mktime.m4: remove K&R-style function prototypes
38178         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
38179         for the Sun C++ compiler.
38180
38181 2009-01-14  Bruno Haible  <bruno@clisp.org>
38182
38183         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
38184         while including <wchar.h>.
38185         * lib/wchar.in.h: In two particular situations on HP-UX, include only
38186         the system's <wchar.h> file.
38187         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38188
38189 2009-01-14  Bruno Haible  <bruno@clisp.org>
38190
38191         * m4/csharp.m4: Don't mention gettext on the serial number line.
38192         * m4/csharpexec.m4: Likewise.
38193         * m4/eaccess.m4: Likewise.
38194         * m4/javaexec.m4: Likewise.
38195         * m4/sig_atomic_t.m4: Likewise.
38196         * m4/tmpdir.m4: Likewise.
38197         * m4/intldir.m4: Bump gettext version.
38198         * m4/lib-ld.m4: Likewise.
38199
38200 2009-01-14  Bruno Haible  <bruno@clisp.org>
38201
38202         * lib/progname.c (set_program_name): Add more comments.
38203         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38204
38205 2009-01-14  Simon Josefsson  <simon@josefsson.org>
38206
38207         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
38208         were sys/stat.h does not define it.
38209
38210 2009-01-14  Jim Meyering  <meyering@redhat.com>
38211
38212         many *.m4 files: improve m4 quoting
38213         99% of this change was performed by running the following commands:
38214         git ls-files | grep '\.m4$' | xargs perl -pi \
38215           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
38216           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38217           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38218           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
38219         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
38220         The remainder were to add Copyright dates, increment serial numbers,
38221         undo some changes in comments, exclude m4/intl.m4, and add quotes
38222         around the "1" in ",1" where the unusual spacing prohibited the
38223         above regexps from doing the job.  For more details, see
38224         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
38225         * m4/acl.m4: Modified.
38226         * m4/afs.m4: Likewise.
38227         * m4/alloca.m4: Likewise.
38228         * m4/argp.m4: Likewise.
38229         * m4/argz.m4: Likewise.
38230         * m4/atexit.m4: Likewise.
38231         * m4/bison-i18n.m4: Likewise.
38232         * m4/bison.m4: Likewise.
38233         * m4/byteswap.m4: Likewise.
38234         * m4/c-stack.m4: Likewise.
38235         * m4/c-strtod.m4: Likewise.
38236         * m4/calloc.m4: Likewise.
38237         * m4/canonicalize-lgpl.m4: Likewise.
38238         * m4/chown.m4: Likewise.
38239         * m4/clock_time.m4: Likewise.
38240         * m4/codeset.m4: Likewise.
38241         * m4/copy-file.m4: Likewise.
38242         * m4/csharp.m4: Likewise.
38243         * m4/csharpcomp.m4: Likewise.
38244         * m4/csharpexec.m4: Likewise.
38245         * m4/d-ino.m4: Likewise.
38246         * m4/d-type.m4: Likewise.
38247         * m4/dirfd.m4: Likewise.
38248         * m4/double-slash-root.m4: Likewise.
38249         * m4/eaccess.m4: Likewise.
38250         * m4/eealloc.m4: Likewise.
38251         * m4/environ.m4: Likewise.
38252         * m4/errno_h.m4: Likewise.
38253         * m4/euidaccess.m4: Likewise.
38254         * m4/execute.m4: Likewise.
38255         * m4/fatal-signal.m4: Likewise.
38256         * m4/fchdir.m4: Likewise.
38257         * m4/fcntl_h.m4: Likewise.
38258         * m4/fileblocks.m4: Likewise.
38259         * m4/filenamecat.m4: Likewise.
38260         * m4/findprog.m4: Likewise.
38261         * m4/flexmember.m4: Likewise.
38262         * m4/fnmatch.m4: Likewise.
38263         * m4/fopen.m4: Likewise.
38264         * m4/fpending.m4: Likewise.
38265         * m4/fprintf-posix.m4: Likewise.
38266         * m4/free.m4: Likewise.
38267         * m4/frexp.m4: Likewise.
38268         * m4/frexpl.m4: Likewise.
38269         * m4/fsusage.m4: Likewise.
38270         * m4/ftruncate.m4: Likewise.
38271         * m4/gc-camellia.m4: Likewise.
38272         * m4/gc-random.m4: Likewise.
38273         * m4/gc.m4: Likewise.
38274         * m4/getaddrinfo.m4: Likewise.
38275         * m4/getcwd-abort-bug.m4: Likewise.
38276         * m4/getcwd-path-max.m4: Likewise.
38277         * m4/getdate.m4: Likewise.
38278         * m4/getdomainname.m4: Likewise.
38279         * m4/getgroups.m4: Likewise.
38280         * m4/gethostname.m4: Likewise.
38281         * m4/gethrxtime.m4: Likewise.
38282         * m4/getline.m4: Likewise.
38283         * m4/getloadavg.m4: Likewise.
38284         * m4/getndelim2.m4: Likewise.
38285         * m4/getpass.m4: Likewise.
38286         * m4/gettext.m4: Likewise.
38287         * m4/gettime.m4: Likewise.
38288         * m4/gettimeofday.m4: Likewise.
38289         * m4/gnulib-common.m4: Likewise.
38290         * m4/group-member.m4: Likewise.
38291         * m4/host-os.m4: Likewise.
38292         * m4/iconv.m4: Likewise.
38293         * m4/iconv_open.m4: Likewise.
38294         * m4/inet_ntop.m4: Likewise.
38295         * m4/inet_pton.m4: Likewise.
38296         * m4/inline.m4: Likewise.
38297         * m4/intldir.m4: Likewise.
38298         * m4/intlmacosx.m4: Likewise.
38299         * m4/intmax.m4: Likewise.
38300         * m4/intmax_t.m4: Likewise.
38301         * m4/inttypes.m4: Likewise.
38302         * m4/inttypes_h.m4: Likewise.
38303         * m4/inttypes-pri.m4: Likewise.
38304         * m4/isapipe.m4: Likewise.
38305         * m4/isnand.m4: Likewise.
38306         * m4/isnanf.m4: Likewise.
38307         * m4/isnanl.m4: Likewise.
38308         * m4/javacomp.m4: Likewise.
38309         * m4/javaexec.m4: Likewise.
38310         * m4/jm-winsz1.m4: Likewise.
38311         * m4/jm-winsz2.m4: Likewise.
38312         * m4/lchown.m4: Likewise.
38313         * m4/lcmessage.m4: Likewise.
38314         * m4/ldexpl.m4: Likewise.
38315         * m4/lib-ld.m4: Likewise.
38316         * m4/lib-link.m4: Likewise.
38317         * m4/libsigsegv.m4: Likewise.
38318         * m4/link-follow.m4: Likewise.
38319         * m4/localcharset.m4: Likewise.
38320         * m4/locale-fr.m4: Likewise.
38321         * m4/locale-ja.m4: Likewise.
38322         * m4/locale-tr.m4: Likewise.
38323         * m4/locale-zh.m4: Likewise.
38324         * m4/lock.m4: Likewise.
38325         * m4/longlong.m4: Likewise.
38326         * m4/ls-mntd-fs.m4: Likewise.
38327         * m4/lstat.m4: Likewise.
38328         * m4/malloc.m4: Likewise.
38329         * m4/mathl.m4: Likewise.
38330         * m4/mbrtowc.m4: Likewise.
38331         * m4/mbstate_t.m4: Likewise.
38332         * m4/mbswidth.m4: Likewise.
38333         * m4/memchr.m4: Likewise.
38334         * m4/memcmp.m4: Likewise.
38335         * m4/memcpy.m4: Likewise.
38336         * m4/memmem.m4: Likewise.
38337         * m4/memmove.m4: Likewise.
38338         * m4/mempcpy.m4: Likewise.
38339         * m4/memrchr.m4: Likewise.
38340         * m4/memset.m4: Likewise.
38341         * m4/minmax.m4: Likewise.
38342         * m4/mkdir-slash.m4: Likewise.
38343         * m4/mkdtemp.m4: Likewise.
38344         * m4/mktime.m4: Likewise.
38345         * m4/mmap-anon.m4: Likewise.
38346         * m4/mountlist.m4: Likewise.
38347         * m4/nanosleep.m4: Likewise.
38348         * m4/nls.m4: Likewise.
38349         * m4/nocrash.m4: Likewise.
38350         * m4/open.m4: Likewise.
38351         * m4/openat.m4: Likewise.
38352         * m4/openmp.m4: Likewise.
38353         * m4/pathmax.m4: Likewise.
38354         * m4/perl.m4: Likewise.
38355         * m4/physmem.m4: Likewise.
38356         * m4/pipe.m4: Likewise.
38357         * m4/po.m4: Likewise.
38358         * m4/poll.m4: Likewise.
38359         * m4/posixtm.m4: Likewise.
38360         * m4/posixver.m4: Likewise.
38361         * m4/printf-frexp.m4: Likewise.
38362         * m4/printf-frexpl.m4: Likewise.
38363         * m4/printf-posix.m4: Likewise.
38364         * m4/printf-posix-rpl.m4: Likewise.
38365         * m4/printf.m4: Likewise.
38366         * m4/progtest.m4: Likewise.
38367         * m4/putenv.m4: Likewise.
38368         * m4/readline.m4: Likewise.
38369         * m4/readlink.m4: Likewise.
38370         * m4/readutmp.m4: Likewise.
38371         * m4/realloc.m4: Likewise.
38372         * m4/regex.m4: Likewise.
38373         * m4/relocatable.m4: Likewise.
38374         * m4/relocatable-lib.m4: Likewise.
38375         * m4/rename-dest-slash.m4: Likewise.
38376         * m4/rename.m4: Likewise.
38377         * m4/rmdir-errno.m4: Likewise.
38378         * m4/rmdir.m4: Likewise.
38379         * m4/roundf.m4: Likewise.
38380         * m4/roundl.m4: Likewise.
38381         * m4/rpmatch.m4: Likewise.
38382         * m4/save-cwd.m4: Likewise.
38383         * m4/selinux-selinux-h.m4: Likewise.
38384         * m4/setenv.m4: Likewise.
38385         * m4/settime.m4: Likewise.
38386         * m4/sig2str.m4: Likewise.
38387         * m4/sig_atomic_t.m4: Likewise.
38388         * m4/signalblocking.m4: Likewise.
38389         * m4/signbit.m4: Likewise.
38390         * m4/sigpipe.m4: Likewise.
38391         * m4/sockets.m4: Likewise.
38392         * m4/sockpfaf.m4: Likewise.
38393         * m4/st_dm_mode.m4: Likewise.
38394         * m4/stat-time.m4: Likewise.
38395         * m4/stdbool.m4: Likewise.
38396         * m4/stdint.m4: Likewise.
38397         * m4/stdint_h.m4: Likewise.
38398         * m4/stpcpy.m4: Likewise.
38399         * m4/stpncpy.m4: Likewise.
38400         * m4/strcase.m4: Likewise.
38401         * m4/strchrnul.m4: Likewise.
38402         * m4/strcspn.m4: Likewise.
38403         * m4/strdup.m4: Likewise.
38404         * m4/strftime.m4: Likewise.
38405         * m4/strndup.m4: Likewise.
38406         * m4/strnlen.m4: Likewise.
38407         * m4/strpbrk.m4: Likewise.
38408         * m4/strptime.m4: Likewise.
38409         * m4/strsep.m4: Likewise.
38410         * m4/strtod.m4: Likewise.
38411         * m4/strtoimax.m4: Likewise.
38412         * m4/strtok_r.m4: Likewise.
38413         * m4/strtol.m4: Likewise.
38414         * m4/strtoll.m4: Likewise.
38415         * m4/strtoul.m4: Likewise.
38416         * m4/strtoull.m4: Likewise.
38417         * m4/strtoumax.m4: Likewise.
38418         * m4/strverscmp.m4: Likewise.
38419         * m4/threadlib.m4: Likewise.
38420         * m4/timegm.m4: Likewise.
38421         * m4/tm_gmtoff.m4: Likewise.
38422         * m4/tmpdir.m4: Likewise.
38423         * m4/tmpfile.m4: Likewise.
38424         * m4/tzset.m4: Likewise.
38425         * m4/uintmax_t.m4: Likewise.
38426         * m4/unlinkdir.m4: Likewise.
38427         * m4/unlocked-io.m4: Likewise.
38428         * m4/uptime.m4: Likewise.
38429         * m4/userspec.m4: Likewise.
38430         * m4/utimbuf.m4: Likewise.
38431         * m4/utime.m4: Likewise.
38432         * m4/utimes-null.m4: Likewise.
38433         * m4/utimes.m4: Likewise.
38434         * m4/vararrays.m4: Likewise.
38435         * m4/vasnprintf.m4: Likewise.
38436         * m4/vfprintf-posix.m4: Likewise.
38437         * m4/vprintf-posix.m4: Likewise.
38438         * m4/wait-process.m4: Likewise.
38439         * m4/wchar_t.m4: Likewise.
38440         * m4/wint_t.m4: Likewise.
38441         * m4/write-any-file.m4: Likewise.
38442         * m4/yield.m4: Likewise.
38443
38444 2009-01-13  Bruno Haible  <bruno@clisp.org>
38445
38446         Avoid test-copy-file.sh failures when ACL support insufficient.
38447         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
38448         TESTS_ENVIRONMENT.
38449         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
38450         Reported by Jim Meyering.
38451
38452 2009-01-13  Bruno Haible  <bruno@clisp.org>
38453
38454         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
38455         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
38456         * modules/unistdio/u8-printf-parse (Files): Likewise.
38457         * modules/unistdio/u32-printf-parse (Files): Likewise.
38458         * modules/unistdio/ulc-printf-parse (Files): Likewise.
38459
38460 2009-01-13  Simon Josefsson  <simon@josefsson.org>
38461
38462         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
38463         and m4/inttypes_h.m4 too.
38464
38465 2009-01-12  Eric Blake  <ebb9@byu.net>
38466
38467         tests: IRIX 6.2 cc can't compile -0.0 into .data
38468         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
38469         rather than at compile-time.
38470         * tests/test-floorl.c (minus_zero): Likewise.
38471         * tests/test-frexpl.c (minus_zero): Likewise.
38472         * tests/test-isnan.c (minus_zerol): Likewise.
38473         * tests/test-isnanl.h (minus_zero): Likewise.
38474         * tests/test-ldexpl.c (minus_zero): Likewise.
38475         * tests/test-roundl.c (minus_zero): Likewise.
38476         * tests/test-signbit.c (minus_zerol): Likewise.
38477         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38478         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38479         * tests/test-truncl.c (minus_zero): Likewise.
38480         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38481         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38482         Reported by Tom G. Christensen and Nelson H. F. Beebe.
38483
38484 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38485
38486         regex: fix glibc bug 9697
38487         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
38488         handling.
38489
38490 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38491
38492         regex: fix glibc bug 697
38493         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
38494         being NULL also if there are no backreferences.
38495
38496 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38497
38498         regex: merge glibc changes
38499         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
38500         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
38501         re_string_skip_chars, re_string_reconstruct): Likewise.
38502         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
38503
38504 2009-01-07  Jim Meyering  <meyering@redhat.com>
38505
38506         poll: filter through cppi
38507         * lib/poll.c: Indent cpp directives to reflect nesting.
38508
38509 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
38510
38511         poll: don't return uninitialized
38512         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
38513
38514 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
38515
38516         avoid compile failure on AIX 6.1
38517         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
38518         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
38519
38520 2009-01-04  Jim Meyering  <meyering@redhat.com>
38521
38522         remove duplicate inclusion of <stdio.h>
38523         * tests/test-fprintf-posix.c: Likewise.
38524         * tests/test-printf-posix.c: Likewise.
38525         * tests/test-snprintf-posix.c: Likewise.
38526         * tests/test-sprintf-posix.c: Likewise.
38527         * tests/test-vasprintf-posix.c: Likewise.
38528         * tests/test-vfprintf-posix.c: Likewise.
38529         * tests/test-vprintf-posix.c: Likewise.
38530         * tests/test-vsnprintf-posix.c: Likewise.
38531         * tests/test-vsprintf-posix.c: Likewise.
38532
38533 2009-01-03  Jim Meyering  <meyering@redhat.com>
38534
38535         gnulib-tool: fix sed-based filtering
38536         * gnulib-tool (func_filter_filelist): Remove extra backslash
38537         in sed_fff_filter definition.
38538
38539 2009-01-02  Jim Meyering  <meyering@redhat.com>
38540
38541         strftime: avoid compilation failure on Solaris 2.6
38542         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
38543         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
38544         Don't #define mbrlen or mbsinit, since now they're guaranteed to
38545         be available.  Reported by Tom G. Christensen.  Details in
38546         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
38547
38548 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38549             Bruno Haible  <bruno@clisp.org>
38550
38551         Speed up gnulib-tool by doing more string processing through shell
38552         built-ins.
38553         * gnulib-tool (fast_func_append): New variable.
38554         (func_remove_prefix, func_remove_suffix): New functions.
38555         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
38556         (func_filter_filelist): New function.
38557         (func_get_dependencies): Use func_remove_suffix instead of sed.
38558         (func_get_automake_snippet): Use func_filter_filelist instead of a
38559         subshell and sed invocation.
38560
38561 2009-01-01  Bruno Haible  <bruno@clisp.org>
38562
38563         Fix a security bug.
38564         * gnulib-tool (func_import, import, update): Don't allow the characters
38565         '"', '$', '`', '\' in macro arguments that become part of commands that
38566         are evaluated.
38567
38568 2009-01-01  Bruno Haible  <bruno@clisp.org>
38569
38570         * gnulib-tool (func_reset_sigpipe): Add more comments.
38571
38572 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38573
38574         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
38575         func_emit_tests_Makefile_am, func_import): Abort loops early if we
38576         already know the answer.
38577
38578 2009-01-01  Jim Meyering  <meyering@redhat.com>
38579
38580         * lib/version-etc.c (version_etc_va): Update copyright year.
38581
38582 2008-12-30  Bruno Haible  <bruno@clisp.org>
38583
38584         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
38585         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
38586         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
38587
38588 2008-12-29  Eric Blake  <ebb9@byu.net>
38589
38590         multiarch: avoid autoconf AC_REQUIRE bug
38591         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
38592         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
38593         2.63 and older.
38594         Reported by Bruno Haible, and analyzed in
38595         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
38596
38597 2008-12-29  Bruno Haible  <bruno@clisp.org>
38598
38599         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
38600         files in subdirectories correctly.
38601         Reported by Ralf Wildenhues.
38602
38603 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38604
38605         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
38606         rather than 'join FILE -', for Solaris join.
38607
38608 2008-12-29  Bruno Haible  <bruno@clisp.org>
38609
38610         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
38611         quoting.
38612         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38613         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
38614         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
38615         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
38616         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
38617         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
38618         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
38619         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
38620         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
38621         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
38622         * m4/nls.m4 (AM_NLS): Likewise.
38623         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
38624         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
38625         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38626         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
38627         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
38628         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
38629         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
38630         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
38631         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
38632         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38633         * m4/xsize.m4 (gl_XSIZE): Likewise.
38634         Suggested by Jim Meyering.
38635
38636 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38637
38638         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
38639         * lib/parse-duration.c: use a switch instead of cascading if's.
38640
38641 2008-12-29  Eric Blake  <ebb9@byu.net>
38642
38643         wchar.h: supply WEOF on Irix 5.3
38644         * lib/wchar.in.h (wint_t): Also supply WEOF.
38645         * lib/wctype.in.h (wint_t): Likewise.
38646         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
38647         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
38648         Reported by Tom G. Christensen.
38649
38650 2008-12-26  Bruno Haible  <bruno@clisp.org>
38651
38652         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
38653         i486, i586, i686.
38654
38655 2008-12-26  Bruno Haible  <bruno@clisp.org>
38656
38657         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
38658
38659 2008-12-26  Bruno Haible  <bruno@clisp.org>
38660
38661         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
38662         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
38663         not __STDC_CONSTANT_MACROS.
38664         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38665
38666 2008-12-25  Bruno Haible  <bruno@clisp.org>
38667
38668         Add support for universal builds to vasnprintf.
38669         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
38670         universal builds, guess no.
38671         * modules/vasnprintf-posix (Depends-on): Add multiarch.
38672         * modules/vasprintf-posix (Depends-on): Likewise.
38673         * modules/fprintf-posix (Depends-on): Likewise.
38674         * modules/vfprintf-posix (Depends-on): Likewise.
38675         * modules/snprintf-posix (Depends-on): Likewise.
38676         * modules/vsnprintf-posix (Depends-on): Likewise.
38677         * modules/sprintf-posix (Depends-on): Likewise.
38678         * modules/vsprintf-posix (Depends-on): Likewise.
38679         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38680         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38681         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38682         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38683         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38684         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38685         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38686
38687         Add support for universal builds to <inttypes.h>.
38688         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
38689         _SCNu64_PREFIX): In Apple
38690         universal builds, define directly, using _LP64.
38691         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
38692         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
38693         * modules/inttypes (Depends-on): Add multiarch.
38694         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38695
38696         Add support for universal builds to <stdint.h>.
38697         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
38698         universal builds, define directly, using _LP64.
38699         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
38700         Apple universal builds, don't test for the size and suffix of ptrdiff_t
38701         and size_t.
38702         * modules/stdint (Depends-on): Add multiarch.
38703         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38704
38705         New module 'multiarch'.
38706         * modules/multiarch: New file.
38707         * m4/multiarch.m4: New file.
38708
38709 2008-12-25  Bruno Haible  <bruno@clisp.org>
38710
38711         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
38712
38713 2008-12-25  Bruno Haible  <bruno@clisp.org>
38714
38715         * modules/btowc (License): Relicense under LGPLv2+.
38716         * modules/mbsinit (License): Likewise.
38717         * modules/mbrtowc (License): Likewise.
38718         * modules/wcrtomb (License): Likewise.
38719         * modules/streq (License): Likewise.
38720         Reported by David Lutterkort <lutter@redhat.com>.
38721
38722 2008-12-23  Bruno Haible  <bruno@clisp.org>
38723
38724         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
38725
38726 2008-12-23  Bruno Haible  <bruno@clisp.org>
38727
38728         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
38729         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
38730         GETADDRINFO_LIB, not in LIBS.
38731         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
38732         * modules/canon-host (Link): Likewise.
38733         * NEWS: Mention the change.
38734         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
38735         GETADDRINFO_LIB.
38736
38737 2008-12-22  Bruno Haible  <bruno@clisp.org>
38738
38739         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
38740         * doc/posix-functions/iswalpha_l.texi: Likewise.
38741         * doc/posix-functions/iswblank_l.texi: Likewise.
38742         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38743         * doc/posix-functions/iswctype_l.texi: Likewise.
38744         * doc/posix-functions/iswdigit_l.texi: Likewise.
38745         * doc/posix-functions/iswgraph_l.texi: Likewise.
38746         * doc/posix-functions/iswlower_l.texi: Likewise.
38747         * doc/posix-functions/iswprint_l.texi: Likewise.
38748         * doc/posix-functions/iswpunct_l.texi: Likewise.
38749         * doc/posix-functions/iswspace_l.texi: Likewise.
38750         * doc/posix-functions/iswupper_l.texi: Likewise.
38751         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38752         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
38753         * doc/posix-functions/open_wmemstream.texi: Likewise.
38754         * doc/posix-functions/swscanf.texi: Likewise.
38755         * doc/posix-functions/towctrans_l.texi: Likewise.
38756         * doc/posix-functions/towlower.texi: Likewise.
38757         * doc/posix-functions/towlower_l.texi: Likewise.
38758         * doc/posix-functions/towupper.texi: Likewise.
38759         * doc/posix-functions/towupper_l.texi: Likewise.
38760         * doc/posix-functions/vfwprintf.texi: Likewise.
38761         * doc/posix-functions/vfwscanf.texi: Likewise.
38762         * doc/posix-functions/vswscanf.texi: Likewise.
38763         * doc/posix-functions/vwprintf.texi: Likewise.
38764         * doc/posix-functions/vwscanf.texi: Likewise.
38765         * doc/posix-functions/wcpcpy.texi: Likewise.
38766         * doc/posix-functions/wcpncpy.texi: Likewise.
38767         * doc/posix-functions/wcscasecmp.texi: Likewise.
38768         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
38769         * doc/posix-functions/wcscoll_l.texi: Likewise.
38770         * doc/posix-functions/wcsdup.texi: Likewise.
38771         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38772         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
38773         * doc/posix-functions/wcsnlen.texi: Likewise.
38774         * doc/posix-functions/wcsnrtombs.texi: Likewise.
38775         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38776         * doc/posix-functions/wctrans_l.texi: Likewise.
38777         * doc/posix-functions/wctype_l.texi: Likewise.
38778         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
38779         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
38780         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
38781         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
38782         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
38783         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
38784         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
38785         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
38786         * doc/glibc-functions/wcschrnul.texi: Likewise.
38787         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38788         * doc/glibc-functions/wcstod_l.texi: Likewise.
38789         * doc/glibc-functions/wcstof_l.texi: Likewise.
38790         * doc/glibc-functions/wcstol_l.texi: Likewise.
38791         * doc/glibc-functions/wcstold_l.texi: Likewise.
38792         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38793         * doc/glibc-functions/wcstoq.texi: Likewise.
38794         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38795         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38796         * doc/glibc-functions/wcstouq.texi: Likewise.
38797         * doc/glibc-functions/wmempcpy.texi: Likewise.
38798
38799 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
38800             Eric Blake  <ebb9@byu.net>
38801             Paolo Bonzini  <bonzini@gnu.org>
38802             Bruno Haible  <bruno@clisp.org>
38803
38804         Make c-stack work on Haiku.
38805         * lib/c-stack.c (SA_ONSTACK): Define fallback.
38806         (c_stack_action): Use SA_ONSTACK flag.
38807
38808 2008-12-22  Bruno Haible  <bruno@clisp.org>
38809
38810         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
38811
38812 2008-12-22  Bruno Haible  <bruno@clisp.org>
38813
38814         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
38815         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
38816         being overridden.
38817         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
38818         New macros.
38819         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
38820         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
38821         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
38822         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
38823
38824 2008-12-22  Bruno Haible  <bruno@clisp.org>
38825
38826         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
38827         from test code.
38828
38829 2008-12-22  Eric Blake  <ebb9@byu.net>
38830
38831         Avoid gcc warnings on cygwin.
38832         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
38833         Avoid unused variable.
38834         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
38835         Likewise.
38836
38837 2008-12-22  Bruno Haible  <bruno@clisp.org>
38838
38839         Remove HAVE_MBRTOWC conditionals.
38840         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
38841         (mbscasecmp): Assume mbrtowc function.
38842         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
38843         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
38844         * lib/mbschr.c: Include mbuiter.h unconditionally.
38845         (mbschr): Assume mbrtowc function.
38846         * lib/mbscspn.c: Include mbuiter.h unconditionally.
38847         (mbscspn): Assume mbrtowc function.
38848         * lib/mbslen.c: Include mbuiter.h unconditionally.
38849         (mbslen): Assume mbrtowc function.
38850         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
38851         (mbsncasecmp): Assume mbrtowc function.
38852         * lib/mbsnlen.c: Include mbiter.h unconditionally.
38853         (mbsnlen): Assume mbrtowc function.
38854         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
38855         (mbspbrk): Assume mbrtowc function.
38856         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
38857         (mbspcasecmp): Assume mbrtowc function.
38858         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
38859         (mbsrchr): Assume mbrtowc function.
38860         * lib/mbssep.c: Include mbuiter.h unconditionally.
38861         (mbssep): Assume mbrtowc function.
38862         * lib/mbsspn.c: Include mbuiter.h unconditionally.
38863         (mbsspn): Assume mbrtowc function.
38864         * lib/mbsstr.c: Include mbuiter.h unconditionally.
38865         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
38866         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
38867         (mbstok_r): Assume mbrtowc function.
38868         * lib/propername.c: Include mbuiter.h unconditionally.
38869         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
38870         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
38871         (trim2): Assume mbrtowc function.
38872         * lib/mbswidth.c (mbsinit): Remove fallback definition.
38873         (mbsnwidth): Assume mbrtowc function.
38874         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
38875         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
38876         fallback definitions.
38877         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
38878
38879 2008-12-22  Bruno Haible  <bruno@clisp.org>
38880
38881         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
38882
38883 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
38884
38885         * modules/regex: Request emulations for the mb*/wc* functions we need.
38886         * m4/regex.m4: Don't look for those functions here.
38887         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
38888
38889 2008-12-22  Bruno Haible  <bruno@clisp.org>
38890
38891         * modules/fnmatch (Depends-on): Remove duplicated dependency.
38892
38893 2008-12-21  Bruno Haible  <bruno@clisp.org>
38894
38895         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
38896         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
38897         (Include): Remove conditionalization.
38898         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
38899         (Include): Remove conditionalization.
38900         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
38901         (Include): Remove conditionalization.
38902         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
38903         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38904         * NEWS: Mention the change.
38905         Reported by Alan Hourihane <alanh@fairlite.co.uk>
38906         via Sergey Poznyakoff <gray@gnu.org.ua>.
38907
38908 2008-12-21  Bruno Haible  <bruno@clisp.org>
38909
38910         * MODULES.html.sh (Extended multibyte and wide character utilities
38911         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
38912         wcrtomb, wcsrtombs.
38913         (Support for systems lacking POSIX:2008): Add accept, bind, close,
38914         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
38915         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
38916         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
38917
38918 2008-12-21  Bruno Haible  <bruno@clisp.org>
38919
38920         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
38921
38922 2008-12-21  Bruno Haible  <bruno@clisp.org>
38923
38924         * modules/wcsnrtombs-tests: New file.
38925         * tests/test-wcsnrtombs1.sh: New file.
38926         * tests/test-wcsnrtombs2.sh: New file.
38927         * tests/test-wcsnrtombs3.sh: New file.
38928         * tests/test-wcsnrtombs4.sh: New file.
38929         * tests/test-wcsnrtombs.c: New file.
38930
38931         New module 'wcsnrtombs'.
38932         * lib/wchar.in.h (wcsnrtombs): New declaration.
38933         * lib/wcsnrtombs.c: New file.
38934         * lib/wcsrtombs-state.c: New file.
38935         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
38936         (internal_state): Remove variable.
38937         * m4/wcsnrtombs.m4: New file.
38938         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
38939         compilation units.
38940         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
38941         HAVE_WCSNRTOMBS.
38942         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
38943         HAVE_WCSNRTOMBS.
38944         * modules/wcsnrtombs: New file.
38945         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
38946         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
38947
38948 2008-12-21  Bruno Haible  <bruno@clisp.org>
38949
38950         * modules/wcsrtombs-tests: New file.
38951         * tests/test-wcsrtombs1.sh: New file.
38952         * tests/test-wcsrtombs2.sh: New file.
38953         * tests/test-wcsrtombs3.sh: New file.
38954         * tests/test-wcsrtombs4.sh: New file.
38955         * tests/test-wcsrtombs.c: New file.
38956
38957         New module 'wcsrtombs'.
38958         * lib/wchar.in.h (wcsrtombs): New declaration.
38959         * lib/wcsrtombs.c: New file.
38960         * m4/wcsrtombs.m4: New file.
38961         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
38962         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38963         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
38964         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38965         * modules/wcsrtombs: New file.
38966         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
38967         bugs.
38968
38969 2008-12-21  Bruno Haible  <bruno@clisp.org>
38970
38971         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
38972         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
38973         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
38974         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
38975         if not correct.
38976         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
38977         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
38978         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38979         m4/locale-zh.m4, m4/codeset.m4.
38980         * doc/posix-functions/wcrtomb.texi: Document the bug.
38981
38982 2008-12-21  Bruno Haible  <bruno@clisp.org>
38983
38984         Work around a btowc() bug on IRIX 6.5.
38985         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
38986         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
38987         REPLACE_WTOBC if not.
38988         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
38989         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
38990         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
38991
38992 2008-12-21  Bruno Haible  <bruno@clisp.org>
38993
38994         * modules/wcrtomb-tests: New file.
38995         * tests/test-wcrtomb.sh: New file.
38996         * tests/test-wcrtomb.c: New file.
38997
38998         New module 'wcrtomb'.
38999         * lib/wchar.in.h (wcrtomb): New declaration.
39000         * lib/wcrtomb.c: New file.
39001         * m4/wcrtomb.m4: New file.
39002         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39003         HAVE_WCRTOMB.
39004         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39005         HAVE_WCRTOMB.
39006         * modules/wcrtomb: New file.
39007         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39008
39009 2008-12-21  Bruno Haible  <bruno@clisp.org>
39010
39011         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39012         * modules/mbsrtowcs (Files): Likewise.
39013         * modules/wctob (Files): Likewise.
39014         * modules/c-strcase-tests (Files): Likewise.
39015         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39016         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39017         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39018         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39019         * modules/vasnprintf-posix-tests (Files): Likewise.
39020
39021 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39022
39023         gitlog-to-changelog: pass all command-line arguments to git-log
39024         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39025         it is sometimes convenient to filter the commits in various ways.
39026         gitlog-to-changelog only allows --since to specify a start date,
39027         but git-log itself supports many other filtering mechanisms.
39028         At the moment, I want to filter by branch name.  Rather than
39029         adding a --branch option to gitlog-to-changelog, it seems more
39030         flexible to simply pass all options directly to git-log and let
39031         git do the work.  Notice that this effectively makes --since a
39032         redundant option for gitlog-to-changelog, but removing it would
39033         require current usage to change since calls would then require
39034         an additional '--'.
39035
39036 2008-12-21  Bruno Haible  <bruno@clisp.org>
39037
39038         * modules/mbsnrtowcs-tests: New file.
39039         * tests/test-mbsnrtowcs1.sh: New file.
39040         * tests/test-mbsnrtowcs2.sh: New file.
39041         * tests/test-mbsnrtowcs3.sh: New file.
39042         * tests/test-mbsnrtowcs4.sh: New file.
39043         * tests/test-mbsnrtowcs.c: New file.
39044
39045         New module 'mbsnrtowcs'.
39046         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39047         * lib/mbsnrtowcs.c: New file.
39048         * lib/mbsrtowcs-state.c: New file.
39049         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39050         (internal_state): Remove variable.
39051         * m4/mbsnrtowcs.m4: New file.
39052         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39053         compilation units.
39054         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39055         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39056         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39057         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39058         * modules/mbsnrtowcs: New file.
39059         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39060         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39061         portability problem.
39062
39063 2008-12-21  Bruno Haible  <bruno@clisp.org>
39064
39065         Work around mbsrtowcs bug.
39066         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39067         (gl_FUNC_MBSRTOWCS): Invoke it.
39068         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39069         m4/locale-zh.m4.
39070         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39071
39072 2008-12-21  Bruno Haible  <bruno@clisp.org>
39073
39074         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39075
39076 2008-12-21  Bruno Haible  <bruno@clisp.org>
39077
39078         Update doc for AIX.
39079         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39080         16-bit wchar_t type.
39081         * doc/posix-functions/btowc.texi: Likewise.
39082         * doc/posix-functions/fgetwc.texi: Likewise.
39083         * doc/posix-functions/fgetws.texi: Likewise.
39084         * doc/posix-functions/fputwc.texi: Likewise.
39085         * doc/posix-functions/fputws.texi: Likewise.
39086         * doc/posix-functions/fwide.texi: Likewise.
39087         * doc/posix-functions/fwprintf.texi: Likewise.
39088         * doc/posix-functions/fwscanf.texi: Likewise.
39089         * doc/posix-functions/getwchar.texi: Likewise.
39090         * doc/posix-functions/getwc.texi: Likewise.
39091         * doc/posix-functions/iswalnum.texi: Likewise.
39092         * doc/posix-functions/iswalpha.texi: Likewise.
39093         * doc/posix-functions/iswblank.texi: Likewise.
39094         * doc/posix-functions/iswcntrl.texi: Likewise.
39095         * doc/posix-functions/iswctype.texi: Likewise.
39096         * doc/posix-functions/iswdigit.texi: Likewise.
39097         * doc/posix-functions/iswgraph.texi: Likewise.
39098         * doc/posix-functions/iswlower.texi: Likewise.
39099         * doc/posix-functions/iswprint.texi: Likewise.
39100         * doc/posix-functions/iswpunct.texi: Likewise.
39101         * doc/posix-functions/iswspace.texi: Likewise.
39102         * doc/posix-functions/iswupper.texi: Likewise.
39103         * doc/posix-functions/iswxdigit.texi: Likewise.
39104         * doc/posix-functions/mbrtowc.texi: Likewise.
39105         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39106         * doc/posix-functions/mbstowcs.texi: Likewise.
39107         * doc/posix-functions/mbtowc.texi: Likewise.
39108         * doc/posix-functions/putwchar.texi: Likewise.
39109         * doc/posix-functions/putwc.texi: Likewise.
39110         * doc/posix-functions/swprintf.texi: Likewise.
39111         * doc/posix-functions/tolower.texi: Likewise.
39112         * doc/posix-functions/toupper.texi: Likewise.
39113         * doc/posix-functions/towctrans.texi: Likewise.
39114         * doc/posix-functions/ungetwc.texi: Likewise.
39115         * doc/posix-functions/vswprintf.texi: Likewise.
39116         * doc/posix-functions/wcrtomb.texi: Likewise.
39117         * doc/posix-functions/wcscat.texi: Likewise.
39118         * doc/posix-functions/wcschr.texi: Likewise.
39119         * doc/posix-functions/wcscmp.texi: Likewise.
39120         * doc/posix-functions/wcscoll.texi: Likewise.
39121         * doc/posix-functions/wcscpy.texi: Likewise.
39122         * doc/posix-functions/wcscspn.texi: Likewise.
39123         * doc/posix-functions/wcsftime.texi: Likewise.
39124         * doc/posix-functions/wcslen.texi: Likewise.
39125         * doc/posix-functions/wcsncat.texi: Likewise.
39126         * doc/posix-functions/wcsncmp.texi: Likewise.
39127         * doc/posix-functions/wcsncpy.texi: Likewise.
39128         * doc/posix-functions/wcspbrk.texi: Likewise.
39129         * doc/posix-functions/wcsrchr.texi: Likewise.
39130         * doc/posix-functions/wcsrtombs.texi: Likewise.
39131         * doc/posix-functions/wcsspn.texi: Likewise.
39132         * doc/posix-functions/wcsstr.texi: Likewise.
39133         * doc/posix-functions/wcstod.texi: Likewise.
39134         * doc/posix-functions/wcstof.texi: Likewise.
39135         * doc/posix-functions/wcstoimax.texi: Likewise.
39136         * doc/posix-functions/wcstok.texi: Likewise.
39137         * doc/posix-functions/wcstold.texi: Likewise.
39138         * doc/posix-functions/wcstoll.texi: Likewise.
39139         * doc/posix-functions/wcstol.texi: Likewise.
39140         * doc/posix-functions/wcstombs.texi: Likewise.
39141         * doc/posix-functions/wcstoull.texi: Likewise.
39142         * doc/posix-functions/wcstoul.texi: Likewise.
39143         * doc/posix-functions/wcstoumax.texi: Likewise.
39144         * doc/posix-functions/wcswidth.texi: Likewise.
39145         * doc/posix-functions/wcsxfrm.texi: Likewise.
39146         * doc/posix-functions/wctob.texi: Likewise.
39147         * doc/posix-functions/wctomb.texi: Likewise.
39148         * doc/posix-functions/wctrans.texi: Likewise.
39149         * doc/posix-functions/wctype.texi: Likewise.
39150         * doc/posix-functions/wcwidth.texi: Likewise.
39151         * doc/posix-functions/wmemchr.texi: Likewise.
39152         * doc/posix-functions/wmemcmp.texi: Likewise.
39153         * doc/posix-functions/wmemcpy.texi: Likewise.
39154         * doc/posix-functions/wmemmove.texi: Likewise.
39155         * doc/posix-functions/wmemset.texi: Likewise.
39156         * doc/posix-functions/wprintf.texi: Likewise.
39157         * doc/posix-functions/wscanf.texi: Likewise.
39158
39159 2008-12-21  Bruno Haible  <bruno@clisp.org>
39160
39161         Update doc for HP-UX 11.11.
39162         * doc/posix-functions/btowc.texi: Clarify that the function is missing
39163         in HP-UX version 11.00, not in all versions of HP-UX 11.
39164         * doc/posix-functions/fwide.texi: Likewise.
39165         * doc/posix-functions/fwprintf.texi: Likewise.
39166         * doc/posix-functions/fwscanf.texi: Likewise.
39167         * doc/posix-functions/inet_ntop.texi: Likewise.
39168         * doc/posix-functions/inet_pton.texi: Likewise.
39169         * doc/posix-functions/mbrlen.texi: Likewise.
39170         * doc/posix-functions/mbrtowc.texi: Likewise.
39171         * doc/posix-functions/mbsinit.texi: Likewise.
39172         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39173         * doc/posix-functions/swprintf.texi: Likewise.
39174         * doc/posix-functions/swscanf.texi: Likewise.
39175         * doc/posix-functions/towctrans.texi: Likewise.
39176         * doc/posix-functions/vfwprintf.texi: Likewise.
39177         * doc/posix-functions/vswprintf.texi: Likewise.
39178         * doc/posix-functions/vwprintf.texi: Likewise.
39179         * doc/posix-functions/wcrtomb.texi: Likewise.
39180         * doc/posix-functions/wcsrtombs.texi: Likewise.
39181         * doc/posix-functions/wcsstr.texi: Likewise.
39182         * doc/posix-functions/wctob.texi: Likewise.
39183         * doc/posix-functions/wctrans.texi: Likewise.
39184         * doc/posix-functions/wmemchr.texi: Likewise.
39185         * doc/posix-functions/wmemcmp.texi: Likewise.
39186         * doc/posix-functions/wmemcpy.texi: Likewise.
39187         * doc/posix-functions/wmemmove.texi: Likewise.
39188         * doc/posix-functions/wmemset.texi: Likewise.
39189         * doc/posix-functions/wprintf.texi: Likewise.
39190         * doc/posix-functions/wscanf.texi: Likewise.
39191
39192 2008-12-21  Bruno Haible  <bruno@clisp.org>
39193
39194         Work around a portability problem.
39195         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
39196         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
39197
39198 2008-12-20  Bruno Haible  <bruno@clisp.org>
39199
39200         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
39201         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
39202         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
39203         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
39204         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
39205
39206         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
39207         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
39208         set.
39209         (GNULIB_defined_mbstate_t): New macro.
39210         (mbsinit): Redefine if REPLACE_MBSINIT is set.
39211         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
39212         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
39213         reuses the system's mbrtowc function but works around the bugs.
39214         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
39215         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
39216         macros.
39217         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
39218         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
39219         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
39220         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
39221         REPLACE_MBSINIT if mbsinit needs to be overridden.
39222         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
39223         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39224         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
39225         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39226         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39227         m4/locale-zh.m4.
39228         (Depends): Add mbsinit.
39229         * modules/mbsinit (Depends): Add mbrtowc.
39230         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
39231
39232 2008-12-20  Bruno Haible  <bruno@clisp.org>
39233
39234         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
39235         so that there are no conversion errors on AIX.
39236         * tests/test-mbsrtowcs.c (main): LIkewise.
39237
39238 2008-12-20  Bruno Haible  <bruno@clisp.org>
39239
39240         Work around wctob bug on Solaris <= 9.
39241         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
39242         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
39243         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
39244         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
39245         * modules/wctob (Files): Add m4/locale-fr.m4.
39246         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
39247
39248 2008-12-20  Bruno Haible  <bruno@clisp.org>
39249
39250         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
39251         /dev/null.
39252         * tests/test-select-in.sh: Likewise.
39253         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39254
39255 2008-12-20  Bruno Haible  <bruno@clisp.org>
39256
39257         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
39258         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
39259         Cygwin 1.5.x.
39260
39261 2008-12-20  Bruno Haible  <bruno@clisp.org>
39262
39263         Ensure mbstate_t is defined on HP-UX 11.11.
39264         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
39265         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
39266         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
39267         AC_USE_SYSTEM_EXTENSIONS.
39268         * modules/fnmatch (Depends-on): Add extensions.
39269         * modules/mbrlen (Depends-on): Likewise.
39270         * modules/mbrtowc (Depends-on): Likewise.
39271         * modules/mbsinit (Depends-on): Likewise.
39272         * modules/mbsrtowcs (Depends-on): Likewise.
39273         * modules/mbswidth (Depends-on): Likewise.
39274         * modules/quotearg (Depends-on): Likewise.
39275         * modules/strftime (Depends-on): Likewise.
39276
39277 2008-12-20  Bruno Haible  <bruno@clisp.org>
39278
39279         Ensure wctob is declared on IRIX 6.5.
39280         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39281         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39282         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39283         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39284         of HAVE_WCTOB.
39285         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39286         HAVE_WCTOB.
39287         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39288
39289 2008-12-19  Bruno Haible  <bruno@clisp.org>
39290
39291         * modules/mbsrtowcs-tests: New file.
39292         * tests/test-mbsrtowcs1.sh: New file.
39293         * tests/test-mbsrtowcs2.sh: New file.
39294         * tests/test-mbsrtowcs3.sh: New file.
39295         * tests/test-mbsrtowcs4.sh: New file.
39296         * tests/test-mbsrtowcs.c: New file.
39297
39298         New module 'mbsrtowcs'.
39299         * lib/wchar.in.h (mbsrtowcs): New declaration.
39300         * lib/mbsrtowcs.c: New file.
39301         * m4/mbsrtowcs.m4: New file.
39302         * modules/mbsrtowcs: New file.
39303         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39304         HAVE_MBSRTOWCS.
39305         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39306         HAVE_MBSRTOWCS.
39307         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39308
39309 2008-12-19  Bruno Haible  <bruno@clisp.org>
39310
39311         New module 'mbrlen'.
39312         * lib/wchar.in.h (mbrlen): New declaration.
39313         * lib/mbrlen.c: New file.
39314         * m4/mbrlen.m4: New file.
39315         * modules/mbrlen: New file.
39316         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
39317         HAVE_MBRLEN.
39318         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
39319         HAVE_MBRLEN.
39320         * doc/posix-functions/mbrlen.texi: Document the new module.
39321
39322 2008-12-19  Bruno Haible  <bruno@clisp.org>
39323
39324         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
39325         * modules/mbrtowc (Depends-on): Add verify.
39326         Suggested by Paul Eggert.
39327
39328 2008-12-18  Bruno Haible  <bruno@clisp.org>
39329
39330         * modules/mbsinit-tests: New file.
39331         * tests/test-mbsinit.sh: New file.
39332         * tests/test-mbsinit.c: New file.
39333
39334 2008-12-18  Bruno Haible  <bruno@clisp.org>
39335
39336         * modules/mbrtowc-tests: New file.
39337         * tests/test-mbrtowc1.sh: New file.
39338         * tests/test-mbrtowc2.sh: New file.
39339         * tests/test-mbrtowc3.sh: New file.
39340         * tests/test-mbrtowc4.sh: New file.
39341         * tests/test-mbrtowc.c: New file.
39342
39343         New module 'mbrtowc'.
39344         * lib/wchar.in.h (mbstate_t): Override when the system does not have
39345         mbsinit and mbrtowc.
39346         (mbrtowc): New declaration.
39347         * lib/mbrtowc.c: New file.
39348         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
39349         * modules/mbrtowc: New file.
39350         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
39351         HAVE_MBRTOWC.
39352         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
39353         HAVE_MBRTOWC.
39354         * doc/posix-functions/mbrtowc.texi: Document the new module.
39355
39356 2008-12-18  Bruno Haible  <bruno@clisp.org>
39357
39358         New module 'wctob'.
39359         * lib/wchar.in.h (wctob): New declaration.
39360         * lib/wctob.c: New file.
39361         * m4/wctob.m4: New file.
39362         * modules/wctob: New file.
39363         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
39364         HAVE_WCTOB.
39365         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
39366         * doc/posix-functions/wctob.texi: Document the new module.
39367
39368 2008-12-18  Bruno Haible  <bruno@clisp.org>
39369
39370         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
39371         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
39372
39373 2008-12-18  Simon Josefsson  <simon@josefsson.org>
39374
39375         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
39376         G. Christensen" <tgc@jupiterrise.com>.
39377
39378         * lib/flock.c: Need to include errno.h.  Reported by "Tom
39379         G. Christensen" <tgc@jupiterrise.com>.
39380
39381         * lib/flock.c: Need to include string.h.  Reported by "Tom
39382         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
39383         <ebb9@byu.net>.
39384
39385 2008-12-18  Bruno Haible  <bruno@clisp.org>
39386
39387         * m4/locale-ja.m4: New file, from GNU gettext.
39388
39389 2008-12-17  Bruno Haible  <bruno@clisp.org>
39390
39391         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
39392         Suggested by Eric Blake.
39393
39394 2008-12-17  Bruno Haible  <bruno@clisp.org>
39395
39396         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
39397
39398 2008-12-17  Bruno Haible  <bruno@clisp.org>
39399
39400         * lib/mbsinit.c: Include verify.h. Verify an assumption.
39401         * modules/mbsinit (Depends-on): Add verify.
39402         Suggested by Paul Eggert.
39403
39404 2008-12-17  Bruno Haible  <bruno@clisp.org>
39405
39406         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
39407         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
39408         gl_FUNC_MBRTOWC.
39409         * m4/mbiter.m4 (gl_MBITER): LIkewise.
39410         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
39411         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
39412         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
39413         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
39414         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
39415         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
39416         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
39417         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
39418         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
39419         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
39420         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
39421         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
39422         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
39423         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
39424         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39425         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
39426         * modules/trim (configure.ac): Likewise.
39427
39428 2008-12-17  Bruno Haible  <bruno@clisp.org>
39429
39430         * modules/btowc-tests: New file.
39431         * tests/test-btowc1.sh: New file.
39432         * tests/test-btowc2.sh: New file.
39433         * tests/test-btowc.c: New file.
39434
39435         New module 'btowc'.
39436         * lib/wchar.in.h (btowc): New declaration.
39437         * lib/btowc.c: New file.
39438         * m4/btowc.m4: New file.
39439         * modules/btowc: New file.
39440         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
39441         HAVE_BTOWC.
39442         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
39443         * doc/posix-functions/btowc.texi: Document the new module.
39444
39445 2008-12-17  Bruno Haible  <bruno@clisp.org>
39446
39447         New module 'mbsinit'.
39448         * lib/wchar.in.h (mbsinit): New declaration.
39449         * lib/mbsinit.c: New file.
39450         * m4/mbsinit.m4: New file.
39451         * modules/mbsinit: New file.
39452         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
39453         HAVE_MBSINIT.
39454         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
39455         HAVE_MBSINIT.
39456         * doc/posix-functions/mbsinit.texi: Document the new module.
39457
39458 2008-12-16  Bruno Haible  <bruno@clisp.org>
39459
39460         * lib/unistd.in.h: Add comment.
39461         * tests/test-environ.c: Don't include <stdlib.h>.
39462
39463 2008-12-16  Bruno Haible  <bruno@clisp.org>
39464
39465         * lib/parse-duration.h (parse_duration): Document return value
39466         convention.
39467         * lib/parse-duration.c: Include specification header first. Add
39468         comments.
39469         (_): Remove macro.
39470         (parse_year_month_day, parse_hour_minute_second): Move side effects
39471         outside of strchr call.
39472         (parse_non_iso8601): Move side effects outside of isspace call.
39473         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
39474         call.
39475
39476 2008-12-16  Bruno Haible  <bruno@clisp.org>
39477
39478         * tests/test-parse-duration.sh: Produce no output when the test
39479         succeeds.
39480
39481 2008-12-16  Bruno Haible  <bruno@clisp.org>
39482
39483         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
39484         expressions.
39485
39486 2008-12-15  Bruno Haible  <bruno@clisp.org>
39487
39488         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
39489         * doc/glibc-functions/flistxattr.texi: Likewise.
39490         * doc/glibc-functions/fopencookie.texi: Likewise.
39491         * doc/glibc-functions/fremovexattr.texi: Likewise.
39492         * doc/glibc-functions/fsetxattr.texi: Likewise.
39493         * doc/glibc-functions/getxattr.texi: Likewise.
39494         * doc/glibc-functions/lgetxattr.texi: Likewise.
39495         * doc/glibc-functions/listxattr.texi: Likewise.
39496         * doc/glibc-functions/llistxattr.texi: Likewise.
39497         * doc/glibc-functions/lremovexattr.texi: Likewise.
39498         * doc/glibc-functions/lsetxattr.texi: Likewise.
39499         * doc/glibc-functions/removexattr.texi: Likewise.
39500         * doc/glibc-functions/setxattr.texi: Likewise.
39501         * doc/posix-functions/open_memstream.texi: Likewise.
39502
39503 2008-12-15  Eric Blake  <ebb9@byu.net>
39504
39505         Update doc for cygwin 1.7.
39506         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
39507         functions.
39508         * doc/posix-functions/fchmodat.texi: Likewise.
39509         * doc/posix-functions/fchownat.texi: Likewise.
39510         * doc/posix-functions/fdopendir.texi: Likewise.
39511         * doc/posix-functions/fmemopen.texi: Likewise.
39512         * doc/posix-functions/freeaddrinfo.texi: Likewise.
39513         * doc/posix-functions/fstatat.texi: Likewise.
39514         * doc/posix-functions/futimens.texi: Likewise.
39515         * doc/posix-functions/gai_strerror.texi: Likewise.
39516         * doc/posix-functions/getaddrinfo.texi: Likewise.
39517         * doc/posix-functions/getnameinfo.texi: Likewise.
39518         * doc/posix-functions/if_freenameindex.texi: Likewise.
39519         * doc/posix-functions/if_indextoname.texi: Likewise.
39520         * doc/posix-functions/if_nameindex.texi: Likewise.
39521         * doc/posix-functions/if_nametoindex.texi: Likewise.
39522         * doc/posix-functions/insque.texi: Likewise.
39523         * doc/posix-functions/linkat.texi: Likewise.
39524         * doc/posix-functions/llrint.texi: Likewise.
39525         * doc/posix-functions/llrintf.texi: Likewise.
39526         * doc/posix-functions/llrintl.texi: Likewise.
39527         * doc/posix-functions/lockf.texi: Likewise.
39528         * doc/posix-functions/lrintl.texi: Likewise.
39529         * doc/posix-functions/mkdirat.texi: Likewise.
39530         * doc/posix-functions/mkfifoat.texi: Likewise.
39531         * doc/posix-functions/mknodat.texi: Likewise.
39532         * doc/posix-functions/mq_close.texi: Likewise.
39533         * doc/posix-functions/mq_getattr.texi: Likewise.
39534         * doc/posix-functions/mq_notify.texi: Likewise.
39535         * doc/posix-functions/mq_open.texi: Likewise.
39536         * doc/posix-functions/mq_receive.texi: Likewise.
39537         * doc/posix-functions/mq_send.texi: Likewise.
39538         * doc/posix-functions/mq_setattr.texi: Likewise.
39539         * doc/posix-functions/mq_timedreceive.texi: Likewise.
39540         * doc/posix-functions/mq_timedsend.texi: Likewise.
39541         * doc/posix-functions/mq_unlink.texi: Likewise.
39542         * doc/posix-functions/open_memstream.texi: Likewise.
39543         * doc/posix-functions/openat.texi: Likewise.
39544         * doc/posix-functions/posix_fadvise.texi: Likewise.
39545         * doc/posix-functions/posix_fallocate.texi: Likewise.
39546         * doc/posix-functions/posix_madvise.texi: Likewise.
39547         * doc/posix-functions/posix_memalign.texi: Likewise.
39548         * doc/posix-functions/posix_openpt.texi: Likewise.
39549         * doc/posix-functions/readlinkat.texi: Likewise.
39550         * doc/posix-functions/remque.texi: Likewise.
39551         * doc/posix-functions/renameat.texi: Likewise.
39552         * doc/posix-functions/rintl.texi: Likewise.
39553         * doc/posix-functions/sem_unlink.texi: Likewise.
39554         * doc/posix-functions/shm_open.texi: Likewise.
39555         * doc/posix-functions/shm_unlink.texi: Likewise.
39556         * doc/posix-functions/signgam.texi: Likewise.
39557         * doc/posix-functions/sigset.texi: Likewise.
39558         * doc/posix-functions/stpcpy.texi: Likewise.
39559         * doc/posix-functions/stpncpy.texi: Likewise.
39560         * doc/posix-functions/strerror.texi: Likewise.
39561         * doc/posix-functions/strtod.texi: Likewise.
39562         * doc/posix-functions/symlinkat.texi: Likewise.
39563         * doc/posix-functions/unlinkat.texi: Likewise.
39564         * doc/posix-functions/utimensat.texi: Likewise.
39565         * doc/glibc-functions/bindresvport.texi: Likewise.
39566         * doc/glibc-functions/dn_expand.texi: Likewise.
39567         * doc/glibc-functions/exp10.texi: Likewise.
39568         * doc/glibc-functions/exp10f.texi: Likewise.
39569         * doc/glibc-functions/fgetxattr.texi: Likewise.
39570         * doc/glibc-functions/flistxattr.texi: Likewise.
39571         * doc/glibc-functions/fopencookie.texi: Likewise.
39572         * doc/glibc-functions/freeifaddrs.texi: Likewise.
39573         * doc/glibc-functions/fremovexattr.texi: Likewise.
39574         * doc/glibc-functions/fsetxattr.texi: Likewise.
39575         * doc/glibc-functions/getifaddrs.texi: Likewise.
39576         * doc/glibc-functions/getxattr.texi: Likewise.
39577         * doc/glibc-functions/lgetxattr.texi: Likewise.
39578         * doc/glibc-functions/listxattr.texi: Likewise.
39579         * doc/glibc-functions/llistxattr.texi: Likewise.
39580         * doc/glibc-functions/lremovexattr.texi: Likewise.
39581         * doc/glibc-functions/lsetxattr.texi: Likewise.
39582         * doc/glibc-functions/pow10.texi: Likewise.
39583         * doc/glibc-functions/pow10f.texi: Likewise.
39584         * doc/glibc-functions/rcmd_af.texi: Likewise.
39585         * doc/glibc-functions/removexattr.texi: Likewise.
39586         * doc/glibc-functions/res_init.texi: Likewise.
39587         * doc/glibc-functions/res_mkquery.texi: Likewise.
39588         * doc/glibc-functions/res_query.texi: Likewise.
39589         * doc/glibc-functions/res_querydomain.texi: Likewise.
39590         * doc/glibc-functions/res_send.texi: Likewise.
39591         * doc/glibc-functions/rresvport_af.texi: Likewise.
39592         * doc/glibc-functions/setxattr.texi: Likewise.
39593         * doc/glibc-functions/strcasestr.texi: Likewise.
39594
39595 2008-12-15  Bruno Haible  <bruno@clisp.org>
39596
39597         Fix compilation error on OSF/1 4.0.
39598         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
39599         <sys/time.h>, simply delegate to the system header.
39600         Reported by Daniel Richard G. <oss@teragram.com>.
39601
39602 2008-12-15  Bruno Haible  <bruno@clisp.org>
39603
39604         * doc/posix-functions/openat.texi: Mention the 'openat' module.
39605         * doc/posix-functions/fchmodat.texi: Likewise.
39606         * doc/posix-functions/fchownat.texi: Likewise.
39607         * doc/posix-functions/fdopendir.texi: Likewise.
39608         * doc/posix-functions/fstatat.texi: Likewise.
39609         * doc/posix-functions/mkdirat.texi: Likewise.
39610         * doc/posix-functions/unlinkat.texi: Likewise.
39611
39612 2008-12-14  Bruno Haible  <bruno@clisp.org>
39613
39614         Update doc for POSIX:2008.
39615         * doc/posix-functions/faccessat.texi: New file.
39616         * doc/posix-functions/fchmodat.texi: New file.
39617         * doc/posix-functions/fchownat.texi: New file.
39618         * doc/posix-functions/fdopendir.texi: New file.
39619         * doc/posix-functions/fstatat.texi: New file.
39620         * doc/posix-functions/futimens.texi: New file.
39621         * doc/posix-functions/linkat.texi: New file.
39622         * doc/posix-functions/mkdirat.texi: New file.
39623         * doc/posix-functions/mkfifoat.texi: New file.
39624         * doc/posix-functions/mknodat.texi: New file.
39625         * doc/posix-functions/open_wmemstream.texi: New file.
39626         * doc/posix-functions/openat.texi: New file.
39627         * doc/posix-functions/psiginfo.texi: New file.
39628         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
39629         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
39630         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
39631         * doc/posix-functions/readlinkat.texi: New file.
39632         * doc/posix-functions/renameat.texi: New file.
39633         * doc/posix-functions/strerror_l.texi: New file.
39634         * doc/posix-functions/symlinkat.texi: New file.
39635         * doc/posix-functions/unlinkat.texi: New file.
39636         * doc/posix-functions/utimensat.texi: New file.
39637         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39638
39639 2008-12-14  Bruno Haible  <bruno@clisp.org>
39640
39641         Update doc for POSIX:2008.
39642         * doc/posix-functions/alphasort.texi: Renamed from
39643         doc/glibc-functions/alphasort.texi.
39644         * doc/posix-functions/dirfd.texi: Renamed from
39645         doc/glibc-functions/dirfd.texi.
39646         * doc/posix-functions/dprintf.texi: Renamed from
39647         doc/glibc-functions/dprintf.texi.
39648         * doc/posix-functions/duplocale.texi: Renamed from
39649         doc/glibc-functions/duplocale.texi.
39650         * doc/posix-functions/fexecve.texi: Renamed from
39651         doc/glibc-functions/fexecve.texi.
39652         * doc/posix-functions/fmemopen.texi: Renamed from
39653         doc/glibc-functions/fmemopen.texi.
39654         * doc/posix-functions/freelocale.texi: Renamed from
39655         doc/glibc-functions/freelocale.texi.
39656         * doc/posix-functions/getdate_err.texi: Renamed from
39657         doc/glibc-functions/getdate_err.texi.
39658         * doc/posix-functions/isalnum_l.texi: Renamed from
39659         doc/glibc-functions/isalnum_l.texi.
39660         * doc/posix-functions/isalpha_l.texi: Renamed from
39661         doc/glibc-functions/isalpha_l.texi.
39662         * doc/posix-functions/isblank_l.texi: Renamed from
39663         doc/glibc-functions/isblank_l.texi.
39664         * doc/posix-functions/iscntrl_l.texi: Renamed from
39665         doc/glibc-functions/iscntrl_l.texi.
39666         * doc/posix-functions/isdigit_l.texi: Renamed from
39667         doc/glibc-functions/isdigit_l.texi.
39668         * doc/posix-functions/isgraph_l.texi: Renamed from
39669         doc/glibc-functions/isgraph_l.texi.
39670         * doc/posix-functions/islower_l.texi: Renamed from
39671         doc/glibc-functions/islower_l.texi.
39672         * doc/posix-functions/isprint_l.texi: Renamed from
39673         doc/glibc-functions/isprint_l.texi.
39674         * doc/posix-functions/ispunct_l.texi: Renamed from
39675         doc/glibc-functions/ispunct_l.texi.
39676         * doc/posix-functions/isspace_l.texi: Renamed from
39677         doc/glibc-functions/isspace_l.texi.
39678         * doc/posix-functions/isupper_l.texi: Renamed from
39679         doc/glibc-functions/isupper_l.texi.
39680         * doc/posix-functions/iswalnum_l.texi: Renamed from
39681         doc/glibc-functions/iswalnum_l.texi.
39682         * doc/posix-functions/iswalpha_l.texi: Renamed from
39683         doc/glibc-functions/iswalpha_l.texi.
39684         * doc/posix-functions/iswblank_l.texi: Renamed from
39685         doc/glibc-functions/iswblank_l.texi.
39686         * doc/posix-functions/iswcntrl_l.texi: Renamed from
39687         doc/glibc-functions/iswcntrl_l.texi.
39688         * doc/posix-functions/iswctype_l.texi: Renamed from
39689         doc/glibc-functions/iswctype_l.texi.
39690         * doc/posix-functions/iswdigit_l.texi: Renamed from
39691         doc/glibc-functions/iswdigit_l.texi.
39692         * doc/posix-functions/iswgraph_l.texi: Renamed from
39693         doc/glibc-functions/iswgraph_l.texi.
39694         * doc/posix-functions/iswlower_l.texi: Renamed from
39695         doc/glibc-functions/iswlower_l.texi.
39696         * doc/posix-functions/iswprint_l.texi: Renamed from
39697         doc/glibc-functions/iswprint_l.texi.
39698         * doc/posix-functions/iswpunct_l.texi: Renamed from
39699         doc/glibc-functions/iswpunct_l.texi.
39700         * doc/posix-functions/iswspace_l.texi: Renamed from
39701         doc/glibc-functions/iswspace_l.texi.
39702         * doc/posix-functions/iswupper_l.texi: Renamed from
39703         doc/glibc-functions/iswupper_l.texi.
39704         * doc/posix-functions/iswxdigit_l.texi: Renamed from
39705         doc/glibc-functions/iswxdigit_l.texi.
39706         * doc/posix-functions/isxdigit_l.texi: Renamed from
39707         doc/glibc-functions/isxdigit_l.texi.
39708         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
39709         doc/glibc-functions/mbsnrtowcs.texi.
39710         * doc/posix-functions/mkdtemp.texi: Renamed from
39711         doc/glibc-functions/mkdtemp.texi.
39712         * doc/posix-functions/newlocale.texi: Renamed from
39713         doc/glibc-functions/newlocale.texi.
39714         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
39715         doc/glibc-functions/nl_langinfo_l.texi.
39716         * doc/posix-functions/open_memstream.texi: Renamed from
39717         doc/glibc-functions/open_memstream.texi.
39718         * doc/posix-functions/opterr.texi: Renamed from
39719         doc/glibc-functions/opterr.texi.
39720         * doc/posix-functions/optind.texi: Renamed from
39721         doc/glibc-functions/optind.texi.
39722         * doc/posix-functions/optopt.texi: Renamed from
39723         doc/glibc-functions/optopt.texi.
39724         * doc/posix-functions/psignal.texi: Renamed from
39725         doc/glibc-functions/psignal.texi.
39726         * doc/posix-functions/scandir.texi: Renamed from
39727         doc/glibc-functions/scandir.texi.
39728         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
39729         doc/glibc-functions/sched_get_priority_min.texi.
39730         * doc/posix-functions/signgam.texi: Renamed from
39731         doc/glibc-functions/signgam.texi.
39732         * doc/posix-functions/stpcpy.texi: Renamed from
39733         doc/glibc-functions/stpcpy.texi.
39734         * doc/posix-functions/stpncpy.texi: Renamed from
39735         doc/glibc-functions/stpncpy.texi.
39736         * doc/posix-functions/strcasecmp_l.texi: Renamed from
39737         doc/glibc-functions/strcasecmp_l.texi.
39738         * doc/posix-functions/strcoll_l.texi: Renamed from
39739         doc/glibc-functions/strcoll_l.texi.
39740         * doc/posix-functions/strfmon_l.texi: Renamed from
39741         doc/glibc-functions/strfmon_l.texi.
39742         * doc/posix-functions/strftime_l.texi: Renamed from
39743         doc/glibc-functions/strftime_l.texi.
39744         * doc/posix-functions/strncasecmp_l.texi: Renamed from
39745         doc/glibc-functions/strncasecmp_l.texi.
39746         * doc/posix-functions/strndup.texi: Renamed from
39747         doc/glibc-functions/strndup.texi.
39748         * doc/posix-functions/strnlen.texi: Renamed from
39749         doc/glibc-functions/strnlen.texi.
39750         * doc/posix-functions/strsignal.texi: Renamed from
39751         doc/glibc-functions/strsignal.texi.
39752         * doc/posix-functions/strxfrm_l.texi: Renamed from
39753         doc/glibc-functions/strxfrm_l.texi.
39754         * doc/posix-functions/timer_gettime.texi: Renamed from
39755         doc/glibc-functions/timer_gettime.texi.
39756         * doc/posix-functions/tolower_l.texi: Renamed from
39757         doc/glibc-functions/tolower_l.texi.
39758         * doc/posix-functions/toupper_l.texi: Renamed from
39759         doc/glibc-functions/toupper_l.texi.
39760         * doc/posix-functions/towctrans_l.texi: Renamed from
39761         doc/glibc-functions/towctrans_l.texi.
39762         * doc/posix-functions/towlower_l.texi: Renamed from
39763         doc/glibc-functions/towlower_l.texi.
39764         * doc/posix-functions/towupper_l.texi: Renamed from
39765         doc/glibc-functions/towupper_l.texi.
39766         * doc/posix-functions/uselocale.texi: Renamed from
39767         doc/glibc-functions/uselocale.texi.
39768         * doc/posix-functions/vdprintf.texi: Renamed from
39769         doc/glibc-functions/vdprintf.texi.
39770         * doc/posix-functions/wcpcpy.texi:
39771         Renamed from doc/glibc-functions/wcpcpy.texi.
39772         * doc/posix-functions/wcpncpy.texi: Renamed from
39773         doc/glibc-functions/wcpncpy.texi.
39774         * doc/posix-functions/wcscasecmp.texi: Renamed from
39775         doc/glibc-functions/wcscasecmp.texi.
39776         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
39777         doc/glibc-functions/wcscasecmp_l.texi.
39778         * doc/posix-functions/wcscoll_l.texi: Renamed from
39779         doc/glibc-functions/wcscoll_l.texi.
39780         * doc/posix-functions/wcsdup.texi: Renamed from
39781         doc/glibc-functions/wcsdup.texi.
39782         * doc/posix-functions/wcsncasecmp.texi: Renamed from
39783         doc/glibc-functions/wcsncasecmp.texi.
39784         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
39785         doc/glibc-functions/wcsncasecmp_l.texi.
39786         * doc/posix-functions/wcsnlen.texi: Renamed from
39787         doc/glibc-functions/wcsnlen.texi.
39788         * doc/posix-functions/wcsnrtombs.texi: Renamed from
39789         doc/glibc-functions/wcsnrtombs.texi.
39790         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
39791         doc/glibc-functions/wcsxfrm_l.texi.
39792         * doc/posix-functions/wctrans_l.texi: Renamed from
39793         doc/glibc-functions/wctrans_l.texi.
39794         * doc/posix-functions/wctype_l.texi: Renamed from
39795         doc/glibc-functions/wctype_l.texi.
39796         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39797         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
39798         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
39799         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
39800         these subsections.
39801         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
39802         Remove sections.
39803
39804 2008-12-14  Bruno Haible  <bruno@clisp.org>
39805
39806         Update doc for POSIX:2008.
39807         * doc/posix-functions/*.texi: Update URL of POSIX specification.
39808
39809 2008-12-14  Bruno Haible  <bruno@clisp.org>
39810
39811         Update doc for POSIX:2008.
39812         * doc/pastposix-functions/bcmp.texi: Renamed from
39813         doc/posix-functions/bcmp.texi.
39814         * doc/pastposix-functions/bcopy.texi: Renamed from
39815         doc/posix-functions/bcopy.texi.
39816         * doc/pastposix-functions/bsd_signal.texi: Renamed from
39817         doc/posix-functions/bsd_signal.texi.
39818         * doc/pastposix-functions/bzero.texi: Renamed from
39819         doc/posix-functions/bzero.texi.
39820         * doc/pastposix-functions/ecvt.texi: Renamed from
39821         doc/posix-functions/ecvt.texi.
39822         * doc/pastposix-functions/fcvt.texi: Renamed from
39823         doc/posix-functions/fcvt.texi.
39824         * doc/pastposix-functions/ftime.texi: Renamed from
39825         doc/posix-functions/ftime.texi.
39826         * doc/pastposix-functions/gcvt.texi: Renamed from
39827         doc/posix-functions/gcvt.texi.
39828         * doc/pastposix-functions/getcontext.texi: Renamed from
39829         doc/posix-functions/getcontext.texi.
39830         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
39831         doc/posix-functions/gethostbyaddr.texi.
39832         * doc/pastposix-functions/gethostbyname.texi: Renamed from
39833         doc/posix-functions/gethostbyname.texi.
39834         * doc/pastposix-functions/getwd.texi: Renamed from
39835         doc/posix-functions/getwd.texi.
39836         * doc/pastposix-functions/h_errno.texi: Renamed from
39837         doc/posix-functions/h_errno.texi.
39838         * doc/pastposix-functions/index.texi: Renamed from
39839         doc/posix-functions/index.texi.
39840         * doc/pastposix-functions/makecontext.texi: Renamed from
39841         doc/posix-functions/makecontext.texi.
39842         * doc/pastposix-functions/mktemp.texi: Renamed from
39843         doc/posix-functions/mktemp.texi.
39844         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
39845         doc/posix-functions/pthread_attr_getstackaddr.texi.
39846         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
39847         doc/posix-functions/pthread_attr_setstackaddr.texi.
39848         * doc/pastposix-functions/rindex.texi: Renamed from
39849         doc/posix-functions/rindex.texi.
39850         * doc/pastposix-functions/scalb.texi: Renamed from
39851         doc/posix-functions/scalb.texi.
39852         * doc/pastposix-functions/setcontext.texi: Renamed from
39853         doc/posix-functions/setcontext.texi.
39854         * doc/pastposix-functions/swapcontext.texi: Renamed from
39855         doc/posix-functions/swapcontext.texi.
39856         * doc/pastposix-functions/ualarm.texi: Renamed from
39857         doc/posix-functions/ualarm.texi.
39858         * doc/pastposix-functions/usleep.texi: Renamed from
39859         doc/posix-functions/usleep.texi.
39860         * doc/pastposix-functions/vfork.texi: Renamed from
39861         doc/posix-functions/vfork.texi.
39862         * doc/pastposix-functions/wcswcs.texi: Renamed from
39863         doc/posix-functions/wcswcs.texi.
39864         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
39865         (Function Substitutes): Update.
39866
39867 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39868
39869         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
39870         m4/strerror.m4.
39871
39872 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39873             Bruno Haible  <bruno@clisp.org>
39874
39875         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
39876
39877 2008-12-13  Bruno Haible  <bruno@clisp.org>
39878
39879         * modules/strtoull (Depends-on): Remove unistd.
39880
39881 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39882
39883         * modules/strtoull (Depends-on): Add stdlib.
39884
39885 2008-12-11  Simon Josefsson  <simon@josefsson.org>
39886
39887         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
39888
39889 2008-12-10  Jim Meyering  <meyering@redhat.com>
39890
39891         gl_ASSERT: don't say assertions are disabled when they're not
39892         * m4/assert.m4 (gl_ASSERT): Do not make configure report
39893         "checking whether to enable assertions... no", when they are in
39894         fact enabled.  This is solely a bug in the output of configure.
39895         In spite of saying "no", NDEBUG was not defined in that case.
39896         Also, as noted by Eric Blake, leave assertions enabled upon
39897         --enable-assert=INVALID.
39898
39899 2008-12-10  Bruno Haible  <bruno@clisp.org>
39900
39901         Change MODULES.html to refer to POSIX:2008 where possible.
39902         * MODULES.html.sh (POSIX2008_URL): New variable.
39903         (posix_headers): Remove sys/timeb, ucontext.
39904         (posix2001_headers): New variable.
39905         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
39906         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
39907         index, makecontext, mktemp, pthread_attr_getstackaddr,
39908         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
39909         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
39910         (posix2001_functions): New variable.
39911         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
39912         otherwise.
39913
39914 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39915
39916         add missing include to parse-duration.c
39917         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
39918         * modules/parse-duration (Depends-on): Add xalloc.
39919
39920         fix sed script reading maint.mk
39921         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
39922         (syntax-check-rules): Use it.
39923
39924 2008-12-09  Bruno Haible  <bruno@clisp.org>
39925
39926         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
39927         MacOS X 10.4/PowerPC.
39928         Reported by Simon Josefsson.
39929
39930 2008-12-08  Jim Meyering  <meyering@redhat.com>
39931
39932         work around mingw's lack of some S_IF definitions
39933         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
39934         Reported by Simon Josefsson.
39935
39936 2008-12-08  Bruno Haible  <bruno@clisp.org>
39937
39938         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
39939         applied to variables. Needed on MacOS X 10.4/PowerPC.
39940         Reported by Simon Josefsson.
39941
39942 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
39943         and Eric Blake  <ebb9@byu.net>
39944
39945         assert: honor --enable-assert
39946         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
39947         order to honor --enable-assert, rather than treating it as a
39948         synonym for --disable-assert.
39949
39950 2008-12-08  Jim Meyering  <meyering@redhat.com>
39951
39952         * lib/posixtm.c: Remove now-useless declaration of mktime.
39953
39954         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
39955
39956 2008-12-07  Bruno Haible  <bruno@clisp.org>
39957
39958         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
39959         test_once): Mark functions as static.
39960         * tests/test-tls.c (test_tls): Likewise.
39961
39962 2008-12-07  Bruno Haible  <bruno@clisp.org>
39963
39964         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
39965         iconv_register_autodetect.
39966
39967 2008-12-07  Jim Meyering  <meyering@redhat.com>
39968
39969         posixtm.c: avoid a warning
39970         * lib/posixtm.c (posixtime): Don't initialize tm0.
39971         It's no longer needed to placate gcc4's -Wuninitialized,
39972         and the attempt to placate would elicit a new warning.
39973
39974         unicodeio.c: mark unused parameters
39975         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
39976         (fallback_failure_callback): Likewise.
39977
39978 2008-12-07  Bruno Haible  <bruno@clisp.org>
39979
39980         * gnulib-tool (func_create_testdir): When building the tests
39981         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
39982         Reported by Simon Josefsson.
39983
39984 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39985
39986         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
39987
39988 2008-12-06  Bruno Haible  <bruno@clisp.org>
39989
39990         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
39991         Suggested by Eric Blake.
39992
39993 2008-12-06  Bruno Haible  <bruno@clisp.org>
39994
39995         Fix a c-stack test failure on MacOS X.
39996         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
39997         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
39998         handler for SIGBUS as well.
39999         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40000         install a signal handler for SIGBUS as well.
40001         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40002
40003 2008-12-06  Bruno Haible  <bruno@clisp.org>
40004
40005         Advocacy documentation.
40006         * doc/gnulib-intro.texi (Benefits): New section.
40007         * doc/gnulib.texi: Update.
40008
40009 2008-12-06  Bruno Haible  <bruno@clisp.org>
40010
40011         Document the 'manywarnings' module.
40012         * doc/manywarnings.texi: New file.
40013         * doc/gnulib.texi: Include it.
40014
40015 2008-12-05  Eric Blake  <ebb9@byu.net>
40016
40017         tests: silence some gcc warnings
40018         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40019         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40020         type mismatches.
40021
40022 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40023             Bruno Haible  <bruno@clisp.org>
40024
40025         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40026
40027 2008-11-29  Jim Meyering  <meyering@redhat.com>
40028
40029         unicodeio.c: mark unused parameters
40030         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40031         (fallback_failure_callback): Likewise.
40032
40033         fts: fix a thinko
40034         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40035         (set_stat_type): Return S_IF*-valued "type" directly.
40036         Prompted by James Youngman's spotting a related bug.
40037         Confirmed by further testing through find.
40038
40039         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40040         * lib/fts.c (D_TYPE): Define.
40041         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40042         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40043         (s_ifmt_shift_bits): New function.
40044         (set_stat_type): New function.
40045         (fts_build): When not calling fts_stat, call set_stat_type
40046         to propagate dirent.d_type info to fts_read caller.
40047         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40048         fts_statp->st_mode type information may be valid.
40049
40050 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40051
40052         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40053         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40054         <sds@gnu.org>.
40055
40056 2008-11-20  Bruno Haible  <bruno@clisp.org>
40057
40058         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40059         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40060         INCLUDE_NEXT.
40061         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40062         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40063         * modules/math (Makefile.am): Substitute
40064         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40065         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40066
40067 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40068             Bruno Haible  <bruno@clisp.org>
40069
40070         * lib/stdint.in.h: Define all type macros so that their expansion is
40071         a single typedef'ed token. Fixes a compilation failure in Boost which
40072         does "using ::int8_t;".
40073
40074 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40075
40076         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40077         gl_MANYWARN_ALL_GCC.
40078         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40079         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40080         * modules/manywarnings: New file.
40081         * MODULES.html.sh: Mention manywarnings module.
40082
40083 2008-11-18  Bruno Haible  <bruno@clisp.org>
40084
40085         * doc/gnulib-tool.texi (Unit tests): New section.
40086
40087 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40088
40089         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40090         paths like 'lib/po/foo.po'.
40091
40092 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40093
40094         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40095         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40096
40097 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40098
40099         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40100         parameter works.
40101
40102 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40103
40104         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40105
40106 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40107
40108         * modules/parse-duration-tests: New file.
40109         * tests/test-parse-duration.sh: New file.
40110         * tests/test-parse-duration.c: New file.
40111
40112         New module 'parse-duration'.
40113         * lib/parse-duration.h: New file.
40114         * lib/parse-duration.c: New file.
40115         * modules/parse-duration: New file.
40116
40117 2008-11-17  Bruno Haible  <bruno@clisp.org>
40118
40119         * tests/test-select-out.sh: Comment out the first pipe test.
40120         Reported by Simon Josefsson.
40121
40122 2008-11-17  Bruno Haible  <bruno@clisp.org>
40123
40124         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40125         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40126         gl_HOSTENT.
40127
40128 2008-11-17  Bruno Haible  <bruno@clisp.org>
40129
40130         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40131         -lnetwork and -lnet. Needed for Haiku and BeOS.
40132
40133 2008-11-16  Bruno Haible  <bruno@clisp.org>
40134
40135         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40136
40137 2008-11-16  Bruno Haible  <bruno@clisp.org>
40138
40139         Avoid test failure on Haiku.
40140         * tests/test-fsync.c: Include <errno.h>.
40141         (main): Don't require that fsync (0) fails.
40142
40143 2008-11-15  Bruno Haible  <bruno@clisp.org>
40144
40145         New module 'hostent'.
40146         * modules/hostent: New file.
40147         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
40148
40149 2008-11-15  Bruno Haible  <bruno@clisp.org>
40150
40151         New module 'servent'.
40152         * modules/servent: New file.
40153         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
40154
40155 2008-11-15  Bruno Haible  <bruno@clisp.org>
40156
40157         Avoid generating same test program with two different rules.
40158         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
40159         test-frexp to test-frexp-nolibm.
40160         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40161         test-frexpl to test-frexpl-nolibm.
40162
40163 2008-11-15  Bruno Haible  <bruno@clisp.org>
40164
40165         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
40166         $(FREXPL_LIBM).
40167
40168 2008-11-15  Bruno Haible  <bruno@clisp.org>
40169
40170         * lib/netdb.in.h: Activate the definitions also when the system's
40171         <netdb.h> has 'struct addrinfo'.
40172         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
40173         EAI_OVERFLOW or AI_NUMERICSERV.
40174         * doc/posix-headers/netdb.texi: Document the problem.
40175
40176 2008-11-15  Bruno Haible  <bruno@clisp.org>
40177
40178         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
40179
40180         Make the 'sched' module work on platforms where <sched.h> exists but
40181         is incomplete (such as Haiku).
40182         * lib/sched.in.h; Include the system's <sched.h> if it exists.
40183         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
40184         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
40185         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
40186         HAVE_STRUCT_SCHED_PARAM.
40187         * modules/sched (Depends-on): Add include_next.
40188         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
40189         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
40190         * doc/posix-headers/sched.texi: Document the issue.
40191
40192 2008-11-13  Jim Meyering  <meyering@redhat.com>
40193
40194         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
40195         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
40196         test would fail due to the difference in the Report bugs to ...
40197         line.  The expected address is empty, "<>", while the actual
40198         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
40199
40200 2008-11-12  Bruno Haible  <bruno@clisp.org>
40201
40202         lstat: don't compile lstat.c on systems lacking lstat
40203         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
40204         which don't have lstat; this is handled by lib/sys_stat.in.h already.
40205         Reported by Daniel P. Berrange via Jim Meyering.
40206
40207 2008-11-12  Jim Meyering  <meyering@redhat.com>
40208
40209         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
40210
40211 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40212
40213         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
40214         instead.
40215
40216 2008-11-12  Bruno Haible  <bruno@clisp.org>
40217
40218         * lib/unicodeio.c: Include unistr.h.
40219         (utf8_wctomb): Remove function.
40220         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
40221
40222 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40223
40224         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
40225         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
40226         <bruno@clisp.org>.
40227         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
40228
40229 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40230
40231         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
40232         * doc/gnulib.texi: Add section for warnings.
40233
40234 2008-11-11  Bruno Haible  <bruno@clisp.org>
40235
40236         * lib/sockets.h: Add a comment.
40237
40238 2008-11-11  Karl Berry  <karl@gnu.org>
40239
40240         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
40241
40242 2008-11-11  Eric Blake  <ebb9@byu.net>
40243
40244         fdl.texi: avoid git symlinks
40245         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
40246
40247 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40248
40249         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
40250
40251 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40252
40253         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
40254         (gl_WARN_ADD): Substitute $2 if literal.
40255
40256 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40257
40258         * m4/warning.m4: Remove.
40259
40260 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40261
40262         * m4/warnings.m4: Almost complete rewrite. :-)
40263
40264 2008-11-10  Simon Josefsson  <simon@josefsson.org>
40265
40266         * modules/warnings: New module.
40267         * m4/warnings.m4: New file.
40268         * MODULES.html.sh: Mention warnings module.
40269         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
40270         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40271
40272 2008-11-10  Eric Blake  <ebb9@byu.net>
40273
40274         fdl.texi: make a symlink to the latest version
40275         * doc/standards.texi: Revert today's earlier change.
40276         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40277         * doc/fdl.texi: ...and replace this with a symlink to the newer
40278         fdl-1.3.texi.
40279
40280 2008-11-10  Bruno Haible  <bruno@clisp.org>
40281
40282         * tests/test-select-fd.c (main): Accept the result file name as fourth
40283         argument.
40284         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40285         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40286
40287 2008-11-10  Bruno Haible  <bruno@clisp.org>
40288
40289         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40290         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40291         as autoconf-substituted macros.
40292         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40293         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40294         gl_NETDB_H_DEFAULTS. Set these variables.
40295         * modules/netdb (Makefile.am): Substitute these variables.
40296
40297 2008-11-10  Eric Blake  <ebb9@byu.net>
40298
40299         standards.texi: include correct file for FDL 1.3
40300         * doc/standards.texi (GNU Free Documentation License): Change
40301         include file to pull in FDL 1.3, not 1.2.
40302
40303         fdl.texi: revert accidental change to license
40304         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40305
40306 2008-11-10  Bruno Haible  <bruno@clisp.org>
40307
40308         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
40309         cross-compiling guesses also when the native compile gives no result.
40310
40311 2008-11-10  Bruno Haible  <bruno@clisp.org>
40312
40313         * lib/spawni.c (__spawni): Force variable into the stack.
40314
40315 2008-11-10  Bruno Haible  <bruno@clisp.org>
40316
40317         Add support for Haiku.
40318         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
40319         glibc and BeOS, but also on Haiku.
40320         * lib/fpurge.c (fpurge): Likewise.
40321         * lib/freadable.c (freadable): Likewise.
40322         * lib/freadahead.c (freadahead): Likewise.
40323         * lib/freading.c (freading): Likewise.
40324         * lib/freadptr.c (freadptr): Likewise.
40325         * lib/freadseek.c (freadptrinc): Likewise.
40326         * lib/fseeko.c (rpl_fseeko): Likewise.
40327         * lib/fseterr.c (fseterr): Likewise.
40328         * lib/fwritable.c (fwritable): Likewise.
40329         * lib/fwriting.c (fwriting): Likewise.
40330         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
40331
40332 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40333
40334         * lib/config.charset: Treat Haiku like BeOS.
40335
40336 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40337
40338         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
40339         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
40340
40341 2008-11-08  Bruno Haible  <bruno@clisp.org>
40342
40343         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
40344         AC_CACHE_CHECK.
40345
40346 2008-11-08  Bruno Haible  <bruno@clisp.org>
40347
40348         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
40349
40350 2008-11-08  Bruno Haible  <bruno@clisp.org>
40351
40352         * tests/test-select-fd.c: New file.
40353         * tests/test-select-in.sh: New file.
40354         * tests/test-select-out.sh: New file.
40355         * tests/test-select-stdin.c: New file.
40356         * modules/select-tests (Files): Add the new files.
40357         (Depends-on): Add gettimeofday.
40358         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
40359         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
40360         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
40361
40362 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
40363             Bruno Haible  <bruno@clisp.org>
40364
40365         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
40366
40367 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
40368
40369         * build-aux/pmccabe2html: Added support for C++ source files.
40370
40371 2008-11-05  Ben Pfaff  <blp@gnu.org>
40372
40373         Fix lib/close.c build on Windows.
40374         * modules/close (Files): Add lib/w32sock.h.
40375
40376 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
40377
40378         Accept Bison's NEWS format.
40379         * build-aux/announce-gen (print_news_deltas): Tweak
40380         $re_prefix.
40381
40382 2008-11-04  Bruno Haible  <bruno@clisp.org>
40383
40384         * modules/random_r (Maintainer): Add glibc.
40385
40386 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40387
40388         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
40389         by karl@freefriends.org (Karl Berry).
40390         * doc/alloca.texi: Likewise.
40391         * doc/c-ctype.texi: Likewise.
40392         * doc/c-strcase.texi: Likewise.
40393         * doc/c-strcaseeq.texi: Likewise.
40394         * doc/c-strcasestr.texi: Likewise.
40395         * doc/c-strstr.texi: Likewise.
40396         * doc/c-strtod.texi: Likewise.
40397         * doc/c-strtold.texi: Likewise.
40398         * doc/ctime.texi: Likewise.
40399         * doc/error.texi: Likewise.
40400         * doc/fdl.texi: Likewise.
40401         * doc/gcd.texi: Likewise.
40402         * doc/getdate.texi: Likewise.
40403         * doc/gnulib-intro.texi: Likewise.
40404         * doc/gnulib-tool.texi: Likewise.
40405         * doc/gnulib.texi: Likewise.
40406         * doc/inet_ntoa.texi: Likewise.
40407         * doc/maintain.texi: Likewise.
40408         * doc/make-stds.texi: Likewise.
40409         * doc/quote.texi: Likewise.
40410         * doc/regexprops-generic.texi: Likewise.
40411         * doc/standards.texi: Likewise.
40412         * doc/verify.texi: Likewise.
40413         * doc/visibility.texi: Likewise.
40414         * doc/gnulib.texi (GNU Free Documentation License): Include
40415         fdl-1.3.texi instead of fdl.texi.
40416
40417 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40418
40419         * doc/fdl-1.3.texi: New file, from
40420         <http://www.gnu.org/licenses/fdl-1.3.texi>.
40421         * modules/fdl-1.3: Add.
40422         * MODULES.html.sh: Add fdl-1.3.
40423
40424 2008-11-03  Bruno Haible  <bruno@clisp.org>
40425
40426         Make determination of absolute name of header file work with AIX xlc.
40427         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
40428         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
40429         preprocessing.
40430         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40431         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40432
40433 2008-11-03  Simon Josefsson  <simon@josefsson.org>
40434
40435         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
40436         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
40437         <ludo@gnu.org>.
40438
40439 2008-11-02  Bruno Haible  <bruno@clisp.org>
40440
40441         Mark 'strpbrk' obsolete.
40442         * modules/strpbrk (Status, Notice): New sections.
40443         * modules/strtok_r (Depends-on): Add strpbrk.
40444
40445 2008-11-02  Bruno Haible  <bruno@clisp.org>
40446
40447         Mark 'strdup' obsolete.
40448         * modules/strdup (Status, Notice): New sections.
40449         * modules/findprog (Depends-on): Add strdup.
40450         * modules/getaddrinfo (Depends-on): Likewise.
40451         * modules/localename (Depends-on): Likewise.
40452         * modules/relocatable-lib (Depends-on): Likewise.
40453         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
40454         * modules/relocatable-prog (Depends-on): Likewise.
40455         * modules/trim (Depends-on): Likewise.
40456         * modules/unictype/gen-ctype (Depends-on): Likewise.
40457         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40458
40459 2008-11-02  Bruno Haible  <bruno@clisp.org>
40460
40461         Mark 'strcspn' obsolete.
40462         * modules/strcspn (Status, Notice): New sections.
40463
40464 2008-11-02  Bruno Haible  <bruno@clisp.org>
40465
40466         Mark 'rmdir' obsolete.
40467         * modules/rmdir (Status, Notice): New sections.
40468         * modules/clean-temp (Depends-on): Add rmdir.
40469         * modules/openat (Depends-on): Likewise.
40470
40471 2008-11-02  Bruno Haible  <bruno@clisp.org>
40472
40473         Mark 'raise' obsolete.
40474         * modules/raise (Status, Notice): New sections.
40475         (Include): Specify <signal.h>.
40476         * modules/stdio (Depends-on): Add raise.
40477         * modules/write (Depends-on): Likewise.
40478
40479 2008-11-02  Bruno Haible  <bruno@clisp.org>
40480
40481         Mark 'memset' obsolete.
40482         * modules/memset (Status, Notice): New sections.
40483
40484 2008-11-02  Bruno Haible  <bruno@clisp.org>
40485
40486         Mark 'memmove' obsolete.
40487         * modules/memmove (Status, Notice): New sections.
40488         * modules/argp (Depends-on): Add memmove.
40489         * modules/argz (Depends-on): Likewise.
40490         * modules/canonicalize (Depends-on): Likewise.
40491         * modules/canonicalize-lgpl (Depends-on): Likewise.
40492         * modules/fts (Depends-on): Likewise.
40493         * modules/getcwd (Depends-on): Likewise.
40494         * modules/human (Depends-on): Likewise.
40495         * modules/regex (Depends-on): Likewise.
40496         * modules/striconveh (Depends-on): Likewise.
40497         * modules/trim (Depends-on): Likewise.
40498         * modules/unistr/u8-move (Depends-on): Likewise.
40499         * modules/unistr/u16-move (Depends-on): Likewise.
40500         * modules/unistr/u32-move (Depends-on): Likewise.
40501
40502 2008-11-02  Bruno Haible  <bruno@clisp.org>
40503
40504         Mark 'memcpy' obsolete.
40505         * modules/memcpy (Status, Notice): New sections.
40506
40507 2008-11-02  Bruno Haible  <bruno@clisp.org>
40508
40509         Mark 'memcmp' obsolete.
40510         * modules/memcmp (Status, Notice): New sections.
40511         * modules/argmatch (Depends-on): Add memchr.
40512         * modules/backupfile (Depends-on): Likewise.
40513         * modules/c-strcasestr (Depends-on): Likewise.
40514         * modules/crypto/des (Depends-on): Likewise.
40515         * modules/csharpcomp (Depends-on): Likewise.
40516         * modules/fnmatch (Depends-on): Likewise.
40517         * modules/git-merge-changelog (Depends-on): Likewise.
40518         * modules/isnand (Depends-on): Likewise.
40519         * modules/isnand-nolibm (Depends-on): Likewise.
40520         * modules/isnanf (Depends-on): Likewise.
40521         * modules/isnanf-nolibm (Depends-on): Likewise.
40522         * modules/isnanl (Depends-on): Likewise.
40523         * modules/isnanl-nolibm (Depends-on): Likewise.
40524         * modules/mbchar (Depends-on): Likewise.
40525         * modules/memcoll (Depends-on): Likewise.
40526         * modules/quotearg (Depends-on): Likewise.
40527         * modules/regex (Depends-on): Likewise.
40528         * modules/relocatable-prog (Depends-on): Likewise.
40529         * modules/same (Depends-on): Likewise.
40530         * modules/signbit (Depends-on): Likewise.
40531         * modules/strcasestr-simple (Depends-on): Likewise.
40532         * modules/unictype/gen-ctype (Depends-on): Likewise.
40533         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40534         * modules/uniname/uniname (Depends-on): Likewise.
40535         * modules/unistr/u8-cmp (Depends-on): Likewise.
40536
40537 2008-11-02  Bruno Haible  <bruno@clisp.org>
40538
40539         Mark 'memchr' obsolete.
40540         * modules/memchr (Status, Notice): New sections.
40541         * modules/argp (Depends-on): Add memchr.
40542         * modules/base64 (Depends-on): Likewise.
40543         * modules/c-strcasestr (Depends-on): Likewise.
40544         * modules/chdir-long (Depends-on): Likewise.
40545         * modules/fnmatch (Depends-on): Likewise.
40546         * modules/getsubopt (Depends-on): Likewise.
40547         * modules/git-merge-changelog (Depends-on): Likewise.
40548         * modules/glob (Depends-on): Likewise.
40549         * modules/strcasestr-simple (Depends-on): Likewise.
40550         * modules/strnlen (Depends-on): Likewise.
40551
40552 2008-11-02  Bruno Haible  <bruno@clisp.org>
40553
40554         Mark 'atexit' obsolete.
40555         * modules/atexit (Status, Notice): New sections.
40556         * modules/chdir-long (Depends-on): Add atexit.
40557         * modules/wait-process (Depends-on): Likewise.
40558
40559 2008-11-02  Bruno Haible  <bruno@clisp.org>
40560
40561         * gnulib-tool: New option --with-obsolete.
40562         (func_usage): Document it.
40563         (func_modules_transitive_closure): Drop obsolete dependencies if
40564         incobsolete is not true.
40565         (func_import): Read and save the incobsolete variable to the cache.
40566
40567 2008-11-02  Bruno Haible  <bruno@clisp.org>
40568
40569         * modules/TEMPLATE-EXTENDED: New field 'Status'.
40570         * gnulib-tool: New option --extract-status.
40571         (func_usage): Document it.
40572         (sed_extract_prog): Recognize it.
40573         (func_get_status): New function.
40574
40575 2008-10-30  Simon Josefsson  <simon@josefsson.org>
40576
40577         * modules/sockets (License): Change from LGPL to LGPLv2+.
40578
40579 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40580
40581         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
40582
40583 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40584
40585         * MODULES.html.sh (Support for systems lacking POSIX:2001):
40586         Mention times and sys_times.
40587         * modules/sys_times, modules/sys_times-tests: New modules.
40588         * modules/times, modules/times-tests: Likewise
40589         * m4/sys_times_h.m4: New file.
40590         * lib/sys_times.in.h: Likewise
40591         * lib/times.c: Likewise.
40592         * tests/test-sys_times.c: Likewise.
40593         * tests/test-times.c: Likewise.
40594         * doc/posix-headers/sys_times.texi: Update.
40595         * doc/posix-functions/times.texi: Update.
40596
40597 2008-10-28  Jim Meyering  <meyering@redhat.com>
40598
40599         * modules/tempname (Depends-on): Add lstat.
40600
40601         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
40602
40603 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40604
40605         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
40606         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
40607         using idiom used elsewhere in gnulib.
40608
40609 2008-10-27  Jim Meyering  <meyering@redhat.com>
40610
40611         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
40612
40613 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40614
40615         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
40616         TESTS_ENVIRONMENT, for shell scripts that needs to call built
40617         programs.
40618         * tests/test-argp-2.sh: Use $EXEEXT when needed.
40619
40620 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40621
40622         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
40623
40624 2008-10-27  Bruno Haible  <bruno@clisp.org>
40625
40626         * tests/test-lstat.c: Include <stdio.h>.
40627
40628 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40629
40630         * modules/lstat-tests: New module.
40631         * tests/test-lstat.c: New file.
40632
40633 2008-10-26  Jim Meyering  <meyering@redhat.com>
40634
40635         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
40636
40637 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40638             Bruno Haible  <bruno@clisp.org>
40639
40640         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
40641         * modules/configmake (Include): Add a note that the include must come
40642         after all system headers.
40643         * lib/javaversion.c: Include configmake.h after all other includes.
40644
40645 2008-10-26  Bruno Haible  <bruno@clisp.org>
40646
40647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
40648         HAVE_STRUCT_RANDOM_DATA to 1.
40649         (gl_STDLIB_H): Simplify.
40650
40651 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40652
40653         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
40654         substitute HAVE_STRUCT_RANDOM_DATA.
40655         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
40656         random_data.
40657         * modules/stdlib (Makefile.am): Substitute
40658         HAVE_STRUCT_RANDOM_DATA.
40659
40660 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40661
40662         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
40663         * doc/gnulib-intro.texi (Copyright): Likewise.
40664
40665 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40666
40667         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
40668         findings.
40669
40670 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
40671             Bruno Haible  <bruno@clisp.org>
40672
40673         * lib/unistd.in.h: Include <winsock2.h>.
40674         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
40675         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
40676         Provide dummy declarations.
40677         (gethostname): Override.
40678         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
40679         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
40680         gl_PREREQ_SYS_H_WINSOCK2.
40681         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
40682         * doc/posix-functions/gethostname.texi: More details.
40683
40684 2008-10-25  Bruno Haible  <bruno@clisp.org>
40685
40686         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40687         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
40688         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
40689
40690         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
40691         here ...
40692         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
40693         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
40694         gl_UNISTD_H_DEFAULTS.
40695
40696 2008-10-25  Eric Blake  <ebb9@byu.net>
40697
40698         signbit: avoid spurious compiler failure
40699         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
40700         declarations inside function.
40701
40702 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40703             Bruno Haible  <bruno@clisp.org>
40704
40705         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
40706         * modules/random_r (Depends-on): Add stdint.
40707
40708 2008-10-24  Bruno Haible  <bruno@clisp.org>
40709
40710         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
40711         Eggert.
40712         * modules/strerror (License): Likewise.
40713
40714 2008-10-24  Jim Meyering  <meyering@redhat.com>
40715
40716         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
40717         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
40718
40719 2008-10-24  Eric Blake  <ebb9@byu.net>
40720
40721         getgroups: fix compilation when getgroups is available
40722         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
40723         but with <config.h> override of getgroups disabled.
40724
40725 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40726
40727         * doc/gnulib.texi (Header files): Add note about C++ problems.
40728         Explained by Bruno Haible <bruno@clisp.org>.
40729
40730 2008-10-23  Bruno Haible  <bruno@clisp.org>
40731
40732         Define a dummy SA_NODEFER macro on Interix.
40733         * lib/signal.in.h (SA_NODEFER): Define fallback.
40734         Reported by Aleksey Cheusov <cheusov@tut.by> via
40735         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
40736
40737 2008-10-23  Bruno Haible  <bruno@clisp.org>
40738
40739         * modules/freadahead (License): Change to LGPLv2+.
40740         Suggested by Simon Josefsson.
40741
40742 2008-10-23  Jim Meyering  <meyering@redhat.com>
40743
40744         random_r: new module
40745         * modules/random_r: New file.
40746         * m4/random_r.m4: New file.
40747         * lib/random_r.c: New file, from glibc.
40748         * modules/random_r-tests: New file.
40749         * tests/test-random_r.c: New file.
40750         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
40751          Declare.
40752         (RAND_MAX): Define.
40753         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
40754         * modules/stdlib: Substitute them, too.
40755         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
40756         * doc/glibc-functions/initstate_r.texi: Mention the new module.
40757         * doc/glibc-functions/random_r.texi: Likewise.
40758         * doc/glibc-functions/setstate_r.texi: Likewise.
40759         * doc/glibc-functions/srandom_r.texi: Likewise.
40760         * config/srclist.txt: Mention it.
40761
40762 2008-10-23  David Lutterkort  <lutter@redhat.com>
40763
40764         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
40765         link requirement
40766
40767 2008-10-23  Jim Meyering  <meyering@redhat.com>
40768
40769         selinux-h: mark parameters of stub functions as intentionally unused
40770         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
40771         * lib/se-context.in.h: Likewise.
40772
40773 2008-10-22  Simon Josefsson  <simon@josefsson.org>
40774
40775         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
40776
40777 2008-10-22  Simon Josefsson  <simon@josefsson.org>
40778
40779         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
40780
40781 2008-10-22  Eric Blake  <ebb9@byu.net>
40782
40783         glthread/thread: avoid compiler warning
40784         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
40785         Add unreachable abort to silence compiler.
40786
40787 2008-10-22  Eric Blake  <ebb9@byu.net>
40788
40789         netdb: also supply struct addrinfo for cygwin 1.5.x
40790         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
40791         older cygwin.
40792         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
40793         cygwin.
40794         * doc/posix-headers/netdb.texi (netdb.h): Document this.
40795
40796 2008-10-22  Bruno Haible  <bruno@clisp.org>
40797
40798         * users.txt: Update entry about pspp.
40799
40800 2008-10-21  Bruno Haible  <bruno@clisp.org>
40801
40802         Simplification.
40803         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
40804         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
40805
40806         Simplification.
40807         * lib/ioctl.c (ioctl): Don't undefine.
40808         * lib/socket.c (socket): Don't undefine.
40809
40810         Remove unused module indicator macros.
40811         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
40812         GNULIB_$1 as a C macro.
40813
40814         * doc/posix-functions/close.texi: Undo last change.
40815         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
40816         Windows platforms.
40817
40818 2008-10-21  Bruno Haible  <bruno@clisp.org>
40819
40820         Add gethostname() declaration to <unistd.h>.
40821         * lib/unistd.in.h (gethostname): New declaration.
40822         * lib/gethostname.c: Include <unistd.h>.
40823         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
40824         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
40825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
40826         and HAVE_GETHOSTNAME.
40827         * modules/gethostname (Depends-on): Add unistd.
40828         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40829         (Include): Specify <unistd.h>.
40830         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
40831         HAVE_GETHOSTNAME.
40832         * tests/test-gethostname.c: Include <unistd.h> first.
40833
40834 2008-10-21  Bruno Haible  <bruno@clisp.org>
40835
40836         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
40837         * modules/select-tests (Depends-on): Likewise.
40838         Reported by Simon Josefsson.
40839
40840 2008-10-21  Simon Josefsson  <simon@josefsson.org>
40841
40842         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
40843         * lib/accept.c: New file, based on winsock.c.
40844         * lib/bind.c: New file, based on winsock.c.
40845         * lib/connect.c: New file, based on winsock.c.
40846         * lib/getpeername.c: New file, based on winsock.c.
40847         * lib/getsockname.c: New file, based on winsock.c.
40848         * lib/getsockopt.c: New file, based on winsock.c.
40849         * lib/ioctl.c: New file, based on winsock.c.
40850         * lib/listen.c: New file, based on winsock.c.
40851         * lib/recv.c: New file, based on winsock.c.
40852         * lib/recvfrom.c: New file, based on winsock.c.
40853         * lib/send.c: New file, based on winsock.c.
40854         * lib/sendto.c: New file, based on winsock.c.
40855         * lib/setsockopt.c: New file, based on winsock.c.
40856         * lib/shutdown.c: New file, based on winsock.c.
40857         * lib/socket.c: New file, based on winsock.c.
40858         * lib/w32sock.h: New file, based on winsock.c.
40859         * lib/winsock.c: Remove file.
40860         * modules/accept: Likewise.
40861         * modules/bind: Likewise.
40862         * modules/connect: Likewise.
40863         * modules/getpeername: Likewise.
40864         * modules/getsockname: Likewise.
40865         * modules/getsockopt: Likewise.
40866         * modules/ioctl: Likewise.
40867         * modules/listen: Likewise.
40868         * modules/recv: Likewise.
40869         * modules/recvfrom: Likewise.
40870         * modules/send: Likewise.
40871         * modules/sendto: Likewise.
40872         * modules/setsockopt: Likewise.
40873         * modules/shutdown: Likewise.
40874         * modules/socket: Use socket.c instead of winsock.c.
40875         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
40876         * doc/posix-functions/accept.texi: Doc fix.
40877         * doc/posix-functions/bind.texi: Doc fix.
40878         * doc/posix-functions/close.texi: Doc fix.
40879         * doc/posix-functions/connect.texi: Doc fix.
40880         * doc/posix-functions/getpeername.texi: Doc fix.
40881         * doc/posix-functions/getsockname.texi: Doc fix.
40882         * doc/posix-functions/getsockopt.texi: Doc fix.
40883         * doc/posix-functions/ioctl.texi: Doc fix.
40884         * doc/posix-functions/listen.texi: Doc fix.
40885         * doc/posix-functions/recv.texi: Doc fix.
40886         * doc/posix-functions/recvfrom.texi: Doc fix.
40887         * doc/posix-functions/send.texi: Doc fix.
40888         * doc/posix-functions/sendto.texi: Doc fix.
40889         * doc/posix-functions/setsockopt.texi: Doc fix.
40890         * doc/posix-functions/shutdown.texi: Doc fix.
40891         * doc/posix-functions/socket.texi: Doc fix.
40892
40893 2008-10-20  Bruno Haible  <bruno@clisp.org>
40894
40895         Take into account the role of SIGABRT_COMPAT on Windows 2008.
40896         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
40897         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
40898         as an alias for SIGABRT.
40899         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
40900         (sigaction): Map it to SIGABRT.
40901         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
40902
40903 2008-10-20  Bruno Haible  <bruno@clisp.org>
40904
40905         * lib/fts.c: Don't include lstat.h.
40906         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
40907
40908         Move the lstat() declaration to <sys/stat.h>.
40909         * lib/lstat.h: Remove file.
40910         * lib/sys_stat.in.h: Add special invocation convention.
40911         (lstat): New declaration.
40912         * lib/lstat.c (orig_lstat): New function.
40913         (rpl_lstat): Use orig_lstat instead of lstat.
40914         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
40915         AC_C_INLINE. Set REPLACE_LSTAT.
40916         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
40917         and REPLACE_LSTAT.
40918         * modules/lstat (Files): Remove lib/lstat.h.
40919         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
40920         (Include): Specify <sys/stat.h> instead of lstat.h.
40921         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
40922         REPLACE_LSTAT.
40923         * NEWS: Mention the change.
40924
40925 2008-10-20  Bruno Haible  <bruno@clisp.org>
40926
40927         * modules/posix_spawn-tests: New file.
40928         * tests/test-posix_spawn3.c: New file.
40929
40930 2008-10-20  Bruno Haible  <bruno@clisp.org>
40931
40932         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
40933         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40934         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
40935         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40936         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
40937
40938 2008-10-20  Bruno Haible  <bruno@clisp.org>
40939
40940         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
40941         of posix_spawn on AIX 5.3.
40942
40943 2008-10-20  Bruno Haible  <bruno@clisp.org>
40944
40945         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
40946
40947 2008-10-20  Bruno Haible  <bruno@clisp.org>
40948
40949         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
40950         of AC_LANG_PROGRAM.
40951
40952 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40953
40954         * lib/netdb.in.h: Don't define GNU specific constants until they
40955         are supported or needed.  Reported by Bruno Haible
40956         <bruno@clisp.org>.
40957
40958 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40959
40960         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
40961
40962 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40963
40964         * lib/getaddrinfo.h: Remove file.
40965         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
40966         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
40967         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
40968         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
40969         * modules/netdb: Substitute GNULIB_GETADDRINFO.
40970         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
40971         * tests/test-getaddrinfo.c: Likewise.
40972         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
40973         * NEWS: Mention change.
40974
40975 2008-10-19  Bruno Haible  <bruno@clisp.org>
40976
40977         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
40978
40979 2008-10-19  Bruno Haible  <bruno@clisp.org>
40980
40981         * lib/wait-process.c: Include simply <sys/wait.h>.
40982         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
40983         WIFSTOPPED): Remove fallback definitions.
40984         * modules/wait-process (Depends-on): Add sys_wait.
40985
40986         New module 'sys_wait'.
40987         * modules/sys_wait: New file.
40988         * lib/sys_wait.in.h: New file, partially copied from
40989         lib/wait-process.c.
40990         * m4/sys_wait_h.m4: New file.
40991         * doc/posix-headers/sys_wait.texi: Mention the new module.
40992
40993 2008-10-19  Bruno Haible  <bruno@clisp.org>
40994
40995         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
40996
40997 2008-10-19  Bruno Haible  <bruno@clisp.org>
40998
40999         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41000         * lib/wait-process.c (WAIT_T): Remove type.
41001         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41002         (wait_subprocess): Update.
41003
41004 2008-10-19  Bruno Haible  <bruno@clisp.org>
41005
41006         New module 'atoll'.
41007         * modules/atoll: New file.
41008         * lib/stdlib.in.h (atoll): New declaration.
41009         * lib/atoll.c: New file, from glibc with modifications.
41010         * m4/atoll.m4: New file.
41011         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41012         HAVE_ATOLL.
41013         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41014         * doc/posix-functions/atoll.texi: Mention the new module.
41015
41016 2008-10-19  Bruno Haible  <bruno@clisp.org>
41017
41018         Add strtoull() declaration to <stdlib.h>.
41019         * lib/stdlib.in.h (strtoull): New declaration.
41020         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41021         Set HAVE_STRTOULL.
41022         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41023         HAVE_STRTOULL.
41024         * modules/strtoull (Depends-on): Add stdlib.
41025         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41026         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41027         HAVE_STRTOULL.
41028
41029 2008-10-19  Bruno Haible  <bruno@clisp.org>
41030
41031         Add strtoll() declaration to <stdlib.h>.
41032         * lib/stdlib.in.h (strtoll): New declaration.
41033         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41034         Set HAVE_STRTOLL.
41035         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41036         HAVE_STRTOLL.
41037         * modules/strtoll (Depends-on): Add stdlib.
41038         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41039         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41040
41041 2008-10-19  Bruno Haible  <bruno@clisp.org>
41042
41043         * modules/bcopy (Depends-on): Add strings.
41044         (Include): Specify <strings.h>.
41045
41046 2008-10-19  Bruno Haible  <bruno@clisp.org>
41047
41048         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41049
41050 2008-10-19  Bruno Haible  <bruno@clisp.org>
41051
41052         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41053         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41054         mingw.
41055
41056 2008-10-19  Bruno Haible  <bruno@clisp.org>
41057
41058         * lib/atanl.c: Don't include isnanl.h.
41059         * lib/cosl.c: Likewise.
41060         * lib/ldexpl.c: Likewise.
41061         * lib/logl.c: Likewise.
41062         * lib/sinl.c: Likewise.
41063         * lib/sqrtl.c: Likewise.
41064         * lib/tanl.c: Likewise.
41065
41066         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41067         * lib/isnanf.h: Remove file.
41068         * lib/isnand.h: Remove file.
41069         * lib/isnanl.h: Remove file.
41070         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41071         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41072         macros.
41073         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41074         HAVE_ISNANF, don't define it as a C macro.
41075         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41076         HAVE_ISNAND, don't define it as a C macro.
41077         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41078         HAVE_ISNANL, don't define it as a C macro.
41079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41080         HAVE_ISNAN[FDL].
41081         * modules/isnanf (Files): Remove lib/isnanf.h.
41082         (Depends-on): Add math.
41083         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41084         (Include): Specify <math.h> instead of isnanf.h.
41085         * modules/isnand (Files): Remove lib/isnand.h.
41086         (Depends-on): Add math.
41087         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41088         (Include): Specify <math.h> instead of isnand.h.
41089         * modules/isnanl (Files): Remove lib/isnanl.h.
41090         (Depends-on): Add math.
41091         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41092         (Include): Specify <math.h> instead of isnanl.h.
41093         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41094         HAVE_ISNAN[FDL].
41095         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41096         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41097         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41098         * NEWS: Mention the change.
41099
41100 2008-10-18  Bruno Haible  <bruno@clisp.org>
41101
41102         Add getusershell(), setusershell(), endusershell() declarations to
41103         <unistd.h>.
41104         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41105         declarations.
41106         * lib/getusershell.c: Include unistd.h.
41107         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41108         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41109         HAVE_GETUSERSHELL.
41110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41111         and HAVE_GETUSERSHELL.
41112         * modules/getusershell (Depends-on): Add unistd, extensions.
41113         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41114         (Include): Specify <unistd.h>.
41115         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41116         HAVE_GETUSERSHELL.
41117
41118 2008-10-18  Bruno Haible  <bruno@clisp.org>
41119
41120         Add a getloadavg() declaration to <stdlib.h>.
41121         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41122         getloadavg declaration.
41123         (getloadavg): New declaration.
41124         * lib/getloadavg.c: Include <stdlib.h> first.
41125         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41126         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41127         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41128         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41129         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41130         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41131         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41132         (Include): Specify <stdlib.h>.
41133         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41134         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41135
41136 2008-10-18  Bruno Haible  <bruno@clisp.org>
41137
41138         * lib/dirchownmod.c: Don't include lchmod.h.
41139
41140         Move the lchmod() declaration to <sys/stat.h>.
41141         * lib/lchmod.h: Remove file.
41142         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41143         (lchmod): New declaration, moved here from lib/lchown.h.
41144         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
41145         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
41146         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
41147         and HAVE_LCHMOD.
41148         * modules/lchmod (Files): Remove lib/lchmod.h.
41149         (Depends-on): Add sys_stat, extensions.
41150         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41151         (Include): Specify <sys/stat.h> instead of lchmod.h.
41152         * modules/sys_stat (Depends-on): Add link-warning.
41153         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
41154         definition of GL_LINK_WARNING.
41155         * NEWS: Mention the change.
41156
41157 2008-10-18  Bruno Haible  <bruno@clisp.org>
41158
41159         * lib/fchdir.c: Don't include dirfd.h.
41160         * lib/fts.c: Likewise.
41161         * lib/getcwd.c: Likewise.
41162         * lib/glob.c: Likewise.
41163
41164         Move the dirfd() declaration to <dirent.h>.
41165         * lib/dirfd.h: Remove file.
41166         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
41167         (dirfd): New declaration.
41168         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
41169         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
41170         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
41171         HAVE_DECL_DIRFD.
41172         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
41173         HAVE_DECL_DIRFD.
41174         * modules/dirfd (Files): Remove lib/dirfd.h.
41175         (Depends-on): Add dirent, extensions.
41176         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
41177         (Include): Specify <dirent.h> instead of dirfd.h.
41178         * modules/dirent (Depends-on): Add link-warning.
41179         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
41180         definition of GL_LINK_WARNING.
41181         * NEWS: Mention the change.
41182
41183 2008-10-18  Bruno Haible  <bruno@clisp.org>
41184
41185         Move the euidaccess() declaration to <unistd.h>.
41186         * lib/euidaccess.h: Remove file.
41187         * lib/unistd.in.h (euidaccess): New declaration.
41188         * lib/euidaccess.c: Don't include euidaccess.h.
41189         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
41190         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
41191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
41192         and HAVE_EUIDACCESS.
41193         * modules/euidaccess (Files): Remove lib/euidaccess.h.
41194         (Depends-on): Add unistd.
41195         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41196         (Include): Specify <unistd.h> instead of euidaccess.h.
41197         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
41198         HAVE_EUIDACCESS.
41199         * NEWS: Mention the change.
41200
41201 2008-10-18  Bruno Haible  <bruno@clisp.org>
41202
41203         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
41204
41205         Move the getdomainname() declaration to <unistd.h>.
41206         * lib/getdomainname.h: Remove file.
41207         * lib/unistd.in.h (getdomainname): New declaration.
41208         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
41209         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41210         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41211         HAVE_GETDOMAINNAME.
41212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41213         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
41214         * modules/getdomainname (Files): Remove lib/getdomainname.h.
41215         (Depends-on): Add unistd, extensions.
41216         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41217         (Includes): Specify <unistd.h> instead of getdomainname.h.
41218         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
41219         HAVE_GETDOMAINNAME.
41220         * NEWS: Mention the change.
41221
41222 2008-10-18  Bruno Haible  <bruno@clisp.org>
41223
41224         * modules/dirent: New file.
41225         * m4/dirent_h.m4: New file.
41226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
41227         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
41228         * modules/fchdir (Files): Remove lib/dirent.in.h.
41229         (Depends-on): Add dirent.
41230         (Makefile.am): Move rules to modules/dirent.
41231         * doc/posix-headers/dirent.texi: Mention the new module.
41232
41233 2008-10-18  Bruno Haible  <bruno@clisp.org>
41234
41235         Avoid -Wunused-parameter warnings in public gnulib header files.
41236         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
41237         macro.
41238         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
41239
41240 2008-10-18  Bruno Haible  <bruno@clisp.org>
41241
41242         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
41243         * doc/glibc-functions/error.texi: Mention the module 'error'.
41244         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
41245         * doc/glibc-functions/getdomainname.texi: Mention the module
41246         'getdomainname'.
41247         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
41248         * doc/glibc-functions/getpagesize.texi: Mention the module
41249         'getpagesize'.
41250         * doc/glibc-functions/getusershell.texi: Mention the module
41251         'getusershell'.
41252         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
41253         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
41254         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
41255         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
41256         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
41257         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
41258         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
41259         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
41260         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
41261         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41262         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
41263         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
41264         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
41265         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
41266
41267 2008-10-17  Bruno Haible  <bruno@clisp.org>
41268
41269         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
41270         HP-UX and IRIX, use -0.0L.
41271         * tests/test-ceill.c (minus_zero): Likewise.
41272         * tests/test-floorl.c (minus_zero): Likewise.
41273         * tests/test-frexpl.c (minus_zero): Likewise.
41274         * tests/test-isnan.c (minus_zerol): Likewise.
41275         * tests/test-isnanl.h (minus_zero): Likewise.
41276         * tests/test-ldexpl.c (minus_zero): Likewise.
41277         * tests/test-roundl.c (minus_zero): Likewise.
41278         * tests/test-signbit.c (minus_zerol): Likewise.
41279         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41280         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41281         * tests/test-truncl.c (minus_zero): Likewise.
41282         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41283         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41284         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41285         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41286
41287 2008-10-17  Bruno Haible  <bruno@clisp.org>
41288
41289         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41290         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41291         that it gets activated only for gcc >= 3.0.
41292         * lib/dirent.in.h: Likewise.
41293         * lib/errno.in.h: Likewise.
41294         * lib/fcntl.in.h: Likewise.
41295         * lib/float.in.h: Likewise.
41296         * lib/iconv.in.h: Likewise.
41297         * lib/inttypes.in.h: Likewise.
41298         * lib/locale.in.h: Likewise.
41299         * lib/math.in.h: Likewise.
41300         * lib/netdb.in.h: Likewise.
41301         * lib/netinet_in.in.h: Likewise.
41302         * lib/search.in.h: Likewise.
41303         * lib/signal.in.h: Likewise.
41304         * lib/spawn.in.h: Likewise.
41305         * lib/stdarg.in.h: Likewise.
41306         * lib/stdint.in.h: Likewise.
41307         * lib/stdio.in.h: Likewise.
41308         * lib/stdlib.in.h: Likewise.
41309         * lib/string.in.h: Likewise.
41310         * lib/strings.in.h: Likewise.
41311         * lib/sys_file.in.h: Likewise.
41312         * lib/sys_ioctl.in.h: Likewise.
41313         * lib/sys_select.in.h: Likewise.
41314         * lib/sys_socket.in.h: Likewise.
41315         * lib/sys_stat.in.h: Likewise.
41316         * lib/sys_time.in.h: Likewise.
41317         * lib/sysexits.in.h: Likewise.
41318         * lib/time.in.h: Likewise.
41319         * lib/unistd.in.h: Likewise.
41320         * lib/wchar.in.h: Likewise.
41321         * lib/wctype.in.h: Likewise.
41322         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41323
41324 2008-10-17  Jim Meyering  <meyering@redhat.com>
41325
41326         ignore-value: don't depend on inline module
41327         * modules/ignore-value (Depends-on): Remove 'inline'.
41328         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
41329         Suggestion from Bruno Haible.
41330
41331 2008-10-17  Bruno Haible  <bruno@clisp.org>
41332
41333         New implementation of condition variables for Win32.
41334         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
41335         (gl_linked_waitqueue_t): New type.
41336         (gl_cond_t): Use it.
41337         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
41338         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
41339         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
41340         (glthread_cond_init_func, glthread_cond_wait_func,
41341         glthread_cond_timedwait_func, glthread_cond_signal_func,
41342         glthread_cond_broadcast_func, glthread_cond_destroy_func):
41343         Reimplemented on the basis of gl_linked_waitqueue_t.
41344         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
41345         gl_waitqueue_t.
41346         (gl_rwlock_t): Update.
41347         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
41348
41349 2008-10-17  Simon Josefsson  <simon@josefsson.org>
41350
41351         * modules/recvfrom (Depends-on): Add dependency on getpeername.
41352         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41353
41354 2008-10-17  Jim Meyering  <meyering@redhat.com>
41355
41356         ignore-value: new module
41357         * modules/ignore-value: New file.
41358         * lib/ignore-value.h: New file.
41359         * MODULES.html.sh (Compiler warning management): New section,
41360         just for this module.  More to come.
41361
41362 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41363
41364         open-safer.c: avoid 'signed and unsigned in conditional...' warning
41365         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
41366         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
41367
41368 2008-10-16  Jim Meyering  <meyering@redhat.com>
41369
41370         openat-die.c: avoid 'no previous prototype' warning
41371         * lib/openat-die.c: Include "openat.h".
41372         Reported by Reuben Thomas <rrt@sc3d.org>.
41373
41374 2008-10-16  Simon Josefsson  <simon@josefsson.org>
41375
41376         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
41377         * lib/netdb.in.h: Fix typo.
41378         Reported by Bruno Haible  <bruno@clisp.org>
41379
41380         * lib/netdb.in.h: Include sys/socket.h for platforms without
41381         netdb.h, to get structures like hostent on MinGW.
41382         * modules/netdb (Depends-on): Add sys_socket.
41383
41384 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41385
41386         * modules/netdb, modules/netdb-tests: New file.
41387         * m4/netdb_h.m4: New file.
41388         * lib/netdb.in.h: Add, currently just an empty file pending
41389         definitions.
41390         * tests/test-netdb.c: New file.
41391         * doc/posix-headers/netdb.texi: Mention that we replace it if
41392         needed.
41393         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41394         netdb.
41395
41396 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41397
41398         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
41399         with code.
41400
41401 2008-10-13  Bruno Haible  <bruno@clisp.org>
41402
41403         * lib/glthread/cond.c (glthread_cond_wait_func,
41404         glthread_cond_timedwait_func): Add a comment.
41405
41406 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41407
41408         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
41409         * tests/test-select.c: Likewise,
41410
41411 2008-10-13  Bruno Haible  <bruno@clisp.org>
41412
41413         * lib/glthread/cond.c (glthread_cond_wait_func,
41414         glthread_cond_timedwait_func): Fix variable name.
41415         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41416
41417 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
41418
41419         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
41420         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
41421         struct sockaddr.sa_len.
41422         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
41423
41424 2008-10-13  Simon Josefsson  <simon@josefsson.org>
41425
41426         * build-aux/pmccabe2html: Add css and css_url parameters.
41427
41428 2008-10-12  Bruno Haible  <bruno@clisp.org>
41429
41430         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
41431         calling aclx_get.
41432         Reported by Rainer Tammer <tammer@tammer.net>.
41433
41434 2008-10-12  Bruno Haible  <bruno@clisp.org>
41435
41436         Use msvcrt aware primitives for creation/termination of Win32 threads.
41437         * lib/glthread/thread.c: Include <process.h>.
41438         (glthread_create_func): Use _beginthreadex instead of CreateThread.
41439         (wrapper_func): Update signature.
41440         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
41441
41442 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41443             Bruno Haible  <bruno@clisp.org>
41444
41445         Provide a Win32 implementation of the 'cond' module.
41446         * lib/glthread/cond.h [USE_WIN32]: New implementation.
41447         * lib/glthread/cond.c (glthread_cond_init_func,
41448         glthread_cond_wait_func, glthread_cond_timedwait_func,
41449         glthread_cond_signal_func, glthread_cond_broadcast_func,
41450         glthread_cond_destroy_func) [USE_WIN32]: New functions.
41451         * modules/cond (Dependencies): Add gettimeofday.
41452
41453 2008-10-11  Bruno Haible  <bruno@clisp.org>
41454
41455         Make sleep work on older versions of mingw.
41456         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
41457         only whether it exists.
41458         * doc/posix-functions/sleep.texi: Mention the problem with older
41459         versions of mingw.
41460
41461 2008-10-11  Bruno Haible  <bruno@clisp.org>
41462
41463         New module 'shutdown'.
41464         * modules/shutdown: New file.
41465         * lib/sys_socket.in.h (shutdown): New declaration.
41466         * lib/winsock.c (shutdown): New function.
41467         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41468         GNULIB_SHUTDOWN.
41469         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
41470         * doc/posix-functions/shutdown.texi: Document the new module.
41471
41472 2008-10-11  Jim Meyering  <meyering@redhat.com>
41473
41474         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
41475
41476 2008-10-11  Bruno Haible  <bruno@clisp.org>
41477
41478         New module 'fclose'.
41479         * modules/fclose: New file.
41480         * lib/stdio.in.h (fclose): New declaration.
41481         * lib/fclose.c: New file.
41482         * m4/fclose.m4: New file.
41483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
41484         REPLACE_FCLOSE.
41485         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
41486         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
41487         REPLACE_FCLOSE.
41488         * modules/close (Depends-on): fclose.
41489         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
41490
41491 2008-10-11  Bruno Haible  <bruno@clisp.org>
41492
41493         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
41494         set errno and don't call _close.
41495
41496 2008-10-10  Bruno Haible  <bruno@clisp.org>
41497
41498         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
41499         ACL, not afterwards. Fixes test failure on Cygwin.
41500
41501 2008-10-09  Ben Pfaff  <blp@gnu.org>
41502
41503         * build-aux/announce-gen: Fix gnulib version related part of usage
41504         message.  Die with a useful error message if no tarballs are
41505         found.
41506
41507 2008-10-10  Jim Meyering  <meyering@redhat.com>
41508
41509         bootstrap: use git's --depth=N option only if it's supported
41510         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
41511         recognize the --depth option.  Reported by Pádraig Brady.
41512
41513 2008-10-09  Bruno Haible  <bruno@clisp.org>
41514
41515         New module 'ioctl'.
41516         * modules/ioctl: New file.
41517         * lib/sys_socket.in.h (ioctl): Remove declaration.
41518         * lib/winsock.c: Include <sys/ioctl.h>.
41519         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
41520         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41521         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
41522         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
41523         * doc/posix-functions/ioctl.texi: Mention the new module.
41524
41525 2008-10-09  Bruno Haible  <bruno@clisp.org>
41526
41527         New module 'sys_ioctl'.
41528         * lib/sys_ioctl.in.h: New file.
41529         * m4/sys_ioctl_h.m4: New file.
41530         * modules/sys_ioctl: New file.
41531         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
41532
41533 2008-10-09  Bruno Haible  <bruno@clisp.org>
41534
41535         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
41536         * lib/winsock.c: Include <stdarg.h>.
41537         (rpl_ioctl): Change to second argument 'int' and then varargs.
41538
41539 2008-10-09  Bruno Haible  <bruno@clisp.org>
41540
41541         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
41542         when the sys_socket module is present and the system has <winsock2.h>.
41543
41544 2008-10-09  Bruno Haible  <bruno@clisp.org>
41545
41546         * doc/posix-functions/close.texi: Mention module 'close' instead of
41547         module 'sys_socket'.
41548
41549 2008-10-09  Bruno Haible  <bruno@clisp.org>
41550
41551         * doc/glibc-headers/sys_ioctl.texi: New file.
41552         * doc/gnulib.texi: Include it.
41553
41554 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41555             Bruno Haible  <bruno@clisp.org>
41556
41557         Combine the two replacements of 'close'.
41558         * lib/sys_socket.in.h (close): Define to a reminder to include
41559         <unistd.h>.
41560         (_gl_close_fd_maybe_socket): New declaration.
41561         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
41562         * lib/winsock.c (close): Remove undefinition.
41563         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
41564         needed for the gnulib module 'close'.
41565         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
41566         define to an error symbol or to a warning, if suitable.
41567         * lib/close.c: Include <sys/socket.h>.
41568         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
41569         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
41570         UNISTD_H_HAVE_WINSOCK2_H.
41571         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
41572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41573         UNISTD_H_HAVE_WINSOCK2_H.
41574         * modules/sys_socket (Files): Add m4/unistd_h.m4.
41575         (configure.ac): Set a module indicator.
41576         (Makefile.am): Substitute GNULIB_CLOSE.
41577         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
41578         * modules/poll-tests (Depends-on): Add close.
41579         * modules/select-tests (Depends-on): Likewise.
41580
41581 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41582             Bruno Haible  <bruno@clisp.org>
41583
41584         New module 'close'.
41585         * modules/close: New file.
41586         * lib/unistd.in.h (close): Move declaration out of the
41587         FCHDIR_REPLACEMENT scope.
41588         (_gl_unregister_fd): New declaration.
41589         * lib/close.c: New file.
41590         * lib/fchdir.c (rpl_close): Remove function.
41591         * m4/close.m4: New file.
41592         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41593         close.
41594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
41595         REPLACE_CLOSE.
41596         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
41597         REPLACE_CLOSE.
41598         * modules/fchdir (Depends-on): Add close.
41599
41600 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41601             Bruno Haible  <bruno@clisp.org>
41602
41603         * lib/fcntl.in.h (open): Simplify conditionals.
41604         (_gl_register_fd): New declaration.
41605         * lib/fchdir.c (rpl_open): Remove function.
41606         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
41607         also.
41608         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
41609         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41610         open.
41611
41612 2008-10-09  Jim Meyering  <meyering@redhat.com>
41613
41614         GNUmakefile: use the more name-space-friendly "_version"
41615         * top/GNUmakefile (_dummy): Update.
41616         (_version): Rename from "version".
41617
41618 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41619             Bruno Haible  <bruno@clisp.org>
41620
41621         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
41622         rpl_close.
41623         (_gl_register_fd): New function, extracted from rpl_open.
41624         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
41625         (rpl_open, rpl_opendir): Use _gl_register_fd.
41626
41627 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41628
41629         Fix organization of 'open' replacement.
41630         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
41631         (gl_FUNC_OPEN): Use it.
41632         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
41633
41634 2008-10-08  Bruno Haible  <bruno@clisp.org>
41635
41636         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
41637
41638 2008-10-08  Simon Josefsson  <simon@josefsson.org>
41639
41640         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
41641         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
41642         listen).
41643
41644 2008-10-08  Eric Blake  <ebb9@byu.net>
41645
41646         GNUmakefile: add 'make version' target
41647         * top/GNUmakefile (_curr-ver): Split version update rules...
41648         (version): ...into a target.
41649
41650 2008-10-07  Bruno Haible  <bruno@clisp.org>
41651
41652         Use a more portable replacement expression for -0.0L.
41653         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
41654         instead of -0.0L. Fix m4 quotation.
41655
41656         * tests/test-signbit.c: Include <float.h>.
41657         (minus_zero): New variable.
41658         (test_signbitl): Use minus_zero instead of -zero.
41659         * modules/signbit-tests (Depends-on): Add float.
41660
41661         * tests/test-ceill.c: Include <float.h>.
41662         (zero): Remove variable.
41663         (minus_zero): New variable.
41664         (main): Use minus_zero instead of -zero.
41665         * modules/ceill-tests (Depends-on): Add float.
41666
41667         * tests/test-floorl.c: Include <float.h>.
41668         (zero): Remove variable.
41669         (minus_zero): New variable.
41670         (main): Use minus_zero instead of -zero.
41671         * modules/floorl-tests (Depends-on): Add float.
41672
41673         * tests/test-roundl.c: Include <float.h>.
41674         (zero): Remove variable.
41675         (minus_zero): New variable.
41676         (main): Use minus_zero instead of -zero.
41677         * modules/roundl-tests (Depends-on): Add float.
41678
41679         * tests/test-truncl.c: Include <float.h>.
41680         (zero): Remove variable.
41681         (minus_zero): New variable.
41682         (main): Use minus_zero instead of -zero.
41683         * modules/truncl-tests (Depends-on): Add float.
41684
41685         * tests/test-frexpl.c (zero): Remove variable.
41686         (minus_zero): New variable.
41687         (main): Use minus_zero instead of -zero.
41688         * modules/frexpl-tests (Depends-on): Add float.
41689
41690         * tests/test-isnan.c (zerol): Remove variable.
41691         (minus_zerol): New variable.
41692         (test_long_double): Use minus_zerol instead of -zerol.
41693         * modules/isnan-tests (Depends-on): Add float.
41694
41695         * tests/test-isnanl.h (zero): Remove variable.
41696         (minus_zero): New variable.
41697         (main): Use minus_zero instead of -zero.
41698         * modules/isnanl-nolibm-tests (Depends-on): Add float.
41699         * modules/isnanl-tests (Depends-on): Add float.
41700
41701         * tests/test-ldexpl.c (zero): Remove variable.
41702         (minus_zero): New variable.
41703         (main): Use minus_zero instead of -zero.
41704         * modules/ldexpl-tests (Depends-on): Add float.
41705
41706         * tests/test-snprintf-posix.h (zerol): Remove variable.
41707         (minus_zerol): New variable.
41708         (test_function): Use minus_zerol instead of -zerol.
41709         * modules/snprintf-posix-tests (Depends-on): Add float.
41710         * modules/vsnprintf-posix-tests (Depends-on): Add float.
41711
41712         * tests/test-sprintf-posix.h (zerol): Remove variable.
41713         (minus_zerol): New variable.
41714         (test_function): Use minus_zerol instead of -zerol.
41715         * modules/sprintf-posix-tests (Depends-on): Add float.
41716         * modules/vsprintf-posix-tests (Depends-on): Add float.
41717
41718         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
41719         (minus_zerol): New variable.
41720         (test_function): Use minus_zerol instead of -zerol.
41721         * modules/vasnprintf-posix-tests (Depends-on): Add float.
41722
41723         * tests/test-vasprintf-posix.c (zerol): Remove variable.
41724         (minus_zerol): New variable.
41725         (test_function): Use minus_zerol instead of -zerol.
41726         * modules/vasprintf-posix-tests (Depends-on): Add float.
41727
41728 2008-10-07  Simon Josefsson  <simon@josefsson.org>
41729
41730         * MODULES.html.sh (Support for building documentation): Mention
41731         pmccabe2html.  Sort entries.
41732
41733         Add pmccabe2html module, from gnupdf.
41734         * build-aux/pmccabe.css: New file.
41735         * build-aux/pmccabe2html: New file.
41736         * m4/pmccabe2html.m4: New file.
41737         * modules/pmccabe2html: New file.
41738
41739 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
41740
41741         flock: new module
41742         * MODULES.html.sh: Add to list of modules.
41743         * lib/flock.c: flock implementation for Windows and Unix systems
41744         which have fcntl.
41745         * doc/glibc-functions/flock.texi: Update documentation.
41746         * lib/sys_file.in.h: <sys/file.h> header file.
41747         * m4/flock.m4: M4 macros.
41748         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
41749         * modules/flock: flock module.
41750         * modules/flock-tests: flock tests module.
41751         * modules/sys_file: sys/file.h module.
41752         * tests/test-flock.c: test suite for flock.
41753
41754 2008-10-06  Jim Meyering  <meyering@redhat.com>
41755
41756         bootstrap: check for LT_INIT more portably still ;-)
41757         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
41758         Spotted by Bruno Haible.
41759
41760 2008-10-06  Eric Blake  <ebb9@byu.net>
41761
41762         test-signbit: avoid tripping Irix cc bug on -0.0L
41763         * tests/test-signbit.c (minus_zerol): Delete, and replace with
41764         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
41765         entire testsuite consistent and avoids an Irix 6.2 bug.
41766
41767 2008-10-05  Bruno Haible  <bruno@clisp.org>
41768             Jim Meyering  <jim@meyering.net>
41769
41770         Add an option for ignoring EPIPE during close_stdout.
41771         * lib/closeout.h: Include <stdbool.h>.
41772         (close_stdout_set_ignore_EPIPE): New declaration.
41773         * lib/closeout.c: Include <stdbool.h>.
41774         (ignore_EPIPE): New variable.
41775         (close_stdout_set_ignore_EPIPE): New function.
41776         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
41777         * lib/close-stream.c (close_stream): Mention the possible EPIPE
41778         failure.
41779         * modules/closeout (Depends-on): Add stdbool.
41780
41781 2008-10-05  Bruno Haible  <bruno@clisp.org>
41782
41783         * modules/accept: New file.
41784         * modules/bind: New file.
41785         * modules/connect: New file.
41786         * modules/getpeername: New file.
41787         * modules/getsockname: New file.
41788         * modules/getsockopt: New file.
41789         * modules/listen: New file.
41790         * modules/recv: New file.
41791         * modules/recvfrom: New file.
41792         * modules/send: New file.
41793         * modules/sendto: New file.
41794         * modules/setsockopt: New file.
41795         * modules/socket: New file.
41796         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
41797         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
41798         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
41799         the particular module is requested. Add a link warning when the
41800         particular module is not requested.
41801         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
41802         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
41803         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
41804         the particular module is requested.
41805         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
41806         gl_SYS_SOCKET_H_DEFAULTS): New macros.
41807         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
41808         * modules/sys_socket (Depends-on): Add link-warning.
41809         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
41810         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
41811         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
41812         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
41813         GL_LINK_WARNING.
41814         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
41815         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
41816         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
41817         * doc/posix-functions/getpeername.texi: Mention the new module
41818         'getpeername'.
41819         * doc/posix-functions/getsockname.texi: Mention the new module
41820         'getsockname'.
41821         * doc/posix-functions/getsockopt.texi: Mention the new module
41822         'getsockopt'.
41823         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
41824         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
41825         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
41826         * doc/posix-functions/send.texi: Mention the new module 'send'.
41827         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
41828         * doc/posix-functions/setsockopt.texi: Mention the new module
41829         'setsockopt'.
41830         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
41831         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
41832         listen, connect, accept.
41833         * modules/select-tests (Depends-on): Likewise.
41834
41835 2008-10-05  Bruno Haible  <bruno@clisp.org>
41836
41837         * lib/winsock.c (strerror): Remove unused #undef.
41838         (rpl_close): Remove unused local variable.
41839
41840         * modules/sys_socket (Depends-on); Add errno.
41841
41842 2008-10-05  Bruno Haible  <bruno@clisp.org>
41843
41844         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
41845         (select): Add a link warning when the 'select' module is not used.
41846         * modules/sys_select (Depends-on): Add link-warning.
41847         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
41848         Suggested by Paolo Bonzini.
41849
41850 2008-10-05  Jim Meyering  <meyering@redhat.com>
41851
41852         bootstrap: check for LT_INIT more portably
41853         * build-aux/bootstrap: Avoid using grep -E, since it's not
41854         portable enough.  Suggestion from Bruno Haible.
41855
41856 2008-10-05  Bruno Haible  <bruno@clisp.org>
41857
41858         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
41859         as being fixed by gnulib.
41860
41861 2008-10-05  Bruno Haible  <bruno@clisp.org>
41862
41863         * modules/select-tests: New file, mostly copied from
41864         modules/sys_select-tests.
41865         * tests/test-select.c: New file, mostly copied from
41866         tests/test-sys_select.c.
41867         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
41868         * modules/sys_select-tests (Depends-on): Remove all dependencies.
41869         (Makefile.am): Remove test_sys_select_LDADD.
41870
41871         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
41872         to an undefined symbol, for an error message.
41873         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
41874         (gl_SYS_SELECT_H_DEFAULTS): New macro.
41875         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
41876         winsock-select.c here.
41877         * modules/sys_select (Files): Remove lib/winsock-select.c.
41878         (Depends-on): Remove alloca.
41879         (Makefile.am): Substitute GNULIB_SELECT.
41880         * modules/select: New file.
41881         * doc/posix-functions/select.texi: Update.
41882
41883 2008-10-05  Bruno Haible  <bruno@clisp.org>
41884
41885         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
41886         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
41887         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
41888         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
41889         getdtablesize.
41890         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
41891         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
41892
41893 2008-10-05  Bruno Haible  <bruno@clisp.org>
41894
41895         * modules/getdtablesize-tests: New file.
41896         * tests/test-getdtablesize.c: New file.
41897
41898         New module 'getdtablesize'.
41899         * lib/unistd.in.h (getdtablesize): New declaration.
41900         * lib/getdtablesize.c: New file.
41901         * m4/getdtablesize.m4: New file.
41902         * modules/getdtablesize: New file.
41903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41904         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
41905         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
41906         HAVE_GETDTABLESIZE.
41907         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
41908
41909 2008-10-05  Bruno Haible  <bruno@clisp.org>
41910
41911         * modules/sched (Makefile.am): Fix typo.
41912         Reported by Simon Josefsson.
41913
41914 2008-10-05  Jim Meyering  <meyering@redhat.com>
41915
41916         bootstrap: check for LT_INIT, too
41917         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
41918         are deprecated.  Suggestion from Ralf Wildenhues.
41919
41920 2008-10-05  Bruno Haible  <bruno@clisp.org>
41921
41922         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
41923         overriding them by ours.
41924         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
41925
41926 2008-10-05  Jim Meyering  <meyering@redhat.com>
41927
41928         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
41929         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
41930         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
41931
41932 2008-10-04  Bruno Haible  <bruno@clisp.org>
41933
41934         * modules/dup2 (License): Change to LGPLv2+.
41935         * modules/sleep (License): Likewise.
41936         * modules/perror (License): Likewise.
41937         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
41938         Blake.
41939         * modules/signal (License): Likewise.
41940         * modules/sigprocmask (License): Likewise.
41941         * modules/raise (License): Change to LGPLv2+, with approval by Jim
41942         Meyering.
41943
41944 2008-10-04  Bruno Haible  <bruno@clisp.org>
41945
41946         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
41947         Reported by Rainer Tammer <tammer@tammer.net>.
41948
41949 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
41950             Bruno Haible  <bruno@clisp.org>
41951
41952         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
41953         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
41954         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
41955
41956 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
41957
41958         filevercmp: new module
41959         * lib/filevercmp.h: New function filevercmp comparing version strings.
41960         * lib/filevercmp.c: Implementation of filevercmp function.
41961         * modules/filevercmp: Module metadata.
41962         * tests/test-filevercmp.c: Unit test for new module.
41963         * modules/filevercmp-tests: Unit test metadata.
41964         * MODULES.html.sh: Add filevercmp module.
41965
41966 2008-10-03  Bruno Haible  <bruno@clisp.org>
41967
41968         * lib/c-ctype.h: Add comment.
41969         Reported by Jim Meyering.
41970
41971 2008-10-02  Bruno Haible  <bruno@clisp.org>
41972
41973         * modules/posix_spawn-internal (Depends-on): Add 'open'.
41974
41975 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41976
41977         * build-aux/bootstrap: Allow renaming bootstrap, and change the
41978         name of bootstrap.conf accordingly.
41979
41980 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41981
41982         * build-aux/bootstrap: Install git-merge-changelog configuration
41983         items into .gitconfig if needed.
41984
41985 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41986
41987         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
41988         git repository, and initialize/update it accordingly.
41989
41990 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
41991
41992         * modules/fsync-tests: New file.
41993         * tests/test-fsync.c: New file.
41994
41995         New module 'fsync'.
41996         * lib/fsync.c: New file.
41997         * m4/fsync.m4: New file.
41998         * modules/fsync: New file.
41999         * lib/unistd.in.h (fsync): New declaration.
42000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42001         GNULIB_FSYNC and HAVE_FSYNC.
42002         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42003         * MODULES.html.sh (posix_functions): Add fsync.
42004         * doc/posix-functions/fsync.texi: Mention the new module.
42005
42006 2008-10-02  Jim Meyering  <meyering@redhat.com>
42007
42008         fts.c: sync with similar code from coreutils' remove.c
42009         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42010         Guard also with "#if defined __linux__", since for now at least,
42011         this code is Linux-kernel-specific.
42012
42013 2008-10-02  Jim Meyering  <meyering@redhat.com>
42014
42015         fts: bug fixes
42016         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42017         Include <sys/vfs.h>, not <sys/statfs.h>.
42018
42019         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42020         Include <sys/vfs.h>, not <sys/statfs.h>.
42021
42022 2008-10-01  Bruno Haible  <bruno@clisp.org>
42023
42024         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42025         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42026         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42027         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42028         * doc/posix-functions/posix_spawnp.texi: Likewise.
42029         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42030         whether posix_spawn actually works.
42031         * m4/pipe.m4 (gl_PIPE): Likewise.
42032         * modules/execute (Files): Add m4/posix_spawn.m4.
42033         * modules/pipe (Files): Add m4/posix_spawn.m4.
42034         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42035
42036 2008-10-01  Jim Meyering  <meyering@redhat.com>
42037
42038         remove trailing spaces
42039         * NEWS: Likewise.
42040         * lib/poll.c (poll): Likewise.
42041         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42042         * lib/winsock.c (rpl_close): Likewise.
42043         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42044         * modules/yield: Likewise.
42045         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42046         * tests/test-sys_select.c (connect_to_socket): Likewise.
42047
42048         fts.c: adjust a new interface to be more generally useful
42049         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42050         (fts_build): Adjust caller.
42051
42052 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42053
42054         * modules/cond-tests: New file.
42055         * tests/test-cond.c: New file.
42056
42057 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42058             Bruno Haible  <bruno@clisp.org>
42059
42060         * modules/cond (Dependencies): Add errno, time.
42061         * lib/glthread/cond.h: Include <time.h>.
42062         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42063         across platforms.
42064
42065 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42066             Bruno Haible  <bruno@clisp.org>
42067
42068         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42069
42070 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42071             Bruno Haible  <bruno@clisp.org>
42072
42073         * modules/tls-tests (Depends-on): Add thread, yield.
42074         (configure.ac): Remove all checks.
42075         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42076         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42077         gl_thread_self): Remove definitions. Include glthread/thread.h and
42078         glthread/yield.h instead.
42079         (test_tls): Pass an additional NULL argument to gl_thread_join.
42080
42081 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42082             Bruno Haible  <bruno@clisp.org>
42083
42084         * modules/lock-tests (Depends-on): Add thread, yield.
42085         (configure.ac): Remove all checks.
42086         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42087         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42088         gl_thread_self): Remove definitions. Include glthread/thread.h and
42089         glthread/yield.h instead.
42090         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42091         additional NULL argument to gl_thread_join.
42092
42093 2008-09-30  Bruno Haible  <bruno@clisp.org>
42094
42095         Fix the Win32 implementation of the 'thread' module.
42096         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42097         pointer type.
42098         (gl_thread_self): Invoke gl_thread_self_func.
42099         (gl_thread_self_func): New declaration.
42100         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42101         (do_init_self_key, init_self_key): New functions.
42102         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42103         Remove some fields.
42104         (running_threads, running_lock): Remove variables.
42105         (get_current_thread_handle): New function.
42106         (gl_thread_self_func, wrapper_func, glthread_create_func,
42107         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42108         simplified.
42109
42110 2008-09-30  Bruno Haible  <bruno@clisp.org>
42111
42112         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42113         files.
42114
42115 2008-09-30  Jim Meyering  <meyering@redhat.com>
42116
42117         fts.m4: correct the test for statfs.f_type
42118         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42119         when checking for statfs.f_type.
42120
42121 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42122
42123         tests: avoid some compiler warnings
42124         * tests/test-memchr.c (main): Pass NULL indirectly.
42125         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42126
42127 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42128
42129         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42130         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42131         exactly specified dayshifts.
42132         (dayshift): New rule.
42133         (rel): Add dayshift.
42134         (relative_time_table) [tomorrow, yesterday, today, now]:
42135         Use tDAY_SHIFT in place of tDAY_UNIT.
42136         * tests/test-getdate.c: Add tests for now-disallowed countable
42137         dayshifts, e.g., "4 yesterday ago".
42138
42139 2008-09-29  Bruno Haible  <bruno@clisp.org>
42140
42141         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42142         * tests/test-posix_spawn1.in.sh: Renamed from
42143         tests/test-posix_spawn.in.sh.
42144         * tests/test-posix_spawn2.c: New file.
42145         * tests/test-posix_spawn2.in.sh: New file.
42146         * modules/posix_spawnp-tests (Files): Update.
42147         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
42148
42149 2008-09-29  Bruno Haible  <bruno@clisp.org>
42150
42151         Propagate effects of putenv/setenv/unsetenv to child processes.
42152         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
42153         * lib/pipe.c (create_pipe): Likewise.
42154
42155 2008-09-29  Bruno Haible  <bruno@clisp.org>
42156
42157         Enable use of shell scripts as executables in mingw.
42158         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
42159         run the program as a shell script.
42160         * lib/pipe.c (create_pipe): Likewise.
42161         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
42162         resulting array.
42163
42164 2008-09-29  Eric Blake  <ebb9@byu.net>
42165
42166         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
42167
42168 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
42169
42170         * doc/posix-functions/accept.texi: Update mingw problems.
42171         * doc/posix-functions/bind.texi: Update mingw problems.
42172         * doc/posix-functions/close.texi: Update mingw problems.
42173         * doc/posix-functions/connect.texi: Update mingw problems.
42174         * doc/posix-functions/getpeername.texi: Update mingw problems.
42175         * doc/posix-functions/getsockname.texi: Update mingw problems.
42176         * doc/posix-functions/getsockopt.texi: Update mingw problems.
42177         * doc/posix-functions/ioctl.texi: Update mingw problems.
42178         * doc/posix-functions/listen.texi: Update mingw problems.
42179         * doc/posix-functions/recv.texi: Update mingw problems.
42180         * doc/posix-functions/recvfrom.texi: Update mingw problems.
42181         * doc/posix-functions/select.texi: Update mingw problems.
42182         * doc/posix-functions/send.texi: Update mingw problems.
42183         * doc/posix-functions/sendto.texi: Update mingw problems.
42184         * doc/posix-functions/setsockopt.texi: Update mingw problems.
42185         * doc/posix-functions/socket.texi: Update mingw problems.
42186
42187 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
42188             Bruno Haible  <bruno@clisp.org>
42189
42190         * lib/sys_select.in.h: Include sys/time.h.
42191         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
42192         * modules/sys_select: Depend on sys_time.
42193         * tests/test-sys_select.c: Test that sys/select.h defines struct
42194         timeval fully.
42195
42196 2008-09-29  Bruno Haible  <bruno@clisp.org>
42197
42198         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
42199         * lib/sys_select.in.h: Likewise.
42200
42201 2008-09-29  Bruno Haible  <bruno@clisp.org>
42202
42203         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
42204
42205 2008-09-29  Bruno Haible  <bruno@clisp.org>
42206
42207         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
42208         Set LIBSOCKET instead of augmenting LIBS.
42209         * modules/sockets (Link): New section.
42210         * modules/sockets-tests (test_sockets_LDADD): New variable.
42211         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
42212         * modules/poll-tests (test_poll_LDADD): New variable.
42213         * NEWS: Document the change.
42214
42215 2008-09-29  Bruno Haible  <bruno@clisp.org>
42216
42217         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
42218         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
42219         ARPA_INET_H directly.
42220         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42221
42222 2008-09-28  Bruno Haible  <bruno@clisp.org>
42223
42224         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
42225         from gl_HEADER_SYS_SOCKET.
42226         (gl_HEADER_SYS_SOCKET): Invoke it.
42227         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42228
42229 2008-09-28  Bruno Haible  <bruno@clisp.org>
42230
42231         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
42232         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
42233         Needed on OSF/1 4.0.
42234
42235 2008-09-28  Bruno Haible  <bruno@clisp.org>
42236
42237         Override open more carefully.
42238         * lib/open.c (orig_open): New function.
42239         (rpl_open): Use orig_open instead of open.
42240         * lib/fcntl.in.h: Add special invocation convention.
42241         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
42242         (gl_FUNC_OPEN): Invoke it.
42243
42244         Override freopen more carefully.
42245         * lib/freopen.c (orig_freopen): New function.
42246         (rpl_freopen): Use orig_freopen instead of freopen.
42247         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
42248         (gl_FUNC_FREOPEN): Invoke it.
42249
42250         Override fopen more carefully.
42251         * lib/fopen.c (orig_fopen): New function.
42252         (rpl_fopen): Use orig_fopen instead of fopen.
42253         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
42254         (gl_FUNC_FOPEN): Invoke it.
42255         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
42256
42257 2008-09-28  Bruno Haible  <bruno@clisp.org>
42258
42259         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
42260         SIGPIPE.
42261
42262 2008-09-28  Bruno Haible  <bruno@clisp.org>
42263
42264         * tests/test-sigaction.c (handler, main): Disable the check whether
42265         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
42266         glibc systems with LinuxThreads.
42267
42268 2008-09-28  Bruno Haible  <bruno@clisp.org>
42269
42270         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
42271
42272         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
42273         with AIX xlc.
42274         * lib/fcntl.in.h (open): Likewise.
42275         Reported by Rainer Tammer <tammer@tammer.net>.
42276
42277 2008-09-28  Bruno Haible  <bruno@clisp.org>
42278
42279         * modules/posix_spawnp-tests: New file.
42280         * tests/test-posix_spawn.c: New file.
42281         * tests/test-posix_spawn.in.sh: New file.
42282
42283         New module 'posix_spawnp'.
42284         * modules/posix_spawnp: New file.
42285         * lib/spawnp.c: New file, from GNU libc with modifications.
42286         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42287
42288         New module 'posix_spawn'.
42289         * modules/posix_spawn: New file.
42290         * lib/spawn.c: New file, from GNU libc with modifications.
42291         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42292
42293         New module 'posix_spawnattr_destroy'.
42294         * modules/posix_spawnattr_destroy: New file.
42295         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42296         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42297         module.
42298
42299         New module 'posix_spawnattr_setsigmask'.
42300         * modules/posix_spawnattr_setsigmask: New file.
42301         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42302         modifications.
42303         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42304         new module.
42305
42306         New module 'posix_spawnattr_getsigmask'.
42307         * modules/posix_spawnattr_getsigmask: New file.
42308         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
42309         modifications.
42310         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
42311         new module.
42312
42313         New module 'posix_spawnattr_setsigdefault'.
42314         * modules/posix_spawnattr_setsigdefault: New file.
42315         * lib/spawnattr_setdefault.c: New file, from GNU libc with
42316         modifications.
42317         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
42318         new module.
42319
42320         New module 'posix_spawnattr_getsigdefault'.
42321         * modules/posix_spawnattr_getsigdefault: New file.
42322         * lib/spawnattr_getdefault.c: New file, from GNU libc with
42323         modifications.
42324         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
42325         new module.
42326
42327         New module 'posix_spawnattr_setschedpolicy'.
42328         * modules/posix_spawnattr_setschedpolicy: New file.
42329         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
42330         modifications.
42331         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
42332         new module.
42333
42334         New module 'posix_spawnattr_getschedpolicy'.
42335         * modules/posix_spawnattr_getschedpolicy: New file.
42336         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
42337         modifications.
42338         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
42339         new module.
42340
42341         New module 'posix_spawnattr_setschedparam'.
42342         * modules/posix_spawnattr_setschedparam: New file.
42343         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
42344         modifications.
42345         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
42346         new module.
42347
42348         New module 'posix_spawnattr_getschedparam'.
42349         * modules/posix_spawnattr_getschedparam: New file.
42350         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
42351         modifications.
42352         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
42353         new module.
42354
42355         New module 'posix_spawnattr_setpgroup'.
42356         * modules/posix_spawnattr_setpgroup: New file.
42357         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
42358         modifications.
42359         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
42360         module.
42361
42362         New module 'posix_spawnattr_getpgroup'.
42363         * modules/posix_spawnattr_getpgroup: New file.
42364         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
42365         modifications.
42366         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
42367         module.
42368
42369         New module 'posix_spawnattr_setflags'.
42370         * modules/posix_spawnattr_setflags: New file.
42371         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
42372         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
42373         module.
42374
42375         New module 'posix_spawnattr_getflags'.
42376         * modules/posix_spawnattr_getflags: New file.
42377         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
42378         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
42379         module.
42380
42381         New module 'posix_spawnattr_init'.
42382         * modules/posix_spawnattr_init: New file.
42383         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
42384         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
42385         module.
42386
42387         New module 'posix_spawn_file_actions_destroy'.
42388         * modules/posix_spawn_file_actions_destroy: New file.
42389         * lib/spawn_faction_destroy.c: New file, from GNU libc with
42390         modifications.
42391         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
42392         the new module.
42393
42394         New module 'posix_spawn_file_actions_addopen'.
42395         * modules/posix_spawn_file_actions_addopen: New file.
42396         * lib/spawn_faction_addopen.c: New file, from GNU libc with
42397         modifications.
42398         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42399         the new module.
42400
42401         New module 'posix_spawn_file_actions_adddup2'.
42402         * modules/posix_spawn_file_actions_adddup2: New file.
42403         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
42404         modifications.
42405         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42406         the new module.
42407
42408         New module 'posix_spawn_file_actions_addclose'.
42409         * modules/posix_spawn_file_actions_addclose: New file.
42410         * lib/spawn_faction_addclose.c: New file, from GNU libc with
42411         modifications.
42412         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42413         the new module.
42414
42415         New module 'posix_spawn_file_actions_init'.
42416         * modules/posix_spawn_file_actions_init: New file.
42417         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
42418         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
42419         new module.
42420
42421         New module 'posix_spawn-internal'.
42422         * modules/posix_spawn-internal: New file.
42423         * lib/spawn_int.h: New file, from GNU libc with modifications.
42424         * lib/spawni.c: New file, from GNU libc with modifications.
42425         * m4/posix_spawn.m4: New file.
42426
42427         New module 'spawn'.
42428         * modules/spawn: New file.
42429         * lib/spawn.in.h: New file, from GNU libc with modifications.
42430         * m4/spawn_h.m4: New file.
42431         * doc/posix-headers/spawn.texi: Mention the new module.
42432
42433 2008-09-28  Bruno Haible  <bruno@clisp.org>
42434
42435         * modules/sched-tests: New file.
42436         * tests/test-sched.c: New file.
42437
42438         New module 'sched'.
42439         * modules/sched: New file.
42440         * lib/sched.in.h: New file.
42441         * m4/sched_h.m4: New file.
42442         * doc/posix-headers/sched.texi: Mention the new module.
42443
42444 2008-09-27  Eric Blake  <ebb9@byu.net>
42445
42446         Fix previous patch, and tweak references to $0.
42447         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
42448         (func_version, func_gnulib_dir): Don't call this program
42449         gnulib-tool.
42450         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
42451         with using $0 in function.
42452         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
42453         (func_fatal_error): Reuse the name the user invoked us with.
42454
42455 2008-09-27  Bruno Haible  <bruno@clisp.org>
42456
42457         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
42458         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
42459         (gl_ICONV_H): Not here.
42460         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
42461         instead of assigning ICONV_H directly.
42462
42463         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
42464         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
42465         WCHAR_H directly.
42466
42467 2008-09-27  Bruno Haible  <bruno@clisp.org>
42468
42469         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
42470         * modules/arpa_inet (Depends-on): Add link-warning.
42471         (Makefile.am): Insert the definition of GL_LINK-WARNING.
42472         * modules/unistd (Makefile.am): Likewise.
42473
42474 2008-09-26  Bruno Haible  <bruno@clisp.org>
42475
42476         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
42477         variables.
42478         (func_version): Essentially copied from gnulib-tool.
42479         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
42480         func_readlink): Copied from gnulib-tool.
42481
42482 2008-09-26  Bruno Haible  <bruno@clisp.org>
42483
42484         * gnulib-tool (func_version): Change directory to $gnulib_dir before
42485         invoking git-version-gen.
42486
42487 2008-09-26  Bruno Haible  <bruno@clisp.org>
42488
42489         * posix-modules: Update to directory names changed on 2008-01-19.
42490         Remove commas in output before splitting into words. No more need to
42491         avoid 'ftruncate' since 2007-02-19.
42492
42493 2008-09-26  Bruno Haible  <bruno@clisp.org>
42494
42495         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
42496
42497 2008-09-26  Bruno Haible  <bruno@clisp.org>
42498
42499         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
42500         * modules/fwriteerror (Depends-on): Add errno.
42501
42502 2008-09-26  Bruno Haible  <bruno@clisp.org>
42503
42504         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
42505         * tests/test-vc-list-files-cvs.sh: Likewise.
42506
42507 2008-09-26  Bruno Haible  <bruno@clisp.org>
42508
42509         * doc/posix-headers/sys_resource.texi: Reorder items.
42510
42511 2008-09-26  Jim Meyering  <meyering@redhat.com>
42512
42513         fts: tweak inode comparison function
42514         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
42515         inode numbers, as documented.
42516
42517         fts: sort dirent entries on inode number before traversing
42518         This avoids a quadratic, seek-related performance penalty when
42519         operating on a directory containing many entries (measurable at 10k;
42520         3.5 hours at 2 million entries with a cold cache) on certain types
42521         of file systems, including ext3 and ext4, but not tmpfs.
42522         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
42523         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
42524         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
42525         (fs_handles_readdir_ordered_dirents_efficiently): New function.
42526         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
42527         (fts_build): Set the stat.st_ino member from D_INO.
42528         If it is likely to be useful, sort dirent entries on inode number.
42529
42530         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
42531         and the struct statfs.f_type member.
42532         * modules/fts (Depends-on): Add d-ino.
42533
42534 2008-09-26  Bruno Haible  <bruno@clisp.org>
42535
42536         * modules/sigpipe-die (Depends-on): Add sigpipe.
42537
42538         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
42539         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
42540         and GNULIB_STDIO_H_SIGPIPE are set.
42541         * lib/stdio-write.c: New file.
42542         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
42543         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42544         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42545         REPLACE_STDIO_WRITE_FUNCS.
42546         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
42547         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42548         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42549         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42550         * modules/stdio (Files): Add lib/stdio-write.c.
42551         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
42552         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42553         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42554         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42555         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
42556         REPLACE_FPRINTF_POSIX.
42557         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
42558         REPLACE_PRINTF_POSIX.
42559         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
42560         REPLACE_VFPRINTF_POSIX.
42561         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
42562         REPLACE_VPRINTF_POSIX.
42563         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
42564         SIGPIPE issue.
42565         * doc/posix-functions/fputc.texi: Likewise.
42566         * doc/posix-functions/fputs.texi: Likewise.
42567         * doc/posix-functions/fwrite.texi: Likewise.
42568         * doc/posix-functions/printf.texi: Likewise.
42569         * doc/posix-functions/putc.texi: Likewise.
42570         * doc/posix-functions/putchar.texi: Likewise.
42571         * doc/posix-functions/puts.texi: Likewise.
42572         * doc/posix-functions/vfprintf.texi: Likewise.
42573         * doc/posix-functions/vprintf.texi: Likewise.
42574
42575         * modules/safe-write (Depends-on): Add write.
42576
42577         * modules/sigpipe-tests: New file.
42578         * tests/test-sigpipe.c: New file.
42579         * tests/test-sigpipe.sh: New file.
42580
42581         * modules/write: New file.
42582         * lib/unistd.in.h: Include <sys/types.h>.
42583         (write): New declaration.
42584         * lib/write.c: New file.
42585         * m4/write.m4: New file.
42586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42587         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
42588         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
42589         GNULIB_WRITE, REPLACE_WRITE.
42590         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
42591         and the SIGPIPE issue.
42592
42593         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
42594         (raise): New declaration.
42595         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
42596         (ext_signal): New function.
42597         (rpl_raise): New function.
42598         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42599         GNULIB_SIGNAL_H_SIGPIPE.
42600         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
42601         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
42602
42603         * modules/sigpipe: New file.
42604         * m4/sigpipe.m4: New file.
42605
42606 2008-09-25  Derek Price  <derek@ximbiot.com>
42607             Bruno Haible  <bruno@clisp.org>
42608
42609         * gnulib-tool (func_import): Report all license incompatibilities, not
42610         just the first one.
42611
42612 2008-09-25  Bruno Haible  <bruno@clisp.org>
42613
42614         * gnulib-tool (func_import): When computing the edits, consider not
42615         only the Makefile.ams that exist but also those that will be generated.
42616
42617 2008-09-25  Simon Josefsson  <simon@josefsson.org>
42618
42619         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
42620         fixes gnulib-tool --test warning about duplicate dependency.
42621
42622 2008-09-25  Bruno Haible  <bruno@clisp.org>
42623
42624         * gnulib-tool: Don't ask the user to perform edits in the generated
42625         Makefile.ams.
42626         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
42627         apply to the Makefile.am being generated.
42628         (func_emit_tests_Makefile_am): Execute edits that apply to the
42629         Makefile.am being generated.
42630         (func_import): Setup list of Makefile.am edits before emitting the
42631         Makefile.ams, not at the end.
42632         (func_create_testdir): Update.
42633         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42634
42635 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42636
42637         * gnulib-tool (func_import): Store the --tests-base option in the
42638         comment in gnulib-cache.m4.
42639
42640 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
42641
42642         * NEWS: Document increased portability that sys_select now provides.
42643
42644         * lib/sys_select.in.h: Install select wrapper.
42645         * lib/sys_socket.in.h: Use more descriptive name when there is no
42646         select wrapper.
42647         * lib/winsock-select.c: New.
42648         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
42649         Require gl_HEADER_SYS_SOCKET.
42650         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
42651         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
42652         * tests/test-sys_select.c: Add functional tests.
42653
42654 2008-09-24  Eric Blake  <ebb9@byu.net>
42655
42656         open, fopen: close fd leak in last patch
42657         * lib/open.c (rpl_open): Close fd before returning error.
42658         * lib/fopen.c (rpl_fopen): Close fd before returning error.
42659         * doc/posix-functions/open.texi (open): Document that Irix also
42660         has the bug.
42661         * doc/posix-functions/fopen.texi (fopen): Likewise.
42662         Reported by Paolo Bonzini.
42663
42664 2008-09-24  Bruno Haible  <bruno@clisp.org>
42665
42666         Ensure that a filename ending in a slash cannot be used to access a
42667         non-directory.
42668         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
42669         to check whether it's really a directory.
42670         * lib/fopen.c: Include fcntl.h, unistd.h.
42671         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
42672         and fdopen().
42673         * modules/fopen (Depends-on): Add unistd.
42674         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
42675         * tests/test-fopen.c (main): Likewise.
42676         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
42677         * doc/posix-functions/fopen.texi: Likewise.
42678         Reported by Eric Blake.
42679
42680 2008-09-23  Eric Blake  <ebb9@byu.net>
42681
42682         c-stack: avoid compiler optimizations when provoking overflow
42683         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
42684         recursion harder to optimize, to ensure a stack overflow occurs.
42685         * tests/test-c-stack.c (recurse): Likewise.
42686         Borrowed from libsigsegv.
42687
42688         c-stack: work around Irix sigaltstack bug
42689         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
42690         whether sigaltstack uses wrong end of stack_t (copied in part from
42691         libsigsegv).
42692         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
42693         Irix bug, without requiring an over-allocation.
42694         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
42695         bug.
42696
42697         fopen: document mingw bug on directories
42698         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
42699         not allowing a stream visiting a directory, even though reading
42700         from such a stream is not portable.
42701
42702 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42703
42704         * lib/poll.c: Rewrite.
42705         * modules/poll: Depend on alloca.
42706
42707 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42708
42709         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
42710         instead define prototypes for a full set of wrappers.  Ensure
42711         that Cygwin does not use the compatibility code, which is only
42712         for MinGW.
42713         * lib/winsock.c: New.
42714         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
42715         * modules/sys_socket: Add lib/winsock.c.
42716
42717         * modules/poll-tests: Add errno and perror.
42718         * tests/test-poll.c: Use ioctl, not ioctlsocket.
42719
42720 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42721
42722         * tests/test-poll.c: Downgrade minimum needed Winsock version.
42723
42724 2008-09-23  Bruno Haible  <bruno@clisp.org>
42725
42726         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
42727         * doc/glibc-functions/*: Likewise.
42728
42729 2008-09-23  Simon Josefsson  <simon@josefsson.org>
42730
42731         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
42732         success.
42733
42734 2008-09-22  Eric Blake  <ebb9@byu.net>
42735             Bruno Haible  <bruno@clisp.org>
42736
42737         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
42738         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
42739         supply %A but mishandle pseudo-NaN.
42740         Reported by Simon Josefsson.
42741
42742 2008-09-21  Bruno Haible  <bruno@clisp.org>
42743
42744         * tests/test-lock.c (main): Tweak skip message.
42745         * tests/test-tls.c (main): Likewise.
42746
42747 2008-09-21  Bruno Haible  <bruno@clisp.org>
42748
42749         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
42750         whether 'struct sigaction' has sa_sigaction here...
42751         (gl_PREREQ_SIG_HANDLER_H): ... not here.
42752         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
42753
42754 2008-09-21  Bruno Haible  <bruno@clisp.org>
42755
42756         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
42757         section.
42758         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
42759         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
42760         the new section.
42761         (Support for obsolete systems lacking POSIX:2001): New section.
42762         (String handling <string.h>): Move strdup to the new section.
42763         Suggested by Simon Josefsson and Paolo Bonzini.
42764
42765 2008-09-21  Bruno Haible  <bruno@clisp.org>
42766
42767         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
42768         exponents in %e and %g results on 'long double'. Needed for mingw's
42769         improved *printf functions.
42770         * tests/test-vasprintf-posix.c (test_function): Likewise.
42771         * tests/test-snprintf-posix.h (test_function): Likewise.
42772         * tests/test-sprintf-posix.h (test_function): Likewise.
42773         Reported by Eric Blake.
42774
42775 2008-09-21  Bruno Haible  <bruno@clisp.org>
42776
42777         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
42778         * tests/test-sprintf-posix.h (test_function): Likewise.
42779
42780 2008-09-21  Bruno Haible  <bruno@clisp.org>
42781
42782         * modules/getpass (Depends-on): Add strdup-posix.
42783
42784         New module 'strdup-posix'.
42785         * modules/strdup-posix: New file.
42786         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
42787         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
42788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42789         REPLACE_STRDUP.
42790         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
42791         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
42792         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42793         strdup-posix.
42794
42795         * modules/strdup (Depends-on): Remove malloc-posix.
42796
42797 2008-09-20  Bruno Haible  <bruno@clisp.org>
42798
42799         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
42800         Wildenhues.
42801
42802 2008-09-20  Bruno Haible  <bruno@clisp.org>
42803
42804         Ensure that wint_t gets defined on IRIX 5.3.
42805         * lib/wchar.in.h (wint_t): Define if not defined by the system.
42806         * lib/wctype.in.h (wint_t): Likewise.
42807         (__wctype_wint_t): Remove type.
42808         (isw*): Use wint_t instead of __wctype_wint_t.
42809         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
42810         * modules/wchar (Files): Add m4/wint_t.m4.
42811         (Makefile.am): Substitute HAVE_WINT_T.
42812         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
42813         * tests/test-wctype.c: Check that wint_t is defined.
42814         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
42815         * doc/posix-headers/wctype.texi: Likewise.
42816         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42817
42818 2008-09-18  Bruno Haible  <bruno@clisp.org>
42819
42820         * gnulib-tool (func_exit): Update comment.
42821
42822 2008-09-18  Simon Josefsson  <simon@josefsson.org>
42823
42824         * modules/getaddrinfo (Depends-on): Remove strdup, this module
42825         assumes strdup exists and does not depend on strdup to return
42826         ENOMEM on out of memory conditions.
42827
42828 2008-09-18  Bruno Haible  <bruno@clisp.org>
42829
42830         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
42831         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
42832         digits for the exponent.
42833
42834 2008-09-18  Jim Meyering  <meyering@redhat.com>
42835             Bruno Haible  <bruno@clisp.org>
42836
42837         * lib/vasnprintf.c (decimal_point_char): Define also if
42838         NEED_PRINTF_INFINITE_LONG_DOUBLE.
42839
42840 2008-09-16  Bruno Haible  <bruno@clisp.org>
42841         and Eric Blake  <ebb9@byu.net>
42842
42843         vasnprintf: support Irix 5.3
42844         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
42845         that mishandle long double infinity.
42846         Reported by Tom G. Christensen.
42847
42848 2008-09-16  Bruno Haible  <bruno@clisp.org>
42849
42850         * doc/glibc-functions/scandir.texi: Mention the function is missing on
42851         Solaris 9.
42852         * doc/glibc-functions/alphasort.texi: Likewise.
42853         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
42854
42855 2008-09-16  Jim Meyering  <meyering@redhat.com>
42856
42857         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
42858         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
42859         a umask modification leak out of a subshell.  Otherwise, the
42860         opensolaris /bin/sh would be accepted and thus cause unwarranted
42861         failures in the coreutils test suite.
42862
42863 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
42864
42865         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
42866         to succeed.
42867
42868 2008-09-16  Jim Meyering  <meyering@redhat.com>
42869
42870         avoid spurious test failure when library is built without ACL support
42871         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
42872         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
42873         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
42874         * tests/test-copy-acl.sh: Likewise.
42875
42876 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42877
42878         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
42879         based on character occurrence counts.
42880
42881 2008-09-15  Eric Blake  <ebb9@byu.net>
42882
42883         tests: avoid some compiler warnings
42884         * tests/test-memchr.c (main): Pass NULL indirectly.
42885         * tests/test-closein.c (main): Avoid unused variable.
42886
42887 2008-09-15  Bruno Haible  <bruno@clisp.org>
42888
42889         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
42890         are missing on OpenBSD 4.0 individually.
42891         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42892
42893 2008-09-15  Bruno Haible  <bruno@clisp.org>
42894
42895         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
42896         * doc/posix-functions/strerror.texi: Mention also Cygwin.
42897         * doc/posix-functions/perror.texi: Likewise.
42898         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
42899         is missing.
42900         Reported by Eric Blake.
42901
42902         * lib/errno.in.h: Use replacement values >= 2000.
42903         Reported by Eric Blake.
42904
42905 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42906
42907         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
42908         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
42909         limit.
42910         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
42911         compareseq was aborted.
42912
42913 2008-09-14  Bruno Haible  <bruno@clisp.org>
42914
42915         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
42916         yvec_edit_count.
42917         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
42918         (fstrcmp_bounded): Simplify result computation accordingly.
42919
42920 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42921
42922         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
42923         (fstrcmp): Define in terms of fstrcmp_bounded.
42924         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
42925         lower_bound argument.
42926         Return quickly if the result is certainly < lower_bound.
42927         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
42928
42929 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42930
42931         * lib/diffseq.h (EARLY_ABORT): New macro.
42932         (compareseq): Change return type to bool. Return true when EARLY_ABORT
42933         evaluates to true.
42934
42935 2008-09-14  Bruno Haible  <bruno@clisp.org>
42936
42937         * modules/perror-tests: New file.
42938         * tests/test-perror.sh: New file.
42939         * tests/test-perror.c: New file.
42940
42941         New module 'perror'.
42942         * lib/stdio.in.h (perror): New declaration.
42943         * lib/perror.c: New file.
42944         * m4/perror.m4: New file.
42945         * modules/perror: New file.
42946         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
42947         * doc/posix-functions/perror.texi: Mention the perror module.
42948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
42949         REPLACE_PERROR.
42950         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
42951         REPLACE_PERROR.
42952
42953 2008-09-14  Bruno Haible  <bruno@clisp.org>
42954
42955         * modules/stdio (Makefile.am): Reorder to match the order in
42956         lib/stdio.in.h.
42957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42958
42959 2008-09-13  Bruno Haible  <bruno@clisp.org>
42960
42961         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
42962
42963 2008-09-13  Bruno Haible  <bruno@clisp.org>
42964
42965         Extend strerror to cover the added errno values.
42966         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
42967         (rpl_strerror): Provide error messages for the added errno values and
42968         for the WSA* values.
42969         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
42970         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
42971         strerror.
42972         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
42973         * modules/strerror (Depends-on): Add errno.
42974         * doc/posix-functions/strerror.texi: Document the change.
42975         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
42976         and EOVERFLOW.
42977
42978 2008-09-13  Bruno Haible  <bruno@clisp.org>
42979
42980         * modules/EOVERFLOW: Remove file.
42981         * m4/eoverflow.m4: Remove file.
42982         * modules/EOVERFLOW-tests: Remove file.
42983         * tests/test-EOVERFLOW.c: Remove file.
42984         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
42985         * modules/ftell (Depends-on): Likewise.
42986         * modules/getdelim (Depends-on): Likewise.
42987         * modules/getugroups (Depends-on): Likewise.
42988         * modules/poll (Depends-on): Likewise.
42989         * modules/snprintf (Depends-on): Likewise.
42990         * modules/sprintf-posix (Depends-on): Likewise.
42991         * modules/vasnprintf (Depends-on): Likewise.
42992         * modules/vasprintf (Depends-on): Likewise.
42993         * modules/vfprintf-posix (Depends-on): Likewise.
42994         * modules/vsnprintf (Depends-on): Likewise.
42995         * modules/vsprintf-posix (Depends-on): Likewise.
42996         * modules/xvasprintf (Depends-on): Likewise.
42997         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42998         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
42999         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43000         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43001         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43002         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43003         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43004         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43005         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43006         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43007         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43008         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43009         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43010         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43011         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43012         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43013         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43014         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43015         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43016         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43017         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43018         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43019         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43020         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43021         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43022         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43023         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43024         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43025         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43026         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43027         * MODULES.html.sh: Remove EOVERFLOW.
43028         * NEWS: Mention the change.
43029
43030 2008-09-13  Bruno Haible  <bruno@clisp.org>
43031
43032         * modules/errno-tests: New file.
43033         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43034
43035         * lib/errno.in.h: New file.
43036         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43037         * modules/errno: New file.
43038         * doc/posix-headers/errno.texi: Update documentation.
43039         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43040
43041 2008-09-13  Bruno Haible  <bruno@clisp.org>
43042
43043         * tests/test-poll.c: Use #if for native Windows, rather than testing
43044         __MSVCRT__.
43045
43046 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43047             Bruno Haible  <bruno@clisp.org>
43048
43049         * lib/glob.c: Don't include <pwd.h> on native Windows.
43050         (WINDOWS32): New macro.
43051         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43052
43053 2008-09-13  Bruno Haible  <bruno@clisp.org>
43054
43055         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43056         (ETIMEDOUT): Remove macro.
43057         (glthread_cond_timedwait_multithreaded): New declaration.
43058         (glthread_cond_timedwait): Use it.
43059         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43060         (glthread_cond_timedwait_multithreaded): New function.
43061
43062 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43063
43064         * modules/poll-tests: Do not check for io.h.
43065         * tests/test-poll.c: Check for __MSVCRT__ instead.
43066
43067 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43068
43069         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43070         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43071         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43072
43073 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43074
43075         * modules/poll-tests: New.
43076         * tests/test-poll.c: New.
43077
43078 2008-09-12  Eric Blake  <ebb9@byu.net>
43079
43080         frexp: test for NetBSD failure on -0.0
43081         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43082         not all, bugs from NetBSD 3.0 have been fixed.
43083         * doc/posix-functions/frexp.texi (frexp): Document bug.
43084         Reported by Thomas Klausner.
43085
43086         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43087         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43088         literal -0.0.
43089         Reported by Jonathan C. Patschke <jp@centtech.com>.
43090
43091 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43092
43093         * lib/glthread/cond.h: Use dummy implementation also if
43094         USE_WIN32_THREADS.
43095
43096 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43097
43098         * modules/fnmatch-posix (License): Change to LGPLv2+.
43099         * modules/fnmatch-gnu (License): Likewise.
43100
43101 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43102
43103         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43104
43105 2008-09-11  Jim Meyering  <meyering@redhat.com>
43106
43107         * users.txt: Add gtk-vnc.
43108
43109 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43110
43111         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43112         rotate amounts.
43113
43114         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43115         required for 16-bit and 8-bit rotates.
43116         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43117         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43118         UINT8_MAX instead of hard-coded constants.
43119         Suggested by Paul Eggert.
43120
43121 2008-09-07  Bruno Haible  <bruno@clisp.org>
43122
43123         * tests/test-striconveh.c (main): Check behaviour when converting from
43124         UTF-7.
43125
43126         Make striconveh work better with stateful encodings.
43127         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43128         that iconv does not increment the inptr when returning -1/EINVAL.
43129
43130 2008-09-07  Bruno Haible  <bruno@clisp.org>
43131
43132         * build-aux/config.rpath: Update according to libtool-2.2.6.
43133         * build-aux/config.libpath: Likewise.
43134
43135 2008-09-06  Bruno Haible  <bruno@clisp.org>
43136
43137         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43138         * lib/freadptr.c (freadptr): Likewise.
43139         * lib/freadseek.c (freadptrinc): Likewise.
43140         Reported by Simon Josefsson.
43141
43142 2008-09-06  Bruno Haible  <bruno@clisp.org>
43143
43144         * modules/freadptr (License): Change to LGPLv2+.
43145         * modules/freadseek (License): Likewise.
43146         Suggested by Eric Blake.
43147
43148         * modules/memchr2 (License): Change to LGPLv2+.
43149         Approved by Eric Blake.
43150
43151 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43152             Bruno Haible  <bruno@clisp.org>
43153
43154         Make gnulib-tool work with native 'sed' on AIX.
43155         * gnulib-tool (sed_noop): New variable.
43156         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
43157         func_add_or_update, func_create_testdir): Use it to initialize sed
43158         script variables.
43159         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43160
43161 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
43162             Bruno Haible  <bruno@clisp.org>
43163
43164         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
43165         also works after #include directives.
43166
43167 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
43168
43169         getdate.y: reject an out-of-range timezone value
43170         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
43171         the range [-24...+24].  When specified with only one or two digits,
43172         * tests/test-getdate.c: Tests for the fix.
43173         * doc/getdate.texi: Document this change.
43174
43175 2008-09-03  Bruno Haible  <bruno@clisp.org>
43176
43177         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
43178
43179 2008-09-02  Simon Josefsson  <simon@josefsson.org>
43180
43181         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
43182         <bruce.korb@gmail.com> with ideas from Ben Pfaff
43183         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
43184         Blake <ebb9@byu.net>.
43185
43186         * tests/test-bitrotate.c: Add more test vectors.
43187
43188 2008-09-02  Eric Blake  <ebb9@byu.net>
43189
43190         vasnprintf-posix: handle large precision via %.*d
43191         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
43192         when handling it ourselves.
43193         * tests/test-vasnprintf-posix.c (test_function): Add test.
43194         * tests/test-snprintf-posix.h (test_function): Likewise.
43195         * tests/test-sprintf-posix.h (test_function): Likewise.
43196         * tests/test-vasprintf-posix.c (test_function): Likewise.
43197         Reported by Alain Guibert.
43198
43199 2008-09-01  Eric Blake  <ebb9@byu.net>
43200
43201         c-stack: make configure-time check more robust
43202         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
43203         successful sigaction call.
43204         Reported by Tom G. Christensen.
43205
43206 2008-09-01  Bruno Haible  <bruno@clisp.org>
43207
43208         New module 'findprog-lgpl'.
43209         * modules/findprog-lgpl: New file.
43210         * lib/findprog-lgpl.c: New file.
43211         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
43212         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
43213         to decide whether to use strdup or xstrdup, concatenated_filename or
43214         xconcatenated_filename.
43215
43216 2008-09-01  Bruno Haible  <bruno@clisp.org>
43217
43218         Split module 'concat-filename' into 'concat-filename' (LGPL) and
43219         'xconcat-filename' (GPL).
43220         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
43221         (License): Change to LGPLv2+.
43222         * modules/xconcat-filename: New file.
43223         * lib/concat-filename.h (concatenated_filename): Change specification.
43224         (xconcatenated_filename): New declaration.
43225         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
43226         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
43227         memory situations.
43228         * lib/xconcat-filename.c: New file.
43229         * NEWS: Mention the change.
43230         * lib/findprog.c: Include concat-filename.h, not filename.h.
43231         (find_in_path): Use xconcatenated_filename instead of
43232         concatenated_filename.
43233         * lib/javacomp.c: Include concat-filename.h, not filename.h.
43234         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43235         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43236         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43237         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
43238         instead of concatenated_filename.
43239         * lib/javaexec.c: Include concat-filename.h, not filename.h.
43240         (execute_java_class): Use xconcatenated_filename instead of
43241         concatenated_filename.
43242         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
43243         * modules/javacomp (Depends-on): Likewise.
43244         * modules/javaexec (Depends-on): Likewise.
43245
43246 2008-09-01  Bruno Haible  <bruno@clisp.org>
43247
43248         Split module 'filename' into 'filename' and 'concat-filename'.
43249         * modules/filename: Keep only lib/filename.h.
43250         (License): Change to LGPLv2+.
43251         * modules/concat-filename: New file, extracted from modules/filename.
43252         * lib/filename.h (concatenated_filename): Remove declaration.
43253         * lib/concat-filename.h: New file, extracted from lib/filename.h.
43254         * lib/concat-filename.c: Include concat-filename.h.
43255         * NEWS: Mention the change.
43256
43257 2008-09-01  Simon Josefsson  <simon@josefsson.org>
43258
43259         * lib/bitrotate.h (rotl8, rotr8): Add.
43260
43261         * modules/bitrotate (configure.ac): Need
43262         AC_REQUIRE([AC_C_INLINE]).
43263         (Description): Mention stdint.h.  Reported by Bruno Haible
43264         <bruno@clisp.org>.
43265
43266         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
43267         Paolo Bonzini <bonzini@gnu.org>.
43268
43269 2008-08-31  Bruno Haible  <bruno@clisp.org>
43270
43271         Assume Solaris specific bi-arch conventions on Solaris systems.
43272         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
43273         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43274         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43275         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43276         like acl_libdirstem.
43277         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43278         acl_libdirstem.
43279         * NEWS: Mention the change.
43280         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43281
43282 2008-08-31  Jim Meyering  <meyering@redhat.com>
43283
43284         * lib/strftime.h: Add comments describing the two added arguments.
43285
43286         remove duplicate #include directives
43287         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43288         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43289
43290 2008-08-31  Bruno Haible  <bruno@clisp.org>
43291
43292         New module 'sigpipe-die'.
43293         * modules/sigpipe-die: New file.
43294         * lib/sigpipe-die.h: New file.
43295         * lib/sigpipe-die.c: New file.
43296         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43297
43298 2008-08-31  Bruno Haible  <bruno@clisp.org>
43299
43300         Don't override previously installed signal handlers.
43301         * lib/fatal-signal.c (saved_sigactions): New variable.
43302         (uninstall_handlers): Reset the signal to the saved handler, not
43303         to SIG_DFL (except when ignored).
43304         (install_handlers): Save the previous handlers.
43305
43306 2008-08-30  Bruno Haible  <bruno@clisp.org>
43307
43308         * gnulib-tool (func_reset_sigpipe): New function.
43309         (func_get_automake_snippet, func_modules_transitive_closure,
43310         func_import): Invoke it before a join command that reads from stdin,
43311         to avoid "echo: write error: Broken pipe" error messages on stderr.
43312         Reported by Sam Steingold <sds@gnu.org>.
43313
43314 2008-08-30  Bruno Haible  <bruno@clisp.org>
43315
43316         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
43317         Code copied from m4/open.m4.
43318         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
43319         access and the filename ends in a slash. Code copied from lib/open.c.
43320         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
43321         * tests/test-fopen.c (main): Check against bug with trailing slash.
43322
43323 2008-08-29  Bruno Haible  <bruno@clisp.org>
43324
43325         Avoid some "gcc -pedantic" warnings.
43326         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
43327         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
43328         * lib/dirent.in.h: Likewise.
43329         * lib/fcntl.in.h: Likewise.
43330         * lib/float.in.h: Likewise.
43331         * lib/iconv.in.h: Likewise.
43332         * lib/inttypes.in.h: Likewise.
43333         * lib/locale.in.h: Likewise.
43334         * lib/math.in.h: Likewise.
43335         * lib/netinet_in.in.h: Likewise.
43336         * lib/search.in.h: Likewise.
43337         * lib/signal.in.h: Likewise.
43338         * lib/stdarg.in.h: Likewise.
43339         * lib/stdint.in.h: Likewise.
43340         * lib/stdio.in.h: Likewise.
43341         * lib/stdlib.in.h: Likewise.
43342         * lib/string.in.h: Likewise.
43343         * lib/strings.in.h: Likewise.
43344         * lib/sys_select.in.h: Likewise.
43345         * lib/sys_socket.in.h: Likewise.
43346         * lib/sys_stat.in.h: Likewise.
43347         * lib/sys_time.in.h: Likewise.
43348         * lib/sysexits.in.h: Likewise.
43349         * lib/time.in.h: Likewise.
43350         * lib/unistd.in.h: Likewise.
43351         * lib/wchar.in.h: Likewise.
43352         * lib/wctype.in.h: Likewise.
43353         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
43354         * modules/fchdir (Makefile.am): Likewise.
43355         * modules/fcntl (Makefile.am): Likewise.
43356         * modules/float (Makefile.am): Likewise.
43357         * modules/iconv_open (Makefile.am): Likewise.
43358         * modules/inttypes (Makefile.am): Likewise.
43359         * modules/locale (Makefile.am): Likewise.
43360         * modules/math (Makefile.am): Likewise.
43361         * modules/netinet_in (Makefile.am): Likewise.
43362         * modules/search (Makefile.am): Likewise.
43363         * modules/signal (Makefile.am): Likewise.
43364         * modules/stdarg (Makefile.am): Likewise.
43365         * modules/stdint (Makefile.am): Likewise.
43366         * modules/stdio (Makefile.am): Likewise.
43367         * modules/stdlib (Makefile.am): Likewise.
43368         * modules/string (Makefile.am): Likewise.
43369         * modules/strings (Makefile.am): Likewise.
43370         * modules/sys_select (Makefile.am): Likewise.
43371         * modules/sys_socket (Makefile.am): Likewise.
43372         * modules/sys_stat (Makefile.am): Likewise.
43373         * modules/sys_time (Makefile.am): Likewise.
43374         * modules/sysexits (Makefile.am): Likewise.
43375         * modules/time (Makefile.am): Likewise.
43376         * modules/unistd (Makefile.am): Likewise.
43377         * modules/wchar (Makefile.am): Likewise.
43378         * modules/wctype (Makefile.am): Likewise.
43379         Reported by Reuben Thomas <rrt@sc3d.org>.
43380
43381 2008-08-29  Bruno Haible  <bruno@clisp.org>
43382
43383         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
43384         any more.
43385
43386 2008-08-29  Simon Josefsson  <simon@josefsson.org>
43387
43388         * MODULES.html.sh (Misc): Add bitrotate.
43389
43390         * modules/bitrotate: New file.
43391
43392         * lib/bitrotate.h: New file.
43393
43394         * modules/bitrotate-tests: New file.
43395
43396         * tests/test-bitrotate.c: New file.
43397
43398         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
43399         on the bitrotate module.
43400
43401         * lib/arctwo.c: Use new bitrotate module.
43402
43403 2008-08-29  Jim Meyering  <meyering@redhat.com>
43404
43405         bootstrap: merge changes from coreutils
43406         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
43407         of copied files.  Remove a kludge, now that this is fixed.
43408         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
43409         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
43410         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
43411
43412 2008-08-29  Bruno Haible  <bruno@clisp.org>
43413
43414         * MODULES.html.sh: Remove --cvs-urls option.
43415
43416 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
43417
43418         maint.mk: adjust to file name change
43419         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
43420
43421 2008-08-28  Jim Meyering  <meyering@redhat.com>
43422
43423         * modules/getndelim2 (License): Relicense to LGPLv2+.
43424         Approved by Richard Stallman for the version of 1995, and by
43425         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
43426
43427 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
43428
43429         * lib/getdelim.c (flockfile, funlockfile): Make all of them
43430         dummy if one is not available.  Do not touch them if
43431         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
43432         (getc_maybe_unlocked): New.
43433         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
43434
43435 2008-08-26  Eric Blake  <ebb9@byu.net>
43436
43437         doc/INSTALL: resync from autoconf
43438         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
43439         (INSTALL_PRELUDE): Delete; this is done more efficiently by
43440         moving...
43441         * install.texi [!autoconf]: ...here.  Resync from autoconf.
43442         * INSTALL: Regenerate.
43443         * INSTALL.ISO: New file.
43444         * INSTALL.UTF-8: Likewise.
43445
43446 2008-08-26  Jim Meyering  <meyering@redhat.com>
43447
43448         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
43449         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
43450         these definitions conditional, so that they may be overridden, too.
43451
43452 2008-08-26  Bruno Haible  <bruno@clisp.org>
43453
43454         Generate INSTALL file variants with prettier quotes.
43455         * doc/Makefile (INSTALL_PRELUDE): New macro.
43456         (INSTALL): Use it.
43457         (INSTALL.ISO, INSTALL.UTF-8): New rules.
43458
43459 2008-08-26  Bruno Haible  <bruno@clisp.org>
43460
43461         Run makeinfo in an English locale.
43462         * doc/Makefile (MAKEINFO): New variable.
43463
43464 2008-08-26  Bruno Haible  <bruno@clisp.org>
43465
43466         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
43467         Suggested by Eric Blake.
43468
43469 2008-08-25  Bruno Haible  <bruno@clisp.org>
43470
43471         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
43472
43473 2008-08-25  Eric Blake  <ebb9@byu.net>
43474
43475         c-stack: test that stack overflow can be caught
43476         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
43477         that platform allows handling stack overflow; at least OS/2 EMX
43478         has sigaltstack, but crashes before transferring control to
43479         handler on stack overflow.
43480         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
43481         check for HAVE_STACK_OVERFLOW_HANDLING.
43482         Reported by Elbert Pol.
43483
43484 2008-08-25  Bruno Haible  <bruno@clisp.org>
43485
43486         * doc/posix-functions/strftime.texi: Fix description of strftime
43487         module.
43488
43489 2008-08-24  Bruno Haible  <bruno@clisp.org>
43490
43491         * tests/uniwidth/test-uc_width2.c: New file.
43492         * tests/uniwidth/test-uc_width2.sh: New file.
43493         * modules/uniwidth/width-tests (Files): Add the new files.
43494         (TESTS): Add uniwidth/test-uc_width2.sh.
43495         (TESTS_ENVIRONMENT): New variable.
43496         (check_PROGRAMS): Add test-uc_width2.
43497         (test_uc_width2_SOURCES): New variable.
43498
43499         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
43500         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
43501         not 0x00AB.
43502         Reported by Alexander V. Lukyanov <lav@netis.ru>.
43503
43504 2008-08-22  Eric Blake  <ebb9@byu.net>
43505
43506         test-lock, test-tls: mention why a test is skipped
43507         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
43508         skipped.
43509         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
43510
43511         count-one-bits: relax license
43512         * modules/count-one-bits (License): Relicense to LGPLv2+.
43513         Suggested by Ludovic Courtès, approved by Ben Pfaff.
43514
43515 2008-08-22  Andreas Schwab  <schwab@suse.de>
43516
43517         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
43518         Remove spurious space in assignment.
43519
43520 2008-08-21  Simon Josefsson  <simon@josefsson.org>
43521
43522         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
43523         Paul Eggert <eggert@CS.UCLA.EDU>.
43524
43525 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
43526
43527         * modules/gettext: Add m4/threadlib.m4.
43528
43529 2008-08-19  Eric Blake  <ebb9@byu.net>
43530
43531         test-c-stack: fix compilation failure on FreeBSD 5.0
43532         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
43533         headers before <sys/resource.h>.
43534         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
43535         the bug.
43536         Reported by Nelson H. F. Beebe.
43537
43538         strverscmp: migrate from "strverscmp.h" to <string.h>
43539         * modules/string (Makefile.am): Add new hooks.
43540         * modules/strverscmp (Files): Remove strverscmp.h.
43541         (Depends-on): Add string.
43542         (configure.ac): Add indicator.
43543         (Include): Mention new header.
43544         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
43545         defaults.
43546         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
43547         results.
43548         * lib/strverscmp.h: Delete.
43549         * lib/string.in.h (strverscmp): Provide declaration, when needed.
43550         * tests/test-strverscmp.c (includes): Adjust client.
43551         * lib/check-version.c (includes): Likewise.
43552         * NEWS: Document the change.
43553
43554         strverscmp: add unit test
43555         * modules/strverscmp-tests: New file.
43556         * tests/test-strverscmp.c: Likewise.
43557
43558 2008-08-19  Simon Josefsson  <simon@josefsson.org>
43559
43560         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
43561         regarding Windows crypto stuff, from Mono.
43562
43563 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
43564
43565         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
43566         if present, for intel RND.  Return error on failures.
43567
43568 2008-08-18  Ben Pfaff  <blp@gnu.org>
43569
43570         gitlog-to-changelog: give better diagnostic for failed pipe-open
43571         * build-aux/gitlog-to-changelog: Improve error message: suggest
43572         that the version of Git may be too old.
43573
43574 2008-08-18  Simon Josefsson  <simon@josefsson.org>
43575
43576         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
43577         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
43578
43579 2008-08-18  Bruno Haible  <bruno@clisp.org>
43580
43581         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
43582         pthread_in_use().
43583
43584 2008-08-18  Bruno Haible  <bruno@clisp.org>
43585
43586         * lib/glthread/threadlib.c: Include <pthread.h>.
43587
43588 2008-08-18  Bruno Haible  <bruno@clisp.org>
43589
43590         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
43591         glthread_recursive_lock_* macros.
43592         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
43593         Fix syntax error.
43594
43595 2008-08-18  Bruno Haible  <bruno@clisp.org>
43596
43597         * lib/glthread/thread.c: Avoid forcing a context switch right after
43598         thread creation.
43599
43600 2008-08-17  Bruno Haible  <bruno@clisp.org>
43601
43602         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
43603         * lib/glthread/thread.h: Provide Win32 specific implementation.
43604         * modules/thread (Files): Add lib/glthread/thread.c.
43605         (Depends-on): Add lock.
43606         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
43607
43608 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43609
43610         New module 'yield'.
43611         * modules/yield: New file.
43612         * lib/glthread/yield.h: New file.
43613         * m4/yield.m4: New file.
43614         * MODULES.html.sh (Multithreading): Add yield.
43615
43616 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43617
43618         New module 'thread'.
43619         * modules/thread: New file.
43620         * lib/glthread/thread.h: New file.
43621         * m4/thread.m4: New file.
43622         * MODULES.html.sh (Multithreading): Add thread.
43623
43624 2008-08-17  Bruno Haible  <bruno@clisp.org>
43625
43626         * lib/glthread/lock.h: Include <stdlib.h> always.
43627         * lib/glthread/tls.h: Likewise.
43628         * lib/glthread/cond.h: Likewise.
43629
43630 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43631
43632         New module 'cond'.
43633         * modules/cond: New file.
43634         * lib/glthread/cond.h: New file.
43635         * lib/glthread/cond.c: New file.
43636         * m4/cond.m4: New file.
43637         * MODULES.html.sh (Multithreading): Add cond.
43638
43639 2008-08-16  Eric Blake  <ebb9@byu.net>
43640
43641         c-stack: fix regression on Irix 5.3 from 2008-06-21
43642         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
43643         sa_sigaction...
43644         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
43645         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
43646         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
43647         * modules/signal (Makefile.am): Use the value.
43648         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
43649         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
43650         * doc/posix-headers/signal.texi (signal.h): Document this
43651         portability issue.
43652         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
43653         Reported by Tom G. Christensen.
43654
43655 2008-08-17  Bruno Haible  <bruno@clisp.org>
43656
43657         New module 'threadlib'.
43658         * modules/threadlib: New file.
43659         * lib/glthread/threadlib.c: New file, extracted from
43660         lib/glthread/lock.c.
43661         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
43662         functions.
43663         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
43664         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
43665         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
43666         macros.
43667         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
43668         (gl_DISABLE_THREADS): Remove macro.
43669         * modules/lock (Files): Remove build-aux/config.rpath.
43670         (Depends-on): Remove havelib. Add threadlib.
43671         (configure.ac-early): Remove section.
43672         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
43673         * modules/tls (Depends-on): Remove lock. Add threadlib.
43674         (Link): New section, copied from threadlib.
43675         * MODULES.html.sh (Multithreading): Add threadlib.
43676
43677 2008-08-14  Bruno Haible  <bruno@clisp.org>
43678
43679         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
43680         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
43681         glthread_rwlock_unlock, glthread_rwlock_destroy,
43682         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
43683         glthread_recursive_lock_destroy): Define as macros always.
43684         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
43685         glthread_lock_lock.
43686         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
43687         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
43688         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
43689         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
43690         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
43691         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
43692         (glthread_recursive_lock_lock_func): Renamed from
43693         glthread_recursive_lock_lock.
43694         (glthread_recursive_lock_unlock_func): Renamed from
43695         glthread_recursive_lock_unlock.
43696         (glthread_recursive_lock_destroy_func): Renamed from
43697         glthread_recursive_lock_destroy.
43698
43699 2008-08-14  Bruno Haible  <bruno@clisp.org>
43700
43701         * lib/glthread/lock.h: Renamed from lib/lock.h.
43702         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
43703         * lib/glthread/tls.h: Renamed from lib/tls.h.
43704         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
43705         * lib/fstrcmp.c: Update includes.
43706         * lib/strsignal.c: Update includes.
43707         * modules/lock (Files, Makefile.am): Update.
43708         (Include): Change to "glthread/lock.h".
43709         * modules/tls (Files, Makefile.am): Update.
43710         (Include): Change to "glthread/tls.h".
43711         * tests/test-lock.c: Update includes.
43712         * tests/test-tls.c: Update includes.
43713         * NEWS: Mention the renamed header files.
43714
43715 2008-08-11  Jim Meyering  <meyering@redhat.com>
43716
43717         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
43718
43719 2008-08-11  Eric Blake  <ebb9@byu.net>
43720
43721         test-c-stack: avoid C99-ism
43722         * tests/test-c-stack.c (main): Fix whitespace, move declaration
43723         before statement.
43724         Reported by Alain Guibert.
43725
43726 2008-08-10  Jim Meyering  <meyering@redhat.com>
43727
43728         ensure that return value of uinttostr et al are not ignored
43729         * lib/inttostr.h (__GNUC_PREREQ): Define.
43730         (__attribute_warn_unused_result__): Define.
43731         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
43732
43733 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
43734
43735         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
43736         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
43737
43738 2008-08-07  Jim Meyering  <meyering@redhat.com>
43739
43740         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
43741
43742         * modules/mkstemp (License): Relicense under LGPLv2+.
43743         * modules/tempname (License): Likewise.
43744
43745 2008-08-06  Bruno Haible  <bruno@clisp.org>
43746
43747         * lib/poll.c (poll): Further micro-optimization.
43748
43749 2008-08-06  Jim Meyering  <meyering@redhat.com>
43750
43751         inet_pton.c: use locale-independent tolower
43752         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
43753         (inet_pton6): Use c_tolower rather than tolower.
43754         * modules/inet_pton (Depends-on): Add c-ctype.
43755
43756 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
43757
43758         * lib/poll.c (poll): Avoid division when timeout is 0, cache
43759         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
43760
43761 2008-08-06  Jim Meyering  <meyering@redhat.com>
43762
43763         * modules/inet_pton (License): Relicense under LGPLv2+.
43764
43765 2008-08-03  Bruno Haible  <bruno@clisp.org>
43766
43767         Additional non-aborting API for lock and tls.
43768         * lib/lock.h: Include <errno.h>.
43769         (glthread_lock_init): New macro/function.
43770         (gl_lock_init): Define as wrapper around glthread_lock_init.
43771         (glthread_lock_lock): New macro/function.
43772         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
43773         (glthread_lock_unlock): New macro/function.
43774         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
43775         (glthread_lock_destroy): New macro/function.
43776         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
43777         (glthread_rwlock_init): New macro/function.
43778         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
43779         (glthread_rwlock_rdlock): New macro/function.
43780         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
43781         (glthread_rwlock_wrlock): New macro/function.
43782         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
43783         (glthread_rwlock_unlock): New macro/function.
43784         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
43785         (glthread_rwlock_destroy): New macro/function.
43786         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
43787         (glthread_recursive_lock_init): New macro/function.
43788         (gl_recursive_lock_init): Define as wrapper around
43789         glthread_recursive_lock_init.
43790         (glthread_recursive_lock_lock): New macro/function.
43791         (gl_recursive_lock_lock): Define as wrapper around
43792         glthread_recursive_lock_lock.
43793         (glthread_recursive_lock_unlock): New macro/function.
43794         (gl_recursive_lock_unlock): Define as wrapper around
43795         glthread_recursive_lock_unlock.
43796         (glthread_recursive_lock_destroy): New macro/function.
43797         (gl_recursive_lock_destroy): Define as wrapper around
43798         glthread_recursive_lock_destroy.
43799         (glthread_once): New macro/function.
43800         (gl_once): Define as wrapper around glthread_once.
43801         Update function declarations.
43802         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
43803         glthread_rwlock_init. Return error code.
43804         (glthread_rwlock_rdlock_multithreaded): Renamed from
43805         glthread_rwlock_rdlock. Return error code.
43806         (glthread_rwlock_wrlock_multithreaded): Renamed from
43807         glthread_rwlock_wrlock. Return error code.
43808         (glthread_rwlock_unlock_multithreaded): Renamed from
43809         glthread_rwlock_unlock. Return error code.
43810         (glthread_rwlock_destroy_multithreaded): Renamed from
43811         glthread_rwlock_destroy. Return error code.
43812         (glthread_recursive_lock_init_multithreaded): Renamed from
43813         glthread_recursive_lock_init. Return error code.
43814         (glthread_recursive_lock_lock_multithreaded): Renamed from
43815         glthread_recursive_lock_lock. Return error code.
43816         (glthread_recursive_lock_unlock_multithreaded): Renamed from
43817         glthread_recursive_lock_unlock. Return error code.
43818         (glthread_recursive_lock_destroy_multithreaded): Renamed from
43819         glthread_recursive_lock_destroy. Return error code.
43820         (glthread_once_call): Make static.
43821         (glthread_once_multithreaded): Renamed from glthread_once.
43822         * lib/tls.h: Include <errno.h>.
43823         (glthread_tls_key_init): New macro/function.
43824         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
43825         (glthread_tls_set): New macro/function.
43826         (gl_tls_set): Define as wrapper around glthread_tls_set.
43827         (glthread_tls_key_destroy): New macro/function.
43828         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
43829         Update function declarations.
43830         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
43831         glthread_tls_get.
43832         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43833
43834 2008-08-04  Eric Blake  <ebb9@byu.net>
43835
43836         gnumakefile: use space, not TAB, outside of targets
43837         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
43838
43839 2008-08-02  Jim Meyering  <meyering@redhat.com>
43840
43841         getdate.y: avoid locale-dependent date parsing failure
43842         In Turkish locales, getdate would fail to recognize keywords
43843         containing a lowercase "i".  The solution is not to rely on
43844         locale-sensitive case-conversion.
43845         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
43846         (lookup_word): Use c_toupper in place of toupper.
43847         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
43848         Reported by Vefa Bicakci <bicave@superonline.com> in
43849         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
43850         * modules/getdate (Depends-on): Add c-ctype.
43851
43852 2008-08-02  Bruno Haible  <bruno@clisp.org>
43853
43854         * gnulib-tool (func_import): When updating or creating a .gitignore
43855         file, prepend each added line with a slash, and ignore leading slashes
43856         from the existing lines.
43857         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43858
43859 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43860
43861         Portability fix for GNU make 3.79.1.
43862         * top/GNUmakefile: Avoid 'else COND', which older GNU make
43863         versions do not understand.
43864
43865 2008-08-01  Bruno Haible  <bruno@clisp.org>
43866
43867         Work around bug of HP-UX 10.20 cc with -0.0 literal.
43868         * tests/test-isnanf.h (zero): New variable.
43869         (main): Avoid literal -0.0f.
43870         * tests/test-isnand.h (zero): New variable.
43871         (main): Avoid literal -0.0.
43872         * tests/test-isnanl.h (zero): New variable.
43873         (main): Avoid literal -0.0L.
43874         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
43875         (test_float, test_double, test_long_double): Avoid literals -0.0f,
43876         -0.0, -0.0L.
43877         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
43878         (test_signbitd): Avoid literal -0.0.
43879         (test_signbitl): Avoid literal -0.0L.
43880         * tests/test-ceilf1.c (zero): New variable.
43881         (main): Avoid literal -0.0f.
43882         * tests/test-ceill.c (zero): New variable.
43883         (main): Avoid literal -0.0L.
43884         * tests/test-floorf1.c (zero): New variable.
43885         (main): Avoid literal -0.0f.
43886         * tests/test-floorl.c (zero): New variable.
43887         (main): Avoid literal -0.0L.
43888         * tests/test-roundf1.c (zero): New variable.
43889         (main): Avoid literal -0.0f.
43890         * tests/test-round1.c (zero): New variable.
43891         (main): Avoid literal -0.0.
43892         * tests/test-roundl.c (zero): New variable.
43893         (main): Avoid literal -0.0L.
43894         * tests/test-truncf1.c (zero): New variable.
43895         (main): Avoid literal -0.0f.
43896         * tests/test-trunc1.c (zero): New variable.
43897         (main): Avoid literal -0.0.
43898         * tests/test-truncl.c (zero): New variable.
43899         (main): Avoid literal -0.0L.
43900         * tests/test-frexp.c (zero): New variable.
43901         (main): Avoid literal -0.0.
43902         * tests/test-frexpl.c (zero): New variable.
43903         (main): Avoid literal -0.0L.
43904         * tests/test-ldexpl.c (zero): New variable.
43905         (main): Avoid literal -0.0L.
43906         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43907         (zerod, zerol): New variables.
43908         (test_function): Avoid literals -0.0, -0.0L.
43909         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43910         (zerod, zerol): New variables.
43911         (test_function): Avoid literals -0.0, -0.0L.
43912         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43913         (zerod, zerol): New variables.
43914         (test_function): Avoid literals -0.0, -0.0L.
43915         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43916         (zerod, zerol): New variables.
43917         (test_function): Avoid literals -0.0, -0.0L.
43918         * tests/test-strtod.c (zero): New variable.
43919         (main): Avoid literal -0.0.
43920         Reported by Jonathan C. Patschke <jp@centtech.com>.
43921
43922 2008-07-31  Jim Meyering  <meyering@redhat.com>
43923
43924         sha256.h: correct definition of SHA224_DIGEST_SIZE
43925         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
43926         Reported by Paulie Pena IV <paulie4@gmail.com>.
43927         Define as 224 / 8, rather than as a literal.
43928         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
43929         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
43930         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
43931
43932 2008-07-31  Bruno Haible  <bruno@clisp.org>
43933
43934         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
43935         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
43936         Reported by Jonathan Patschke <jp@centtech.com>.
43937
43938 2008-07-31  Bruno Haible  <bruno@clisp.org>
43939
43940         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
43941         Reported by Paolo Bonzini <bonzini@gnu.org>.
43942
43943 2008-07-30  Eric Blake  <ebb9@byu.net>
43944
43945         test-strtod: allow compilation without -lm
43946         * tests/test-strtod.c (main): Avoid link dependence on fabs.
43947         Reported by Dennis Clarke <blastwave@gmail.com>.
43948
43949 2008-07-28  Jim Meyering  <meyering@redhat.com>
43950
43951         bootstrap: work also when there are no .po files in po/
43952         * build-aux/bootstrap (update_po_files): Complete the change
43953         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
43954
43955 2008-07-27  Jim Meyering  <meyering@redhat.com>
43956
43957         * users.txt: Add zile.
43958
43959 2008-07-26  Ben Pfaff  <blp@gnu.org>
43960
43961         Add missing dependencies on new m4/exponent[fdl].m4 files.
43962         * modules/isnanf-nolibm: Add m4/exponentf.m4.
43963         * modules/isnand-nolibm: Add m4/exponentd.m4.
43964         * modules/isnanl-nolibm: Add m4/exponentl.m4.
43965         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
43966         m4/isnan[fdl].m4, because the macros actually used moved.
43967         Reported by Jim Meyering.
43968
43969 2008-07-14  Ben Pfaff  <blp@gnu.org>
43970
43971         Add isinf module.
43972         * lib/isinf.c: New file.
43973         * lib/math.in.h: Define isinf macro if we have decided to replace
43974         it.
43975         * m4/isinf.m4: New file.
43976         * m4/math_h.m4: Initialize and substitute variables for isinf
43977         module.
43978         * modules/isinf: New file.
43979         * modules/isinf-tests: New file.
43980         * modules/math: Add substitutions for new module.
43981         * tests/test-isinf.c: New file.
43982         * doc/posix-functions/isinf.texi: Mention new module.
43983         * MODULES.html.sh: Mention new module.
43984
43985 2008-07-14  Ben Pfaff  <blp@gnu.org>
43986
43987         Factor out some macros for use by additional modules.
43988         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
43989         exponentf.m4.
43990         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
43991         exponentd.m4.
43992         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
43993         file exponentl.m4.
43994         * m4/exponentf.m4: New file.
43995         * m4/exponentd.m4: New file.
43996         * m4/exponentl.m4: New file.
43997         * modules/isnanf: Use new file m4/exponentf.m4.
43998         * modules/isnand: Use new file m4/exponentd.m4.
43999         * modules/isnanl: Use new file m4/exponentl.m4.
44000
44001 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44002
44003         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44004         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44005         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44006         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44007
44008         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44009         readlink on platforms without PATH_MAX.
44010
44011 2008-07-21  Eric Blake  <ebb9@byu.net>
44012
44013         Warn, not fail, on stale version.
44014         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44015
44016         Don't allow installation with stale devel version number.
44017         * top/GNUmakefile (_is-install-target): New macro.
44018         (_curr-ver): Forbid installation with stale version number.
44019
44020 2008-07-20  Bruno Haible  <bruno@clisp.org>
44021
44022         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44023         TESTS_ENVIRONMENT.
44024         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44025
44026 2008-07-20  Bruno Haible  <bruno@clisp.org>
44027
44028         * lib/c-stack.h (c_stack_action): Add documentation.
44029         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44030
44031 2008-07-20  Bruno Haible  <bruno@clisp.org>
44032
44033         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44034         * modules/readlink (License): Likewise.
44035
44036 2008-07-17  Eric Blake  <ebb9@byu.net>
44037
44038         * modules/c-stack (Link): Fix typo.
44039
44040         Make c-stack use libsigsegv, when available.
44041         * modules/c-stack (Depends-on): Add libsigsegv.
44042         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44043         needed.
44044         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44045         (segv_handler, overflow_handler, c_stack_action)
44046         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44047         implementation when libsigsegv is available, but only when using
44048         the library is necessary.
44049         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44050         comment, explaining why XSI check fails on Linux.
44051         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44052         * tests/test-c-stack2.sh: Tweak skip message.
44053         * NEWS: Document new link-time requirements.
44054
44055 2008-07-16  Eric Blake  <ebb9@byu.net>
44056
44057         c-stack: Expose false positives when not using libsigsegv.
44058         * modules/c-stack-tests (Files): Expand test.
44059         * tests/test-c-stack.c (main): Add means to conditionally trigger
44060         non-overflow SIGSEGV.
44061         * tests/test-c-stack2.sh: New file.
44062
44063 2008-07-14  Bruno Haible  <bruno@clisp.org>
44064
44065         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44066         Reported by Eric Blake.
44067
44068 2008-07-14  Sam Steingold  <sds@gnu.org>
44069             Bruno Haible  <bruno@clisp.org>
44070
44071         New module libsigsegv.
44072         * modules/libsigsegv: New file.
44073         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44074         modifications.
44075         * MODULES.html.sh (Signal handling): New section.
44076
44077 2008-07-14  Bruno Haible  <bruno@clisp.org>
44078
44079         * modules/unictype/ctype-* (Description): Add the word "function".
44080         Improves the resulting doc in MODULES.html.
44081
44082 2008-07-12  Ben Pfaff  <blp@gnu.org>
44083
44084         Add longlong module.
44085         * modules/longlong: New file.
44086
44087 2008-07-12  Bruno Haible  <bruno@clisp.org>
44088
44089         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44090         to empty.
44091
44092 2008-07-10  Ben Pfaff  <blp@gnu.org>
44093
44094         Add isnan module.
44095         * doc/posix-functions/isnan.texi: Mention new module.
44096         * lib/math.in.h: Define isnan macro if we have decided to replace
44097         it.
44098         * m4/isnan.m4: New file.
44099         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44100         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44101         also.
44102         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44103         redundancy.
44104         * m4/math_h.m4: Initialize and substitute variables for isnan
44105         module.
44106         * modules/isnan: New file.
44107         * modules/isnan-tests: New file.
44108         * modules/math: Add substitutions for new module.
44109         * tests/test-isnan.c: New file.
44110         * MODULES.html.sh: Mention new module.
44111
44112 2008-07-10  Ben Pfaff  <blp@gnu.org>
44113
44114         Add isnanf module.
44115         * lib/isnanf.m4: New file.
44116         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44117         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44118         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44119         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44120         * modules/isnanf: New file.
44121         * modules/isnanf-tests: New file.
44122         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44123         files.
44124         * tests/test-isnanf-nolibm.c: factored most of its contents into
44125         new file tests/test-isnanf.h.
44126         * tests/test-isnanf.h: New file.
44127         * tests/test-isnanf.c: New file.
44128         * MODULES.html.sh: Mention new module.
44129         * doc/glibc-functions/isnanf.texi: Mention new module.
44130
44131 2008-07-10  Ben Pfaff  <blp@gnu.org>
44132
44133         Add isnand module.
44134         * lib/isnand.h: New file.
44135         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44136         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44137         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44138         functionality also.
44139         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44140         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44141         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44142         * modules/isnand: New file.
44143         * modules/isnand-tests: New file.
44144         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
44145         files.
44146         * tests/test-isnand-nolibm.c: factored most of its contents into
44147         new file tests/test-isnand.h.
44148         * tests/test-isnand.h: New file.
44149         * tests/test-isnand.c: New file.
44150         * MODULES.html.sh: Mention new module.
44151
44152 2008-07-10  Ben Pfaff  <blp@gnu.org>
44153
44154         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
44155         * lib/isnand.h: Rename lib/isnand-nolibm.h.
44156         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
44157         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
44158         * modules/isnanf-nolibm: Update references to renamed files.
44159         * modules/isnand-nolibm: Likewise.
44160         * modules/isnanf-nolibm-tests: Likewise.
44161         * modules/isnand-nolibm-tests: Likewise.
44162         * lib/frexp.c: Likewise.
44163         * lib/isfinite.c: Likewise.
44164         * lib/signbitd.c: Likewise.
44165         * lib/signbitf.c: Likewise.
44166         * lib/vasnprintf.c: Likewise.
44167         * tests/test-ceilf1.c: Likewise.
44168         * tests/test-ceilf2.c: Likewise.
44169         * tests/test-floorf1.c: Likewise.
44170         * tests/test-floorf2.c: Likewise.
44171         * tests/test-frexp.c: Likewise.
44172         * tests/test-round1.c: Likewise.
44173         * tests/test-round2.c: Likewise.
44174         * tests/test-roundf1.c: Likewise.
44175         * tests/test-strtod.c: Likewise.
44176         * tests/test-trunc1.c: Likewise.
44177         * tests/test-trunc2.c: Likewise.
44178         * tests/test-truncf1.c: Likewise.
44179         * tests/test-truncf2.c: Likewise.
44180         * NEWS: Mention the renamed header files.
44181
44182 2008-07-11  Jim Meyering  <meyering@redhat.com>
44183
44184         vc-list-files: make the last-resort awk code more portable
44185         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
44186         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
44187         does not support it.
44188
44189 2008-07-10  Eric Blake  <ebb9@byu.net>
44190
44191         Work with tar's bootstrap.
44192         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
44193         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
44194         an m4 comment.
44195
44196 2008-07-09  Jim Meyering  <meyering@redhat.com>
44197
44198         posix-shell.m4: fix typo that made this test malfunction
44199         * m4/posix-shell.m4: Remove capitalization in variable name.
44200
44201 2008-07-08  Bruno Haible  <bruno@clisp.org>
44202
44203         * m4/onceonly.m4: Update comments.
44204         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44205
44206 2008-07-04  Jim Meyering  <meyering@redhat.com>
44207
44208         * users.txt: Add vc-dwim.
44209         (bison, coreutils): Use the gitweb URL.
44210
44211 2008-07-03  Jim Meyering  <meyering@redhat.com>
44212
44213         * users.txt: Add libffcall.  From Sam Steingold.
44214
44215 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
44216
44217         getdate.y: do not ignore TZ with relative day, month or year offset
44218         * lib/getdate.y (get_date): Move the tz-handling block to follow the
44219         relative-date-handling, since otherwise, the latter would clobber the
44220         sole output (an updated Start value) of the tz-handling block.
44221         * tests/test-getdate.c: Tests for the fix
44222
44223 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44224
44225         Recognize 'foo_LIBRARIES += libgnu.a'.
44226         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
44227         makefile snippet has already specified an installation location,
44228         also using '+='.
44229
44230 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
44231
44232         getdate.y: factor out common actions
44233         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
44234         Use them in place of open-coded actions.
44235
44236 2008-07-01  Simon Josefsson  <simon@josefsson.org>
44237
44238         Add self-test for getdate module.
44239         * modules/getdate-tests: New file.
44240         * tests/test-getdate.c: New file.
44241
44242 2008-06-29  Bruno Haible  <bruno@clisp.org>
44243
44244         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
44245         .gitignore.
44246         Reported by Sylvain Beucler <beuc@beuc.net>.
44247
44248 2008-06-29  Bruno Haible  <bruno@clisp.org>
44249
44250         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
44251         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
44252
44253 2008-06-29  Bruno Haible  <bruno@clisp.org>
44254
44255         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
44256         EXTRA_DIST.
44257         Reported by Sylvain Beucler <beuc@beuc.net>.
44258
44259 2008-06-26  Jim Meyering  <meyering@redhat.com>
44260
44261         make several modules depend on the "open" module
44262         This provides slightly increased consistency when opening-for-write
44263         the name of a non-directory spelled with a trailing slash.
44264         * modules/chdir-safer: Likewise.
44265         * modules/chown: Likewise.
44266         * modules/clean-temp: Likewise.
44267         * modules/copy-file: Likewise.
44268         * modules/fchdir: Likewise.
44269         * modules/fcntl-safer: Likewise.
44270         * modules/pipe: Likewise.
44271         * modules/utime: Likewise.
44272         Prompted by Eric Blake and Bruno Haible.
44273
44274 2008-06-24  Andreas Schwab  <schwab@suse.de>
44275
44276         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44277         literals can be used as initializers for global variables.
44278
44279 2008-06-23  Eric Blake  <ebb9@byu.net>
44280
44281         Make gnulib-cache.m4 easier to diff.
44282         * gnulib-tool (func_import): Allow newlines when reading cached
44283         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44284
44285 2008-06-23  Bruno Haible  <bruno@clisp.org>
44286
44287         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44288         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44289         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44290         m4/signalblocking.m4.
44291         (gl_PREREQ_SIGACTION): Don't invoke it.
44292         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44293         gl_PREREQ_SIG_HANDLER_H.
44294         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44295         Don't check for sigaction here.
44296
44297 2008-06-23  Bruno Haible  <bruno@clisp.org>
44298
44299         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44300         (install_handlers): Don't set the SA_RESETHAND flag.
44301
44302 2008-06-23  Bruno Haible  <bruno@clisp.org>
44303
44304         * m4/sigaction.m4: Comment fixes.
44305         * lib/signal.in.h: Likewise.
44306
44307 2008-06-23  Eric Blake  <ebb9@byu.net>
44308
44309         Fix typo.
44310         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
44311
44312         Avoid SA_ namespace.
44313         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
44314         Reported by Ralf Wildenhues.
44315
44316         Avoid test failure due to SA_RESTORER.
44317         * tests/test-sigaction.c (SA_MASK): New macro.
44318         (main): Avoid failing due to extension flags being set.
44319         Reported by Jim Meyering.
44320
44321         Revert use of sig-handler.h in sigprocmask.c.
44322         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
44323         it requires the existence of struct sigaction.
44324         * lib/sigprocmask.c (handler_t): Restore typedef.
44325         (rpl_signal, old_handlers): Use local type.
44326
44327 2008-06-22  Bruno Haible  <bruno@clisp.org>
44328
44329         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
44330         conditionally.
44331         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44332
44333 2008-06-22  Bruno Haible  <bruno@clisp.org>
44334
44335         * doc/posix-functions/siginterrupt.texi: Move note.
44336
44337         * lib/signal.in.h (SA_RESTART): New macro.
44338         * lib/sigaction.c: Update comment.
44339
44340         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
44341
44342         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
44343         (gl_PREREQ_SIGPROCMASK): Invoke it.
44344         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
44345
44346         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
44347
44348         * lib/sigprocmask.c: Update a comment.
44349
44350 2008-06-21  Eric Blake  <ebb9@byu.net>
44351
44352         Use sigaction module rather than signal().
44353         * modules/c-stack (Depends-on): Add sigaction.
44354         * modules/fatal-signal (Depends-on): Likewise.
44355         * modules/nanosleep (Depends-on): Likewise.
44356         * modules/sigprocmask (Files): Add sig-handler.h.
44357         * modules/sigaction (Files): Likewise.
44358         * lib/sig-handler.h (get_handler): New file, suggested by Paul
44359         Eggert.
44360         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
44361         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
44362         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
44363         (init_fatal_signals): Likewise.
44364         * lib/nanosleep.c (rpl_nanosleep): Likewise.
44365         (siginterrupt): Delete fallback.
44366         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
44367         instead.
44368         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
44369         siginterrupt.
44370
44371         New module sigaction, for mingw.
44372         * modules/sigaction: New module...
44373         * modules/sigaction-tests: ...and its test.
44374         * m4/sigaction.m4: New file.
44375         * lib/sigaction.c: Likewise.
44376         * tests/test-sigaction.c: Likewise.
44377         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
44378         * modules/signal (Makefile.am): Likewise.
44379         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
44380         needed.
44381         * doc/posix-headers/signal.texi (signal.h): Mention provided
44382         types.
44383         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
44384         that sigaction is preferable.
44385         * doc/posix-functions/sigaction.texi (sigaction): Mention new
44386         module.
44387         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44388         sigaction.
44389
44390         Improve robustness of sigprocmask by overriding signal.
44391         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
44392         is in use.
44393         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
44394         (SIGKILL, SIGSTOP): Provide fallbacks.
44395         (rpl_signal): Implement.
44396         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
44397         signal can be called inside handlers.
44398
44399         Fix nanosleep module on mingw.
44400         * modules/nanosleep (Depends-on): Add sys_select.
44401         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
44402
44403         Fix licensing of sigprocmask.
44404         * modules/raise (License): Relicense as LGPL.
44405
44406 2008-06-21  Bruno Haible  <bruno@clisp.org>
44407
44408         * lib/propername.c (proper_name_utf8): Don't use the transliterated
44409         result if it contains question marks.
44410         Reported by Michael Geng <linux@michaelgeng.de>.
44411
44412 2008-06-19  Bruno Haible  <bruno@clisp.org>
44413
44414         Fix CVS-ism.
44415         * doc/gnulib.texi: Include updated-stamp.texi.
44416         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
44417         (updated-stamp.texi): New rule.
44418         (gnulib.info): Depend on it.
44419         * doc/.gitignore: Add updated-stamp.texi.
44420         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
44421
44422 2008-06-19  Bruno Haible  <bruno@clisp.org>
44423
44424         * doc/Makefile (gnulib.info): Update and simplify dependencies.
44425         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44426
44427 2008-06-19  Eric Blake  <ebb9@byu.net>
44428
44429         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
44430         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
44431         Reported by Stepan Kasal.
44432
44433 2008-06-18  Bruno Haible  <bruno@clisp.org>
44434
44435         * lib/fatal-signal.c (init_fatal_signals): Add comment.
44436         Reported by Eric Blake.
44437
44438 2008-06-18  Eric Blake  <ebb9@byu.net>
44439
44440         Work around cygwin 1.5.25 strsignal bug.
44441         * tests/test-strsignal.c: Allow for const char *.
44442         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
44443
44444 2008-06-18  Simon Josefsson  <simon@josefsson.org>
44445
44446         * users.txt: Update URL to article and add author/date
44447         information.
44448
44449 2008-06-17  Bruno Haible  <bruno@clisp.org>
44450
44451         New macro gl_DISABLE_THREADS.
44452         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
44453         if the user did not pass --enable-threads or --disable-threads option.
44454         (gl_DISABLE_THREADS): New macro.
44455         Reported by Eric Blake <ebb9@byu.net>.
44456
44457 2008-06-17  Bruno Haible  <bruno@clisp.org>
44458
44459         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
44460         when the macro ignores it.
44461         Based on a patch by Eric Blake <ebb9@byu.net>.
44462
44463 2008-06-17  Bruno Haible  <bruno@clisp.org>
44464
44465         * modules/tls (License): Change to LGPLv2+.
44466         Reported by Eric Blake.
44467
44468 2008-06-17  Eric Blake  <ebb9@byu.net>
44469
44470         Simplify c-stack prerequisites.
44471         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
44472         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
44473         no longer requires <ucontext.h> to exist.  Optimize setrlimit
44474         check.
44475         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
44476         <sys/resource.h>.
44477
44478         Move c-stack test into testsuite.
44479         * modules/c-stack-tests: New file.
44480         * lib/c-stack.c [DEBUG]: Move test program...
44481         * tests/test-c-stack.c: ...into this new file.  Skip rather than
44482         fail test if sigaltstack is lacking.
44483         * tests/test-c-stack.sh: New driver file.
44484
44485 2008-06-16  Eric Blake  <ebb9@byu.net>
44486
44487         Use raise module consistently.
44488         * modules/fatal-signal (Depends-on): Add raise.
44489         * modules/sigprocmask (Depends-on): Likewise.
44490         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
44491         * lib/sigprocmask.c (sigprocmask): Likewise.
44492         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44493         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
44494
44495         Fix compliance bug in sigpending.
44496         * lib/sigprocmask.c (sigpending): Return pending array via
44497         parameter, not return value.
44498
44499 2008-06-14  Eric Blake  <ebb9@byu.net>
44500
44501         Improve obstack-printf test code.
44502         * tests/test-obstack-printf.c (test_function): Fix comment, and
44503         simplify usage of obstack_* in macros.  Add a test for coverage.
44504         Reported by Bruno Haible.
44505
44506 2008-06-14  Bruno Haible  <bruno@clisp.org>
44507
44508         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
44509         array size as a constant, not as a const variable.
44510         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
44511         AC_USE_SYSTEM_EXTENSIONS.
44512         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44513         Test whether the obstack_printf function actually exists.
44514         * modules/obstack-printf (Depends-on): Add extensions.
44515         (Include): Remove obstack.h.
44516         * modules/obstack-printf-posix (Depends-on): Add extensions.
44517         (Include): Remove obstack.h.
44518
44519 2008-06-13  Eric Blake  <ebb9@byu.net>
44520
44521         Add obstack-printf and obstack-printf-posix modules.
44522         * modules/obstack-printf: New file.
44523         * modules/obstack-printf-posix: Likewise.
44524         * MODULES.html.sh (Misc): Mention them.
44525         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44526         Likewise.
44527         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44528         Likewise.
44529         * modules/stdio (Makefile.am): Accomodate new modules.
44530         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44531         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
44532         Declare.
44533         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
44534         functions.
44535         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
44536         (gl_REPLACE_OBSTACK_PRINTF): New macros
44537         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
44538         * tests/test-obstack-printf.c: New file.
44539         * modules/obstack-printf-tests: Likewise.
44540         * modules/obstack-printf-posix-tests: Likewise.
44541
44542 2008-06-11  Bruno Haible  <bruno@clisp.org>
44543
44544         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
44545         * lib/open.c: Include errno.h.
44546         (open): Fail when attempting to write to a file that has a trailing
44547         slash.
44548         * tests/test-open.c (main): Test against trailing slash bug.
44549         * doc/posix-functions/open.texi: Mention the trailing slash bug.
44550
44551 2008-06-10  Bruno Haible  <bruno@clisp.org>
44552
44553         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
44554         for $? to work inside the trap command, with various /bin/sh-s.
44555         * tests/test-vc-list-files-cvs.sh: Likewise.
44556
44557 2008-06-10  Bruno Haible  <bruno@clisp.org>
44558
44559         * lib/acl-internal.h: Don't include gettext.h here.
44560         * lib/set-mode-acl.c: Include gettext.h here.
44561         * lib/copy-acl.c: Likewise.
44562
44563 2008-06-10  Bruno Haible  <bruno@clisp.org>
44564
44565         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
44566         * lib/wait-process.c (wait_subprocess): Likewise.
44567         * lib/execute.h (execute): Add termsigp argument.
44568         * lib/execute.c (execute): Likewise.
44569         * lib/csharpcomp.c (compile_csharp_using_pnet,
44570         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
44571         * lib/csharpexec.c (execute_csharp_using_pnet,
44572         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
44573         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
44574         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
44575         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
44576         is_jikes_present): Update.
44577         * lib/javaexec.c (execute_java_class): Update.
44578         * lib/javaversion.c (execute_and_read_line): Update.
44579         * NEWS: Document the changes.
44580         Reported by Eric Blake.
44581
44582 2008-06-10  Eric Blake  <ebb9@byu.net>
44583
44584         Add missing include.
44585         * tests/test-strstr.c (includes): Add <signal.h>.
44586         * tests/test-strcasestr.c (includes): Likewise.
44587         * tests/test-memmem.c (includes): Likewise.
44588
44589 2008-06-10  Bruno Haible  <bruno@clisp.org>
44590
44591         * lib/wait-process.c (wait_subprocess): Add an assertion.
44592
44593 2008-06-10  Bruno Haible  <bruno@clisp.org>
44594
44595         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
44596
44597 2008-06-10  Bruno Haible  <bruno@clisp.org>
44598
44599         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
44600         using alarm().
44601         * tests/test-strcasestr.c (main): Likewise.
44602         * tests/test-strstr.c (main): Likewise.
44603
44604 2008-06-09  Bruno Haible  <bruno@clisp.org>
44605
44606         Work around the Solaris 10 ACE ACLs ABI change.
44607         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
44608         declare if ACL_NO_TRIVIAL is present.
44609         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
44610         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
44611         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
44612         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
44613         define if ACL_NO_TRIVIAL is present.
44614         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
44615         and use the current ABI.
44616         (file_has_acl): Use same #if condition as elsewhere.
44617         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
44618         in use, and use the current ABI.
44619         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
44620         Reported by Jim Meyering.
44621
44622 2008-06-09  Eric Blake  <ebb9@byu.net>
44623
44624         Work around environments that (stupidly) ignore SIGALRM.
44625         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
44626         before using alarm().
44627         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44628         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44629         Reported by Ian Beckwith <ianb@erislabs.net>.
44630
44631         Produce autobuild blurb earlier in log.
44632         * modules/autobuild (configure.ac-early): Move AB_INIT here.
44633
44634 2008-06-09  Jim Meyering  <meyering@redhat.com>
44635         and OndÅ™ej Vašík  <ovasik@redhat.com>
44636
44637         utimens.c: correct kernel bug work-around
44638         OndÅ™ej Vašík found that the invalid return value of 280 indicates
44639         failure, not success, and the kernel bug we're trying to work
44640         around affects not just the utimensat call, but also the fallback
44641         futimens call.
44642         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
44643         not success.
44644         [HAVE_FUTIMENS]: Use the same work-around, here.
44645
44646 2008-06-09  Jim Meyering  <meyering@redhat.com>
44647
44648         add more guards around definition of ACE_-related code
44649         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
44650         ALLOW and ACE_OWNER are also defined.
44651
44652 2008-06-08  Bruno Haible  <bruno@clisp.org>
44653
44654         * lib/acl-internal.h: Add me as co-author.
44655         * lib/file-has-acl.c: Likewise.
44656         * lib/set-mode-acl.c: Likewise.
44657         * lib/copy-acl.c: Likewise.
44658
44659 2008-06-08  Bruno Haible  <bruno@clisp.org>
44660
44661         Add support for AIX ACLs.
44662         * lib/acl-internal.h (acl_nontrivial): New declaration.
44663         * lib/file-has-acl.c (acl_nontrivial): New function.
44664         (file_has_acl): Add implementation using AIX 4 ACL API.
44665         * lib/set-mode-acl.c (qset_acl): Likewise.
44666         * lib/copy-acl.c (qcopy_acl): Likewise.
44667
44668 2008-06-08  Bruno Haible  <bruno@clisp.org>
44669
44670         Add support for HP-UX ACLs.
44671         * lib/acl-internal.h (acl_nontrivial): New declaration.
44672         * lib/file-has-acl.c (acl_nontrivial): New function.
44673         (file_has_acl): Add implementation using HP-UX 11 ACL API.
44674         * lib/set-mode-acl.c (qset_acl): Likewise.
44675         * lib/copy-acl.c (qcopy_acl): Likewise.
44676
44677 2008-06-08  Bruno Haible  <bruno@clisp.org>
44678
44679         Add support for Cygwin ACLs.
44680         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
44681         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
44682         the chmod_or_fchmod call.
44683         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
44684
44685 2008-06-08  Bruno Haible  <bruno@clisp.org>
44686
44687         Fix bug with setuid modes in Solaris 10+ code.
44688         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
44689         succeeded, when the mode contains some special bits.
44690
44691 2008-06-08  Bruno Haible  <bruno@clisp.org>
44692
44693         Add support for Solaris 7..10 ACLs.
44694         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
44695         declarations.
44696         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
44697         functions.
44698         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
44699         * lib/set-mode-acl.c (qset_acl): Likewise.
44700         * lib/copy-acl.c (qcopy_acl): Likewise.
44701
44702 2008-06-08  Bruno Haible  <bruno@clisp.org>
44703
44704         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
44705         declaration.
44706         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
44707         (acl_access_nontrivial): Remove MacOS X case.
44708         (file_has_acl): Use acl_extended_nontrivial.
44709         * lib/copy-acl.c (qcopy_acl): Likewise.
44710
44711 2008-06-08  Bruno Haible  <bruno@clisp.org>
44712
44713         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
44714
44715 2008-06-08  Jim Meyering  <meyering@redhat.com>
44716
44717         * modules/acl (Maintainer): Add Bruno Haible.
44718
44719 2008-06-07  Bruno Haible  <bruno@clisp.org>
44720
44721         Improve support for Tru64 ACLs.
44722         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
44723         ACL on OSF/1.
44724
44725 2008-06-07  Bruno Haible  <bruno@clisp.org>
44726
44727         Add support for MacOS X ACLs.
44728         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
44729         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
44730         * lib/set-mode-acl.c (qset_acl): Likewise.
44731         * lib/copy-acl.c (qcopy_acl): Likewise.
44732
44733 2008-06-07  Bruno Haible  <bruno@clisp.org>
44734
44735         Fix memory leak introduced on 2008-05-22.
44736         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
44737         use.
44738
44739 2008-06-07  Bruno Haible  <bruno@clisp.org>
44740
44741         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
44742         to construct an empty ACL.
44743
44744 2008-06-07  Bruno Haible  <bruno@clisp.org>
44745
44746         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
44747         precisely.
44748         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
44749
44750 2008-06-07  Bruno Haible  <bruno@clisp.org>
44751
44752         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
44753         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
44754
44755 2008-06-07  Bruno Haible  <bruno@clisp.org>
44756
44757         * doc/posix-functions/_setjmp.texi: Explain the use of this function
44758         regardless of POSIX.
44759         * doc/posix-functions/_longjmp.texi: Likewise.
44760         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
44761         SystemV platform in this case.
44762
44763 2008-06-06  Eric Blake  <ebb9@byu.net>
44764
44765         Document abort() bugs.
44766         * doc/posix-functions/abort.texi (abort): Mention anomalies.
44767
44768         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
44769         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
44770         sigsetjmp.
44771         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
44772         siglongjmp, but only as a macro.
44773         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
44774         is obsolete.
44775         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
44776
44777         Tweak documentation to cover cygwin argz bugs.
44778         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
44779         argz bug fix; no code change needed since no cygwin releases
44780         occurred between the last fix and the bug being tested.
44781         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
44782         module and recently fixed cygwin bugs.
44783         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
44784         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
44785         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
44786         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
44787         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
44788         Likewise.
44789         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
44790         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
44791         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
44792         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
44793         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
44794         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
44795         Likewise.
44796
44797         Avoid gcc warning on cygwin.
44798         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
44799         !ACL_NO_TRIVIAL]: Avoid unused variable.
44800
44801 2008-06-05  Eric Blake  <ebb9@byu.net>
44802
44803         Be tolerant of UNKNOWN version in gnulib-tool test dir.
44804         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
44805         git-version-gen fails to come up with a version.
44806         Reported by Simon Josefsson.
44807
44808 2008-06-05  Jim Meyering  <meyering@redhat.com>
44809             Paul Eggert  <eggert@cs.ucla.edu>
44810
44811         utimens.c: work around a probable Linux kernel bug
44812         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
44813         appears to be a kernel bug that causes utimensat to return 280
44814         instead of 0, indicating success.
44815
44816 2008-06-04  Bruno Haible  <bruno@clisp.org>
44817
44818         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
44819         2008-06-01 commit.
44820
44821 2008-06-04  Bruno Haible  <bruno@clisp.org>
44822
44823         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
44824         * lib/file-has-acl.c (acl_access_nontrivial): New function.
44825         (file_has_acl): Use it. Save errno afterwards.
44826         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
44827
44828 2008-06-03  Bruno Haible  <bruno@clisp.org>
44829
44830         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
44831         draft code. Simplify #ifs.
44832         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
44833         Put Solaris code after POSIX-draft code. Fix comments regarding
44834         Solaris 10, HP-UX. Mention Cygwin.
44835         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
44836
44837 2008-06-03  Eric Blake  <ebb9@byu.net>
44838
44839         Provide fallback for older kernels.
44840         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
44841         Provide runtime fallback if kernel lacks support.
44842         Reported by Mike Frysinger.
44843
44844 2008-06-02  Bruno Haible  <bruno@clisp.org>
44845
44846         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
44847         it exists.
44848
44849 2008-06-02  Bruno Haible  <bruno@clisp.org>
44850
44851         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
44852         * lib/copy-acl.c (qcopy_acl): Update comment.
44853
44854 2008-06-02  Bruno Haible  <bruno@clisp.org>
44855
44856         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
44857         like ACL APIs.
44858
44859 2008-06-02  Bruno Haible  <bruno@clisp.org>
44860
44861         * tests/test-file-has-acl.sh: Use different code for Cygwin.
44862         * tests/test-set-mode-acl.sh: Likewise.
44863         * tests/test-copy-acl.sh: Likewise.
44864         * tests/test-copy-file.sh: Likewise.
44865
44866 2008-06-02  Bruno Haible  <bruno@clisp.org>
44867
44868         * tests/test-file-has-acl.sh: Remove unused code.
44869
44870 2008-06-01  Bruno Haible  <bruno@clisp.org>
44871
44872         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
44873         (copy_acl): Just a wrapper around qcopy_acl that emits the error
44874         messages.
44875         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
44876
44877 2008-06-01  Bruno Haible  <bruno@clisp.org>
44878
44879         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
44880         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
44881         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
44882         APIs.
44883         * modules/acl-tests (configure.ac): Remove tests now contained in
44884         m4/acl.m4.
44885
44886 2008-06-02  Jim Meyering  <meyering@redhat.com>
44887
44888         announce-gen: use a better key-server host name
44889         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
44890         it may be more consistently reliable.  Suggested by Werner Koch
44891         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
44892
44893 2008-06-01  Bruno Haible  <bruno@clisp.org>
44894
44895         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
44896         Reported by Voroskoi Andras <voroskoi@gmail.com>.
44897
44898 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
44899
44900         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
44901
44902 2008-06-01  Bruno Haible  <bruno@clisp.org>
44903
44904         New ACL tests.
44905         * tests/test-file-has-acl.sh: New file.
44906         * tests/test-file-has-acl.c: New file.
44907         * tests/test-set-mode-acl.sh: New file.
44908         * tests/test-set-mode-acl.c: New file.
44909         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
44910         * tests/test-copy-acl.c: New file.
44911         * modules/acl-tests: New file, based on modules/copy-file-tests.
44912         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
44913         (Depends-on): Add acl-tests.
44914         (configure.ac): Remove checks.
44915         (Makefile.am): Don't create test-sameacls program here any more.
44916
44917 2008-06-01  Bruno Haible  <bruno@clisp.org>
44918
44919         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
44920         * tests/test-sameacls.c: Include progname.h.
44921         (main): Invoke set_program_name. Portability fixes for MacOS X,
44922         Solaris, HP-UX.
44923
44924 2008-06-01  Bruno Haible  <bruno@clisp.org>
44925
44926         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
44927         function.
44928         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
44929
44930 2008-06-01  Bruno Haible  <bruno@clisp.org>
44931
44932         * modules/rpmatch (Depends-on): Add strdup.
44933
44934 2008-06-01  Bruno Haible  <bruno@clisp.org>
44935
44936         * lib/pipe.c: Include unistd-safer.h.
44937         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
44938         * modules/pipe (Depends-on): Add unistd-safer.
44939
44940 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44941
44942         * modules/autobuild (configure.ac): Call AB_INIT.
44943
44944 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44945
44946         * tests/test-getaddrinfo.c: Don't print debug messages by default.
44947         Suggested by Bruno Haible <bruno@clisp.org>.
44948
44949 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44950
44951         * tests/test-base64.c: Cast size_t to unsigned long when invoking
44952         printf.  Use %lu instead of %d.  Reported by Bruno Haible
44953         <bruno@clisp.org>.
44954
44955 2008-05-29  Eric Blake  <ebb9@byu.net>
44956
44957         Prefer new POSIX 200x interfaces over futimesat.
44958         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
44959         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
44960         when available.
44961         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
44962
44963 2008-05-28  Bruno Haible  <bruno@clisp.org>
44964
44965         * modules/stpcpy (License): Change to LGPLv2+.
44966         Requested by David Lutterkort <dlutter@redhat.com>.
44967
44968 2008-05-27  Bruno Haible  <bruno@clisp.org>
44969
44970         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
44971         current mingw.
44972         Reported by Jose E. Marchesi <jemarch@gnu.org>.
44973
44974 2008-05-27  Bruno Haible  <bruno@clisp.org>
44975
44976         * modules/iconv_open (Link): New section, from module 'iconv'.
44977         * modules/striconv (Link): Likewise.
44978         * modules/striconveh (Link): Likewise.
44979         * modules/xstriconv (Link): Likewise.
44980         * modules/unicodeio (Link): Likewise.
44981         * modules/propername (Link): Likewise.
44982         Reported by Jim Meyering.
44983
44984 2008-05-26  Jim Meyering  <meyering@redhat.com>
44985
44986         sha256: do not artificially restrict buffer length to be < 2^32
44987         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
44988         uint32_t to size_t.
44989         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
44990         to match.
44991
44992         avoid unaligned access errors, e.g., on sparc
44993         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
44994         direct access through a possibly-unaligned uint64* pointer.
44995         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
44996         direct access through a possibly-unaligned uint32* pointer.
44997         Prompted by this patch from Tom "spot" Callaway:
44998         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
44999
45000         sha512.c: fix typo in comment
45001         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45002
45003 2008-05-25  Bruno Haible  <bruno@clisp.org>
45004
45005         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45006         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45007         (Makefile.am): Update lib_SOURCES.
45008
45009 2008-05-25  Bruno Haible  <bruno@clisp.org>
45010
45011         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45012
45013 2008-05-25  Jim Meyering  <meyering@redhat.com>
45014
45015         useless-if-before-free: freed expr may have white-space differences
45016         * build-aux/useless-if-before-free: Recognize cases in which the
45017         freed expression differs from the tested one in embedded white
45018         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45019         $1 was used, so we can't make any regexp shy.  Improved tests now
45020         detect this.
45021
45022         useless-if-before-free: accept white space in the expression.
45023         * build-aux/useless-if-before-free: For now, any white space
45024         in the expression must be identical in the free argument.
45025
45026         useless-if-before-free: efficiency tweak
45027         * build-aux/useless-if-before-free: Make the expression-matching
45028         regexp "shy".
45029         Make the *outer* regexp shy, not the expr-matching one.
45030
45031         update code-in-comment to accept cast of free arg
45032         * build-aux/useless-if-before-free: Update regexp.
45033
45034 2008-05-25  Bruno Haible  <bruno@clisp.org>
45035
45036         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45037         * modules/copy-file-tests (Files, Makefile.am): Update.
45038         * tests/test-copy-file.c (func_test_copy): Update.
45039
45040 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45041
45042         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45043
45044 2008-05-23  Bruno Haible  <bruno@clisp.org>
45045
45046         Improve support for ACLs on OSF/1.
45047         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45048         Remove fallback for unknown flavors of ACLs.
45049
45050 2008-05-22  Bruno Haible  <bruno@clisp.org>
45051
45052         Add support for ACLs on OSF/1.
45053         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45054         replacements.
45055         (acl_free_text): New macro fallback.
45056         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45057         acl_free.
45058         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45059         acl_free_text function. Require AC_C_INLINE.
45060
45061 2008-05-22  Bruno Haible  <bruno@clisp.org>
45062
45063         Make copy_acl work on MacOS X 10.5.
45064         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45065         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45066         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45067         If MODE_INSIDE_ACL, don't assume that every system has the same text
45068         representation for ACLs as FreeBSD.
45069         * lib/copy-acl.c (copy_acl): Add support for platforms with
45070         !MODE_INSIDE_ACL.
45071         * lib/file-has-acl.c (file_has_acl): Likewise.
45072         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45073         FreeBSD, MacOS X, or IRIX, respectively.
45074
45075 2008-05-22  Bruno Haible  <bruno@clisp.org>
45076
45077         * lib/acl.h: Don't include <sys/acl.h>.
45078         (GETACLCNT): Move fallback to lib/acl-internal.h.
45079         * lib/acl-internal.h: Include <sys/acl.h> here.
45080         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45081
45082 2008-05-22  Bruno Haible  <bruno@clisp.org>
45083
45084         Split off copy_acl function to separate file.
45085         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45086         * lib/acl.c (copy_acl): Moved function to separate file.
45087         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45088         * modules/acl (Files): Add lib/copy-acl.c.
45089         (Makefiles.am): Augment lib_SOURCES.
45090
45091 2008-05-22  Bruno Haible  <bruno@clisp.org>
45092
45093         * modules/copy-file-tests: New file.
45094         * tests/test-copy-file.sh: New file.
45095         * tests/test-copy-file.c: New file.
45096         * tests/test-copy-file-sameacls.c: New file.
45097
45098 2008-05-22  Eric Blake  <ebb9@byu.net>
45099
45100         Avoid gcc warning.
45101         * tests/test-memcmp.c (main): Pass NULL indirectly.
45102
45103 2008-05-21  Bruno Haible  <bruno@clisp.org>
45104
45105         Add reference doc about ACLs.
45106         * doc/acl-resources.txt: New file.
45107         * doc/acl-cygwin.txt: New file.
45108
45109 2008-05-21  Bruno Haible  <bruno@clisp.org>
45110
45111         Avoid one more warning from gcc.
45112         * lib/vasnprintf.c (IF_LINT): Update comments.
45113         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45114
45115 2008-05-21  Jim Meyering  <meyering@redhat.com>
45116
45117         avoid a warning from gcc
45118         * lib/vasnprintf.c (IF_LINT): Define.
45119         (scale10_round_decimal_long_double):
45120         Use it to avoid a "may be used uninitialized" warning.
45121         (scale10_round_decimal_double): Likewise.
45122
45123 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45124
45125         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45126         declared.
45127
45128 2008-05-20  Bruno Haible  <bruno@clisp.org>
45129
45130         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45131         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45132
45133 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45134
45135         * modules/memcmp-tests: New file.
45136         * tests/test-memcmp.c: New file.
45137
45138 2008-05-19  Bruno Haible  <bruno@clisp.org>
45139
45140         * modules/propername (Notice, configure.ac): Put quoted "..." into
45141         --keyword option.
45142         * lib/propername.h: Update comments accordingly.
45143         Reported by Eric Blake.
45144
45145 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
45146
45147         * modules/getpass-gnu (Depends-on): Add fseeko.
45148
45149 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45150
45151         * modules/base64-tests: New file.
45152
45153 2008-05-19  Bo Borgerson <gigabo@gmail.com>
45154
45155         * lib/base64.c (base64_decode_ctx): If a decode context structure
45156         was passed in use it to ignore newlines.  If a context structure
45157         was _not_ passed in, continue to treat newlines as garbage (this
45158         is the historical behavior).  Formerly base64_decode.
45159         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45160         takes a decode context structure.
45161         * lib/base64.h (base64_decode): Macro for four-argument calls.
45162         (base64_decode_alloc): Likewise.
45163         * lib/base64.c (base64_decode_ctx): If a decode context structure
45164         was passed in use it to ignore newlines.  If a context structure
45165         was _not_ passed in, continue to treat newlines as garbage (this
45166         is the historical behavior).  Formerly base64_decode.
45167         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45168         takes a decode context structure.
45169         * lib/base64.h (base64_decode): Macro for four-argument calls.
45170         (base64_decode_alloc): Likewise.
45171
45172 2008-05-19  Jim Meyering  <meyering@redhat.com>
45173
45174         avoid a warning from gcc
45175         * lib/trim.c (IF_LINT): Define.
45176         (trim2): Use it to avoid a "may be used uninitialized" warning.
45177
45178         Fix doc typo.
45179         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
45180
45181 2008-05-19  Bruno Haible  <bruno@clisp.org>
45182
45183         * doc/glibc-functions/getpass.texi: Document limits of other
45184         implementations.
45185
45186 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45187             Bruno Haible <bruno@clisp.org>
45188
45189         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
45190
45191 2008-05-18  Bruno Haible  <bruno@clisp.org>
45192
45193         * modules/propername: New file, from GNU gettext.
45194         * lib/propername.h: New file, from GNU gettext.
45195         * lib/propername.c: New file, from GNU gettext.
45196         * MODULES.html.sh (Internationalization functions): Add propername.
45197
45198 2008-05-16  Jim Meyering  <meyering@redhat.com>
45199             Bruno Haible  <bruno@clisp.org>
45200
45201         Avoid some warnings from "gcc -Wshadow".
45202         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
45203
45204 2008-05-15  Eric Blake  <ebb9@byu.net>
45205
45206         Extend previous patch to cygwin 1.7.0.
45207         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
45208         fast implementation in cygwin >= 1.7.0.
45209         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45210         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45211
45212 2008-05-15  Bruno Haible  <bruno@clisp.org>
45213
45214         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
45215         implementation in glibc >= 2.9.
45216         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45217         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45218
45219 2008-05-15  Bruno Haible  <bruno@clisp.org>
45220
45221         * MODULES.html.sh (Internationalization functions): Remove linebreak.
45222         (Unicode string functions): Add unilbrk/*.
45223         Reported by Karl Berry.
45224
45225 2008-05-15  Eric Blake  <ebb9@byu.net>
45226
45227         Fix violation of <stdbool.h> replacement in regex.
45228         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
45229         * lib/regexec.c (re_search_internal): Likewise.
45230         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
45231
45232 2008-05-15  Jim Meyering  <meyering@redhat.com>
45233
45234         avoid distracting test output when git or cvs is not found
45235         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
45236         * tests/test-vc-list-files-git.sh: Likewise.
45237
45238 2008-05-15  Eric Blake  <ebb9@byu.net>
45239
45240         Glibc finally accepted the memmem speedup code, bugzilla #5514.
45241         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
45242         glibc version.
45243         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45244         * doc/posix-functions/strstr.texi (strstr): Likewise.
45245         * lib/str-two-way.h (MAX): Sychronize with glibc.
45246
45247 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
45248
45249         * lib/regcomp.c (optimize_utf8): Add a note on why we test
45250         opr.ctx_type.
45251         (calc_first): Initialize constraint field.
45252         (duplicate_node_closure): Use it instead of special casing ANCHORS.
45253         Fix grammar.
45254         (duplicate_node): Merge constraint field for all node types.
45255         (calc_eclosure_iter): Look at constraint field for all node types.
45256         * lib/regex_internal.c (create_cd_newstate): Don't look at
45257         opr.ctx_type.
45258
45259 2008-05-14  Bruno Haible  <bruno@clisp.org>
45260
45261         Help GCC to do better code generation.
45262         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
45263         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45264         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
45265         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
45266         Declare with attribute 'malloc' if supported.
45267
45268 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
45269
45270         use "echo STR|wc -c" rather than unportable "expr length STR"
45271         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
45272         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
45273
45274 2008-05-14  Jim Meyering  <meyering@redhat.com>
45275
45276         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45277         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45278         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45279         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45280         via Collin Lasse.
45281
45282 2008-05-14  Eric Blake  <ebb9@byu.net>
45283
45284         Avoid quadratic growth in gl_LIBSOURCES.
45285         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45286         Suggested by Bruno Haible.
45287
45288         Test xmemdup0.
45289         * modules/xmemdup0-tests: New file.
45290         * tests/test-xmemdup0.c: Likewise.
45291
45292 2008-05-13  Eric Blake  <ebb9@byu.net>
45293
45294         Split xmemdup0 into its own module.
45295         * modules/xmemdup0: New file.
45296         * lib/xmemdup0.h: Likewise.
45297         * lib/xmemdup0.c: Likewise.
45298         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45299         * lib/xalloc.h (xmemdup0): Remove.
45300         * lib/xmalloc.c (xmemdup0): Likewise.
45301
45302 2008-05-13  Eric Blake  <ebb9@byu.net>
45303             Bruno Haible  <bruno@clisp.org>
45304
45305         Reduce number of forks required during autoconf.
45306         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45307         and gl_LIBSOURCES_DIR.
45308         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
45309         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
45310         m4_syscmd per file.
45311         <m4_foreach_w>: Move...
45312         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
45313
45314 2008-05-13  Eric Blake  <ebb9@byu.net>
45315
45316         * gnulib-tool: Fix various comment typos.
45317
45318 2008-05-12  Bruno Haible  <bruno@clisp.org>
45319
45320         Tailor the linebreaking algorithm.
45321         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
45322
45323 2008-05-12  Bruno Haible  <bruno@clisp.org>
45324
45325         Update to Unicode 5.0.0.
45326         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45327         LBP_JV, LBP_JT. Redistribute values.
45328         (unilbrk_table): Change size.
45329         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
45330         Unicode TR#14 rev. 22.
45331         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45332         LBP_JV, LBP_JT. Redistribute values.
45333         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
45334         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
45335         Update.
45336         * lib/unilbrk/lbrkprop1.h: Regenerated.
45337         * lib/unilbrk/lbrkprop2.h: Regenerated.
45338         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
45339         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
45340         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
45341         Likewise.
45342         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
45343         Likewise.
45344         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
45345         result.
45346         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45347         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45348         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45349         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
45350         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
45351         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
45352
45353 2008-05-11  Bruno Haible  <bruno@clisp.org>
45354
45355         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
45356
45357 2008-05-11  Bruno Haible  <bruno@clisp.org>
45358
45359         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
45360         * modules/unilbrk/gen-lbrk: New file.
45361
45362 2008-05-11  Bruno Haible  <bruno@clisp.org>
45363
45364         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
45365         * m4/sha512.m4 (gl_SHA512): Likewise.
45366
45367 2008-05-11  Jim Meyering  <meyering@redhat.com>
45368
45369         New modules: crypto/sha256, crypto/sha512 (from coreutils)
45370         * modules/crypto/sha256: New file.
45371         * modules/crypto/sha512: Likewise.
45372         * lib/sha256.c: Likewise.
45373         * lib/sha256.h: Likewise.
45374         * lib/sha512.c: Likewise.
45375         * lib/sha512.h: Likewise.
45376         * lib/u64.h: Likewise.
45377         * m4/sha256.m4: Likewise.
45378         * m4/sha512.m4: Likewise.
45379         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
45380
45381 2008-05-10  Bruno Haible  <bruno@clisp.org>
45382
45383         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
45384         (Input/Output <stdio.h>): Add xprintf.
45385         (Signal handling <signal.h>): Add strsignal.
45386         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
45387         (Core language properties): Add func.
45388         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
45389         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
45390         strings.
45391         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
45392         (Input/output): New section.
45393         (File system functions): Add openat-die, stat-macros.
45394         (Networking functions): Add sockets.
45395         (Unicode string functions): Add unictype/*.
45396         (Support for building libraries and executables): Add gperf.
45397         (Support for building documentation): Add agpl-3.0.
45398         (Misc): Add nocrash.
45399
45400 2008-05-10  Bruno Haible  <bruno@clisp.org>
45401
45402         * modules/unictype/gen-ctype: New file.
45403
45404 2008-05-10  Jim Meyering  <meyering@redhat.com>
45405
45406         Make chdir-safer.c more efficient on a system with no symlinks.
45407         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
45408         also if ELOOP is zero.  Suggested by Bruno Haible.
45409
45410         Make chdir-safer.c slightly safer.
45411         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
45412         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
45413
45414         Avoid compile failure on systems without ELOOP (like mingw).
45415         * lib/chdir-safer.c (ELOOP): Define if not already defined.
45416         Reported by Bruno Haible.
45417
45418 2008-05-10  Bruno Haible  <bruno@clisp.org>
45419
45420         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
45421         (is_utf8_encoding): Use a case-insensitive comparison.
45422         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
45423         streq.
45424
45425 2008-05-10  Bruno Haible  <bruno@clisp.org>
45426
45427         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
45428         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
45429         * lib/unilbrk/ulc-common.h (iconv_string_length,
45430         iconv_string_keeping_offsets): Remove declarations.
45431         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
45432         Don't include <iconv.h>, streq.h, xsize.h.
45433         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
45434         conversion.
45435         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
45436         <iconv.h>, streq.h, xsize.h.
45437         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
45438         conversion.
45439         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
45440         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
45441         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
45442         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
45443
45444 2008-05-10  Bruno Haible  <bruno@clisp.org>
45445
45446         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
45447         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
45448
45449         * modules/unilbrk/u32-width-linebreaks-tests: New file.
45450         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
45451
45452         * modules/unilbrk/u16-width-linebreaks-tests: New file.
45453         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
45454
45455         * modules/unilbrk/u8-width-linebreaks-tests: New file.
45456         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
45457
45458         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
45459         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
45460
45461         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
45462         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
45463
45464         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
45465         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
45466
45467         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
45468         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
45469
45470 2008-05-10  Bruno Haible  <bruno@clisp.org>
45471
45472         Split up 'linebreak' module.
45473         * lib/unilbrk.h: New file, based on lib/linebreak.h.
45474         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
45475         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
45476         modifications.
45477         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
45478         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
45479         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
45480         lib/linebreak.c.
45481         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
45482         lib/linebreak.c.
45483         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
45484         lib/linebreak.c.
45485         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
45486         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
45487         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
45488         lib/linebreak.c.
45489         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
45490         lib/linebreak.c.
45491         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
45492         lib/linebreak.c.
45493         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
45494         lib/linebreak.c.
45495         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
45496         lib/linebreak.c.
45497         * modules/unilbrk/base: New file.
45498         * modules/unilbrk/tables: New file.
45499         * modules/unilbrk/u8-possible-linebreaks: New file.
45500         * modules/unilbrk/u16-possible-linebreaks: New file.
45501         * modules/unilbrk/u32-possible-linebreaks: New file.
45502         * modules/unilbrk/ulc-common: New file.
45503         * modules/unilbrk/ulc-possible-linebreaks: New file.
45504         * modules/unilbrk/u8-width-linebreaks: New file.
45505         * modules/unilbrk/u16-width-linebreaks: New file.
45506         * modules/unilbrk/u32-width-linebreaks: New file.
45507         * modules/unilbrk/ulc-width-linebreaks: New file.
45508         * lib/linebreak.h: Remove file.
45509         * lib/linebreak.c: Remove file.
45510         * m4/linebreak.m4: Remove file.
45511         * modules/linebreak: Remove file.
45512         * NEWS: Mention the changes.
45513
45514 2008-05-09  Eric Blake  <ebb9@byu.net>
45515
45516         Add xmemdup0.
45517         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
45518         implementation.
45519         * lib/xmalloc.c (xmemdup0): New C implementation.
45520
45521 2008-05-08  Bruno Haible  <bruno@clisp.org>
45522
45523         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
45524
45525 2008-05-07  Eric Blake  <ebb9@byu.net>
45526
45527         Support cross-compilation of <wctype.h>.
45528         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
45529         AC_CACHE_CHECK.
45530
45531 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
45532
45533         * build-aux/vc-list-files: Add support for bzr.
45534
45535 2008-05-03  Jim Meyering  <meyering@redhat.com>
45536
45537         avoid failed assertion with tight malloc
45538         * tests/test-getndelim2.c: Correct an off-by-one assertion.
45539
45540 2008-05-03  Simon Josefsson  <simon@josefsson.org>
45541
45542         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
45543         are needed from arpa/inet.h.
45544         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
45545         Reported by Bruno Haible.
45546
45547 2008-05-02  Jim Meyering  <meyering@redhat.com>
45548
45549         avoid compilation error on FreeBSD 6
45550         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
45551
45552 2008-05-01  Jim Meyering  <meyering@redhat.com>
45553
45554         useless-if-before-free: correct --help's exit status description
45555         * build-aux/useless-if-before-free (usage): Like grep, exit 0
45556         for one or more matches, etc.  Reported by Bruno Haible.
45557
45558         vc-list-files: make the stand-alone gnulib test work
45559         * modules/vc-list-files-tests (configure.ac):
45560         Define and AC_SUBST abs_aux_dir.
45561         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
45562         $(abs_top_srcdir) to each script and having each of them
45563         duplicate the work of setting PATH, set PATH here, using
45564         the new variable, abs_aux_dir instead.
45565         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
45566         * tests/test-vc-list-files-git.sh: Likewise.
45567         Reported by Bruno Haible.
45568
45569 2008-05-01  Bruno Haible  <bruno@clisp.org>
45570
45571         * lib/getndelim2.c (getndelim2): Fix newsize computation during
45572         reallocation. Rename 'done' to 'found_delimiter'.
45573
45574 2008-05-01  Jim Meyering  <meyering@redhat.com>
45575
45576         vc-list-files: accommodate /bin/sh like the one from Solaris 10
45577         * build-aux/vc-list-files: Use `...`, not $(...).
45578
45579 2008-04-30  Jim Meyering  <meyering@redhat.com>
45580
45581         add tests for vc-list-files
45582         * modules/vc-list-files-tests: New module.
45583         * tests/test-vc-list-files-cvs.sh: New file.
45584         * tests/test-vc-list-files-git.sh: New file.
45585
45586         avoid a warning from gcc
45587         * lib/getndelim2.c (IF_LINT): Define.
45588         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
45589
45590         vc-list-files: work properly with build-aux/cvsu, too
45591         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
45592         to all cvs-based clauses.
45593
45594         vc-list-files: work properly in the CVS+awk case, too
45595         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
45596
45597         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
45598         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
45599         take more than one file argument, so .  Add quotes, just in case $dir
45600         ever contains a shell meta-character.  Prompted by Soren Hansen in
45601         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
45602
45603 2008-04-29  Eric Blake  <ebb9@byu.net>
45604
45605         Optimize getndelim2 to use block operations when possible.
45606         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
45607         freadseek, and memchr2.
45608         * lib/getndelim2.c (getndelim2): Use them for block reads.
45609
45610 2008-04-29  Bruno Haible  <bruno@clisp.org>
45611
45612         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
45613         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45614         * modules/inet_ntop (Depends-on): Add extensions.
45615         * modules/inet_pton (Depends-on): Likewise.
45616         Reported by Simon Josefsson.
45617
45618 2008-04-29  Jim Meyering  <meyering@redhat.com>
45619
45620         When the is more than one match in a block, match all of them.
45621         * build-aux/useless-if-before-free: Iterate through each block
45622         until there are no more matches.
45623
45624         Fix broken useless-if-before-free script.
45625         * build-aux/useless-if-before-free: Fix typo: missing "?" after
45626         the expression to match cast of argument to free-like function.
45627
45628 2008-04-29  Eric Blake  <ebb9@byu.net>
45629
45630         Use new header.
45631         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
45632
45633 2008-04-29  Jim Meyering  <meyering@redhat.com>
45634
45635         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
45636         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
45637         by gnulib to exist and to declare e.g., inet_ntop.
45638         Don't include "inet_ntop.h", now removed.
45639
45640         * m4/arpa_inet_h.m4: Remove trailing blanks.
45641
45642 2008-04-29  Eric Blake  <ebb9@byu.net>
45643
45644         Silence valgrind on safe reads beyond potential array bounds.
45645         * lib/rawmemchr.valgrind: New file.
45646         * lib/strchrnul.valgrind: Likewise.
45647         * modules/rawmemchr (Files): Distribute new file.
45648         * modules/strchrnul (Files): Likewise.
45649         Suggested by Bruno Haible.
45650
45651 2008-04-29  Bruno Haible  <bruno@clisp.org>
45652
45653         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
45654         (inet_ntop, inet_pton): Change portability warning's wording.
45655         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
45656         Invoke gl_CHECK_NEXT_HEADERS.
45657         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
45658         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
45659         set ARPA_INET_H.
45660         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45661         * modules/arpa_inet (Description): No longer only for systems that
45662         lack it.
45663         (Depends-on): Add include_next.
45664         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
45665         HAVE_ARPA_INET_H.
45666
45667 2008-04-29  Jim Meyering  <meyering@redhat.com>
45668
45669         * modules/mkdir (License): Re-license as LGPLv2+.
45670
45671 2008-04-29  Bruno Haible  <bruno@clisp.org>
45672
45673         * modules/rawmemchr (Maintainer): Set to Eric.
45674         * modules/strchrnul (Maintainer): Likewise.
45675
45676 2008-04-29  Simon Josefsson  <simon@josefsson.org>
45677
45678         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
45679         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
45680
45681         * modules/arpa_inet (arpa/inet.h): Use them.
45682
45683 2008-04-28  Eric Blake  <ebb9@byu.net>
45684
45685         Test getndelim2.
45686         * modules/getndelim2-tests: New file.
45687         * tests/test-getndelim2.c: Likewise.
45688         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
45689         stream.
45690         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
45691
45692         * MODULES.html.sh: Document new module.
45693
45694 2008-04-20  Bruno Haible  <bruno@clisp.org>
45695
45696         * lib/c-stack.c (die): Use raise.
45697         * modules/c-stack (Depends-on): Add raise.
45698
45699 2008-04-28  Bruno Haible  <bruno@clisp.org>
45700
45701         Expect rpmatch to be declared.
45702         * lib/yesno.c (rpmatch): Remove declaration.
45703
45704         Declare rpmatch.
45705         * lib/stdlib.in.h (rpmatch): New declaration.
45706         * lib/rpmatch.c: Include <stdlib.h> first.
45707         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
45708         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
45709         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
45710         HAVE_RPMATCH.
45711         * modules/rpmatch (Depends-on): Add stdlib, extensions.
45712         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45713         (Include): Set to <stdlib.h>.
45714         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
45715         HAVE_RPMATCH.
45716         * NEWS: Document the change.
45717
45718 2008-04-28  Bruno Haible  <bruno@clisp.org>
45719
45720         Change rpmatch to use nl_langinfo when appropriate.
45721         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
45722         (N_): New macro.
45723         (localized_pattern): New function/macro.
45724         (try): Remove match, nomatch arguments. Copy the pattern into safe
45725         memory before caching it.
45726         (rpmatch): Use localized_pattern. Add translator comments.
45727         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
45728         Suggested by Eric Blake.
45729         * modules/rpmatch (Depends-on): Add stdbool.
45730
45731 2008-04-28  Eric Blake  <ebb9@byu.net>
45732
45733         Add rawmemchr module, matching glibc.
45734         * modules/string (Makefile.am): New indicator.
45735         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
45736         * lib/string.in.h (rawmemchr): Declare when appropriate.
45737         * modules/rawmemchr: New file.
45738         * m4/rawmemchr.m4: Likewise.
45739         * lib/rawmemchr.c: Likewise.
45740         * modules/rawmemchr-tests: Likewise.
45741         * tests/test-rawmemchr.c: Likewise.
45742         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
45743         module.
45744         * modules/strchrnul (Depends-on): Add rawmemchr.
45745         * lib/strchrnul.c (strchrnul): Optimize a corner case.
45746
45747         Whitespace cleanup.
45748         * tests/test-strchrnul.c: Reindent.
45749         * lib/strchrnul.c: Likewise.
45750
45751         Optimize and test strchrnul.
45752         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
45753         * modules/strchrnul-tests: New file.
45754         * tests/test-strchrnul.c: Likewise.
45755
45756         Remove intprops dependency.
45757         * modules/memchr (Depends-on): Remove intprops.
45758         * modules/memrchr (Depends-on): Likewise.
45759         * modules/memchr2 (Depends-on): Likewise.
45760         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
45761         * lib/memrchr.c (__memrchr): Likewise.
45762         * lib/memrchr2.c (memchr2): Likewise.
45763         Reported by Simon Josefsson.
45764
45765 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45766
45767         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
45768         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45769
45770 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45771
45772         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
45773
45774         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
45775
45776         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
45777
45778         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
45779         declarations.
45780         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
45781
45782         * m4/inet_pton.m4: Don't check for header files.
45783
45784         * m4/inet_ntop.m4: Don't check for header files.
45785
45786 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45787
45788         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
45789         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
45790         trigger for cygwin).
45791         Reported by Bruno Haible  <bruno@clisp.org>.
45792
45793 2008-04-28  Bruno Haible  <bruno@clisp.org>
45794
45795         * doc/posix-functions/strdup.texi: Mention mingw problem.
45796
45797 2008-04-27  Bruno Haible  <bruno@clisp.org>
45798
45799         * modules/stat-time-tests (Depends-on): Add sleep.
45800         * tests/test-stat-time.c (force_unlink): New function.
45801         (cleanup): Use it.
45802         (test_mtime): Remove the ctime related tests.
45803         (test_ctime): New function, containing the ctime related tests.
45804         (main): Call test_ctime, except on native Windows platforms.
45805
45806 2008-04-27  Bruno Haible  <bruno@clisp.org>
45807
45808         * lib/rpmatch.c (rpmatch): Add some comments.
45809         Reported by James Youngman <jay@gnu.org>.
45810
45811 2008-04-27  Bruno Haible  <bruno@clisp.org>
45812
45813         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
45814         quiet NaNs.
45815
45816 2008-04-27  Bruno Haible  <bruno@clisp.org>
45817
45818         Make test-yesno.sh work on mingw.
45819         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
45820         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
45821         (main): Set stdin to binary mode.
45822         * modules/yesno-tests (Depends-on): Add binary-io.
45823
45824 2008-04-27  Bruno Haible  <bruno@clisp.org>
45825
45826         Fix 'isfinite' on x86, x86_64, ia64 platforms.
45827         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
45828         argument that lie outside the IEEE 854 domain.
45829         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
45830         (gl_ISFINITE): Use it.
45831         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
45832
45833 2008-04-27  Bruno Haible  <bruno@clisp.org>
45834
45835         Allow local renaming in config.h.
45836         * lib/memrchr.c (memrchr): Don't undefine outside libc.
45837
45838 2008-04-27  Bruno Haible  <bruno@clisp.org>
45839
45840         * lib/memchr.c (__memchr): Change type of 'i'.
45841         * lib/memchr2.c (memchr2): Likewise.
45842
45843 2008-04-26  Eric Blake  <ebb9@byu.net>
45844         and Bruno Haible  <bruno@clisp.org>
45845
45846         Optimize and test memrchr.
45847         * modules/memrchr (Depends-on): Add intprops.
45848         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
45849         * modules/memrchr-tests: New file.
45850         * tests/test-memrchr.c: New file.
45851
45852 2008-04-26  Bruno Haible  <bruno@clisp.org>
45853
45854         Add tentative support for DragonFly BSD.
45855         * lib/stdio-impl.h: Add macros for DragonFly BSD.
45856         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
45857         fp.
45858         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
45859         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
45860         * lib/fpurge.c (fpurge): Likewise.
45861         * lib/freadable.c (freaadable): Likewise.
45862         * lib/freadahead.c (freadahead): Likewise.
45863         * lib/freading.c (freading): Likewise.
45864         * lib/freadptr.c (freadptr): Likewise.
45865         * lib/freadseek.c (freadptrinc): Likewise.
45866         * lib/fseeko.c (fseeko): Likewise.
45867         * lib/fseterr.c (fseterr): Likewise.
45868         * lib/fwritable.c (fwritable): Likewise.
45869         * lib/fwriting.c (fwriting): Likewise.
45870
45871 2008-04-26  Bruno Haible  <bruno@clisp.org>
45872
45873         * lib/stdio-impl.h: New file.
45874         * lib/fbufmode.c: Include stdio-impl.h.
45875         (fbufmode): Use fp_, remove redundant #defines.
45876         * lib/fflush.c: Include stdio-impl.h.
45877         (clear_ungetc_buffer): Remove redundant #defines.
45878         * lib/fpurge.c: Include stdio-impl.h.
45879         (fpurge): Remove redundant #defines.
45880         * lib/freadable.c: Include stdio-impl.h.
45881         (freadable): Remove redundant #defines.
45882         * lib/freadahead.c: Include stdio-impl.h.
45883         (freadahead): Remove redundant #defines.
45884         * lib/freading.c: Include stdio-impl.h.
45885         (freading): Remove redundant #defines.
45886         * lib/freadptr.c: Include stdio-impl.h.
45887         (freadptr): Remove redundant #defines.
45888         * lib/freadseek.c: Include stdio-impl.h.
45889         (freadptrinc): Remove redundant #defines.
45890         * lib/fseeko.c: Include stdio-impl.h.
45891         (rpl_fseeko): Remove redundant #defines.
45892         * lib/fseterr.c: Include stdio-impl.h.
45893         (fseterr): Remove redundant #defines.
45894         * lib/fwritable.c: Include stdio-impl.h.
45895         (fwritable: Remove redundant #defines.
45896         * lib/fwriting.c: Include stdio-impl.h.
45897         (fwriting): Remove redundant #defines.
45898         * modules/fbufmode (Files): Add lib/stdio-impl.h.
45899         * modules/fflush (Files): Likewise.
45900         * modules/fpurge (Files): Likewise.
45901         * modules/freadable (Files): Likewise.
45902         * modules/freadahead (Files): Likewise.
45903         * modules/freading (Files): Likewise.
45904         * modules/freadptr (Files): Likewise.
45905         * modules/freadseek (Files): Likewise.
45906         * modules/fseeko (Files): Likewise.
45907         * modules/fseterr (Files): Likewise.
45908         * modules/fwritable (Files): Likewise.
45909         * modules/fwriting (Files): Likewise.
45910
45911 2008-04-26  Bruno Haible  <bruno@clisp.org>
45912
45913         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
45914         restore_seek_optimization, update_fpos_cache): New functions, extracted
45915         from rpl_fflush.
45916         (rpl_fflush): Use them.
45917         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
45918         (gl_REPLACE_FFLUSH): Use it.
45919
45920 2008-04-26  Bruno Haible  <bruno@clisp.org>
45921
45922         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
45923         on Solaris.
45924         * tests/test-xstrtoimax.sh: Likewise.
45925         * tests/test-xstrtoumax.sh: Likewise.
45926         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45927
45928 2008-04-26  Bruno Haible  <bruno@clisp.org>
45929
45930         * modules/memchr-tests: New file.
45931         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
45932
45933 2008-04-26  Eric Blake  <ebb9@byu.net>
45934             Bruno Haible  <bruno@clisp.org>
45935
45936         * lib/memchr.c: Include intprops.h.
45937         (__memchr): Optimize parallel detection of matching bytes. Rename local
45938         variables. Add explanatory comments.
45939
45940 2008-04-26  Bruno Haible  <bruno@clisp.org>
45941
45942         Fix module 'memchr', broken since 2000-10-28.
45943         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
45944
45945 2008-04-26  Bruno Haible  <bruno@clisp.org>
45946
45947         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
45948         comments.
45949
45950 2008-04-25  Eric Blake  <ebb9@byu.net>
45951
45952         Use native fstatat on cygwin 1.7.0.
45953         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
45954         first.
45955
45956 2008-04-23  Eric Blake  <ebb9@byu.net>
45957
45958         Improve memchr2 performance.
45959         * lib/memchr2.c (memchr2): Further optimize parallel detection of
45960         NUL bytes.
45961         * modules/memchr2 (Depends-on): Use intprops.h.
45962
45963 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45964
45965         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
45966         an inline function instead of a CPP macro.  Patch by Ben Pfaff
45967         <blp@cs.stanford.edu>.
45968
45969 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45970
45971         * lib/arpa_inet.in.h: New file.
45972
45973         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
45974         (Makefile.am): Sed in substitute header file.
45975
45976         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
45977         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
45978
45979         * modules/inet_ntop (configure.ac): Use
45980         gl_ARPA_INET_MODULE_INDICATOR.
45981
45982         * modules/inet_pton (configure.ac): Use
45983         gl_ARPA_INET_MODULE_INDICATOR.
45984
45985 2008-04-22  Jim Meyering  <meyering@redhat.com>
45986
45987         * modules/verify (License): Re-license as LGPLv2+.
45988
45989 2008-04-22  Simon Josefsson  <simon@josefsson.org>
45990
45991         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
45992         parameter to void* as per POSIX standard (MinGW uses char*).
45993
45994 2008-04-21  Bruno Haible  <bruno@clisp.org>
45995
45996         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45997         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45998         Define to replacements if REPLACE_ISWCNTRL is 1.
45999         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46000         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46001         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46002         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46003         what it fixes.
46004         * doc/posix-functions/iswalpha.texi: Likewise.
46005         * doc/posix-functions/iswblank.texi: Likewise.
46006         * doc/posix-functions/iswcntrl.texi: Likewise.
46007         * doc/posix-functions/iswdigit.texi: Likewise.
46008         * doc/posix-functions/iswgraph.texi: Likewise.
46009         * doc/posix-functions/iswlower.texi: Likewise.
46010         * doc/posix-functions/iswprint.texi: Likewise.
46011         * doc/posix-functions/iswpunct.texi: Likewise.
46012         * doc/posix-functions/iswspace.texi: Likewise.
46013         * doc/posix-functions/iswupper.texi: Likewise.
46014         * doc/posix-functions/iswxdigit.texi: Likewise.
46015         Reported by Alain Guibert.
46016
46017 2008-04-21  Bruno Haible  <bruno@clisp.org>
46018
46019         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46020         Patch by Alain Guibert.
46021
46022 2008-04-21  Bruno Haible  <bruno@clisp.org>
46023
46024         Fix test failures on mingw.
46025         * tests/test-xstrtol.c (print_no_progname): New function.
46026         (main): Install it in error_print_progname hook.
46027         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46028         * tests/test-xstrtoimax.sh: Likewise.
46029         * tests/test-xstrtoumax.sh: Likewise.
46030
46031 2008-04-21  Bruno Haible  <bruno@clisp.org>
46032
46033         Fix test failure on mingw.
46034         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46035
46036 2008-04-21  Bruno Haible  <bruno@clisp.org>
46037
46038         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46039         Actually assign a value.
46040
46041 2008-04-20  Bruno Haible  <bruno@clisp.org>
46042
46043         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46044         take 2.
46045         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46046         'canonicalize-lgpl' module is also used.
46047         * lib/canonicalize-lgpl.c: Undo last change.
46048         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46049
46050 2008-04-20  Bruno Haible  <bruno@clisp.org>
46051
46052         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46053         config.h. Provide _mkdir based fallback for mingw.
46054         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46055         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46056         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46057         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46058         rather than defining mkdir in config.h.
46059         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46060         (gl_SYS_STAT_H_DEFAULTS): New macro.
46061         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46062         HAVE_IO_H any more.
46063         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46064         HAVE_DECL_MKDIR and HAVE_IO_H.
46065
46066 2008-04-20  Bruno Haible  <bruno@clisp.org>
46067
46068         * lib/isapipe.c: Port to native Windows platforms.
46069
46070 2008-04-20  Bruno Haible  <bruno@clisp.org>
46071
46072         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46073
46074 2008-04-21  Eric Blake  <ebb9@byu.net>
46075
46076         Work around preprocessors that don't handle UINTMAX_MAX.
46077         * lib/memchr2.c (memchr2): Avoid embedded #if.
46078         Reported by Alain Guibert, fix suggested by Bruno Haible.
46079
46080 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46081
46082         * doc/posix-functions/strftime.texi (strftime): Explain better
46083         Windows incompatibility.  Suggested by Micah Cowan
46084         <micah@cowan.name>.
46085
46086 2008-04-20  Bruno Haible  <bruno@clisp.org>
46087
46088         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46089         unistr/u8-mblen.
46090
46091 2008-04-20  Bruno Haible  <bruno@clisp.org>
46092
46093         Fix test failure on platforms with non-GNU iconv.
46094         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46095         (U_TO_U8): Use it, rather than u16_to_u8.
46096         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46097         units at the end of the input string.
46098         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46099
46100 2008-04-20  Bruno Haible  <bruno@clisp.org>
46101
46102         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46103         when the resulting length is 0.
46104         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46105
46106 2008-04-20  Bruno Haible  <bruno@clisp.org>
46107
46108         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46109         works.
46110         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46111
46112 2008-04-20  Bruno Haible  <bruno@clisp.org>
46113
46114         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46115         * modules/tsearch-tests (configure.ac): Test for initstate function.
46116
46117 2008-04-20  Bruno Haible  <bruno@clisp.org>
46118
46119         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46120         for nlink_t if missing.
46121         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46122
46123 2008-04-19  Bruno Haible  <bruno@clisp.org>
46124
46125         Work around snprintf bug on Linux libc5.
46126         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46127         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46128         gl_SNPRINTF_SIZE1.
46129         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46130         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46131         that test failed.
46132         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46133         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46134         * modules/snprintf (Files): Add m4/printf.m4.
46135         * modules/vsnprintf (Files): Likewise.
46136         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46137         * doc/posix-functions/vsnprintf.texi: Likewise.
46138
46139 2008-04-19  Bruno Haible  <bruno@clisp.org>
46140
46141         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46142         from 0.0058 to less than 10^-7.
46143
46144 2008-04-19  Bruno Haible  <bruno@clisp.org>
46145
46146         Fix rounding when a precision is given.
46147         * lib/vasnprintf.c (is_borderline): New function.
46148         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
46149         9...9x.
46150         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
46151         %e, %g.
46152         * tests/test-vasprintf-posix.c (test_function): Likewise.
46153         * tests/test-snprintf-posix.h (test_function): Likewise.
46154         * tests/test-sprintf-posix.h (test_function): Likewise.
46155         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
46156         * tests/test-printf-posix.h (test_function): Likewise.
46157         * tests/test-printf-posix.output: Update.
46158         Reported by John Darrington <john@darrington.wattle.id.au> via
46159         Ben Pfaff <blp@cs.stanford.edu>.
46160
46161 2008-04-18  Simon Josefsson  <simon@josefsson.org>
46162
46163         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
46164         Suggested by Bruno Haible <bruno@clisp.org>.
46165
46166 2008-04-17  Bruno Haible  <bruno@clisp.org>
46167
46168         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
46169         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
46170         implementation.
46171         Patch by Bruce Merry <bmerry@gmail.com>.
46172
46173 2008-04-17  Simon Josefsson  <simon@josefsson.org>
46174
46175         * doc/posix-functions/strftime.texi (strftime): Mention that %e
46176         doesn't work under Windows.
46177
46178 2008-04-16  Bruno Haible  <bruno@clisp.org>
46179
46180         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
46181         New macros.
46182         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
46183         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46184         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
46185         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
46186         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
46187         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
46188         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
46189         macros.
46190         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
46191         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
46192         Northern Sotho, Uighur.
46193
46194 2008-04-16  Bruno Haible  <bruno@clisp.org>
46195
46196         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
46197         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
46198         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
46199         Reported by Daniel Bergström <daniel@octocode.com>.
46200
46201 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
46202             Bruno Haible  <bruno@clisp.org>
46203
46204         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
46205         function.
46206         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
46207         New functions, mostly extracted from gl_locale_name_default.
46208         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
46209
46210 2008-04-16  Eric Blake  <ebb9@byu.net>
46211
46212         Adjust strtod detection to catch glibc 2.7 bug.
46213         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
46214         Reported by John Gatewood Ham.
46215
46216 2008-04-16  Bruno Haible  <bruno@clisp.org>
46217
46218         Add tentative support for Linux libc5.
46219         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
46220         * lib/fpurge.c (fpurge): Likewise.
46221         * lib/freadable.c (freadable): Likewise.
46222         * lib/freadahead.c (freadahead): Likewise.
46223         * lib/freading.c (freading): Likewise.
46224         * lib/freadptr.c (freadptr): Likewise.
46225         * lib/freadseek.c (freadptrinc): Likewise.
46226         * lib/fseeko.c (rpl_fseeko): Likewise.
46227         * lib/fseterr.c (fseterr): Likewise.
46228         * lib/fwritable.c (fwritable): Likewise.
46229         * lib/fwriting.c (fwriting): Likewise.
46230         Reported by Alain Guibert <alguibert+bts@free.fr>.
46231
46232 2008-04-15  Bruno Haible  <bruno@clisp.org>
46233
46234         * modules/mathl (configure.ac): Define module indicator.
46235
46236 2008-04-15  Bruno Haible  <bruno@clisp.org>
46237
46238         * lib/logl.c (logl): Remove unused variables.
46239
46240 2008-04-15  Bruno Haible  <bruno@clisp.org>
46241
46242         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
46243         fails.
46244
46245 2008-04-15  Bruno Haible  <bruno@clisp.org>
46246
46247         * lib/trim.c (trim2): Fix argument of isspace() macro.
46248
46249 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
46250
46251         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
46252         to 0.
46253         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
46254
46255 2008-04-14  Bruno Haible  <bruno@clisp.org>
46256
46257         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
46258         AC_LANG_PROGRAM argument.
46259         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
46260         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
46261         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46262         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46263         * m4/math_h.m4 (gl_MATH_H): Likewise.
46264         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46265         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46266         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46267         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
46268         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46269         * m4/regex.m4 (gl_REGEX): Likewise.
46270         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
46271         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
46272         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46273         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46274         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46275         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46276         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46277         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46278
46279 2008-04-14  Jim Meyering  <meyering@redhat.com>
46280
46281         test-strtod: fix typos: s/abs/fabs/
46282         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46283
46284 2008-04-13  Bruno Haible  <bruno@clisp.org>
46285
46286         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46287         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46288         module is also used and while not building the reloc-wrapper.
46289
46290 2008-04-13  Bruno Haible  <bruno@clisp.org>
46291
46292         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46293
46294 2008-04-13  Bruno Haible  <bruno@clisp.org>
46295
46296         Fix AIX compilation failure introduced on 2008-04-02.
46297         * tests/test-frexp.c (exp): Undefine before redefining.
46298         * tests/test-frexpl.c (exp): Likewise.
46299
46300 2008-04-13  Bruno Haible  <bruno@clisp.org>
46301
46302         Work around a HP-UX stdio bug.
46303         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46304         * tests/test-ftello.c (main): Likewise.
46305         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46306         * doc/posix-functions/ftello.texi: Likewise.
46307
46308 2008-04-13  Bruno Haible  <bruno@clisp.org>
46309
46310         Make test-signbit pass on HP-UX/hppa.
46311         * tests/test-signbit.c (minus_zerol): New variable.
46312         (test_signbitl): Use it.
46313
46314 2008-04-13  Bruno Haible  <bruno@clisp.org>
46315
46316         Make truncl work on OSF/1 4.0.
46317         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
46318         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46319         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
46321         HAVE_DECL_TRUNCL.
46322         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
46323         HAVE_DECL_TRUNCL.
46324         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
46325
46326 2008-04-13  Bruno Haible  <bruno@clisp.org>
46327
46328         * lib/unictype.h: Remove trailing comma from enumeration definitions.
46329
46330 2008-04-13  Bruno Haible  <bruno@clisp.org>
46331
46332         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
46333         expression, so as to avoid HP-UX 11 cc compiler bug.
46334
46335 2008-04-13  Bruno Haible  <bruno@clisp.org>
46336
46337         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
46338
46339 2008-04-13  Bruno Haible  <bruno@clisp.org>
46340
46341         * lib/git-merge-changelog.c: Remove empty declaration outside of
46342         functions.
46343
46344 2008-04-13  Bruno Haible  <bruno@clisp.org>
46345
46346         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
46347
46348 2008-04-13  Bruno Haible  <bruno@clisp.org>
46349
46350         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
46351         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
46352         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
46353         also if it exists but lacks definitions of the SHUT_* macros.
46354         * modules/sys_socket (Description): Update.
46355         Reported by Elbert Pol <e.pol@chello.nl>.
46356
46357 2008-04-13  Bruno Haible  <bruno@clisp.org>
46358
46359         * lib/localcharset.c (OS2): Don't redefine if already defined.
46360         Reported by Elbert Pol <e.pol@chello.nl>.
46361
46362 2008-04-13  Bruno Haible  <bruno@clisp.org>
46363
46364         * lib/binary-io.h [__EMX__]: Include <io.h>.
46365         Reported by Elbert Pol <e.pol@chello.nl>.
46366
46367 2008-04-12  Bruno Haible  <bruno@clisp.org>
46368
46369         * lib/fpucw.h: Enable the definitions also for x86_64.
46370         Needed for NetBSD/x86_64.
46371         Reported by Thomas Klausner <tk@giga.or.at>.
46372
46373 2008-04-12  Bruno Haible  <bruno@clisp.org>
46374
46375         * tests/test-strtod.c: Include isnand.h.
46376         (main): Use isnand instead of isnan.
46377         Reported by Jim Meyering.
46378
46379 2008-04-12  Bruno Haible  <bruno@clisp.org>
46380
46381         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
46382         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46383
46384 2008-04-12  Jim Meyering  <meyering@redhat.com>
46385
46386         * m4/math_h.m4 (gl_MATH_H): Fix typos.
46387
46388 2008-04-12  Bruno Haible  <bruno@clisp.org>
46389
46390         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
46391         Reported by Elbert Pol <e.pol@chello.nl>.
46392
46393 2008-04-12  Eric Blake  <ebb9@byu.net>
46394
46395         Work around Solaris 10 math.h bug.
46396         * m4/math_h.m4 (gl_MATH_H): Check for bug.
46397         (gl_MATH_H_DEFAULTS): Set up default.
46398         * modules/math (Makefile.am): Replace new indicators.
46399         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
46400         * tests/test-math.c (main): Test this.
46401         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
46402         * doc/posix-headers/math.texi (math.h): Mention bug.
46403         Reported by Nelson H. F. Beebe and Jim Meyering.
46404
46405 2008-04-11  Bruno Haible  <bruno@clisp.org>
46406
46407         Adapt to future versions of Apple GCC.
46408         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
46409         Reported by Peter O'Gorman <peter@pogma.com>.
46410
46411 2008-04-11  Bruno Haible  <bruno@clisp.org>
46412
46413         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
46414
46415 2008-04-11  Bruno Haible  <bruno@clisp.org>
46416
46417         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
46418
46419         * modules/getaddrinfo-tests (Makefile.am): Define
46420         test_getaddrinfo_LDADD.
46421
46422 2008-04-11  Bruno Haible  <bruno@clisp.org>
46423
46424         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
46425         (init): Fix syntax error.
46426         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
46427         is declared.
46428
46429 2008-04-11  Bruno Haible  <bruno@clisp.org>
46430
46431         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
46432         * modules/glob (Depends-on): Add stdbool.
46433
46434 2008-04-11  Bruno Haible  <bruno@clisp.org>
46435
46436         * lib/trim.c: Include <string.h>.
46437
46438 2008-04-11  Eric Blake  <ebb9@byu.net>
46439
46440         Avoid compile failure on OS/2.
46441         * lib/regex_internal.h (internal_function): Disable optimization
46442         on OS/2 (__EMX__), where it caused compiler error.
46443         Reported by Elbert Pol.
46444
46445 2008-04-11  Bruno Haible  <bruno@clisp.org>
46446
46447         Flush the standard error stream before aborting. Needed on mingw.
46448         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
46449         * tests/test-array_list.c (ASSERT): Likewise.
46450         * tests/test-array_oset.c (ASSERT): Likewise.
46451         * tests/test-avltree_list.c (ASSERT): Likewise.
46452         * tests/test-avltree_oset.c (ASSERT): Likewise.
46453         * tests/test-avltreehash_list.c (ASSERT): Likewise.
46454         * tests/test-binary-io.c (ASSERT): Likewise.
46455         * tests/test-byteswap.c (ASSERT): Likewise.
46456         * tests/test-c-ctype.c (ASSERT): Likewise.
46457         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
46458         * tests/test-c-strcasestr.c (ASSERT): Likewise.
46459         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
46460         * tests/test-c-strstr.c (ASSERT): Likewise.
46461         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
46462         * tests/test-canonicalize.c (ASSERT): Likewise.
46463         * tests/test-carray_list.c (ASSERT): Likewise.
46464         * tests/test-ceilf1.c (ASSERT): Likewise.
46465         * tests/test-ceilf2.c (ASSERT): Likewise.
46466         * tests/test-ceill.c (ASSERT): Likewise.
46467         * tests/test-count-one-bits.c (ASSERT): Likewise.
46468         * tests/test-fbufmode.c (ASSERT): Likewise.
46469         * tests/test-fflush2.c (ASSERT): Likewise.
46470         * tests/test-floorf1.c (ASSERT): Likewise.
46471         * tests/test-floorf2.c (ASSERT): Likewise.
46472         * tests/test-floorl.c (ASSERT): Likewise.
46473         * tests/test-fopen.c (ASSERT): Likewise.
46474         * tests/test-fpending.c (ASSERT): Likewise.
46475         * tests/test-fprintf-posix.c (ASSERT): Likewise.
46476         * tests/test-fpurge.c (ASSERT): Likewise.
46477         * tests/test-freadable.c (ASSERT): Likewise.
46478         * tests/test-freadahead.c (ASSERT): Likewise.
46479         * tests/test-freading.c (ASSERT): Likewise.
46480         * tests/test-freadptr.c (ASSERT): Likewise.
46481         * tests/test-freadptr2.c (ASSERT): Likewise.
46482         * tests/test-freadseek.c (ASSERT): Likewise.
46483         * tests/test-freopen.c (ASSERT): Likewise.
46484         * tests/test-frexp.c (ASSERT): Likewise.
46485         * tests/test-frexpl.c (ASSERT): Likewise.
46486         * tests/test-fseek.c (ASSERT): Likewise.
46487         * tests/test-fseeko.c (ASSERT): Likewise.
46488         * tests/test-fstrcmp.c (ASSERT): Likewise.
46489         * tests/test-ftell.c (ASSERT): Likewise.
46490         * tests/test-ftello.c (ASSERT): Likewise.
46491         * tests/test-func.c (ASSERT): Likewise.
46492         * tests/test-fwritable.c (ASSERT): Likewise.
46493         * tests/test-fwriting.c (ASSERT): Likewise.
46494         * tests/test-getdelim.c (ASSERT): Likewise.
46495         * tests/test-getline.c (ASSERT): Likewise.
46496         * tests/test-i-ring.c (ASSERT): Likewise.
46497         * tests/test-iconv-utf.c (ASSERT): Likewise.
46498         * tests/test-iconv.c (ASSERT): Likewise.
46499         * tests/test-isfinite.c (ASSERT): Likewise.
46500         * tests/test-isnand.c (ASSERT): Likewise.
46501         * tests/test-isnanf.c (ASSERT): Likewise.
46502         * tests/test-isnanl.h (ASSERT): Likewise.
46503         * tests/test-ldexpl.c (ASSERT): Likewise.
46504         * tests/test-linked_list.c (ASSERT): Likewise.
46505         * tests/test-linkedhash_list.c (ASSERT): Likewise.
46506         * tests/test-localename.c (ASSERT): Likewise.
46507         * tests/test-lseek.c (ASSERT): Likewise.
46508         * tests/test-mbscasecmp.c (ASSERT): Likewise.
46509         * tests/test-mbscasestr1.c (ASSERT): Likewise.
46510         * tests/test-mbscasestr2.c (ASSERT): Likewise.
46511         * tests/test-mbscasestr3.c (ASSERT): Likewise.
46512         * tests/test-mbscasestr4.c (ASSERT): Likewise.
46513         * tests/test-mbschr.c (ASSERT): Likewise.
46514         * tests/test-mbscspn.c (ASSERT): Likewise.
46515         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
46516         * tests/test-mbspbrk.c (ASSERT): Likewise.
46517         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
46518         * tests/test-mbsrchr.c (ASSERT): Likewise.
46519         * tests/test-mbsspn.c (ASSERT): Likewise.
46520         * tests/test-mbsstr1.c (ASSERT): Likewise.
46521         * tests/test-mbsstr2.c (ASSERT): Likewise.
46522         * tests/test-mbsstr3.c (ASSERT): Likewise.
46523         * tests/test-memchr2.c (ASSERT): Likewise.
46524         * tests/test-memmem.c (ASSERT): Likewise.
46525         * tests/test-open.c (ASSERT): Likewise.
46526         * tests/test-printf-frexp.c (ASSERT): Likewise.
46527         * tests/test-printf-frexpl.c (ASSERT): Likewise.
46528         * tests/test-printf-posix.c (ASSERT): Likewise.
46529         * tests/test-quotearg.c (ASSERT): Likewise.
46530         * tests/test-rbtree_list.c (ASSERT): Likewise.
46531         * tests/test-rbtree_oset.c (ASSERT): Likewise.
46532         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
46533         * tests/test-round1.c (ASSERT): Likewise.
46534         * tests/test-roundf1.c (ASSERT): Likewise.
46535         * tests/test-roundl.c (ASSERT): Likewise.
46536         * tests/test-signbit.c (ASSERT): Likewise.
46537         * tests/test-sleep.c (ASSERT): Likewise.
46538         * tests/test-snprintf-posix.c (ASSERT): Likewise.
46539         * tests/test-snprintf.c (ASSERT): Likewise.
46540         * tests/test-sprintf-posix.c (ASSERT): Likewise.
46541         * tests/test-stat-time.c (ASSERT): Likewise.
46542         * tests/test-strcasestr.c (ASSERT): Likewise.
46543         * tests/test-strerror.c (ASSERT): Likewise.
46544         * tests/test-striconv.c (ASSERT): Likewise.
46545         * tests/test-striconveh.c (ASSERT): Likewise.
46546         * tests/test-striconveha.c (ASSERT): Likewise.
46547         * tests/test-strsignal.c (ASSERT): Likewise.
46548         * tests/test-strstr.c (ASSERT): Likewise.
46549         * tests/test-strtod.c (ASSERT): Likewise.
46550         * tests/test-trunc1.c (ASSERT): Likewise.
46551         * tests/test-trunc2.c (ASSERT): Likewise.
46552         * tests/test-truncf1.c (ASSERT): Likewise.
46553         * tests/test-truncf2.c (ASSERT): Likewise.
46554         * tests/test-truncl.c (ASSERT): Likewise.
46555         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
46556         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
46557         * tests/test-vasnprintf.c (ASSERT): Likewise.
46558         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
46559         * tests/test-vasprintf.c (ASSERT): Likewise.
46560         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
46561         * tests/test-vprintf-posix.c (ASSERT): Likewise.
46562         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
46563         * tests/test-vsnprintf.c (ASSERT): Likewise.
46564         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
46565         * tests/test-wcwidth.c (ASSERT): Likewise.
46566         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
46567         * tests/test-xprintf-posix.c (ASSERT): Likewise.
46568         * tests/test-xvasprintf.c (ASSERT): Likewise.
46569         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
46570         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
46571         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
46572         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
46573         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
46574         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
46575         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
46576         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
46577         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
46578         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
46579         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
46580         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
46581         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
46582         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
46583         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
46584         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
46585         * tests/unictype/test-block_list.c (ASSERT): Likewise.
46586         * tests/unictype/test-block_of.c (ASSERT): Likewise.
46587         * tests/unictype/test-block_test.c (ASSERT): Likewise.
46588         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
46589         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
46590         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
46591         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
46592         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
46593         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
46594         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
46595         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
46596         * tests/unictype/test-combining.c (ASSERT): Likewise.
46597         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
46598         * tests/unictype/test-digit.c (ASSERT): Likewise.
46599         * tests/unictype/test-mirror.c (ASSERT): Likewise.
46600         * tests/unictype/test-numeric.c (ASSERT): Likewise.
46601         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
46602         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
46603         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
46604         * tests/unictype/test-scripts.c (ASSERT): Likewise.
46605         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
46606         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
46607         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
46608         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
46609         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
46610         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
46611         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
46612         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
46613         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
46614         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
46615         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
46616         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
46617         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
46618         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
46619         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
46620         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
46621         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
46622         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
46623         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
46624         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
46625         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
46626         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
46627         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
46628         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
46629         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
46630         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
46631         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
46632         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
46633         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
46634         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
46635         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
46636         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
46637         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
46638         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
46639         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
46640         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
46641         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
46642         Reported by Eric Blake.
46643
46644 2008-04-11  Bruno Haible  <bruno@clisp.org>
46645
46646         * lib/wchar.in.h: Tweak comment.
46647
46648 2008-04-11  Bruno Haible  <bruno@clisp.org>
46649
46650         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
46651         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
46652         gl_COMMON.
46653         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
46654
46655 2008-04-11  Bruno Haible  <bruno@clisp.org>
46656
46657         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
46658
46659 2008-04-11  Simon Josefsson  <simon@josefsson.org>
46660
46661         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
46662         of attempting to use non-existing /dev/*random.  Based on patch
46663         from Adam Strzelecki <ono@java.pl> in
46664         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
46665
46666 2008-04-08  Bruno Haible  <bruno@clisp.org>
46667
46668         Add tentative support for emx+gcc.
46669         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
46670         * lib/fpurge.c (fpurge): Likewise.
46671         * lib/freadable.c (freadable): Likewise.
46672         * lib/freadahead.c (freadahead): Likewise.
46673         * lib/freading.c (freading): Likewise.
46674         * lib/freadptr.c (freadptr): Likewise.
46675         * lib/freadseek.c (freadptrinc): Likewise.
46676         * lib/fseeko.c (rpl_fseeko): Likewise.
46677         * lib/fseterr.c (fseterr): Likewise.
46678         * lib/fwritable.c (fwritable): Likewise.
46679         * lib/fwriting.c (fwriting): Likewise.
46680         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
46681
46682 2008-04-09  Eric Blake  <ebb9@byu.net>
46683
46684         Avoid some autoconf warnings.
46685         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
46686         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
46687         * m4/afs.m4 (gl_AFS): Likewise.
46688         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
46689         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
46690         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46691         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
46692         (gl_INTEGER_TYPE_SUFFIX): Likewise.
46693         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
46694         (AC_CHECK_DECLS_ONCE): Likewise.
46695         Rename file...
46696         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
46697         gnulib-tool requires autoconf 2.59 or better.
46698         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
46699
46700 2008-04-08  Eric Blake  <ebb9@byu.net>
46701
46702         Use 'git describe --match' if present (added in git 1.5.5).
46703         * build-aux/git-version-gen: Limit result to tags that match 'v*'
46704         if possible.
46705
46706 2008-04-08  Bruno Haible  <bruno@clisp.org>
46707
46708         Add tentative support for OpenServer.
46709         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
46710         _ptr, _cnt.
46711         * lib/fpurge.c (fpurge): Likewise.
46712         * lib/freadable.c (freadable): Likewise.
46713         * lib/freadahead.c (freadahead): Likewise.
46714         * lib/freading.c (freading): Likewise.
46715         * lib/freadptr.c (freadptr): Likewise.
46716         * lib/freadseek.c (freadptrinc): Likewise.
46717         * lib/fseeko.c (rpl_fseeko): Likewise.
46718         * lib/fseterr.c (fseterr): Likewise.
46719         * lib/fwritable.c (fwritable): Likewise.
46720         * lib/fwriting.c (fwriting): Likewise.
46721         Reported by Roger Cornelius <rac@tenzing.org> and
46722         Brian K. White <brian@aljex.com>.
46723
46724 2008-04-06  Jim Meyering  <meyering@redhat.com>
46725
46726         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
46727
46728 2008-04-06  Bruno Haible  <bruno@clisp.org>
46729
46730         Avoid possible error with non-ASCII bytes in UTF-8 locales.
46731         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
46732         * tests/test-printf-posix.sh: Likewise.
46733         * tests/test-vfprintf-posix.sh: Likewise.
46734         * tests/test-vprintf-posix.sh: Likewise.
46735         * tests/test-xprintf-posix.sh: Likewise.
46736
46737 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46738
46739         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
46740         hide error from 'ls', needed on OS/2.
46741         Report by Elbert Pol <elbert.pol@gmail.com>.
46742
46743 2008-04-04  Eric Blake  <ebb9@byu.net>
46744
46745         Make test-fseeko.c failures meaningful.
46746         * tests/test-fseeko.c: Print line number on failure.
46747         * tests/test-fseek.c: Likewise.
46748         Reported by Nelson H. F. Beebe.
46749
46750         Improve strtod bug detection check.
46751         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
46752         required for Solaris 10.
46753         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
46754
46755 2008-04-04  Bruno Haible  <bruno@clisp.org>
46756
46757         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
46758         by m4/setenv.m4.
46759
46760 2008-04-03  Eric Blake  <ebb9@byu.net>
46761
46762         Ensure sane .version contents.
46763         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
46764         version string.
46765         * build-aux/git-version-gen: Improve documentation.
46766
46767         Make GNU make output nicer.
46768         * top/GNUmakefile [!_have-Makefile]: Add dependency on
46769         MAKECMDGOALS to enforce message for all command line targets.  Set
46770         srcdir for use in maint.mk.
46771
46772         Another maintainer tweak.
46773         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
46774         a target that regenerates version.
46775
46776 2008-04-03  Jim Meyering  <meyering@redhat.com>
46777
46778         vc-list-files: don't cause coreutils "make po-check" failure
46779         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
46780
46781 2008-04-03  Eric Blake  <ebb9@byu.net>
46782
46783         Allow VPATH usage of vc-list-files.
46784         * build-aux/vc-list-files (scriptversion): Add timestamp.
46785         (options): Add --help, --version, -C.
46786         (CVS): Support installed cvsu.
46787
46788 2008-04-02  Bruno Haible  <bruno@clisp.org>
46789
46790         Avoid some "statement with no effect" warnings from gcc.
46791         * tests/test-wctype.c (main): Explicitly ignore unused values.
46792         Reported by Jim Meyering.
46793
46794 2008-04-02  Jim Meyering  <meyering@redhat.com>
46795
46796         Avoid some warnings from "gcc -Wshadow".
46797         * tests/test-frexp.c (exp): Define to a different identifier.
46798         * tests/test-frexpl.c (exp): Likewise.
46799
46800 2008-04-03  Jim Meyering  <meyering@redhat.com>
46801
46802         bootstrap: remove dangling *.[ch] symlinks from lib
46803         * build-aux/bootstrap [dangling symlink removal]: Move find's
46804         -depth option to precede all others, to avoid a warning.
46805         Remove *.[ch] files too, and from "$source_base" (usually lib/).
46806
46807 2008-04-02  Bruno Haible  <bruno@clisp.org>
46808
46809         Avoid some warnings from "gcc -Wshadow".
46810         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
46811         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
46812         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
46813         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
46814         Reported by Jim Meyering.
46815
46816 2008-04-01  Bruno Haible  <bruno@clisp.org>
46817
46818         Fix test to work on IRIX 6.5 with cc.
46819         * tests/test-math.c (numeric_equal): New function.
46820         (main): Use it.
46821
46822 2008-04-01  Bruno Haible  <bruno@clisp.org>
46823
46824         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
46825
46826 2008-04-01  Bruno Haible  <bruno@clisp.org>
46827
46828         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
46829         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46830         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
46831         (Depends-on): Remove math.
46832
46833         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
46834         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46835         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
46836         (Depends-on): Remove math.
46837
46838         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
46839         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46840         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
46841         (Depends-on): Remove math.
46842         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
46843         (Depends-on): Remove math.
46844
46845         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
46846         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46847         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
46848         (Depends-on): Remove math.
46849         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
46850         (Depends-on): Remove math.
46851
46852         * tests/test-round1.c: Include nan.h.
46853         (main): Use NaNd instead of NAN.
46854         * modules/round-tests (Files): Add tests/nan.h.
46855
46856         * tests/test-trunc1.c: Include nan.h.
46857         (main): Use NaNd instead of NAN.
46858         * modules/trunc-tests (Files): Add tests/nan.h.
46859
46860         * tests/test-roundf1.c: Include nan.h.
46861         (main): Use NaNf instead of NAN.
46862         * modules/roundf-tests (Files): Add tests/nan.h.
46863
46864         * tests/test-truncf1.c: Include nan.h.
46865         (main): Use NaNf instead of NAN.
46866         * modules/truncf-tests (Files): Add tests/nan.h.
46867
46868         * tests/test-ceilf1.c: Include nan.h.
46869         (main): Use NaNf instead of NAN.
46870         * modules/ceilf-tests (Files): Add tests/nan.h.
46871
46872         * tests/test-floorf1.c: Include nan.h.
46873         (main): Use NaNf instead of NAN.
46874         * modules/floorf-tests (Files): Add tests/nan.h.
46875
46876         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
46877         (main): Use NaNf instead of NAN.
46878         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
46879
46880         * tests/test-isnand.c: Include nan.h instead of <math.h>.
46881         (main): Use NaNd instead of NAN.
46882         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
46883
46884         * tests/test-frexp.c: Include nan.h.
46885         (main): Use NaNd instead of NAN.
46886         * modules/frexp-tests (Files): Add tests/nan.h.
46887
46888         * lib/isnan.c: Don't include <math.h>.
46889         (FUNC): Don't use NAN macro.
46890         * modules/isnand-nolibm (Depends-on): Remove math.
46891         * modules/isnanf-nolibm (Depends-on): Remove math.
46892         * modules/isnanl (Depends-on): Remove math.
46893         * modules/isnanl-nolibm (Depends-on): Remove math.
46894
46895         * tests/nan.h: New file.
46896
46897 2008-04-01  Eric Blake  <ebb9@byu.net>
46898
46899         Fix typos.
46900         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
46901         values to be the right type.
46902
46903         For now, cater to gnulib strtod inaccuracies.
46904         * tests/test-strtod.c (main): Allow 1-ulp error on expected
46905         fractional results.  While not as nice from a QoI perspective, it
46906         is a quicker patch than correctly implementing decimal to binary
46907         rounding.
46908
46909 2008-03-31  Eric Blake  <ebb9@byu.net>
46910
46911         Guarantee a definition of NAN.
46912         * lib/math.in.h (NAN): Define if missing.
46913         * tests/test-math.c (main): Test it.
46914         * doc/posix-headers/math.texi (math.h): Document this.
46915         * lib/isnan.c (rpl_isnand): Use it.
46916         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
46917         * tests/test-floorf1.c (NaN): Likewise.
46918         * tests/test-frexp.c (NaN): Likewise.
46919         * tests/test-isnand.c (NaN): Likewise.
46920         * tests/test-isnanf.c (NaN): Likewise.
46921         * tests/test-round1.c (NaN): Likewise.
46922         * tests/test-roundf1.c (NaN): Likewise.
46923         * tests/test-snprintf-posix.h (NaN): Likewise.
46924         * tests/test-sprintf-posix.h (NaN): Likewise.
46925         * tests/test-trunc1.c (NaN): Likewise.
46926         * tests/test-truncf1.c (NaN): Likewise.
46927         * tests/test-vasnprintf-posix.c (NaN): Likewise.
46928         * tests/test-vasprintf-posix.c (NaN): Likewise.
46929         * modules/isnand-nolibm (Depends-on): Add math.
46930         * modules/isnanf-nolibm (Depends-on): Likewise.
46931         * modules/isnanl (Depends-on): Likewise.
46932         * modules/isnanl-nolibm (Depends-on): Likewise.
46933         * modules/snprintf-posix-tests (Depends-on): Likewise.
46934         * modules/sprintf-posix-tests (Depends-on): Likewise.
46935         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
46936         * modules/vsprintf-posix-tests (Depends-on): Likewise.
46937         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
46938         * modules/vasprintf-posix-tests (Depends-on): Likewise.
46939
46940 2008-03-31  Bruno Haible  <bruno@clisp.org>
46941
46942         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
46943         * doc/posix-functions/strtod.texi: Likewise.
46944
46945 2008-03-31  Bruno Haible  <bruno@clisp.org>
46946
46947         * tests/test-strtod.c (main): Don't use C99 syntax.
46948
46949 2008-03-31  Bruno Haible  <bruno@clisp.org>
46950
46951         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
46952         Reported by Eric Blake.
46953
46954 2008-03-31  Jim Meyering  <meyering@redhat.com>
46955
46956         Don't compare actual signbit return values.
46957         * tests/test-strtod.c (main): Rather, compare only their
46958         zero/non-zero nature.
46959
46960 2008-03-31  Eric Blake  <ebb9@byu.net>
46961
46962         More strtod documentation.
46963         * doc/posix-functions/strtod.texi (strtod): Interpret more test
46964         failures as distinct bugs.
46965
46966 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
46967
46968         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
46969         Problem reported by Erik Benada in
46970         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
46971
46972 2008-03-30  Bruno Haible  <bruno@clisp.org>
46973
46974         * tests/test-strtod.c: Add comments about which assertion fails on which
46975         platform.
46976         * doc/posix-functions/strtod.texi: Add info about many more platforms.
46977
46978 2008-03-30  Eric Blake  <ebb9@byu.net>
46979
46980         Test signbit behavior on zeros.
46981         * tests/test-signbit.c (test_signbitf): Add tests for zero.
46982         (test_signbitd, test_signbitl): Likewise.
46983
46984         More strtod touchups.
46985         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
46986         sign of negative underflow, for now.  Use .5, not .1.
46987         * doc/posix-functions/strtod.texi (strtod): Mention these
46988         limitations.
46989         Reported by Jim Meyering.
46990
46991 2008-03-30  Bruno Haible  <bruno@clisp.org>
46992
46993         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
46994         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
46995
46996 2008-03-30  Bruno Haible  <bruno@clisp.org>
46997
46998         Avoid failure when attempting to return empty iconv results on some
46999         platforms.
47000         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47001         allocation, don't report ENOMEM when the resulting string is empty.
47002
47003 2008-03-30  Bruno Haible  <bruno@clisp.org>
47004
47005         Fix buffer overrun.
47006         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47007         Don't consider the width for tmp_length. Check count against tmp_length
47008         before doing the padding. Ensure enough allocation during padding.
47009
47010 2008-03-30  Eric Blake  <ebb9@byu.net>
47011
47012         strtod touchups.
47013         * lib/strtod.c (strtod): Avoid compiler warnings.
47014         Reported by Jim Meyering.
47015
47016 2008-03-30  Bruno Haible  <bruno@clisp.org>
47017
47018         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47019         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47020         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47021         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47022         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47023         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47024         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47025         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47026
47027         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47028         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47029         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47030         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47031         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47032         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47033         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47034         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47035
47036         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47037         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47038         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47039         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47040         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47041         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47042         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47043         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47044
47045         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47046         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47047
47048         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47049         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47050
47051         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47052         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47053
47054         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47055         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47056         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47057
47058         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47059         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47060         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47061
47062         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47063         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47064         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47065
47066         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47067         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47068         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47069
47070         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47071         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47072         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47073         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47074         (Depends-on): Add EOVERFLOW.
47075         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47076         (Depends-on): Add EOVERFLOW.
47077         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47078         (Depends-on): Add EOVERFLOW.
47079         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47080         (Depends-on): Add EOVERFLOW.
47081         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47082         (Depends-on): Add EOVERFLOW.
47083         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47084         (Depends-on): Add EOVERFLOW.
47085         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47086         (Depends-on): Add EOVERFLOW.
47087         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47088         (Depends-on): Add EOVERFLOW.
47089
47090         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47091         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47092         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47093
47094         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47095         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47096         * modules/snprintf (Depends-on): Add EOVERFLOW.
47097
47098         * lib/poll.c (EOVERFLOW): Remove fallback.
47099         * modules/poll (Depends-on): Add EOVERFLOW.
47100
47101         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47102         * modules/getugroups (Depends-on): Add EOVERFLOW.
47103
47104         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47105         * modules/getdelim (Depends-on): Add EOVERFLOW.
47106
47107         * lib/ftell.c (EOVERFLOW): Remove fallback.
47108         * modules/ftell (Depends-on): Add EOVERFLOW.
47109
47110         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47111         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47112         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47113
47114         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47115
47116         * modules/EOVERFLOW-tests: New file.
47117         * tests/test-EOVERFLOW.c: New file.
47118
47119         * modules/EOVERFLOW: New file.
47120         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47121
47122 2008-03-30  Bruno Haible  <bruno@clisp.org>
47123
47124         Fix bug introduced on 2007-06-10.
47125         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47126         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47127
47128 2008-03-30  Bruno Haible  <bruno@clisp.org>
47129
47130         Improve freadseek's efficiency after ungetc.
47131         * lib/freadseek.c: Include freadahead.h.
47132         (freadptrinc): New function, extracted from freadseek.
47133         (freadseek): Use it in a loop. Use freadahead to determine the number
47134         of loop iterations.
47135         * modules/freadseek (Depends-on): Add freadahead.
47136         (configure.ac): Require AC_C_INLINE.
47137
47138 2008-03-30  Bruno Haible  <bruno@clisp.org>
47139
47140         * lib/freadseek.c (freadseek): Don't ignore the return value of
47141         freadptr.
47142
47143 2008-03-29  Eric Blake  <ebb9@byu.net>
47144
47145         Add hex float support.
47146         * modules/strtod (Depends-on): Add c-ctype.
47147         (Link): Mention POW_LIB.
47148         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
47149         whitespace between 'e' and exponent.
47150         * tests/test-strtod.c (main): Enable hex float tests.
47151         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
47152         now provides.
47153
47154         Document various strtod bugs, with some fixes.
47155         * doc/posix-functions/strtod.texi (strtod): Document bugs with
47156         "-0x", "inf", "nan", and hex constants.
47157         * doc/posix-functions/atof.texi (atof): Likewise.
47158         * modules/stdlib (Makefile.am): Support strtod.
47159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
47160         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
47161         detect additional strtod bugs.
47162         * lib/stdlib.in.h (rpl_strtod): Add declarations.
47163         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
47164         bool where appropriate.  Parse 'inf' and 'nan'.
47165         * tests/test-strtod.c: New file.
47166         * modules/strtod (Depends-on): Add stdbool, stdlib.
47167         (configure.ac): Turn on module indicator.
47168         * modules/strtod-tests: New module.
47169
47170 2008-03-29  Eric Blake  <ebb9@byu.net>
47171
47172         Fix ftell on mingw.
47173         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
47174         * modules/ftell-tests (Depends-on): Add binary-io.
47175         * modules/ftello-tests (Depends-on): Likewise.
47176         * tests/test-ftell.c (main): Enhance test to cover behavior after
47177         ungetc.  Enforce binary mode.
47178         * tests/test-ftello.c (main): Likewise.
47179
47180         Pass test-freadseek on cygwin.
47181         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
47182         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
47183         ungetc buffer.
47184
47185         * tests/test-fflush2.c (main): Fix typo.
47186
47187 2008-03-29  Bruno Haible  <bruno@clisp.org>
47188
47189         * tests/test-fflush2.c (main): Temporarily disable the contents of
47190         this test.
47191         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
47192         Reported by Eric Blake.
47193
47194 2008-03-28  Simon Josefsson  <simon@josefsson.org>
47195
47196         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
47197         (GC_SHA224_DIGEST_SIZE): Add.
47198
47199         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
47200         (gc_hash_digest_length): Likewise.
47201         (gc_hash_buffer): Likewise.
47202
47203 2008-03-25  Bruno Haible  <bruno@clisp.org>
47204
47205         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
47206         detail which gettext release to use.
47207         Reported by Simon Josefsson.
47208
47209 2008-03-26  Jim Meyering  <meyering@redhat.com>
47210
47211         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
47212         * modules/gnumakefile (clean-GNUmakefile): Also, use
47213         test ... && ... || : syntax rather than if-then ... fi.
47214
47215         gnumakefile: Don't double-quote-expand $(VPATH) value.
47216         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
47217
47218 2008-03-24  Eric Blake  <ebb9@byu.net>
47219
47220         Alter GNUmakefile to install into top directory.
47221         * modules/maintainer-makefile: Split, and add dependency...
47222         * modules/gnumakefile: to this new module.
47223         * build-aux/GNUmakefile: Move...
47224         * top/GNUmakefile: ...here.
47225         * build-aux/maint.mk: Move...
47226         * top/maint.mk: ...here.
47227         * MODULES.html.sh (Support for maintaining...): Document new
47228         module.
47229
47230 2008-03-23  Bruno Haible  <bruno@clisp.org>
47231
47232         * gnulib-tool: New options --vc-files, --no-vc-files.
47233         (func_usage): Document them.
47234         (vc_files): New variable.
47235         (func_import): Consider vc_files.
47236         (func_create_testdir): Set vc_files to empty.
47237         Suggested by Jim Meyering and Karl Berry.
47238
47239 2008-03-23  Bruno Haible  <bruno@clisp.org>
47240
47241         Fix regex compilation error on HP-UX 11.
47242         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
47243         * modules/regex (Files): Add m4/mbstate_t.m4.
47244         Reported by Ton Voon <ton.voon@altinity.com>.
47245
47246 2008-03-23  Bruno Haible  <bruno@clisp.org>
47247
47248         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
47249
47250 2008-03-23  Eric Blake  <ebb9@byu.net>
47251             Bruno Haible  <bruno@clisp.org>
47252
47253         Install files from top/ in the destination directory.
47254         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47255         augmentation also for the files from top/.
47256         (func_import, func_create_testdir): Rewrite file names:
47257         top/filename -> filename.
47258
47259 2008-03-23  Bruno Haible  <bruno@clisp.org>
47260
47261         Tweak "gnulib --version" output.
47262         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
47263
47264 2008-03-23  Bruno Haible  <bruno@clisp.org>
47265
47266         Tweak "gnulib --version" output.
47267         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
47268         rather than contents of ChangeLog, when possible.
47269
47270 2008-03-21  Eric Blake  <ebb9@byu.net>
47271
47272         More --version tweaks.
47273         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47274         date of last ChangeLog entry.
47275
47276 2008-03-21  Jim Meyering  <meyering@redhat.com>
47277
47278         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47279
47280 2008-03-20  Eric Blake  <ebb9@byu.net>
47281
47282         VPATH fix.
47283         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47284
47285 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47286
47287         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47288         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47289
47290 2008-03-20  Eric Blake  <ebb9@byu.net>
47291
47292         Sync GNUmakefile with coreutils.
47293         * build-aux/GNUmakefile (have-Makefile): Rename...
47294         (_have-Makefile): ...to this, for namespace consideration.
47295         (GNUmakefile.cfg): Include, if present.
47296         (_autoreconf): Define a default.
47297         (_is-dist-target): New rule for rebuilds to pick up intra-release
47298         version.
47299         (maint-cfg.mk): Rename...
47300         (cfg.mk): ...to this.
47301
47302 2008-03-18  Jim Meyering  <meyering@redhat.com>
47303
47304         New script and module: mktempd
47305         * MODULES.html.sh (maint+release support): Add mktempd.
47306         * build-aux/mktempd: New file.
47307         * modules/mktempd: New file.
47308
47309 2008-03-15  Jim Meyering  <meyering@redhat.com>
47310
47311         Undo last change.
47312         * lib/sha1.c, lib/md5.c: 63 != ~63.
47313         Reported by Andreas Schwab.
47314
47315         sha1.c, md5.c: Hoist a redundant expression.
47316         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
47317         "ctx->buflen" only once, before calling *_process_block.
47318         * lib/md5.c (md5_process_bytes): Likewise.
47319
47320 2008-03-14  Eric Blake  <ebb9@byu.net>
47321
47322         Bump copyright year in files generated by gnulib-tool.
47323         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
47324         gnulib-tool, rather than hard-coding it.
47325
47326         Fix 'gnulib-tool --version' output to work with git.
47327         * gnulib-tool (func_gnulib_dir): New function, extracted from...
47328         (startup): ...here.
47329         (func_version): Use it to invoke git-version-gen, rather than
47330         relying on CVS keyword expansion.  Modernize wording.
47331         (cvsdatestamp, last_checkin_date, version): Kill unused
47332         variables.
47333
47334 2008-03-12  Jim Meyering  <meyering@redhat.com>
47335
47336         Recognize optional cast of the argument to free.
47337         * build-aux/useless-if-before-free: Update regexps.
47338
47339         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
47340
47341 2008-03-11  Bruno Haible  <bruno@clisp.org>
47342
47343         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
47344         by a single package.
47345         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
47346         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
47347         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
47348         Reported by Sam Steingold <sds@gnu.org>.
47349
47350 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47351
47352         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
47353         repositories.
47354
47355 2008-03-11  Bruno Haible  <bruno@clisp.org>
47356
47357         Avoid conflicts between local macro definitions.
47358         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47359         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
47360
47361 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
47362             Bruno Haible  <bruno@clisp.org>
47363
47364         Make va_copy work with some version of xlc on AIX 5.1.
47365         * lib/stdarg.in.h: New file.
47366         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
47367         On AIX, use a <stdarg.h> file substitute.
47368         * modules/stdarg (Files): Add lib/stdarg.in.h.
47369         (Depends-on): Add include_next.
47370         (Makefile.am): Build a stdarg.h substitute if requested.
47371         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
47372
47373 2008-03-10  Bruno Haible  <bruno@clisp.org>
47374
47375         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
47376         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47377         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47378
47379 2008-03-10  Bruno Haible  <bruno@clisp.org>
47380
47381         * modules/stdlib (Depends-on): Add include_next, remove
47382         absolute-header.
47383
47384 2008-03-09  Bruno Haible  <bruno@clisp.org>
47385
47386         * lib/freadahead.h (freadahead): Document more precisely.
47387         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
47388         the sum of both buffer sizes.
47389         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
47390         * NEWS: Document the change.
47391
47392 2008-03-09  Bruno Haible  <bruno@clisp.org>
47393
47394         Extend freadptr to return also the buffer size.
47395         * lib/freadptr.h (freadptr): Add sizep argument.
47396         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
47397         (freadptr): Add sizep argument. Determine buffer size like freadahead
47398         does.
47399         * tests/test-freadptr.c: Don't include freadahead.h.
47400         (main): Adapt for new calling convention of freadptr.
47401         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
47402         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
47403         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
47404         tests/test-freadptr2.sh.
47405         (Depends): Remove freadahead.
47406         (TESTS): Add test-freadptr2.sh.
47407         (check_PROGRAMS): Add test-freadptr2.
47408
47409 2008-03-09  Bruno Haible  <bruno@clisp.org>
47410
47411         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
47412         Report and solution by Simon Josefsson.
47413
47414 2008-03-06  Bruno Haible  <bruno@clisp.org>
47415
47416         Make fflush after ungetc work on BSD platforms.
47417         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
47418         * tests/test-fflush2.c: New file.
47419         * tests/test-fflush2.sh: New file.
47420         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
47421         tests/test-fflush2.c.
47422         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
47423         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
47424
47425 2008-03-06  Eric Blake  <ebb9@byu.net>
47426
47427         Likewise for ftello.
47428         * modules/ftello (Dependencies): Add extensions.
47429         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
47430
47431 2008-03-06  Bruno Haible  <bruno@clisp.org>
47432
47433         * modules/fseeko (Dependencies): Add extensions.
47434         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
47435         Needed on glibc systems.
47436
47437 2008-03-06  Bruno Haible  <bruno@clisp.org>
47438
47439         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
47440         email address.
47441         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47442
47443 2008-03-06  Bruno Haible  <bruno@clisp.org>
47444
47445         * users.txt: Add libgnupdf.
47446
47447 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47448
47449         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
47450         (Header File Substitutes, Function Substitutes,
47451         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
47452         (Build robot for gnulib): Fix typo.
47453
47454 2008-03-06  Bruno Haible  <bruno@clisp.org>
47455
47456         * doc/gnulib-tool.texi (VCS Issues): Small updates.
47457         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47458
47459 2008-03-06  Bruno Haible  <bruno@clisp.org>
47460
47461         * doc/func.texi: New file, extracted from doc/gnulib.texi.
47462         * doc/gnulib.texi: Include it.
47463
47464 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47465
47466         * modules/func (License): Change license to unlimited; there was
47467         no LGPL parts in the module anyway.
47468
47469 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47470
47471         * modules/__func__: Renamed to modules/func.
47472         * modules/__func__-tests: Renamed to modules/func-tests.
47473         * tests/test-__func__.c: Renamed to tests/test-func.c.
47474         * m4/__func__.m4: Renamed to m4/func.m4.
47475         * doc/gnulib.texi (__func__): Section renamed to func.
47476         Suggested by Eric Blake <ebb9@byu.net>.
47477
47478 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47479
47480         * doc/gnulib.texi (__func__): Use C99 terminology when talking
47481         about __func__.  Make example self-contained.  Suggested by Eric
47482         Blake <ebb9@byu.net>.
47483
47484         * tests/test-__func__.c (main): Avoid extraneous () around __func.
47485         Suggested by Eric Blake <ebb9@byu.net>.
47486
47487 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47488
47489         * modules/__func__: New file.
47490         * modules/__func__-tests: New file.
47491         * tests/test-__func__.c: New file.
47492         * m4/__func__.m4: New file.
47493         * doc/gnulib.texi (__func__): Document __func__ module.
47494
47495 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47496
47497         * modules/byteswap (License): Re-license as LGPLv2+.
47498
47499 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47500
47501         * doc/Makefile: Add pdf target.
47502
47503 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47504
47505         * modules/inline (License): Use 'unlimited', since there are only
47506         *.m4 files in this module.
47507
47508 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47509             Bruno Haible  <bruno@clisp.org>
47510
47511         Add support for HP C 7.1 on OpenVMS 8.3.
47512         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
47513
47514 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47515
47516         Update VMS specifics.
47517         * lib/getopt.c [VMS]: Remove include of unixlib.h.
47518
47519 2008-03-02  Jim Meyering  <meyering@redhat.com>
47520
47521         Remove the last dependency on the "free" module.
47522         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
47523         Reported by Bob Proulx.
47524
47525         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
47526
47527         Remove useless "if" tests before free.  Deprecate "free" module.
47528         * doc/posix-functions/free.texi: Mention that this
47529         module is no longer useful.
47530         * modules/free (Notice): Say this module is obsolete.
47531         * modules/readutmp (Depends-on): Remove free.
47532         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
47533         * lib/putenv.c (putenv): Likewise.
47534         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
47535         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
47536         * tests/test-c-strcasestr.c (main): Likewise.
47537         * tests/test-c-strstr.c (main): Likewise.
47538         * tests/test-mbscasestr1.c (main): Likewise.
47539         * tests/test-mbscasestr2.c (main): Likewise.
47540         * tests/test-mbsstr1.c (main): Likewise.
47541         * tests/test-mbsstr2.c (main): Likewise.
47542         * tests/test-memmem.c (main): Likewise.
47543         * tests/test-strcasestr.c (main): Likewise.
47544         * tests/test-striconv.c (main): Likewise.
47545         * tests/test-striconveh.c (main): Likewise.
47546         * tests/test-striconveha.c (main): Likewise.
47547         * tests/test-strstr.c (main): Likewise.
47548
47549         * build-aux/git-version-gen: Adjust a comment and the Usage string.
47550
47551         bootstrap: sync from coreutils again
47552         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
47553
47554 2008-03-01  Jim Meyering  <meyering@redhat.com>
47555
47556         bootstrap: sync from coreutils
47557         * build-aux/bootstrap (update_po_files): Copy a .po file into place
47558         also when the target doesn't exist.
47559
47560 2008-03-01  Eric Blake  <ebb9@byu.net>
47561
47562         Fix bugs in last patch.
47563         * lib/memchr2.c (memchr2): Fix typo.
47564         * tests/test-memchr2.c: Test previous bug, and don't use GNU
47565         extension.
47566         Reported by Bruce Korb.
47567
47568         New module 'memchr2'.
47569         * modules/memchr2: New file.
47570         * modules/memchr2-tests: Likewise.
47571         * lib/memchr2.h: Likewise.
47572         * lib/memchr2.c: Likewise, based on memchr.c.
47573         * tests/test-memchr2.c: New test.
47574         * MODULES.html.sh (String handling): Add memchr2.
47575
47576 2008-02-29  Bruno Haible  <bruno@clisp.org>
47577
47578         * modules/freadseek-tests: New file.
47579         * tests/test-freadseek.sh: New file.
47580         * tests/test-freadseek.c: New file.
47581
47582         New module 'freadseek'.
47583         * modules/freadseek: New file.
47584         * lib/freadseek.h: New file.
47585         * lib/freadseek.c: New file.
47586         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
47587
47588 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47589
47590         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
47591         wydawca.
47592
47593         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
47594         program_invocation_name and program_invocation_short_name are
47595         present.
47596
47597 2008-02-28  Bruno Haible  <bruno@clisp.org>
47598
47599         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
47600         * tests/test-freadptr.sh: Also test non-seekable stdin.
47601
47602 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
47603
47604         * build-aux/bootstrap (source_base, m4_base)
47605         (doc_base, tests_base): New variables.
47606         (gnulib_tool_options): Do not hardcode base directories, use
47607         the above variables instead.
47608
47609 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
47610
47611         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
47612
47613 2008-02-28  Bruno Haible  <bruno@clisp.org>
47614
47615         * modules/freadptr-tests: New file.
47616         * tests/test-freadptr.sh: New file.
47617         * tests/test-freadptr.c: New file.
47618
47619         New module 'freadptr'.
47620         * modules/freadptr: New file.
47621         * lib/freadptr.h: New file.
47622         * lib/freadptr.c: New file.
47623         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
47624
47625 2008-02-26  Karl Berry  <karl@freefriends.org>
47626
47627         Sync from Libtool:
47628         * libltdl/argz.c (argz_add, argz_count): New functions.
47629         * libltdl/argz.in.h: Declare them.
47630         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
47631
47632 2008-02-22  Bruno Haible  <bruno@clisp.org>
47633
47634         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
47635         is a pointer type.  Needed for HP-UX 10.
47636         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
47637         * doc/posix-functions/gmtime_r.texi: Likewise.
47638         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47639
47640 2008-02-24  Bruno Haible  <bruno@clisp.org>
47641
47642         * modules/environ-tests: New file.
47643         * tests/test-environ.c: New file.
47644
47645         New module 'environ'.
47646         * modules/environ: New file.
47647         * lib/unistd.in.h (environ): New declaration.
47648         * m4/environ.m4: New file.
47649         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
47650         after use.
47651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
47652         HAVE_DECL_ENVIRON.
47653         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
47654         HAVE_DECL_ENVIRON.
47655         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
47656         wrong claim that 'environ' is missing on some systems.
47657         * modules/execute (Depends-on): Add environ.
47658         * lib/execute.c (environ): Remove fallback declaration.
47659         * modules/pipe (Depends-on): Add environ.
47660         * lib/pipe.c (environ): Remove fallback declaration.
47661         * modules/setenv (Depends-on): Add environ.
47662         * lib/setenv.c (environ): Remove fallback declaration.
47663         * modules/unsetenv (Depends-on): Add environ.
47664         * lib/unsetenv.c (environ): Remove fallback declaration.
47665         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
47666         m4/environ.m4.
47667         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
47668         (gl_PREREQ_UNSETENV): Likewise.
47669
47670 2008-02-24  Bruno Haible  <bruno@clisp.org>
47671
47672         * doc/posix-functions/environ.texi: Document the MacOS X problem.
47673
47674 2008-02-20  Bob Proulx  <bob@proulx.com>
47675
47676         Enable use of older two part flavor 'git describe'.
47677         * build-aux/git-version-gen: If using the older two part flavor of
47678         git version then recreate the third part now present in the
47679         newer three part flavor of git describe.
47680
47681 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
47682
47683         * lib/fts.c (fts_build): Typo correction to comment.
47684
47685 2008-02-17  Bruno Haible  <bruno@clisp.org>
47686
47687         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
47688         generating no-op conflicts.
47689
47690 2008-02-17  Bruno Haible  <bruno@clisp.org>
47691
47692         Speed up by 10%.
47693         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
47694         result_entries, rather than an index-based loop.
47695
47696 2008-02-17  Bruno Haible  <bruno@clisp.org>
47697
47698         Speed up by 25%.
47699         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
47700         'hashcode_cached'.
47701         (entry_create): New function.
47702         (entry_hashcode): Use the cached hashcode if possible.
47703         (read_changelog_file, try_split_merged_entry): Use entry_create.
47704
47705 2008-02-17  Bruno Haible  <bruno@clisp.org>
47706
47707         Speed up from O(n^2) to O(n) for long ChangeLog files.
47708         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
47709         (read_changelog_file): Change implementation of entries_reversed list
47710         to rbtreehash.
47711         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
47712
47713 2008-02-17  Bruno Haible  <bruno@clisp.org>
47714
47715         New option --split-merged-entry.
47716         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
47717         (find_paragraph_end, try_split_merged_entry): New functions.
47718         (long_options): Add option --split-merged-entry.
47719         (usage): Document option --split-merged-entry.
47720         (main): Implement option --split-merged-entry.
47721         Reported by Eric Blake.
47722
47723 2008-02-17  Bruno Haible  <bruno@clisp.org>
47724
47725         * lib/git-merge-changelog.c: Include c-strstr.h.
47726         (main): Support the "git pull --rebase" situation.
47727         * modules/git-merge-changelog (Depends-on): Add c-strstr.
47728         Reported by Eric Blake.
47729
47730 2008-02-16  Eric Blake  <ebb9@byu.net>
47731
47732         Avoid doubling \ in common case of "c-maybe" quoting style.
47733         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
47734         eliding outer quotes.
47735         * lib/quotearg.h: Document this.
47736         * tests/test-quotearg.c (result_strings, inputs, results_g)
47737         (flag_results, locale_results): Test it by adding a new string to
47738         each test group.
47739         (compare_strings): Test new string.
47740
47741 2008-02-13  Eric Blake  <ebb9@byu.net>
47742
47743         Avoid trigraph quoting in default output.
47744         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
47745         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
47746         unless explicitly requested.
47747         * tests/test-quotearg.c (flag_results, main): Add additional tests.
47748
47749 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
47750
47751         Don't rely on signed integer overflowing to negative value.
47752         * lib/getugroups.c (getugroups): Include <limits.h>.
47753         Instead, compare against INT_MAX, and increment only if the test passes.
47754
47755 2008-02-13  Jim Meyering  <meyering@redhat.com>
47756         and Eric Blake  <ebb9@byu.net>
47757
47758         Avoid shadowing warning and compile errors on Linux.
47759         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
47760         forwarding macros on Linux.
47761         (dcgettext): Define a stub, for Linux.
47762         (results_g, main): Avoid warnings.
47763
47764 2008-02-12  Eric Blake  <ebb9@byu.net>
47765
47766         Silence warning in last patch.
47767         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
47768
47769         Quotearg part 4: add tests, fix c-maybe colon quoting.
47770         * lib/quotearg.h: Improve documentation.
47771         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
47772         escapes when adding outer quotes.  When quoting trigraphs, use
47773         valid C notation.  When quoting NUL, omit extra characters if next
47774         character is not digit.  Alter prototype.
47775         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
47776         callers.
47777         * modules/quotearg-tests: New module.
47778         * tests/test-quotearg.c: New test.
47779
47780 2008-02-07  Eric Blake  <ebb9@byu.net>
47781
47782         Quotearg part 3: add flag to control outer quote elision.
47783         * lib/quotearg.h (c_maybe_quoting_style): New style.
47784         (enum quoting_flags): Better documentation of flags.
47785         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
47786         c-maybe style.
47787         (quotearg_buffer_restyled): Handle new flag to elide outer
47788         quotes.
47789
47790         Quotearg part 2: add flag that can control NUL elision.
47791         * lib/quotearg.h (set_quoting_flags): New prototype.
47792         * lib/quotearg.c (struct quoting_options): Add flag field.
47793         (set_quoting_flags): New function.
47794         (quotearg_buffer_restyled): Add flags parameter.
47795         (quotearg_alloc_mem): Set the flag if length cannot be returned.
47796         (quotearg_n_options): Set the flag, since length cannot be
47797         returned.
47798         (quoting_options_from_style): Default flags correctly.
47799
47800         Quotearg part 1: more wrappers, restore quotearg_char state.
47801         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
47802         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
47803         (quotearg_colon_mem): New wrappers.
47804         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
47805         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
47806         functions.
47807         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
47808         (quotearg_colon_mem): New functions.
47809
47810 2008-02-11  Bruno Haible  <bruno@clisp.org>
47811
47812         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
47813         library in the current directory: it does not work with parallel make.
47814         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47815
47816 2008-02-11  Bruno Haible  <bruno@clisp.org>
47817
47818         * .gitattributes: New file.
47819
47820 2008-02-11  Jim Meyering  <meyering@redhat.com>
47821
47822         useless-if-before-free: Fix reversed exit values.
47823         * build-aux/useless-if-before-free: Use correct values
47824         for EXIT_MATCH and EXIT_NO_MATCH.
47825
47826         * build-aux/useless-if-before-free: Close stdout carefully.
47827
47828 2008-02-10  Bruno Haible  <bruno@clisp.org>
47829
47830         New module 'git-merge-changelog'.
47831         * modules/git-merge-changelog: New file.
47832         * lib/git-merge-changelog.c: New file.
47833
47834 2008-02-10  Jim Meyering  <meyering@redhat.com>
47835
47836         useless-if-before-free: New option: --list (-l).
47837
47838         useless-if-before-free: Don't exit immediately upon open failure.
47839         * build-aux/useless-if-before-free: Exit 2 for errors.
47840         Upon failure to open a file, don't exit immediately.
47841         Rather, just warn and continue with any remaining files.
47842
47843 2008-02-10  Bruno Haible  <bruno@clisp.org>
47844
47845         New abstract list operation 'node_set_value'.
47846         * lib/gl_list.h (gl_list_node_set_value): New function.
47847         (struct gl_list_implementation): New field node_set_value.
47848         * lib/gl_list.c (gl_list_node_set_value): New function.
47849         * lib/gl_array_list.c (gl_array_node_set_value): New function.
47850         (gl_array_list_implementation): Update.
47851         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
47852         (gl_carray_list_implementation): Update.
47853         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
47854         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47855         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47856         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
47857         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47858         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47859         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47860         Update.
47861         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47862         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
47863         (gl_sublist_list_implementation): Update.
47864
47865 2008-02-10  Bruno Haible  <bruno@clisp.org>
47866
47867         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
47868         Needed when ELEMENT is #defined to 'some_type *'.
47869
47870 2008-02-10  Jim Meyering  <meyering@redhat.com>
47871
47872         New script and module: useless-if-before-free
47873         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
47874         * build-aux/useless-if-before-free: New file.
47875         * modules/useless-if-before-free: New file.
47876
47877         * build-aux/gitlog-to-changelog: Use committer date, not author date.
47878
47879         xstrtol_error: Fix typo.
47880         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
47881         s/exit_failure/exit_status/.
47882
47883 2008-02-09  Jim Meyering  <meyering@redhat.com>
47884
47885         New script and module: gitlog-to-changelog
47886         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
47887         * modules/gitlog-to-changelog: New file.
47888         * build-aux/gitlog-to-changelog: New file.
47889
47890 2008-02-08  Jim Meyering  <meyering@redhat.com>
47891
47892         Avoid two "parameter unused" warnings.
47893         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
47894         Mark "st" as used.
47895
47896         Use "git COMMAND", not "git-COMMAND".
47897         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
47898         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
47899         * build-aux/git-version-gen: Use "git status", not "git-status".
47900
47901 2008-02-07  Bruno Haible  <bruno@clisp.org>
47902
47903         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
47904         Avoids a crash on Windows Vista.
47905         Reported by Adam Strzelecki <ono@java.pl> via
47906         Simon Josefsson <simon@josefsson.org>.
47907
47908 2008-02-06  Bruno Haible  <bruno@clisp.org>
47909
47910         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
47911         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
47912         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
47913         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
47914         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47915         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47916         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
47917         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
47918         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47919         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47920         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47921         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47922         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47923         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47924         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47925         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
47926         left-adjust flag.
47927         * tests/test-snprintf-posix.h (test_function): Likewise.
47928         * tests/test-sprintf-posix.h (test_function): Likewise.
47929         * tests/test-vasprintf-posix.c (test_function): Likewise.
47930         * doc/posix-functions/fprintf.texi: Update.
47931         * doc/posix-functions/printf.texi: Update.
47932         * doc/posix-functions/snprintf.texi: Update.
47933         * doc/posix-functions/sprintf.texi: Update.
47934         * doc/posix-functions/vfprintf.texi: Update.
47935         * doc/posix-functions/vprintf.texi: Update.
47936         * doc/posix-functions/vsnprintf.texi: Update.
47937         * doc/posix-functions/vsprintf.texi: Update.
47938         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47939
47940 2008-02-06  Bruno Haible  <bruno@clisp.org>
47941
47942         Fix bug introduced on 2008-01-26.
47943         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
47944
47945 2008-02-06  Bruno Haible  <bruno@clisp.org>
47946
47947         Fix bug introduced on 2007-06-10.
47948         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
47949         !NEED_PRINTF_FLAG_ZERO.
47950
47951 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
47952
47953         getloadavg: use libperfstat on AIX5
47954         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
47955
47956 2008-02-03  Bruno Haible  <bruno@clisp.org>
47957
47958         * lib/diffseq.h: Add comments about required #includes.
47959         Reported by Michael Biggs <gnulib@doubleplum.net>.
47960
47961 2008-02-01  Bruno Haible  <bruno@clisp.org>
47962
47963         * users.txt: Add gnuit.
47964
47965 2008-01-31  Bruno Haible  <bruno@clisp.org>
47966
47967         * lib/md4.c (set_uint32): Mark as inline.
47968         * lib/md5.c (set_uint32): Likewise.
47969         * lib/sha1.c (set_uint32): Likewise.
47970         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
47971         * m4/md5.m4 (gl_MD5): Likewise.
47972         * m4/sha1.m4 (gl_SHA1): Likewise.
47973
47974 2008-01-31  Jim Meyering  <meyering@redhat.com>
47975
47976         Use "sizeof VAR", rather than a literal "4".
47977         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
47978         * lib/md4.c (md4_read_ctx): Likewise.
47979         * lib/sha1.c (sha1_read_ctx): Likewise.
47980
47981 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47982
47983         * tests/test-sha1.c: New file, based on test-md5.c.
47984
47985         * modules/crypto/sha1-tests: New file.
47986
47987 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47988
47989         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
47990
47991 2008-01-31  Jim Meyering  <meyering@redhat.com>
47992
47993         Prefer "sizeof v" over the equivalent "4".
47994         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
47995         * lib/md5.c (set_uint32): Likewise.
47996         * lib/sha1.c (set_uint32): Likewise.
47997
47998 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47999
48000         * lib/sha1.c (set_uint32): Mark function as static.
48001
48002 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48003
48004         md2: clarify comments to say that alignment is not required.
48005         * lib/md2.h: Remove warning about alignment in comment.
48006         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48007         never been required.
48008
48009 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48010
48011         md4: adapt alignment constraint fix from sha1.
48012         * lib/md4.c (set_uint32): New function, from sha1.c
48013         (md4_read_ctx): Use it.
48014         (md4_finish_ctx): Doc fix.
48015         * lib/md4.h: Doc fix.
48016
48017 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48018
48019         md5: adapt alignment constraint fix from sha1.
48020         * lib/md5.c (set_uint32): New function, from sha1.c
48021         (md5_read_ctx): Use it.
48022         (md5_finish_ctx): Doc fix.
48023         * lib/md5.h: Doc fix.
48024
48025 2008-01-30  Peter Palfrader  <weasel@debian.org>
48026
48027         sha1: remove the result buffer alignment constraint
48028         * lib/sha1.c (set_uint32): New function.
48029         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48030         constraint.
48031         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48032         * lib/sha1.h: Likewise.
48033
48034 2008-01-30  Andreas Schwab  <schwab@suse.de>
48035             Bruno Haible  <bruno@clisp.org>
48036
48037         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48038         correct definition of LDBL_MIN_EXP.
48039
48040 2008-01-30  Karl Berry  <karl@gnu.org>
48041
48042         * config/srclist-update: try to preserve x bit on updates.
48043         * config/srclistvars.sh: update for karl.
48044
48045 2008-01-29  Jim Meyering  <meyering@redhat.com>
48046
48047         vasnprintf.c: Avoid warning about unused label
48048         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48049         "overflow" label definition and associated code with the
48050         same cpp condition that guards the sole use of that label.
48051
48052 2008-01-26  Bruno Haible  <bruno@clisp.org>
48053
48054         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48055         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48056         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48057         * lib/isnanl-nolibm.h (isnanl): Likewise.
48058         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48059
48060 2008-01-26  Bruno Haible  <bruno@clisp.org>
48061
48062         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48063         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48064
48065 2008-01-26  Bruno Haible  <bruno@clisp.org>
48066
48067         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48068         GCC >= 4.0 built-in.
48069         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48070
48071 2008-01-26  Bruno Haible  <bruno@clisp.org>
48072
48073         Rename isnan, applicable to 'double' only, to isnand.
48074         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48075         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48076         (configure.ac): Update.
48077         (Include): Replace "isnan.h" with "isnand.h".
48078         * m4/isnand.m4: Renamed from m4/isnan.m4.
48079         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48080         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48081         instead of isnan.c.
48082         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48083         instead of HAVE_ISNAN_IN_LIBC.
48084         (isnand): Renamed from isnan.
48085         * lib/isnand.c: New file.
48086         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48087         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48088         (Makefile.am): Update.
48089         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48090         Include isnand.h instead of isnan.h.
48091         (main): Test isnand instead of isnan.
48092         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48093         isnan-nolibm.
48094         * modules/frexp (Depends-on): Likewise.
48095         * modules/frexp-tests (Depends-on): Likewise.
48096         * modules/frexp-nolibm (Depends-on): Likewise.
48097         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48098         * modules/isfinite (Depends-on): Likewise.
48099         * modules/round-tests (Depends-on): Likewise.
48100         * modules/signbit (Depends-on): Likewise.
48101         * modules/signbit-tests (Depends-on): Likewise.
48102         * modules/snprintf-posix (Depends-on): Likewise.
48103         * modules/sprintf-posix (Depends-on): Likewise.
48104         * modules/trunc-tests (Depends-on): Likewise.
48105         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48106         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48107         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48108         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48109         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48110         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48111         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48112         * modules/vasnprintf-posix (Depends-on): Likewise.
48113         * modules/vasprintf-posix (Depends-on): Likewise.
48114         * modules/vfprintf-posix (Depends-on): Likewise.
48115         * modules/vsnprintf-posix (Depends-on): Likewise.
48116         * modules/vsprintf-posix (Depends-on): Likewise.
48117         * lib/frexp.c: Include isnand.h instead of isnan.h.
48118         (ISNAN): Set to isnand instead of isnan.
48119         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48120         (gl_isfinited): Use isnand instead of isnan.
48121         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48122         (gl_signbitd): Use isnand instead of isnan.
48123         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48124         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48125         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48126         (main): Use isnand instead of isnan.
48127         * tests/test-round1.c: Include isnand.h.
48128         (main): Use isnand instead of isnan.
48129         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48130         (ISNAN): Set to isnand instead of isnan.
48131         * tests/test-trunc1.c: Include isnand.h.
48132         (main): Use isnand instead of isnan.
48133         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48134         (equal): Use isnand instead of isnan.
48135         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48136         isnand-nolibm.
48137         * NEWS: Mention the change.
48138
48139 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48140             Bruno Haible  <bruno@clisp.org>
48141
48142         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48143         the GCC builtins for signbits are present and set
48144         REPLACE_SIGNBIT_USING_GCC if so.
48145         * lib/math.in.h (signbit): Define using GCC builtins if
48146         REPLACE_SIGNBIT_USING_GCC is set.
48147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
48148         REPLACE_SIGNBIT_USING_GCC.
48149         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
48150
48151 2008-01-25  Jim Meyering  <meyering@redhat.com>
48152
48153         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
48154         * lib/poll.c: Include <config.h>, not "config.h".
48155         * tests/test-getaddrinfo.c: Likewise.
48156
48157 2008-01-25  Simon Josefsson  <simon@josefsson.org>
48158
48159         * modules/sockets-tests: New file.
48160
48161 2008-01-24  Simon Josefsson  <simon@josefsson.org>
48162
48163         * modules/sockets: New module, can be used to call WSA_Startup and
48164         WSA_Cleanup when needed.
48165
48166         * lib/sockets.h, lib/sockets.c: New files.
48167
48168         * m4/sockets.m4: New file.
48169
48170         * tests/test-sockets.c: New file.
48171
48172 2008-01-19  Bruno Haible  <bruno@clisp.org>
48173
48174         * doc/posix-headers: Renamed from doc/headers.
48175         * doc/posix-functions: Renamed from doc/functions.
48176         * doc/gnulib.texi: Update.
48177
48178 2008-01-19  Bruno Haible  <bruno@clisp.org>
48179
48180         * doc/glibc-functions/strcasestr.texi: Include contents of
48181         doc/functions/strcasestr.texi, fixing the list of platforms.
48182         * doc/functions/strcasestr.texi: Remove file.
48183
48184 2008-01-19  Bruno Haible  <bruno@clisp.org>
48185
48186         * doc/glibc-functions/memmem.texi: Include contents of
48187         doc/functions/memmem.texi.
48188         * doc/functions/memmem.texi: Remove file.
48189
48190 2008-01-18  Bruno Haible  <bruno@clisp.org>
48191
48192         * doc/glibc-functions/*.texi: New files.
48193         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
48194         to use the new files.
48195
48196 2008-01-17  Bruno Haible  <bruno@clisp.org>
48197
48198         * tests/test-gethostname.c (main): Fix printf statement.
48199
48200 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48201
48202         * modules/gethostname-tests: New file.
48203
48204         * tests/test-gethostname.c: New file.
48205
48206 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48207
48208         * lib/gethostname.c: Include string.h unconditionally, strncpy is
48209         used by the UNAME case.  Reported by Bruno Haible
48210         <bruno@clisp.org>.
48211
48212 2008-01-17  Eric Blake  <ebb9@byu.net>
48213
48214         Convert c-strcasestr to be more efficient.
48215         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
48216         (Depends-on): Add c-strcase, remove malloca, strnlen.
48217         * tests/test-c-strcasestr.c (main): Enhance test.
48218         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
48219
48220 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48221
48222         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
48223         Use it in creating po/Makevars.
48224
48225 2008-01-15  Simon Josefsson  <simon@josefsson.org>
48226
48227         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
48228         Applications that requires it should initialize libgcrypt
48229         manually.
48230
48231 2008-01-16  Simon Josefsson  <simon@josefsson.org>
48232
48233         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
48234
48235 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
48236
48237         Fix problem with getdate on mingw32 reported by Simon Josefsson
48238         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
48239         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
48240         tzname", when deciding whether to declare tzname.
48241         * lib/strftime.c (tzname): Likewise.
48242
48243 2008-01-15  Bruno Haible  <bruno@clisp.org>
48244
48245         Work around a MacOS X 10.5 bug in frexpl().
48246         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
48247         * doc/functions/frexpl.texi: Document the bug.
48248         Reported by Elias Pipping <pipping@gentoo.org>.
48249
48250 2008-01-14  Eric Blake  <ebb9@byu.net>
48251
48252         Touch up previous patch.
48253         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
48254         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
48255
48256         Convert strcasestr module to use Two-Way algorithm.
48257         * modules/strcasestr-simple: New module, based on the old
48258         strcasestr, but with Two-Way rather than KMP.
48259         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
48260         * lib/string.in.h (rpl_strcasestr): Declare.
48261         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
48262         performance.
48263         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
48264         * modules/string (Makefile.am): Support strcasestr.
48265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48266         * modules/strcasestr-tests (Depends-on): Check for alarm.
48267         * tests/test-strcasestr.c: Augment test.
48268         * lib/str-two-way.h: Clean up stray macro.
48269         * NEWS: Document new module.
48270         * MODULES.html.sh (string handling): Likewise.
48271         * doc/functions/strcasestr.texi: New file.
48272         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
48273         here, since it is not a POSIX function.
48274
48275 2008-01-14  Colin Watson  <cjwatson@debian.org>
48276             Bruno Haible  <bruno@clisp.org>
48277
48278         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48279         works fine; if not, set REPLACE_STRSIGNAL.
48280         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48281         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48282         REPLACE_STRSIGNAL.
48283         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48284         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48285         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48286
48287 2008-01-14  Bruno Haible  <bruno@clisp.org>
48288
48289         * modules/strsignal (Include): Change to <string.h>.
48290
48291 2008-01-14  Colin Watson  <cjwatson@debian.org>
48292
48293         * modules/argp (Notice): Add a notice recommending to change
48294         XGETTEXT_OPTIONS.
48295         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48296
48297 2008-01-13  Colin Watson  <cjwatson@debian.org>
48298
48299         * modules/strsignal-tests: New file.
48300         * tests/test-strsignal.c: New file.
48301
48302         * lib/strsignal.c: New file, from glibc with modifications.
48303         * lib/siglist.h: New file, from glibc with modifications.
48304         * lib/string.in.h (strsignal): New declaration.
48305         * m4/strsignal.m4: New file.
48306         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48307         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48308         * modules/strsignal: New file.
48309         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
48310         HAVE_DECL_STRSIGNAL.
48311
48312 2008-01-13  Bruno Haible  <bruno@clisp.org>
48313
48314         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
48315         locale encoding is not ASCII. Needed for OpenBSD 4.0.
48316         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48317         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48318
48319 2008-01-13  Bruno Haible  <bruno@clisp.org>
48320
48321         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
48322         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
48323         * lib/argp.h (__attribute__): Likewise.
48324         * lib/c-stack.c (__attribute__): Likewise.
48325         * lib/error.h (__attribute__): Likewise.
48326         * lib/fts.c (__attribute__): Likewise.
48327         * lib/openat.h (__attribute__): Likewise.
48328         * lib/stdio.in.h (__attribute__): Likewise.
48329         * lib/string.in.h (__attribute__): Likewise.
48330         * lib/utimens.c (__attribute__): Likewise.
48331         * lib/vasnprintf.h (__attribute__): Likewise.
48332         * lib/xalloc.h (__attribute__): Likewise.
48333         * lib/xprintf.h (__attribute__): Likewise.
48334         * lib/xstrtol.h (__attribute__): Likewise.
48335         * lib/xvasprintf.h (__attribute__): Likewise.
48336
48337 2008-01-12  Bruno Haible  <bruno@clisp.org>
48338
48339         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
48340         * doc/glibc-headers/a.out.texi: New file.
48341         * doc/glibc-headers/aliases.texi: New file.
48342         * doc/glibc-headers/alloca.texi: New file.
48343         * doc/glibc-headers/ar.texi: New file.
48344         * doc/glibc-headers/argp.texi: New file.
48345         * doc/glibc-headers/argz.texi: New file.
48346         * doc/glibc-headers/byteswap.texi: New file.
48347         * doc/glibc-headers/crypt.texi: New file.
48348         * doc/glibc-headers/endian.texi: New file.
48349         * doc/glibc-headers/envz.texi: New file.
48350         * doc/glibc-headers/err.texi: New file.
48351         * doc/glibc-headers/error.texi: New file.
48352         * doc/glibc-headers/execinfo.texi: New file.
48353         * doc/glibc-headers/fpu_control.texi: New file.
48354         * doc/glibc-headers/fstab.texi: New file.
48355         * doc/glibc-headers/fts.texi: New file.
48356         * doc/glibc-headers/getopt.texi: New file.
48357         * doc/glibc-headers/ieee754.texi: New file.
48358         * doc/glibc-headers/ifaddrs.texi: New file.
48359         * doc/glibc-headers/libintl.texi: New file.
48360         * doc/glibc-headers/mcheck.texi: New file.
48361         * doc/glibc-headers/mntent.texi: New file.
48362         * doc/glibc-headers/obstack.texi: New file.
48363         * doc/glibc-headers/paths.texi: New file.
48364         * doc/glibc-headers/printf.texi: New file.
48365         * doc/glibc-headers/pty.texi: New file.
48366         * doc/glibc-headers/resolv.texi: New file.
48367         * doc/glibc-headers/shadow.texi: New file.
48368         * doc/glibc-headers/sysexits.texi: New file.
48369         * doc/glibc-headers/ttyent.texi: New file.
48370
48371 2008-01-12  Jim Meyering  <meyering@redhat.com>
48372
48373         announce-gen: emit Gnulib's git-based version string.
48374         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
48375         New option --gnulib-version=V, where V is expected to be
48376         the output of running git describe in the gnulib directory.
48377         (get_tool_versions): Request feedback on xdelta.  I suspect it's
48378         not useful, and plan to stop publishing an xdelta file with each
48379         coreutils release.
48380
48381         * build-aux/announce-gen: Also check for lzma-compressed files.
48382
48383 2008-01-11  Bruno Haible  <bruno@clisp.org>
48384
48385         * tests/test-memmem.c (main): Increase maximum allowed time.
48386         * tests/test-strstr.c (main): Likewise.
48387
48388 2008-01-11  Bruno Haible  <bruno@clisp.org>
48389
48390         * doc/functions/memmem.texi: Add more precisions about platforms.
48391         * doc/functions/strstr.texi: Likewise.
48392
48393 2008-01-10  Eric Blake  <ebb9@byu.net>
48394
48395         * m4/strstr.m4: Delete cruft from copy-n-paste.
48396         Reported by Bruno Haible.
48397
48398 2008-01-10  Bruno Haible  <bruno@clisp.org>
48399
48400         Make c-strstr rely on strstr.
48401         * lib/c-strstr.c: Don't include str-kmp.h.
48402         (c_strstr): Define in terms of strstr.
48403         * modules/c-strstr (Files): Remove lib/str-kmp.h.
48404         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
48405
48406 2008-01-10  Bruno Haible  <bruno@clisp.org>
48407
48408         * doc/gnulib.texi (String Functions in C Locale): New section.
48409         * doc/c-ctype.texi: New file.
48410         * doc/c-strcase.texi: New file.
48411         * doc/c-strcaseeq.texi: New file.
48412         * doc/c-strcasestr.texi: New file.
48413         * doc/c-strstr.texi: New file.
48414         * doc/c-strtod.texi: New file.
48415         * doc/c-strtold.texi: New file.
48416
48417 2008-01-10  Eric Blake  <ebb9@byu.net>
48418
48419         * lib/relocatable.h: Fix a comment.
48420
48421 2008-01-10  Eric Blake  <ebb9@byu.net>
48422
48423         Share two-way algorithm.
48424         * lib/str-two-way.h: New file, merged from...
48425         * lib/memmem.c: ...here...
48426         * lib/strstr.c: ...and here.
48427         * modules/memmem (Files): Use it.
48428         * modules/strstr (Files): Likewise.
48429
48430         Avoid quadratic strstr implementations.
48431         * lib/strstr.c: New file.
48432         * m4/strstr.m4: Likewise.
48433         * modules/strstr: Likewise.
48434         * modules/strstr-tests: Likewise.
48435         * tests/test-strstr.c: Likewise.
48436         * lib/string.in.h (rpl_strstr): Declare.
48437         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
48438         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
48439         * modules/string (Makefile.am): Likewise.
48440         * MODULES.html.sh (string handling): Mention new module.
48441         * doc/functions/strstr.texi (strstr): Document the bug.
48442
48443 2008-01-10  Bruno Haible  <bruno@clisp.org>
48444
48445         * lib/relocatable.h (relocate): State whether result is freshly
48446         allocated or not.
48447         * lib/relocatable.c (relocate): Return a freshly allocated string
48448         instead of a pointer to a privately held string.
48449         Reported by Sylvain Beucler <beuc@gnu.org>.
48450
48451 2008-01-10  Colin Watson  <cjwatson@debian.org>
48452
48453         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
48454         s/S_ISNLK/S_ISLNK/.
48455
48456 2008-01-09  Bruno Haible  <bruno@clisp.org>
48457
48458         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
48459         and other files.
48460         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
48461         if it's only a guess.
48462         * modules/memmem: Simplify by depending on memmem-simple.
48463
48464 2008-01-09  Bruno Haible  <bruno@clisp.org>
48465
48466         Work around OpenBSD 4.0 tdelete() bug.
48467         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
48468         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
48469         macros and don't redefine the enum values.
48470         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
48471         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
48472         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
48473
48474 2008-01-09  Bruno Haible  <bruno@clisp.org>
48475
48476         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
48477         (main): Don't perform the tests if setlocale did not install a UTF-8
48478         locale. Needed on OpenBSD 4.0.
48479         * modules/wcwidth-tests (Depends-on): Add localcharset.
48480
48481 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48482
48483         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
48484         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
48485         * NEWS: announce this.
48486         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
48487
48488 2008-01-09  Simon Josefsson  <simon@josefsson.org>
48489         and Eric Blake  <ebb9@byu.net>
48490
48491         Add memmem-simple module.
48492         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
48493         (gl_FUNC_MEMMEM): Separate performance from presence checks.
48494         * modules/memmem-simple: New file.
48495         * modules/memmem (Description): Tweak.
48496         * MODULES.html.sh (string handling): Mention new module.
48497         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
48498         addressed by memmem-simple.
48499         * NEWS: Document the difference.
48500
48501 2008-01-09  Eric Blake  <ebb9@byu.net>
48502
48503         Give gcc some memmem optimization hints.
48504         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
48505         (strcasestr): Declare as pure.
48506         * modules/memmem (Maintainer): Claim my implementation.
48507
48508 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48509
48510         Support AIX 6.1 and higher.
48511         * build-aux/config.libpath: Likewise.
48512         * build-aux/config.rpath: Likewise.
48513
48514 2008-01-08  Jim Meyering  <meyering@redhat.com>
48515             Bruno Haible  <bruno@clisp.org>
48516
48517         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
48518         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
48519         Reported by Peter Fales in
48520         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
48521
48522 2008-01-08  Bruno Haible  <bruno@clisp.org>
48523
48524         * modules/unictype/category-of (Depends-on): Add
48525         unictype/category-none.
48526         * modules/unictype/category-and-tests (Depends-on): Add
48527         unictype/category-{L,N,Lu,Nd}.
48528         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
48529         * modules/unictype/category-or-tests (Depends-on): Add
48530         unictype/category-{L,N}.
48531         * modules/unictype/category-name-tests (Depends-on): Add
48532         unictype/category-{Z,Nl}.
48533         Reported by Simon Josefsson.
48534
48535 2008-01-08  Bruno Haible  <bruno@clisp.org>
48536
48537         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
48538         convention better.
48539         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
48540         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
48541         Reported by Peter Miller <millerp@canb.auug.org.au>.
48542
48543 2008-01-08  Eric Blake  <ebb9@byu.net>
48544
48545         Rewrite memmem to guarantee linear complexity without malloc.
48546         * lib/memmem.c (memmem): Use Two-Way rather than
48547         Knuth-Morris-Pratt, to allow O(1) space usage.
48548         (critical_factorization, two_way_short_needle)
48549         (two_way_long_needle): New functions.
48550         (knuth_morris_pratt): Delete.
48551         * modules/memmem (Depends-on): No longer need malloca or stdbool.
48552         Add stdint.
48553         * tests/test-memmem.c (main): Add tests for periodic needle and
48554         sublinear performance.
48555         * doc/functions/memmem.texi (memmem): Document other deficiencies
48556         in cygwin and older glibc.
48557
48558 2008-01-08  Bruno Haible  <bruno@clisp.org>
48559
48560         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
48561         augmentation.
48562
48563 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
48564
48565         Add a configure time option: --disable-acl.
48566         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
48567         AC_ARG_ENABLE(acl).
48568
48569 2008-01-06  Simon Josefsson  <simon@josefsson.org>
48570
48571         * tests/test-localename.c: Don't include obsolete "setenv.h".
48572
48573         * modules/localename-tests (Depends-on): Need unsetenv.
48574
48575 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48576
48577         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
48578
48579 2008-01-06  Colin Watson  <cjwatson@debian.org>
48580
48581         * users.txt: Add man-db.
48582
48583 2008-01-07  Bruno Haible  <bruno@clisp.org>
48584
48585         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
48586         previous section name.
48587
48588 2008-01-07  Bruno Haible  <bruno@clisp.org>
48589
48590         * lib/progname.c (set_program_name): Don't strip off a leading
48591         "lt-" prefix outside a .libs directory.
48592         Suggested by Paul Eggert.
48593
48594 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
48595             Bruno Haible  <bruno@clisp.org>
48596
48597         Improve memory cleanup in 'relocatable' module.
48598         * lib/relocatable.h (compute_curr_prefix): Change return type to
48599         'char *'.
48600         * lib/relocatable.c (compute_curr_prefix): Change return type to
48601         'char *'. Free curr_installdir after use.
48602         (relocate): Free curr_prefix_better after use.
48603         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
48604
48605 2008-01-01  Bruno Haible  <bruno@clisp.org>
48606
48607         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
48608         failure on older glibc systems.
48609         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48610
48611 2008-01-05  Eric Blake  <ebb9@byu.net>
48612
48613         Avoid quadratic system memmem.
48614         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
48615         Reported by Ralf Wildenhues.
48616
48617         Fix memmem test for mingw.
48618         * modules/memmem-tests (configure.ac): Check for alarm.
48619         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
48620         it.
48621         * doc/functions/memmem.texi: New file.
48622         * doc/gnulib.texi (Function Substitutes): Add memmem.
48623         Reported by Bruno Haible.
48624
48625 2008-01-04  Bruno Haible  <bruno@clisp.org>
48626
48627         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
48628         Require gl_HEADER_STRINGS_H_DEFAULTS, not
48629         gl_HEADER_STRING_H_DEFAULTS.
48630
48631 2008-01-04  Eric Blake  <ebb9@byu.net>
48632
48633         Shorten duration of memmem test.
48634         * tests/test-memmem.c (main): Use alarm to declare failure if test
48635         is taking too long.
48636         Reported by Ralf Wildenhues.
48637
48638 2007-12-21  Simon Josefsson  <simon@josefsson.org>
48639
48640         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
48641         string, needed by strerror.
48642
48643 2008-01-03  Colin Watson  <cjwatson@debian.org>
48644             Bruno Haible  <bruno@clisp.org>
48645
48646         * doc/gnulib-tool.texi (Localization): New section.
48647
48648 2008-01-02  Bruno Haible  <bruno@clisp.org>
48649
48650         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
48651         variables to 'unsigned char *' type.
48652         Reported by Paul Eggert.
48653
48654 2008-01-02  Jim Meyering  <jim@meyering.net>
48655
48656         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
48657
48658 2007-12-31  Jim Meyering  <jim@meyering.net>
48659
48660         Avoid use of private FTS type name.
48661         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
48662
48663 2007-12-30  Karl Berry  <karl@gnu.org>
48664
48665         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
48666         work around defect in Texinfo and/or the standalone Info browser.
48667
48668 2007-12-30  Bruno Haible  <bruno@clisp.org>
48669
48670         Unify 5 copies of the KMP code.
48671         * lib/str-kmp.h: New file.
48672         * lib/c-strcasestr.c: Include str-kmp.h.
48673         (knuth_morris_pratt): Remove function.
48674         (c_strcasestr): Update.
48675         * lib/c-strstr.c: Include str-kmp.h.
48676         (knuth_morris_pratt): Remove function.
48677         (c_strcasestr): Update.
48678         * lib/mbscasestr.c: Include str-kmp.h.
48679         (knuth_morris_pratt_unibyte): Remove function.
48680         * lib/mbsstr.c: Include str-kmp.h.
48681         (knuth_morris_pratt_unibyte): Remove function.
48682         * lib/strcasestr.c: Include str-kmp.h.
48683         (knuth_morris_pratt): Remove function.
48684         (strcasestr): Update.
48685         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
48686         * modules/c-strstr (Files): Likewise.
48687         * modules/mbscasestr (Files): Likewise.
48688         * modules/mbsstr (Files): Likewise.
48689         * modules/strcasestr (Files): Likewise.
48690         Suggested by Paul Eggert.
48691
48692 2007-12-30  Bruno Haible  <bruno@clisp.org>
48693
48694         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
48695         defined.
48696
48697 2007-12-30  Bruno Haible  <bruno@clisp.org>
48698
48699         * lib/xmalloca.h: Include xalloc.h.
48700         (xnmalloca): New macro.
48701
48702 2007-12-30  Bruno Haible  <bruno@clisp.org>
48703
48704         * lib/malloca.h (nmalloca): New macro.
48705         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
48706         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
48707         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
48708         knuth_morris_pratt_multibyte): Likewise.
48709         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
48710         knuth_morris_pratt_multibyte): Likewise.
48711         * lib/memmem.c (knuth_morris_pratt): Likewise.
48712         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
48713
48714 2007-12-25  Bruno Haible  <bruno@clisp.org>
48715
48716         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
48717         * lib/glob.c: Don't include openat.h.
48718         (link_exists2_p): Add back the code that deals with the
48719         !GLOB_ALTDIRFUNC case.
48720         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
48721         let it do the filename concatenation.
48722         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
48723         * modules/glob (Depends-on): Remove openat.
48724
48725 2007-12-31  Bruno Haible  <bruno@clisp.org>
48726
48727         * modules/dirfd (License): Change to LGPLv2+.
48728         Approved by Jim Meyering.
48729
48730 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48731
48732         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
48733         when multiplying M by sizeof (size_t).
48734
48735 2007-12-10  Martin Lambers  <marlam@marlam.de>
48736
48737         Override getpagesize on mingw.
48738         * lib/getpagesize.c: New file.
48739         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
48740         * modules/getpagesize (Files): Add lib/getpagesize.c.
48741         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
48742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48743         REPLACE_GETPAGESIZE.
48744         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
48745
48746 2007-12-25  Bruno Haible  <bruno@clisp.org>
48747
48748         * modules/localcharset (Notice): New field.
48749         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
48750         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
48751
48752 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48753             Bruno Haible  <bruno@clisp.org>
48754
48755         Avoid using the syntax symbol() in formatted documentation.
48756         * MODULES.html.sh (func_module): When replacing symbol() with a
48757         hyperlink, remove the parentheses. Show an error if some remain.
48758         Recognize and render the '...' syntax.
48759         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
48760         Rework. Add paragraph about GCC's inlining.
48761         * doc/alloca.texi: Likewise.
48762         * doc/error.texi: Remove parentheses from symbol reference.
48763         * doc/gnulib-intro.texi: Likewise.
48764         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
48765         * modules/fnmatch (Description): Reword to say "the ... function".
48766         * modules/full-read (Description): Likewise.
48767         * modules/full-write (Description): Likewise.
48768         * modules/safe-read (Description): Likewise.
48769         * modules/safe-write (Description): Likewise.
48770         * modules/strchrnul (Description): Likewise.
48771         * modules/trim (Description): Likewise.
48772         * modules/error (Description): Remove parentheses from symbol
48773         references.
48774         * modules/verror (Description): Likewise.
48775         Reported by Karl Berry.
48776
48777 2007-12-25  Bruno Haible  <bruno@clisp.org>
48778
48779         Fixup after 2007-10-16 commit.
48780         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
48781
48782 2007-12-24  Bruno Haible  <bruno@clisp.org>
48783
48784         Make --enable-relocatable work with DESTDIR.
48785         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
48786         to compute installdir from destprog.
48787         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
48788         also set the RELOC_DESTDIR variable.
48789         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48790
48791 2007-12-24  Bruno Haible  <bruno@clisp.org>
48792
48793         Fix link error due to xalloc_die().
48794         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
48795         of xreadlink.
48796         * lib/relocwrapper.c: Update comments.
48797         * build-aux/install-reloc: Remove xreadlink.c from file list.
48798         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
48799         xreadlink.c.
48800         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48801
48802 2007-12-24  Bruno Haible  <bruno@clisp.org>
48803
48804         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
48805         * lib/setenv.h: Remove file.
48806         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
48807         lib/setenv.h.
48808         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
48809         (Depends-on): Add stdlib.
48810         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
48811         gl_FUNC_UNSETENV.
48812         (Include): Replace setenv.h with <stdlib.h>.
48813         * modules/unsetenv: New file.
48814         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
48815         * lib/unsetenv.c: Include <stdlib.h> first.
48816         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
48817         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
48818         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
48819         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
48820         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
48821         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
48822         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
48823         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
48824         * doc/functions/unsetenv.texi: Update.
48825         * modules/xsetenv (Depends-on): Add unsetenv.
48826         * modules/getdate (Depends-on): Likewise.
48827         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
48828         * lib/xsetenv.c: Don't include setenv.h.
48829         * lib/getdate.y: Likewise.
48830         * lib/relocwrapper.c: Likewise.
48831         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
48832         (Depends-on): Add stdlib.
48833         * NEWS: Mention the changes.
48834         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48835
48836 2007-12-23  Bruno Haible  <bruno@clisp.org>
48837
48838         * lib/memmem.c (memmem): Use lowercase variable names. Tab
48839         indentation.
48840
48841 2007-12-23  Bruno Haible  <bruno@clisp.org>
48842
48843         * lib/c-strcasestr.c: Add more comments.
48844         * lib/c-strstr.c: Likewise.
48845         * lib/mbscasestr.c: Likewise.
48846         * lib/mbsstr.c: Likewise.
48847         * lib/strcasestr.c: Likewise.
48848         * lib/memmem.c: Likewise.
48849
48850 2007-12-23  Bruno Haible  <bruno@clisp.org>
48851
48852         * tests/test-memmem.c: Include <string.h> first.
48853
48854 2007-12-22  Bruno Haible  <bruno@clisp.org>
48855
48856         * gnulib-tool (func_create_testdir): Change $auxdir while generating
48857         the contents of $testsbase.
48858         Reported by Ralf Wildenhues.
48859
48860 2007-12-22  Bruno Haible  <bruno@clisp.org>
48861
48862         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
48863         two variables local_ldadd_before, local_ldadd_last.
48864
48865 2007-12-20  Eric Blake  <ebb9@byu.net>
48866
48867         Work around circular library issue when cross-compiling.
48868         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
48869         that progname.o does not need to pull in rpl_memcmp.
48870
48871 2007-12-19  Eric Blake  <ebb9@byu.net>
48872
48873         Fix memmem to avoid O(n^2) worst-case complexity.
48874         * lib/memmem.c (knuth_morris_pratt): New function.
48875         (memmem): Use it if first few naive iterations fail.
48876         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
48877         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
48878         * modules/memchr (License): Likewise.
48879         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
48880         malloca.
48881         * tests/test-memmem.c: Rewrite, borrowing ideas from
48882         test-mbsstr1.c; the old version wouldn't even compile!
48883         * modules/memmem-tests: New file.
48884         * lib/string.in.h (rpl_memmem): Add declaration.
48885         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
48886         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
48887         REPLACE_MEMMEM.
48888
48889 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48890
48891         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
48892         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
48893         before any system include files, and undef after them all.  This
48894         should fix a problem on VMS reported by John E. Malmberg in
48895         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
48896
48897 2007-12-17  Eric Blake  <ebb9@byu.net>
48898
48899         Revert addition of verify, for BSD/OS.
48900         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
48901         can't handle large files, for the sake of obsolete platforms.
48902         * modules/fseeko (Depends-on): Remove verify.
48903         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
48904         * doc/functions/ftello.texi (ftello): Likewise.
48905         * doc/functions/fgetpos.texi (fgetpos): Likewise.
48906         Reported by Larry Jones.
48907
48908 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
48909
48910         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
48911         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
48912
48913 2007-12-17  Jim Meyering  <meyering@redhat.com>
48914
48915         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
48916         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
48917         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
48918         * modules/getcwd (Depends-on): Add openat.
48919         Reported by Petr Salinger.
48920
48921 2007-12-17  Bruno Haible  <bruno@clisp.org>
48922
48923         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
48924         avoid a segmentation fault of the configure test on x86_64 systems.
48925
48926 2007-12-15  Jim Meyering  <meyering@redhat.com>
48927
48928         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
48929
48930 2007-12-13  Eric Blake  <ebb9@byu.net>
48931
48932         Another fseek test.
48933         * tests/test-fseek.c (main): Also test ungetc handling.
48934         * tests/test-fseeko.c (main): Likewise.
48935         * modules/fseeko (Depends-on): Add verify.
48936         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
48937         large.
48938         Reported by Larry Jones.
48939
48940         Fix fseeko on mingw.
48941         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
48942         seek.
48943
48944         Beef up fseek tests.
48945         * tests/test-fseek.c (main): Also test eof handling.
48946         * tests/test-fseeko.c (main): Likewise.
48947         Reported by Larry Jones.
48948
48949 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
48950
48951         Fix fseeko on BSD-based platforms.
48952         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
48953         successful seek.
48954
48955 2007-12-12  Eric Blake  <ebb9@byu.net>
48956
48957         Allow circular dependency of separate libtests.a
48958         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
48959         when use_libtests.
48960
48961 2007-12-11  Eric Blake  <ebb9@byu.net>
48962
48963         Fix bug with -0.0L in previous patch.
48964         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
48965         * tests/test-isnan.c (main): Also test on zeroes.
48966         * tests/test-isnanf.c (main): Likewise.
48967         * tests/test-isnanl.h (main): Likewise.
48968
48969         Detect pseudo-denormals on x86 even when cross-compiling.
48970         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
48971         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
48972         invalid bit patterns that happen to satisfy ==.
48973
48974         Avoid link failures with separate libtests.a.
48975         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
48976         last, to satisfy circular dependencies.
48977
48978 2007-12-11  Eric Blake  <ebb9@byu.net>
48979         and Bruno Haible  <bruno@clisp.org>
48980
48981         Fix OpenBSD 4.0 <float.h> handling of long double.
48982         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
48983         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
48984         * doc/headers/float.texi (float.h): Document OpenBSD bug.
48985
48986 2007-12-11  Jim Meyering  <meyering@redhat.com>
48987
48988         * users.txt: Add libvirt.
48989
48990         Support versions of autoconf prior to 2.59c.
48991         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
48992         if it is not already defined.
48993
48994 2007-12-09  Bruno Haible  <bruno@clisp.org>
48995
48996         Let 'gnulib-tool --import' collect sources needed for the tests in
48997         tests/ rather than in lib/.
48998         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
48999         argument. If true, add rules to generate libtests.a, and put libtests.a
49000         into $(LDADD). Consider source files in subdirectories and set
49001         uses_subdirs.
49002         (func_emit_initmacro_start, func_emit_initmacro_end,
49003         func_emit_initmacro_done): Pass all arguments explicitly.
49004         (func_import): Determine two module lists main_modules,
49005         testsrelated_modules. Determine use_libtests. Determine two variables
49006         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49007         instead of just sed_transform_lib_file. Determine two variables
49008         main_files and testsrelated_files. Compute 'files' as the union of
49009         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49010         func_add_or_update. In the generated gnulib-comp.m4, collect the
49011         object files for tests/ in different variables than those for lib/.
49012         Substitute LIBTESTS_LIBDEPS.
49013         (func_create_testdir): Combine the uses_subdirs results from
49014         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49015
49016 2007-12-09  Bruno Haible  <bruno@clisp.org>
49017
49018         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49019         the build-aux directory.
49020
49021 2007-12-09  Bruno Haible  <bruno@clisp.org>
49022
49023         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49024         introduced on 2006-09-09.
49025
49026 2007-12-07  Jim Meyering  <meyering@redhat.com>
49027
49028         Let these macros work also with autoconf-2.59.
49029         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49030         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49031         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49032
49033 2007-12-06  Jim Meyering  <meyering@redhat.com>
49034
49035         Avoid a configure-time syntax error in gl_FUNC_ACL.
49036         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49037         function in each branch, before testing the cache variable.
49038
49039 2007-12-04  Eric Blake  <ebb9@byu.net>
49040
49041         Make scripts executable.
49042         * build-aux/config.guess: Add execute permissions.
49043         * build-aux/config.sub: Likewise.
49044         * build-aux/gendocs.sh: Likewise.
49045
49046         Fix frexp on mingw.
49047         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49048         cross-compiling.
49049         * doc/functions/frexp.texi (frexp): Document the bug.
49050
49051         Make cygwin fseeko check more reliable.
49052         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49053         version numbers, rather than unrelated feature check.
49054         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49055         * doc/functions/ftello.texi (ftello): Likewise.
49056         Reported by Bruno Haible.
49057
49058         * m4/strerror.m4: Bump version number.
49059
49060 2007-12-03  Bruno Haible  <bruno@clisp.org>
49061
49062         * doc/functions/mprotect.texi: Mention the mingw problem.
49063
49064 2007-12-03  Eric Blake  <ebb9@byu.net>
49065
49066         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49067         REPLACE_STRERROR is initialized before this macro.
49068
49069 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49070
49071         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49072         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49073         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49074         put -lsec in even for programs other than 'ls'.  This fixes a problem
49075         for gettext reported by Bruno Haible in
49076         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49077         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49078         Add support for Solaris 10.  This isn't efficient, but should get the
49079         job done for now.
49080
49081 2007-12-03  James Youngman  <jay@gnu.org>
49082
49083         * doc/regexprops-generic.texi: change "an close-group" to "a
49084         close-group" and "illegal" to "not allowed".
49085
49086 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49087
49088         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49089         pr_byname.h. Needed for the rare case when the maintainer has done
49090         "make maintainer-clean" in the source directory and then attempts a
49091         build outside the source directory.
49092         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49093         scripts_byname.h.
49094
49095 2007-12-02  Martin Lambers <marlam@marlam.de>
49096             Bruno Haible  <bruno@clisp.org>
49097
49098         * lib/getpagesize.h: Remove file.
49099         * lib/unistd.in.h: Include declaration of getpagesize here.
49100         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49101         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49102         HAVE_SYS_PARAM_H.
49103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49104         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49105         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49106         (Depends-on): Add unistd.
49107         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49108         (Include): Use <unistd.h> instead of getpagesize.h.
49109         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49110         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49111         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49112         gl_GETPAGESIZE invocation, already handled by module dependency.
49113         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49114
49115 2007-12-02  Bruno Haible  <bruno@clisp.org>
49116
49117         * modules/strings-tests: New file.
49118         * tests/test-strings.c: New file.
49119
49120         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49121         * lib/strings.in.h: New file.
49122         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49123         * m4/strings_h.m4: New file.
49124         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49125         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49126         * modules/strings: New file.
49127         * modules/string (Makefile.am): Update.
49128         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49129         Reported by Karl Berry.
49130
49131 2007-12-01  Eric Blake  <ebb9@byu.net>
49132
49133         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49134         accomodate fix in cygwin 1.5.25.
49135
49136 2007-12-01  Jim Meyering  <meyering@redhat.com>
49137
49138         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49139         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49140         that would inhibit utf8-optimization of a regexp containing line-
49141         or buffer-anchors, e.g., `^', `$'.
49142
49143 2007-11-30  Bruno Haible  <bruno@clisp.org>
49144
49145         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
49146         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
49147         glthread_recursive_lock_init.
49148         * lib/lock.c (glthread_recursive_lock_init)
49149         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
49150         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49151
49152 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
49153
49154         New function qset_acl, like set_acl but with syscall semantics.
49155         * lib/acl.h (qset_acl): New decl.
49156         * lib/acl.c (qset_acl): New function.
49157         (set_acl): Use new function.  Use more-consistent diagnostics.
49158
49159 2007-11-28  Jim Meyering  <meyering@redhat.com>
49160
49161         * modules/physmem (License): Change from GPL to LGPLv2+.
49162
49163 2007-11-26  Bruno Haible  <bruno@clisp.org>
49164
49165         * lib/vasnprintf.c (decode_long_double): Don't abort if the
49166         'long double' type has excess precision.
49167         Reported by Jim Meyering in
49168         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
49169
49170 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49171
49172         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
49173         Sync from <http://gnu.org/licenses>.
49174         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
49175         with license text from same location.
49176         * doc/maintain.texi, doc/standards.texi:  Sync from
49177         <http://savannah.gnu.org/projects/gnustandards>.
49178
49179 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
49180         and Jim Meyering  <meyering@redhat.com>
49181
49182         Adjust getdate' grammar to accept a slightly more regular language.
49183         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
49184         Before, the former was rejected.
49185         * lib/getdate.y (digits_to_date_time): New function, factored
49186         out of ...
49187         (number): ...here.  Just call digits_to_date_time.
49188         (hybrid): New non-terminal to handle an <unsigned number,
49189         signed relative offset> sequence consistently.
49190
49191 2007-11-18  Jim Meyering  <meyering@redhat.com>
49192
49193         Pull my changes from coreutils:
49194         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
49195         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
49196         use of $gnulib_tool_option_extras, so that it's separated from the
49197         preceding argument.
49198
49199         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
49200         * build-aux/bootstrap (cp_mark_as_generated): Create any required
49201         parent destination directories before copying a file into place.
49202
49203 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49204
49205         bootstrap: work also with 4-argument variant of AC_INIT
49206         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
49207
49208 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49209
49210         Port test-getaddrinfo to Solaris.
49211         Problem reported by Bruno Haible in
49212         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
49213         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
49214         explanation of setting 'hints'.
49215         Don't reject an implementation merely because it returns EAI_SERVICE.
49216         (EAI_SERVICE): Define to 0 if not defined.
49217
49218 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49219
49220         The license of gnu-make and posix-shell is now "GPLed build tool".
49221         * modules/gnu-make (License): Likewise.
49222         * modules/posix-shell (License): Likewise.
49223
49224         New module posix-shell, for determining a POSIX shell
49225         or perhaps something that is close enough to a POSIX shell.
49226         * m4/posix-shell.m4: New file.
49227         * modules/posix-shell: New file.
49228
49229         * MODULES.html.sh: Mention new module.
49230
49231         New module gnu-make, for determining whether we're using GNU Make.
49232         * m4/gnu-make.m4: New file.
49233         * modules/gnu-make: New file.
49234         * MODULES.html.sh: Mention new module.
49235
49236 2007-11-14  Jim Meyering  <meyering@redhat.com>
49237
49238         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
49239         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
49240         use this macro to create a function _definition_.
49241         Remove useless "#undef ARGMATCH_DIE".
49242
49243 2007-11-14  Bruno Haible  <bruno@clisp.org>
49244
49245         * lib/config.charset: Update for OpenBSD 4.1.
49246         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
49247
49248 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
49249
49250         Document 64-bit #if problems in stdint.texi.
49251         * doc/headers/stdint.texi (stdint.h): Mention problems with
49252         64-bit-#if, and how to work around them.
49253
49254         Don't insist on 'long long int' support in the preprocessor.  It
49255         breaks too many things.  For example, PRIdMAX still uses a 'long
49256         long int' format with the latest Sun compiler, even though
49257         HAVE_LONG_LONG_INT isn't defined due to that compiler's
49258         preprocessor problem.  This causes the latest coreutils to dump
49259         core on Solaris 10 sparc with the Sun C compiler.
49260         Instead, fix the 2007-10-16 problem in a different way, by evaluating
49261         the troublesome expressions at configure-time, not at #if-time.
49262         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
49263         preprocessor.
49264         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
49265         compile-time C checks, done at 'configure'-time.
49266         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
49267         * modules/inttypes (Makefile): Substitute the new symbols that
49268         gl_INTTYPES_H now generates.
49269         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
49270
49271 2007-11-12  Bruno Haible  <bruno@clisp.org>
49272
49273         Tests for Unicode character classification functions.
49274
49275         * modules/unictype/bidicategory-byname-tests: New file.
49276         * modules/unictype/bidicategory-name-tests: New file.
49277         * modules/unictype/bidicategory-of-tests: New file.
49278         * modules/unictype/bidicategory-test-tests: New file.
49279         * modules/unictype/block-list-tests: New file.
49280         * modules/unictype/block-of-tests: New file.
49281         * modules/unictype/block-test-tests: New file.
49282         * modules/unictype/category-C-tests: New file.
49283         * modules/unictype/category-Cc-tests: New file.
49284         * modules/unictype/category-Cf-tests: New file.
49285         * modules/unictype/category-Cn-tests: New file.
49286         * modules/unictype/category-Co-tests: New file.
49287         * modules/unictype/category-Cs-tests: New file.
49288         * modules/unictype/category-L-tests: New file.
49289         * modules/unictype/category-Ll-tests: New file.
49290         * modules/unictype/category-Lm-tests: New file.
49291         * modules/unictype/category-Lo-tests: New file.
49292         * modules/unictype/category-Lt-tests: New file.
49293         * modules/unictype/category-Lu-tests: New file.
49294         * modules/unictype/category-M-tests: New file.
49295         * modules/unictype/category-Mc-tests: New file.
49296         * modules/unictype/category-Me-tests: New file.
49297         * modules/unictype/category-Mn-tests: New file.
49298         * modules/unictype/category-N-tests: New file.
49299         * modules/unictype/category-Nd-tests: New file.
49300         * modules/unictype/category-Nl-tests: New file.
49301         * modules/unictype/category-No-tests: New file.
49302         * modules/unictype/category-P-tests: New file.
49303         * modules/unictype/category-Pc-tests: New file.
49304         * modules/unictype/category-Pd-tests: New file.
49305         * modules/unictype/category-Pe-tests: New file.
49306         * modules/unictype/category-Pf-tests: New file.
49307         * modules/unictype/category-Pi-tests: New file.
49308         * modules/unictype/category-Po-tests: New file.
49309         * modules/unictype/category-Ps-tests: New file.
49310         * modules/unictype/category-S-tests: New file.
49311         * modules/unictype/category-Sc-tests: New file.
49312         * modules/unictype/category-Sk-tests: New file.
49313         * modules/unictype/category-Sm-tests: New file.
49314         * modules/unictype/category-So-tests: New file.
49315         * modules/unictype/category-Z-tests: New file.
49316         * modules/unictype/category-Zl-tests: New file.
49317         * modules/unictype/category-Zp-tests: New file.
49318         * modules/unictype/category-Zs-tests: New file.
49319         * modules/unictype/category-and-not-tests: New file.
49320         * modules/unictype/category-and-tests: New file.
49321         * modules/unictype/category-byname-tests: New file.
49322         * modules/unictype/category-name-tests: New file.
49323         * modules/unictype/category-none-tests: New file.
49324         * modules/unictype/category-of-tests: New file.
49325         * modules/unictype/category-or-tests: New file.
49326         * modules/unictype/category-test-withtable-tests: New file.
49327         * modules/unictype/combining-class-tests: New file.
49328         * modules/unictype/ctype-alnum-tests: New file.
49329         * modules/unictype/ctype-alpha-tests: New file.
49330         * modules/unictype/ctype-blank-tests: New file.
49331         * modules/unictype/ctype-cntrl-tests: New file.
49332         * modules/unictype/ctype-digit-tests: New file.
49333         * modules/unictype/ctype-graph-tests: New file.
49334         * modules/unictype/ctype-lower-tests: New file.
49335         * modules/unictype/ctype-print-tests: New file.
49336         * modules/unictype/ctype-punct-tests: New file.
49337         * modules/unictype/ctype-space-tests: New file.
49338         * modules/unictype/ctype-upper-tests: New file.
49339         * modules/unictype/ctype-xdigit-tests: New file.
49340         * modules/unictype/decimal-digit-tests: New file.
49341         * modules/unictype/digit-tests: New file.
49342         * modules/unictype/mirror-tests: New file.
49343         * modules/unictype/numeric-tests: New file.
49344         * modules/unictype/property-alphabetic-tests: New file.
49345         * modules/unictype/property-ascii-hex-digit-tests: New file.
49346         * modules/unictype/property-bidi-arabic-digit-tests: New file.
49347         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
49348         * modules/unictype/property-bidi-block-separator-tests: New file.
49349         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
49350         * modules/unictype/property-bidi-common-separator-tests: New file.
49351         * modules/unictype/property-bidi-control-tests: New file.
49352         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
49353         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
49354         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
49355         * modules/unictype/property-bidi-european-digit-tests: New file.
49356         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
49357         * modules/unictype/property-bidi-left-to-right-tests: New file.
49358         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
49359         * modules/unictype/property-bidi-other-neutral-tests: New file.
49360         * modules/unictype/property-bidi-pdf-tests: New file.
49361         * modules/unictype/property-bidi-segment-separator-tests: New file.
49362         * modules/unictype/property-bidi-whitespace-tests: New file.
49363         * modules/unictype/property-byname-tests: New file.
49364         * modules/unictype/property-combining-tests: New file.
49365         * modules/unictype/property-composite-tests: New file.
49366         * modules/unictype/property-currency-symbol-tests: New file.
49367         * modules/unictype/property-dash-tests: New file.
49368         * modules/unictype/property-decimal-digit-tests: New file.
49369         * modules/unictype/property-default-ignorable-code-point-tests: New file.
49370         * modules/unictype/property-deprecated-tests: New file.
49371         * modules/unictype/property-diacritic-tests: New file.
49372         * modules/unictype/property-extender-tests: New file.
49373         * modules/unictype/property-format-control-tests: New file.
49374         * modules/unictype/property-grapheme-base-tests: New file.
49375         * modules/unictype/property-grapheme-extend-tests: New file.
49376         * modules/unictype/property-grapheme-link-tests: New file.
49377         * modules/unictype/property-hex-digit-tests: New file.
49378         * modules/unictype/property-hyphen-tests: New file.
49379         * modules/unictype/property-id-continue-tests: New file.
49380         * modules/unictype/property-id-start-tests: New file.
49381         * modules/unictype/property-ideographic-tests: New file.
49382         * modules/unictype/property-ids-binary-operator-tests: New file.
49383         * modules/unictype/property-ids-trinary-operator-tests: New file.
49384         * modules/unictype/property-ignorable-control-tests: New file.
49385         * modules/unictype/property-iso-control-tests: New file.
49386         * modules/unictype/property-join-control-tests: New file.
49387         * modules/unictype/property-left-of-pair-tests: New file.
49388         * modules/unictype/property-line-separator-tests: New file.
49389         * modules/unictype/property-logical-order-exception-tests: New file.
49390         * modules/unictype/property-lowercase-tests: New file.
49391         * modules/unictype/property-math-tests: New file.
49392         * modules/unictype/property-non-break-tests: New file.
49393         * modules/unictype/property-not-a-character-tests: New file.
49394         * modules/unictype/property-numeric-tests: New file.
49395         * modules/unictype/property-other-alphabetic-tests: New file.
49396         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
49397         * modules/unictype/property-other-grapheme-extend-tests: New file.
49398         * modules/unictype/property-other-id-continue-tests: New file.
49399         * modules/unictype/property-other-id-start-tests: New file.
49400         * modules/unictype/property-other-lowercase-tests: New file.
49401         * modules/unictype/property-other-math-tests: New file.
49402         * modules/unictype/property-other-uppercase-tests: New file.
49403         * modules/unictype/property-paired-punctuation-tests: New file.
49404         * modules/unictype/property-paragraph-separator-tests: New file.
49405         * modules/unictype/property-pattern-syntax-tests: New file.
49406         * modules/unictype/property-pattern-white-space-tests: New file.
49407         * modules/unictype/property-private-use-tests: New file.
49408         * modules/unictype/property-punctuation-tests: New file.
49409         * modules/unictype/property-quotation-mark-tests: New file.
49410         * modules/unictype/property-radical-tests: New file.
49411         * modules/unictype/property-sentence-terminal-tests: New file.
49412         * modules/unictype/property-soft-dotted-tests: New file.
49413         * modules/unictype/property-space-tests: New file.
49414         * modules/unictype/property-terminal-punctuation-tests: New file.
49415         * modules/unictype/property-test-tests: New file.
49416         * modules/unictype/property-titlecase-tests: New file.
49417         * modules/unictype/property-unassigned-code-value-tests: New file.
49418         * modules/unictype/property-unified-ideograph-tests: New file.
49419         * modules/unictype/property-uppercase-tests: New file.
49420         * modules/unictype/property-variation-selector-tests: New file.
49421         * modules/unictype/property-white-space-tests: New file.
49422         * modules/unictype/property-xid-continue-tests: New file.
49423         * modules/unictype/property-xid-start-tests: New file.
49424         * modules/unictype/property-zero-width-tests: New file.
49425         * modules/unictype/scripts-tests: New file.
49426         * modules/unictype/syntax-c-ident-tests: New file.
49427         * modules/unictype/syntax-c-whitespace-tests: New file.
49428         * modules/unictype/syntax-java-ident-tests: New file.
49429         * modules/unictype/syntax-java-whitespace-tests: New file.
49430         * tests/unictype/test-bidi_byname.c: New file.
49431         * tests/unictype/test-bidi_name.c: New file.
49432         * tests/unictype/test-bidi_of.c: New file.
49433         * tests/unictype/test-bidi_test.c: New file.
49434         * tests/unictype/test-block_list.c: New file.
49435         * tests/unictype/test-block_of.c: New file.
49436         * tests/unictype/test-block_test.c: New file.
49437         * tests/unictype/test-categ_and.c: New file.
49438         * tests/unictype/test-categ_and_not.c: New file.
49439         * tests/unictype/test-categ_byname.c: New file.
49440         * tests/unictype/test-categ_name.c: New file.
49441         * tests/unictype/test-categ_none.c: New file.
49442         * tests/unictype/test-categ_of.c: New file.
49443         * tests/unictype/test-categ_or.c: New file.
49444         * tests/unictype/test-categ_test_withtable.c: New file.
49445         * tests/unictype/test-combining.c: New file.
49446         * tests/unictype/test-decdigit.c: New file.
49447         * tests/unictype/test-digit.c: New file.
49448         * tests/unictype/test-mirror.c: New file.
49449         * tests/unictype/test-numeric.c: New file.
49450         * tests/unictype/test-pr_byname.c: New file.
49451         * tests/unictype/test-pr_test.c: New file.
49452         * tests/unictype/test-predicate-part1.h: New file.
49453         * tests/unictype/test-predicate-part2.h: New file.
49454         * tests/unictype/test-scripts.c: New file.
49455         * tests/unictype/test-sy_c_ident.c: New file.
49456         * tests/unictype/test-sy_java_ident.c: New file.
49457
49458         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
49459         for Unicode 5.0.0.
49460         * tests/unictype/test-categ_Cc.c: Likewise.
49461         * tests/unictype/test-categ_Cf.c: Likewise.
49462         * tests/unictype/test-categ_Cn.c: Likewise.
49463         * tests/unictype/test-categ_Co.c: Likewise.
49464         * tests/unictype/test-categ_Cs.c: Likewise.
49465         * tests/unictype/test-categ_L.c: Likewise.
49466         * tests/unictype/test-categ_Ll.c: Likewise.
49467         * tests/unictype/test-categ_Lm.c: Likewise.
49468         * tests/unictype/test-categ_Lo.c: Likewise.
49469         * tests/unictype/test-categ_Lt.c: Likewise.
49470         * tests/unictype/test-categ_Lu.c: Likewise.
49471         * tests/unictype/test-categ_M.c: Likewise.
49472         * tests/unictype/test-categ_Mc.c: Likewise.
49473         * tests/unictype/test-categ_Me.c: Likewise.
49474         * tests/unictype/test-categ_Mn.c: Likewise.
49475         * tests/unictype/test-categ_N.c: Likewise.
49476         * tests/unictype/test-categ_Nd.c: Likewise.
49477         * tests/unictype/test-categ_Nl.c: Likewise.
49478         * tests/unictype/test-categ_No.c: Likewise.
49479         * tests/unictype/test-categ_P.c: Likewise.
49480         * tests/unictype/test-categ_Pc.c: Likewise.
49481         * tests/unictype/test-categ_Pd.c: Likewise.
49482         * tests/unictype/test-categ_Pe.c: Likewise.
49483         * tests/unictype/test-categ_Pf.c: Likewise.
49484         * tests/unictype/test-categ_Pi.c: Likewise.
49485         * tests/unictype/test-categ_Po.c: Likewise.
49486         * tests/unictype/test-categ_Ps.c: Likewise.
49487         * tests/unictype/test-categ_S.c: Likewise.
49488         * tests/unictype/test-categ_Sc.c: Likewise.
49489         * tests/unictype/test-categ_Sk.c: Likewise.
49490         * tests/unictype/test-categ_Sm.c: Likewise.
49491         * tests/unictype/test-categ_So.c: Likewise.
49492         * tests/unictype/test-categ_Z.c: Likewise.
49493         * tests/unictype/test-categ_Zl.c: Likewise.
49494         * tests/unictype/test-categ_Zp.c: Likewise.
49495         * tests/unictype/test-categ_Zs.c: Likewise.
49496         * tests/unictype/test-ctype_alnum.c: Likewise.
49497         * tests/unictype/test-ctype_alpha.c: Likewise.
49498         * tests/unictype/test-ctype_blank.c: Likewise.
49499         * tests/unictype/test-ctype_cntrl.c: Likewise.
49500         * tests/unictype/test-ctype_digit.c: Likewise.
49501         * tests/unictype/test-ctype_graph.c: Likewise.
49502         * tests/unictype/test-ctype_lower.c: Likewise.
49503         * tests/unictype/test-ctype_print.c: Likewise.
49504         * tests/unictype/test-ctype_punct.c: Likewise.
49505         * tests/unictype/test-ctype_space.c: Likewise.
49506         * tests/unictype/test-ctype_upper.c: Likewise.
49507         * tests/unictype/test-ctype_xdigit.c: Likewise.
49508         * tests/unictype/test-decdigit.h: Likewise.
49509         * tests/unictype/test-digit.h: Likewise.
49510         * tests/unictype/test-numeric.h: Likewise.
49511         * tests/unictype/test-pr_alphabetic.c: Likewise.
49512         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
49513         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
49514         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
49515         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
49516         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
49517         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
49518         * tests/unictype/test-pr_bidi_control.c: Likewise.
49519         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
49520         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
49521         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
49522         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
49523         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
49524         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
49525         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
49526         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
49527         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
49528         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
49529         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
49530         * tests/unictype/test-pr_combining.c: Likewise.
49531         * tests/unictype/test-pr_composite.c: Likewise.
49532         * tests/unictype/test-pr_currency_symbol.c: Likewise.
49533         * tests/unictype/test-pr_dash.c: Likewise.
49534         * tests/unictype/test-pr_decimal_digit.c: Likewise.
49535         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
49536         * tests/unictype/test-pr_deprecated.c: Likewise.
49537         * tests/unictype/test-pr_diacritic.c: Likewise.
49538         * tests/unictype/test-pr_extender.c: Likewise.
49539         * tests/unictype/test-pr_format_control.c: Likewise.
49540         * tests/unictype/test-pr_grapheme_base.c: Likewise.
49541         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
49542         * tests/unictype/test-pr_grapheme_link.c: Likewise.
49543         * tests/unictype/test-pr_hex_digit.c: Likewise.
49544         * tests/unictype/test-pr_hyphen.c: Likewise.
49545         * tests/unictype/test-pr_id_continue.c: Likewise.
49546         * tests/unictype/test-pr_id_start.c: Likewise.
49547         * tests/unictype/test-pr_ideographic.c: Likewise.
49548         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
49549         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
49550         * tests/unictype/test-pr_ignorable_control.c: Likewise.
49551         * tests/unictype/test-pr_iso_control.c: Likewise.
49552         * tests/unictype/test-pr_join_control.c: Likewise.
49553         * tests/unictype/test-pr_left_of_pair.c: Likewise.
49554         * tests/unictype/test-pr_line_separator.c: Likewise.
49555         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
49556         * tests/unictype/test-pr_lowercase.c: Likewise.
49557         * tests/unictype/test-pr_math.c: Likewise.
49558         * tests/unictype/test-pr_non_break.c: Likewise.
49559         * tests/unictype/test-pr_not_a_character.c: Likewise.
49560         * tests/unictype/test-pr_numeric.c: Likewise.
49561         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
49562         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
49563         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
49564         * tests/unictype/test-pr_other_id_continue.c: Likewise.
49565         * tests/unictype/test-pr_other_id_start.c: Likewise.
49566         * tests/unictype/test-pr_other_lowercase.c: Likewise.
49567         * tests/unictype/test-pr_other_math.c: Likewise.
49568         * tests/unictype/test-pr_other_uppercase.c: Likewise.
49569         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
49570         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
49571         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
49572         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
49573         * tests/unictype/test-pr_private_use.c: Likewise.
49574         * tests/unictype/test-pr_punctuation.c: Likewise.
49575         * tests/unictype/test-pr_quotation_mark.c: Likewise.
49576         * tests/unictype/test-pr_radical.c: Likewise.
49577         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
49578         * tests/unictype/test-pr_soft_dotted.c: Likewise.
49579         * tests/unictype/test-pr_space.c: Likewise.
49580         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
49581         * tests/unictype/test-pr_titlecase.c: Likewise.
49582         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
49583         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
49584         * tests/unictype/test-pr_uppercase.c: Likewise.
49585         * tests/unictype/test-pr_variation_selector.c: Likewise.
49586         * tests/unictype/test-pr_white_space.c: Likewise.
49587         * tests/unictype/test-pr_xid_continue.c: Likewise.
49588         * tests/unictype/test-pr_xid_start.c: Likewise.
49589         * tests/unictype/test-pr_zero_width.c: Likewise.
49590         * tests/unictype/test-sy_c_whitespace.c: Likewise.
49591         * tests/unictype/test-sy_java_whitespace.c: Likewise.
49592
49593 2007-11-12  Bruno Haible  <bruno@clisp.org>
49594
49595         Unicode character classification functions.
49596         * lib/unictype.h: New file.
49597         * modules/unictype/base: New file.
49598         * modules/unictype/category-L: New file.
49599         * modules/unictype/category-Lu: New file.
49600         * modules/unictype/category-Ll: New file.
49601         * modules/unictype/category-Lt: New file.
49602         * modules/unictype/category-Lm: New file.
49603         * modules/unictype/category-Lo: New file.
49604         * modules/unictype/category-M: New file.
49605         * modules/unictype/category-Mn: New file.
49606         * modules/unictype/category-Mc: New file.
49607         * modules/unictype/category-Me: New file.
49608         * modules/unictype/category-N: New file.
49609         * modules/unictype/category-Nd: New file.
49610         * modules/unictype/category-Nl: New file.
49611         * modules/unictype/category-No: New file.
49612         * modules/unictype/category-P: New file.
49613         * modules/unictype/category-Pc: New file.
49614         * modules/unictype/category-Pd: New file.
49615         * modules/unictype/category-Ps: New file.
49616         * modules/unictype/category-Pe: New file.
49617         * modules/unictype/category-Pi: New file.
49618         * modules/unictype/category-Pf: New file.
49619         * modules/unictype/category-Po: New file.
49620         * modules/unictype/category-S: New file.
49621         * modules/unictype/category-Sm: New file.
49622         * modules/unictype/category-Sc: New file.
49623         * modules/unictype/category-Sk: New file.
49624         * modules/unictype/category-So: New file.
49625         * modules/unictype/category-Z: New file.
49626         * modules/unictype/category-Zs: New file.
49627         * modules/unictype/category-Zl: New file.
49628         * modules/unictype/category-Zp: New file.
49629         * modules/unictype/category-C: New file.
49630         * modules/unictype/category-Cc: New file.
49631         * modules/unictype/category-Cf: New file.
49632         * modules/unictype/category-Cs: New file.
49633         * modules/unictype/category-Co: New file.
49634         * modules/unictype/category-Cn: New file.
49635         * modules/unictype/category-or: New file.
49636         * modules/unictype/category-of: New file.
49637         * modules/unictype/category-test: New file.
49638         * modules/unictype/category-test-withtable: New file.
49639         * modules/unictype/category-byname: New file.
49640         * modules/unictype/category-none: New file.
49641         * modules/unictype/category-and: New file.
49642         * modules/unictype/category-and-not: New file.
49643         * modules/unictype/category-name: New file.
49644         * modules/unictype/combining-class: New file.
49645         * modules/unictype/category-all: New file.
49646         * modules/unictype/bidicategory-all: New file.
49647         * modules/unictype/bidicategory-byname: New file.
49648         * modules/unictype/bidicategory-name: New file.
49649         * modules/unictype/bidicategory-of: New file.
49650         * modules/unictype/bidicategory-test: New file.
49651         * modules/unictype/decimal-digit: New file.
49652         * modules/unictype/digit: New file.
49653         * modules/unictype/numeric: New file.
49654         * modules/unictype/mirror: New file.
49655         * modules/unictype/property-white-space: New file.
49656         * modules/unictype/property-alphabetic: New file.
49657         * modules/unictype/property-other-alphabetic: New file.
49658         * modules/unictype/property-not-a-character: New file.
49659         * modules/unictype/property-default-ignorable-code-point: New file.
49660         * modules/unictype/property-other-default-ignorable-code-point: New
49661         file.
49662         * modules/unictype/property-deprecated: New file.
49663         * modules/unictype/property-logical-order-exception: New file.
49664         * modules/unictype/property-variation-selector: New file.
49665         * modules/unictype/property-private-use: New file.
49666         * modules/unictype/property-unassigned-code-value: New file.
49667         * modules/unictype/property-uppercase: New file.
49668         * modules/unictype/property-other-uppercase: New file.
49669         * modules/unictype/property-lowercase: New file.
49670         * modules/unictype/property-other-lowercase: New file.
49671         * modules/unictype/property-titlecase: New file.
49672         * modules/unictype/property-soft-dotted: New file.
49673         * modules/unictype/property-id-start: New file.
49674         * modules/unictype/property-other-id-start: New file.
49675         * modules/unictype/property-id-continue: New file.
49676         * modules/unictype/property-other-id-continue: New file.
49677         * modules/unictype/property-xid-start: New file.
49678         * modules/unictype/property-xid-continue: New file.
49679         * modules/unictype/property-pattern-white-space: New file.
49680         * modules/unictype/property-pattern-syntax: New file.
49681         * modules/unictype/property-join-control: New file.
49682         * modules/unictype/property-grapheme-base: New file.
49683         * modules/unictype/property-grapheme-extend: New file.
49684         * modules/unictype/property-other-grapheme-extend: New file.
49685         * modules/unictype/property-grapheme-link: New file.
49686         * modules/unictype/property-bidi-control: New file.
49687         * modules/unictype/property-bidi-left-to-right: New file.
49688         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
49689         * modules/unictype/property-bidi-arabic-right-to-left: New file.
49690         * modules/unictype/property-bidi-european-digit: New file.
49691         * modules/unictype/property-bidi-eur-num-separator: New file.
49692         * modules/unictype/property-bidi-eur-num-terminator: New file.
49693         * modules/unictype/property-bidi-arabic-digit: New file.
49694         * modules/unictype/property-bidi-common-separator: New file.
49695         * modules/unictype/property-bidi-block-separator: New file.
49696         * modules/unictype/property-bidi-segment-separator: New file.
49697         * modules/unictype/property-bidi-whitespace: New file.
49698         * modules/unictype/property-bidi-non-spacing-mark: New file.
49699         * modules/unictype/property-bidi-boundary-neutral: New file.
49700         * modules/unictype/property-bidi-pdf: New file.
49701         * modules/unictype/property-bidi-embedding-or-override: New file.
49702         * modules/unictype/property-bidi-other-neutral: New file.
49703         * modules/unictype/property-hex-digit: New file.
49704         * modules/unictype/property-ascii-hex-digit: New file.
49705         * modules/unictype/property-ideographic: New file.
49706         * modules/unictype/property-unified-ideograph: New file.
49707         * modules/unictype/property-radical: New file.
49708         * modules/unictype/property-ids-binary-operator: New file.
49709         * modules/unictype/property-ids-trinary-operator: New file.
49710         * modules/unictype/property-zero-width: New file.
49711         * modules/unictype/property-space: New file.
49712         * modules/unictype/property-non-break: New file.
49713         * modules/unictype/property-iso-control: New file.
49714         * modules/unictype/property-format-control: New file.
49715         * modules/unictype/property-dash: New file.
49716         * modules/unictype/property-hyphen: New file.
49717         * modules/unictype/property-punctuation: New file.
49718         * modules/unictype/property-line-separator: New file.
49719         * modules/unictype/property-paragraph-separator: New file.
49720         * modules/unictype/property-quotation-mark: New file.
49721         * modules/unictype/property-sentence-terminal: New file.
49722         * modules/unictype/property-terminal-punctuation: New file.
49723         * modules/unictype/property-currency-symbol: New file.
49724         * modules/unictype/property-math: New file.
49725         * modules/unictype/property-other-math: New file.
49726         * modules/unictype/property-paired-punctuation: New file.
49727         * modules/unictype/property-left-of-pair: New file.
49728         * modules/unictype/property-combining: New file.
49729         * modules/unictype/property-composite: New file.
49730         * modules/unictype/property-decimal-digit: New file.
49731         * modules/unictype/property-numeric: New file.
49732         * modules/unictype/property-diacritic: New file.
49733         * modules/unictype/property-extender: New file.
49734         * modules/unictype/property-ignorable-control: New file.
49735         * modules/unictype/property-test: New file.
49736         * modules/unictype/property-byname: New file.
49737         * modules/unictype/property-all: New file.
49738         * modules/unictype/scripts: New file.
49739         * modules/unictype/scripts-all: New file.
49740         * modules/unictype/block-of: New file.
49741         * modules/unictype/block-test: New file.
49742         * modules/unictype/block-list: New file.
49743         * modules/unictype/block-all: New file.
49744         * modules/unictype/syntax-c-whitespace: New file.
49745         * modules/unictype/syntax-java-whitespace: New file.
49746         * modules/unictype/syntax-c-ident: New file.
49747         * modules/unictype/syntax-java-ident: New file.
49748         * modules/unictype/ctype-alnum: New file.
49749         * modules/unictype/ctype-alpha: New file.
49750         * modules/unictype/ctype-cntrl: New file.
49751         * modules/unictype/ctype-digit: New file.
49752         * modules/unictype/ctype-graph: New file.
49753         * modules/unictype/ctype-lower: New file.
49754         * modules/unictype/ctype-print: New file.
49755         * modules/unictype/ctype-punct: New file.
49756         * modules/unictype/ctype-space: New file.
49757         * modules/unictype/ctype-upper: New file.
49758         * modules/unictype/ctype-xdigit: New file.
49759         * modules/unictype/ctype-blank: New file.
49760         * lib/unictype/bidi_byname.c: New file.
49761         * lib/unictype/bidi_name.c: New file.
49762         * lib/unictype/bidi_of.c: New file.
49763         * lib/unictype/bidi_test.c: New file.
49764         * lib/unictype/bitmap.h: New file.
49765         * lib/unictype/block_test.c: New file.
49766         * lib/unictype/blocks.c: New file.
49767         * lib/unictype/categ_C.c: New file.
49768         * lib/unictype/categ_Cc.c: New file.
49769         * lib/unictype/categ_Cf.c: New file.
49770         * lib/unictype/categ_Cn.c: New file.
49771         * lib/unictype/categ_Co.c: New file.
49772         * lib/unictype/categ_Cs.c: New file.
49773         * lib/unictype/categ_L.c: New file.
49774         * lib/unictype/categ_Ll.c: New file.
49775         * lib/unictype/categ_Lm.c: New file.
49776         * lib/unictype/categ_Lo.c: New file.
49777         * lib/unictype/categ_Lt.c: New file.
49778         * lib/unictype/categ_Lu.c: New file.
49779         * lib/unictype/categ_M.c: New file.
49780         * lib/unictype/categ_Mc.c: New file.
49781         * lib/unictype/categ_Me.c: New file.
49782         * lib/unictype/categ_Mn.c: New file.
49783         * lib/unictype/categ_N.c: New file.
49784         * lib/unictype/categ_Nd.c: New file.
49785         * lib/unictype/categ_Nl.c: New file.
49786         * lib/unictype/categ_No.c: New file.
49787         * lib/unictype/categ_P.c: New file.
49788         * lib/unictype/categ_Pc.c: New file.
49789         * lib/unictype/categ_Pd.c: New file.
49790         * lib/unictype/categ_Pe.c: New file.
49791         * lib/unictype/categ_Pf.c: New file.
49792         * lib/unictype/categ_Pi.c: New file.
49793         * lib/unictype/categ_Po.c: New file.
49794         * lib/unictype/categ_Ps.c: New file.
49795         * lib/unictype/categ_S.c: New file.
49796         * lib/unictype/categ_Sc.c: New file.
49797         * lib/unictype/categ_Sk.c: New file.
49798         * lib/unictype/categ_Sm.c: New file.
49799         * lib/unictype/categ_So.c: New file.
49800         * lib/unictype/categ_Z.c: New file.
49801         * lib/unictype/categ_Zl.c: New file.
49802         * lib/unictype/categ_Zp.c: New file.
49803         * lib/unictype/categ_Zs.c: New file.
49804         * lib/unictype/categ_and.c: New file.
49805         * lib/unictype/categ_and_not.c: New file.
49806         * lib/unictype/categ_byname.c: New file.
49807         * lib/unictype/categ_name.c: New file.
49808         * lib/unictype/categ_none.c: New file.
49809         * lib/unictype/categ_of.c: New file.
49810         * lib/unictype/categ_or.c: New file.
49811         * lib/unictype/categ_test.c: New file.
49812         * lib/unictype/combining.c: New file.
49813         * lib/unictype/ctype_alnum.c: New file.
49814         * lib/unictype/ctype_alpha.c: New file.
49815         * lib/unictype/ctype_blank.c: New file.
49816         * lib/unictype/ctype_cntrl.c: New file.
49817         * lib/unictype/ctype_digit.c: New file.
49818         * lib/unictype/ctype_graph.c: New file.
49819         * lib/unictype/ctype_lower.c: New file.
49820         * lib/unictype/ctype_print.c: New file.
49821         * lib/unictype/ctype_punct.c: New file.
49822         * lib/unictype/ctype_space.c: New file.
49823         * lib/unictype/ctype_upper.c: New file.
49824         * lib/unictype/ctype_xdigit.c: New file.
49825         * lib/unictype/decdigit.c: New file.
49826         * lib/unictype/digit.c: New file.
49827         * lib/unictype/identsyntaxmap.h: New file.
49828         * lib/unictype/mirror.c: New file.
49829         * lib/unictype/numeric.c: New file.
49830         * lib/unictype/pr_alphabetic.c: New file.
49831         * lib/unictype/pr_ascii_hex_digit.c: New file.
49832         * lib/unictype/pr_bidi_arabic_digit.c: New file.
49833         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
49834         * lib/unictype/pr_bidi_block_separator.c: New file.
49835         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
49836         * lib/unictype/pr_bidi_common_separator.c: New file.
49837         * lib/unictype/pr_bidi_control.c: New file.
49838         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
49839         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
49840         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
49841         * lib/unictype/pr_bidi_european_digit.c: New file.
49842         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
49843         * lib/unictype/pr_bidi_left_to_right.c: New file.
49844         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
49845         * lib/unictype/pr_bidi_other_neutral.c: New file.
49846         * lib/unictype/pr_bidi_pdf.c: New file.
49847         * lib/unictype/pr_bidi_segment_separator.c: New file.
49848         * lib/unictype/pr_bidi_whitespace.c: New file.
49849         * lib/unictype/pr_byname.c: New file.
49850         * lib/unictype/pr_byname.gperf: New file.
49851         * lib/unictype/pr_combining.c: New file.
49852         * lib/unictype/pr_composite.c: New file.
49853         * lib/unictype/pr_currency_symbol.c: New file.
49854         * lib/unictype/pr_dash.c: New file.
49855         * lib/unictype/pr_decimal_digit.c: New file.
49856         * lib/unictype/pr_default_ignorable_code_point.c: New file.
49857         * lib/unictype/pr_deprecated.c: New file.
49858         * lib/unictype/pr_diacritic.c: New file.
49859         * lib/unictype/pr_extender.c: New file.
49860         * lib/unictype/pr_format_control.c: New file.
49861         * lib/unictype/pr_grapheme_base.c: New file.
49862         * lib/unictype/pr_grapheme_extend.c: New file.
49863         * lib/unictype/pr_grapheme_link.c: New file.
49864         * lib/unictype/pr_hex_digit.c: New file.
49865         * lib/unictype/pr_hyphen.c: New file.
49866         * lib/unictype/pr_id_continue.c: New file.
49867         * lib/unictype/pr_id_start.c: New file.
49868         * lib/unictype/pr_ideographic.c: New file.
49869         * lib/unictype/pr_ids_binary_operator.c: New file.
49870         * lib/unictype/pr_ids_trinary_operator.c: New file.
49871         * lib/unictype/pr_ignorable_control.c: New file.
49872         * lib/unictype/pr_iso_control.c: New file.
49873         * lib/unictype/pr_join_control.c: New file.
49874         * lib/unictype/pr_left_of_pair.c: New file.
49875         * lib/unictype/pr_line_separator.c: New file.
49876         * lib/unictype/pr_logical_order_exception.c: New file.
49877         * lib/unictype/pr_lowercase.c: New file.
49878         * lib/unictype/pr_math.c: New file.
49879         * lib/unictype/pr_non_break.c: New file.
49880         * lib/unictype/pr_not_a_character.c: New file.
49881         * lib/unictype/pr_numeric.c: New file.
49882         * lib/unictype/pr_other_alphabetic.c: New file.
49883         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
49884         * lib/unictype/pr_other_grapheme_extend.c: New file.
49885         * lib/unictype/pr_other_id_continue.c: New file.
49886         * lib/unictype/pr_other_id_start.c: New file.
49887         * lib/unictype/pr_other_lowercase.c: New file.
49888         * lib/unictype/pr_other_math.c: New file.
49889         * lib/unictype/pr_other_uppercase.c: New file.
49890         * lib/unictype/pr_paired_punctuation.c: New file.
49891         * lib/unictype/pr_paragraph_separator.c: New file.
49892         * lib/unictype/pr_pattern_syntax.c: New file.
49893         * lib/unictype/pr_pattern_white_space.c: New file.
49894         * lib/unictype/pr_private_use.c: New file.
49895         * lib/unictype/pr_punctuation.c: New file.
49896         * lib/unictype/pr_quotation_mark.c: New file.
49897         * lib/unictype/pr_radical.c: New file.
49898         * lib/unictype/pr_sentence_terminal.c: New file.
49899         * lib/unictype/pr_soft_dotted.c: New file.
49900         * lib/unictype/pr_space.c: New file.
49901         * lib/unictype/pr_terminal_punctuation.c: New file.
49902         * lib/unictype/pr_test.c: New file.
49903         * lib/unictype/pr_titlecase.c: New file.
49904         * lib/unictype/pr_unassigned_code_value.c: New file.
49905         * lib/unictype/pr_unified_ideograph.c: New file.
49906         * lib/unictype/pr_uppercase.c: New file.
49907         * lib/unictype/pr_variation_selector.c: New file.
49908         * lib/unictype/pr_white_space.c: New file.
49909         * lib/unictype/pr_xid_continue.c: New file.
49910         * lib/unictype/pr_xid_start.c: New file.
49911         * lib/unictype/pr_zero_width.c: New file.
49912         * lib/unictype/scripts.c: New file.
49913         * lib/unictype/sy_c_ident.c: New file.
49914         * lib/unictype/sy_c_whitespace.c: New file.
49915         * lib/unictype/sy_java_ident.c: New file.
49916         * lib/unictype/sy_java_whitespace.c: New file.
49917
49918         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
49919         Unicode 5.0.0.
49920         * lib/unictype/blocks.h: Likewise.
49921         * lib/unictype/categ_C.h: Likewise.
49922         * lib/unictype/categ_Cc.h: Likewise.
49923         * lib/unictype/categ_Cf.h: Likewise.
49924         * lib/unictype/categ_Cn.h: Likewise.
49925         * lib/unictype/categ_Co.h: Likewise.
49926         * lib/unictype/categ_Cs.h: Likewise.
49927         * lib/unictype/categ_L.h: Likewise.
49928         * lib/unictype/categ_Ll.h: Likewise.
49929         * lib/unictype/categ_Lm.h: Likewise.
49930         * lib/unictype/categ_Lo.h: Likewise.
49931         * lib/unictype/categ_Lt.h: Likewise.
49932         * lib/unictype/categ_Lu.h: Likewise.
49933         * lib/unictype/categ_M.h: Likewise.
49934         * lib/unictype/categ_Mc.h: Likewise.
49935         * lib/unictype/categ_Me.h: Likewise.
49936         * lib/unictype/categ_Mn.h: Likewise.
49937         * lib/unictype/categ_N.h: Likewise.
49938         * lib/unictype/categ_Nd.h: Likewise.
49939         * lib/unictype/categ_Nl.h: Likewise.
49940         * lib/unictype/categ_No.h: Likewise.
49941         * lib/unictype/categ_P.h: Likewise.
49942         * lib/unictype/categ_Pc.h: Likewise.
49943         * lib/unictype/categ_Pd.h: Likewise.
49944         * lib/unictype/categ_Pe.h: Likewise.
49945         * lib/unictype/categ_Pf.h: Likewise.
49946         * lib/unictype/categ_Pi.h: Likewise.
49947         * lib/unictype/categ_Po.h: Likewise.
49948         * lib/unictype/categ_Ps.h: Likewise.
49949         * lib/unictype/categ_S.h: Likewise.
49950         * lib/unictype/categ_Sc.h: Likewise.
49951         * lib/unictype/categ_Sk.h: Likewise.
49952         * lib/unictype/categ_Sm.h: Likewise.
49953         * lib/unictype/categ_So.h: Likewise.
49954         * lib/unictype/categ_Z.h: Likewise.
49955         * lib/unictype/categ_Zl.h: Likewise.
49956         * lib/unictype/categ_Zp.h: Likewise.
49957         * lib/unictype/categ_Zs.h: Likewise.
49958         * lib/unictype/categ_of.h: Likewise.
49959         * lib/unictype/combining.h: Likewise.
49960         * lib/unictype/ctype_alnum.h: Likewise.
49961         * lib/unictype/ctype_alpha.h: Likewise.
49962         * lib/unictype/ctype_blank.h: Likewise.
49963         * lib/unictype/ctype_cntrl.h: Likewise.
49964         * lib/unictype/ctype_digit.h: Likewise.
49965         * lib/unictype/ctype_graph.h: Likewise.
49966         * lib/unictype/ctype_lower.h: Likewise.
49967         * lib/unictype/ctype_print.h: Likewise.
49968         * lib/unictype/ctype_punct.h: Likewise.
49969         * lib/unictype/ctype_space.h: Likewise.
49970         * lib/unictype/ctype_upper.h: Likewise.
49971         * lib/unictype/ctype_xdigit.h: Likewise.
49972         * lib/unictype/decdigit.h: Likewise.
49973         * lib/unictype/digit.h: Likewise.
49974         * lib/unictype/mirror.h: Likewise.
49975         * lib/unictype/numeric.h: Likewise.
49976         * lib/unictype/pr_alphabetic.h: Likewise.
49977         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
49978         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
49979         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
49980         * lib/unictype/pr_bidi_block_separator.h: Likewise.
49981         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
49982         * lib/unictype/pr_bidi_common_separator.h: Likewise.
49983         * lib/unictype/pr_bidi_control.h: Likewise.
49984         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
49985         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
49986         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
49987         * lib/unictype/pr_bidi_european_digit.h: Likewise.
49988         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
49989         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
49990         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
49991         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
49992         * lib/unictype/pr_bidi_pdf.h: Likewise.
49993         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
49994         * lib/unictype/pr_bidi_whitespace.h: Likewise.
49995         * lib/unictype/pr_combining.h: Likewise.
49996         * lib/unictype/pr_composite.h: Likewise.
49997         * lib/unictype/pr_currency_symbol.h: Likewise.
49998         * lib/unictype/pr_dash.h: Likewise.
49999         * lib/unictype/pr_decimal_digit.h: Likewise.
50000         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50001         * lib/unictype/pr_deprecated.h: Likewise.
50002         * lib/unictype/pr_diacritic.h: Likewise.
50003         * lib/unictype/pr_extender.h: Likewise.
50004         * lib/unictype/pr_format_control.h: Likewise.
50005         * lib/unictype/pr_grapheme_base.h: Likewise.
50006         * lib/unictype/pr_grapheme_extend.h: Likewise.
50007         * lib/unictype/pr_grapheme_link.h: Likewise.
50008         * lib/unictype/pr_hex_digit.h: Likewise.
50009         * lib/unictype/pr_hyphen.h: Likewise.
50010         * lib/unictype/pr_id_continue.h: Likewise.
50011         * lib/unictype/pr_id_start.h: Likewise.
50012         * lib/unictype/pr_ideographic.h: Likewise.
50013         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50014         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50015         * lib/unictype/pr_ignorable_control.h: Likewise.
50016         * lib/unictype/pr_iso_control.h: Likewise.
50017         * lib/unictype/pr_join_control.h: Likewise.
50018         * lib/unictype/pr_left_of_pair.h: Likewise.
50019         * lib/unictype/pr_line_separator.h: Likewise.
50020         * lib/unictype/pr_logical_order_exception.h: Likewise.
50021         * lib/unictype/pr_lowercase.h: Likewise.
50022         * lib/unictype/pr_math.h: Likewise.
50023         * lib/unictype/pr_non_break.h: Likewise.
50024         * lib/unictype/pr_not_a_character.h: Likewise.
50025         * lib/unictype/pr_numeric.h: Likewise.
50026         * lib/unictype/pr_other_alphabetic.h: Likewise.
50027         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50028         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50029         * lib/unictype/pr_other_id_continue.h: Likewise.
50030         * lib/unictype/pr_other_id_start.h: Likewise.
50031         * lib/unictype/pr_other_lowercase.h: Likewise.
50032         * lib/unictype/pr_other_math.h: Likewise.
50033         * lib/unictype/pr_other_uppercase.h: Likewise.
50034         * lib/unictype/pr_paired_punctuation.h: Likewise.
50035         * lib/unictype/pr_paragraph_separator.h: Likewise.
50036         * lib/unictype/pr_pattern_syntax.h: Likewise.
50037         * lib/unictype/pr_pattern_white_space.h: Likewise.
50038         * lib/unictype/pr_private_use.h: Likewise.
50039         * lib/unictype/pr_punctuation.h: Likewise.
50040         * lib/unictype/pr_quotation_mark.h: Likewise.
50041         * lib/unictype/pr_radical.h: Likewise.
50042         * lib/unictype/pr_sentence_terminal.h: Likewise.
50043         * lib/unictype/pr_soft_dotted.h: Likewise.
50044         * lib/unictype/pr_space.h: Likewise.
50045         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50046         * lib/unictype/pr_titlecase.h: Likewise.
50047         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50048         * lib/unictype/pr_unified_ideograph.h: Likewise.
50049         * lib/unictype/pr_uppercase.h: Likewise.
50050         * lib/unictype/pr_variation_selector.h: Likewise.
50051         * lib/unictype/pr_white_space.h: Likewise.
50052         * lib/unictype/pr_xid_continue.h: Likewise.
50053         * lib/unictype/pr_xid_start.h: Likewise.
50054         * lib/unictype/pr_zero_width.h: Likewise.
50055         * lib/unictype/scripts.h: Likewise.
50056         * lib/unictype/scripts_byname.gperf: Likewise.
50057         * lib/unictype/sy_c_ident.h: Likewise.
50058         * lib/unictype/sy_c_whitespace.h: Likewise.
50059         * lib/unictype/sy_java_ident.h: Likewise.
50060         * lib/unictype/sy_java_whitespace.h: Likewise.
50061
50062         * lib/unictype/Makefile: New file.
50063         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50064         glibc.
50065         * lib/unictype/3level.h: New file, copied from glibc.
50066         * lib/unictype/3levelbit.h: New file.
50067
50068 2007-11-11  Bruno Haible  <bruno@clisp.org>
50069
50070         * modules/gperf: New file.
50071         * modules/iconv_open (Depends-on): Add it.
50072         (Makefile.am): Remove the GPERF definition.
50073
50074 2007-11-11  Bruno Haible  <bruno@clisp.org>
50075
50076         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50077         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50078
50079 2007-11-11  Bruno Haible  <bruno@clisp.org>
50080
50081         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50082         (usage): Remove function.
50083
50084 2007-11-11  Bruno Haible  <bruno@clisp.org>
50085
50086         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50087         gl_FUNC_CEILF_LIBS.
50088         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50089         gl_FUNC_CEIL_LIBS.
50090         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50091         gl_FUNC_CEILL_LIBS.
50092         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50093         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50094         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50095
50096 2007-11-11  Bruno Haible  <bruno@clisp.org>
50097
50098         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50099         roundf were declared but do not exist on functions.
50100         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50101         roundl were declared but do not exist on functions.
50102         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50103         HAVE_FLOORL_AND_CEILL, respectively.
50104         Needed for Sun C on Solaris 10.
50105
50106 2007-11-11  Bruno Haible  <bruno@clisp.org>
50107
50108         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50109         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50110         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50111         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50112         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50113         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50114         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50115         HAVE_DECL_ROUNDF.
50116         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50117         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50119         of HAVE_DECL_ROUND*.
50120         * modules/math (Makefile.am): Update.
50121
50122 2007-11-10  Bruno Haible  <bruno@clisp.org>
50123
50124         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50125         ptrdiff_t as m4/intl.m4.
50126
50127 2007-11-10  Jim Meyering  <meyering@redhat.com>
50128
50129         Avoid link failure for the argmatch test.
50130         * tests/test-argmatch.c (usage): Define function to avoid a link
50131         failure: argmatch_die requires a usage function.
50132
50133 2007-11-09  Bruno Haible  <bruno@clisp.org>
50134
50135         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50136         * doc/functions/vsnprintf.texi: Likewise.
50137         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50138         with a size argument < 2.
50139
50140 2007-11-09  Bruno Haible  <bruno@clisp.org>
50141
50142         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50143         buffer. Fixes an inefficiency introduced on 2007-11-03.
50144
50145 2007-11-09  Bruno Haible  <bruno@clisp.org>
50146
50147         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
50148         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
50149
50150 2007-11-08  Jim Meyering  <meyering@redhat.com>
50151
50152         Change cache variable name prefix "jm_" to "gl_" everywhere.
50153         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
50154         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
50155         * m4/uptime.m4: s/gl_/jm_/
50156
50157 2007-11-07  Bruno Haible  <bruno@clisp.org>
50158
50159         Update to GNU gettext 0.17.
50160         * m4/intl.m4: Update to GNU gettext 0.17.
50161         * m4/po.m4: Likewise.
50162         * modules/gettext (Files): Remove m4/ulonglong.m4.
50163         (configure.ac): Require gettext infrastructure from version 0.17.
50164
50165 2007-11-06  Bruno Haible  <bruno@clisp.org>
50166
50167         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
50168         symbolic values are not defined in a public header.
50169         * lib/freadable.c (freadable) [QNX]: Likewise.
50170         * lib/freadahead.c (freadahead) [QNX]: Likewise.
50171         * lib/freading.c (freading) [QNX]: Likewise.
50172         * lib/fseterr.c (fseterr) [QNX]: Likewise.
50173         * lib/fwritable.c (fwritable) [QNX]: Likewise.
50174         * lib/fwriting.c (fwriting) [QNX]: Likewise.
50175         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
50176         Reported by Alain Magloire.
50177
50178         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
50179
50180 2007-11-05  Bruno Haible  <bruno@clisp.org>
50181
50182         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
50183         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
50184         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
50185         Reported by Eric Blake.
50186
50187 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50188             Bruno Haible  <bruno@clisp.org>
50189
50190         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
50191         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
50192         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
50193         (malloc): Undefine also before including <stdlib.h>.
50194         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
50195         Needed on OSF/1 4.0.
50196
50197 2007-11-05  Jim Meyering  <meyering@redhat.com>
50198
50199         git-version-gen: sync from coreutils.
50200         * build-aux/git-version-gen: Add comments.
50201         Change the first '-' to '.' in the snapshot version string,
50202         e.g., 6.9-377-08144 -> 6.9.377-08144
50203         Remove first parameter.
50204         Don't declare a version "-dirty" merely because a time
50205         stamp has changed.
50206
50207 2007-11-04  Bruno Haible  <bruno@clisp.org>
50208
50209         * lib/lock.h: Protect all macro definitions containing an 'if'
50210         statement through a "do { ... } while (0)".
50211         * lib/tls.h: Likewise.
50212
50213 2007-11-04  Bruno Haible  <bruno@clisp.org>
50214
50215         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
50216
50217 2007-11-04  Bruno Haible  <bruno@clisp.org>
50218
50219         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
50220         * modules/fprintf-posix (Depends-on): Add nocrash.
50221         * modules/snprintf-posix (Depends-on): Likewise.
50222         * modules/sprintf-posix (Depends-on): Likewise.
50223         * modules/vasnprintf-posix (Depends-on): Likewise.
50224         * modules/vasprintf-posix (Depends-on): Likewise.
50225         * modules/vfprintf-posix (Depends-on): Likewise.
50226         * modules/vsnprintf-posix (Depends-on): Likewise.
50227         * modules/vsprintf-posix (Depends-on): Likewise.
50228         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50229         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50230         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50231         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50232         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50233         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50234         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50235
50236 2007-11-04  Bruno Haible  <bruno@clisp.org>
50237
50238         * modules/nocrash: New file.
50239         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
50240         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
50241
50242 2007-11-04  Bruno Haible  <bruno@clisp.org>
50243
50244         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
50245         precision handling.
50246         * tests/test-vasprintf-posix.c (test_function): Likewise.
50247         * tests/test-snprintf-posix.h (test_function): Likewise.
50248         * tests/test-sprintf-posix.h (test_function): Likewise.
50249
50250         Fix *printf behaviour for large precisions on mingw and BeOS.
50251         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
50252         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
50253         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
50254         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50255         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50256         gl_PRINTF_PRECISION and test its result. Invoke
50257         gl_PREREQ_VASNPRINTF_PRECISION.
50258         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50259         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50260         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50261         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50262         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50263         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50264         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50265         * doc/functions/fprintf.texi: Update.
50266         * doc/functions/printf.texi: Update.
50267         * doc/functions/snprintf.texi: Update.
50268         * doc/functions/sprintf.texi: Update.
50269         * doc/functions/vfprintf.texi: Update.
50270         * doc/functions/vprintf.texi: Update.
50271         * doc/functions/vsnprintf.texi: Update.
50272         * doc/functions/vsprintf.texi: Update.
50273
50274 2007-11-04  Bruno Haible  <bruno@clisp.org>
50275
50276         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50277
50278 2007-11-04  Bruno Haible  <bruno@clisp.org>
50279
50280         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50281         Reported by Sylvain Beucler <beuc@gnu.org>.
50282
50283 2007-11-03  Bruno Haible  <bruno@clisp.org>
50284
50285         * tests/test-fprintf-posix2.sh: New file.
50286         * tests/test-fprintf-posix2.c: New file.
50287         * modules/fprintf-posix-tests (Files): Add them.
50288         (TESTS): Add test-fprintf-posix2.sh.
50289         (configure.ac): Check for getrlimit and setrlimit.
50290         (check_PROGRAMS): Add test-fprintf-posix2.
50291
50292         * tests/test-printf-posix2.sh: New file.
50293         * tests/test-printf-posix2.c: New file.
50294         * modules/printf-posix-tests (Files): Add them.
50295         (TESTS): Add test-printf-posix2.sh.
50296         (configure.ac): Check for getrlimit and setrlimit.
50297         (check_PROGRAMS): Add test-printf-posix2.
50298
50299         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50300         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50301         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50302         (decode_double): New function, copied from decode_long_double.
50303         (scale10_round_decimal_decoded): New function, extracted from
50304         scale10_round_decimal_long_double.
50305         (scale10_round_decimal_long_double): Use it.
50306         (scale10_round_decimal_double): New function.
50307         (floorlog10): New function.
50308         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
50309         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
50310         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50311         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50312         gl_PRINTF_ENOMEM and test its result. Invoke
50313         gl_PREREQ_VASNPRINTF_ENOMEM.
50314         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50315         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50316         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50317         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50318         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50319         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50320         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50321         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
50322         * modules/snprintf-posix (Depends-on): Likewise.
50323         * modules/sprintf-posix (Depends-on): Likewise.
50324         * modules/vasnprintf-posix (Depends-on): Likewise.
50325         * modules/vasprintf-posix (Depends-on): Likewise.
50326         * modules/vfprintf-posix (Depends-on): Likewise.
50327         * modules/vsnprintf-posix (Depends-on): Likewise.
50328         * modules/vsprintf-posix (Depends-on): Likewise.
50329         * doc/functions/fprintf.texi: Update.
50330         * doc/functions/printf.texi: Update.
50331         * doc/functions/snprintf.texi: Update.
50332         * doc/functions/sprintf.texi: Update.
50333         * doc/functions/vfprintf.texi: Update.
50334         * doc/functions/vprintf.texi: Update.
50335         * doc/functions/vsnprintf.texi: Update.
50336         * doc/functions/vsprintf.texi: Update.
50337
50338 2007-11-03  Bruno Haible  <bruno@clisp.org>
50339
50340         * modules/frexp-nolibm-tests: New file.
50341
50342         * modules/frexp-nolibm: New file.
50343         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
50344
50345 2007-11-03  Bruno Haible  <bruno@clisp.org>
50346
50347         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
50348         value is C99 compliant.
50349         Needed for OSF/1 5.1.
50350
50351 2007-11-03  Bruno Haible  <bruno@clisp.org>
50352
50353         Fix out-of-memory handling of vasnprintf.
50354         * lib/printf-parse.c: Include <errno.h>.
50355         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
50356         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
50357         is already set.
50358
50359 2007-11-02  Eric Blake  <ebb9@byu.net>
50360
50361         Fix tests on cygwin.
50362         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
50363
50364 2007-11-01  Bruno Haible  <bruno@clisp.org>
50365
50366         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
50367         warning.
50368         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
50369         needed for POSIX compatibility.
50370
50371 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50372
50373         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
50374         for compatibility with GNU.
50375
50376 2007-11-01  Bruno Haible  <bruno@clisp.org>
50377
50378         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
50379         (putenv): Renamed from rpl_putenv. Change argument type from
50380         'const char *' to 'char *'.
50381         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
50382         of defining putenv in config.h, just set REPLACE_PUTENV.
50383         * modules/putenv (Depends-on): Add stdlib.
50384         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50385         (Include): Use <stdlib.h>.
50386         * lib/stdlib.in.h (putenv): New declaration.
50387         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
50388         REPLACE_PUTENV.
50389         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
50390         REPLACE_PUTENV.
50391         Needed for MacOS X 10.5.0.
50392         Reported by Peter O'Gorman <peter@pogma.com>.
50393
50394 2007-11-01  Jim Meyering  <meyering@redhat.com>
50395
50396         Treat an empty date string exactly like "0".
50397         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
50398         if the remaining date string (to be parsed) is empty, use "0".
50399         Reported by Mischa Molhoek and discussed in this thread:
50400         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
50401
50402 2007-10-31  Bruno Haible  <bruno@clisp.org>
50403
50404         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
50405         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
50406         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
50407         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
50408         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
50409         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
50410
50411 2007-10-31  Bruno Haible  <bruno@clisp.org>
50412
50413         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
50414         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
50415         (AC_TYPE_LONG_LONG_INT): Use it.
50416         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
50417         it as well.
50418         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
50419         to m4/longlong.m4.
50420         * modules/stdint (Files): Remove m4/ulonglong.m4.
50421         * modules/strtoull (Files): Use m4/longlong.m4 instead of
50422         m4/ulonglong.m4.
50423         * modules/strtoumax (Files): Likewise.
50424
50425 2007-10-30  Bruno Haible  <bruno@clisp.org>
50426
50427         * modules/xvasprintf-posix: New file.
50428         Suggested by Eric Blake.
50429
50430 2007-10-30  Bruno Haible  <bruno@clisp.org>
50431
50432         * modules/xprintf-posix-tests: New file.
50433         * tests/test-xprintf-posix.sh: New file.
50434         * tests/test-xprintf-posix.c: New file.
50435         * tests/test-xfprintf-posix.c: New file.
50436
50437         * modules/xprintf-posix: New file.
50438
50439 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50440
50441         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
50442         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
50443         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
50444
50445 2007-10-29  Bruno Haible  <bruno@clisp.org>
50446
50447         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
50448         contain the special marker '_cv_'.
50449         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50450         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50451         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50452         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
50453         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50454         Reported by Ralf Wildenhues.
50455
50456 2007-10-29  Bruno Haible  <bruno@clisp.org>
50457
50458         * gnulib-tool (func_import): When --lgpl is not specified, set
50459         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
50460         GPLv3.
50461         Reported by Simon Josefsson.
50462
50463 2007-10-28  Bruno Haible  <bruno@clisp.org>
50464
50465         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
50466         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
50467         HAVE_DECL_ISFINITE.
50468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50469         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
50470         HAVE_DECL_ISFINITE.
50471
50472 2007-10-28  Bruno Haible  <bruno@clisp.org>
50473
50474         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
50475         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
50476
50477 2007-10-28  Bruno Haible  <bruno@clisp.org>
50478
50479         Fix link errors with Sun C 5.0 on Solaris 10.
50480         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
50481         function is declared but not present in the compiler's libm.
50482         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50483         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50484         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
50485         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
50486         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
50487         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
50488         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
50489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50490         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
50491         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
50492         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
50493         HAVE_DECL_FLOORL.
50494
50495 2007-10-28  Bruno Haible  <bruno@clisp.org>
50496
50497         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
50498         gl_FUNC_FLOORL. Cache the result.
50499         (gl_FUNC_FLOORL): Use it.
50500         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
50501         gl_FUNC_CEILL. Cache the result.
50502         (gl_FUNC_CEILL): Use it.
50503
50504         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
50505         gl_FUNC_FLOOR. Cache the result.
50506         (gl_FUNC_FLOOR): Use it.
50507         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
50508         gl_FUNC_CEIL. Cache the result.
50509         (gl_FUNC_CEIL): Use it.
50510
50511         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
50512         gl_FUNC_FLOORF. Cache the result.
50513         (gl_FUNC_FLOORF): Use it.
50514         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
50515         gl_FUNC_CEILF. Cache the result.
50516         (gl_FUNC_CEILF): Use it.
50517
50518 2007-10-28  Bruno Haible  <bruno@clisp.org>
50519
50520         * gnulib-tool: Allow specifying the LGPL version number through
50521         --lgpl=2 or --lgpl=3.
50522         (func_usage): Document --lgpl with argument.
50523         Handle --lgpl=... arguments.
50524         (func_import): Recognize also gl_LGPL calls with an argument. When
50525         --lgpl=2 is used and the module's license is just LGPL, report an
50526         error. Set sed_transform_lib_file according to the lgpl variable. In
50527         the generated files, use --lgpl or gl_LGPL invocations with argument,
50528         if necessary.
50529         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
50530         an LGPv2+ license.
50531         * doc/gnulib-tool.texi (Modified imports): Update explanation of
50532         gl_LGPL macro.
50533
50534 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50535             Bruno Haible  <bruno@clisp.org>
50536
50537         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
50538         (u16_uctomb_aux): Likewise.
50539         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
50540         !HAVE_INLINE.
50541         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
50542
50543 2007-10-28  Bruno Haible  <bruno@clisp.org>
50544
50545         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
50546         Invoke AM_GETTEXT_OPTION if it exists.
50547         * modules/vasprintf: Likewise.
50548         * modules/verror: Likewise.
50549         * modules/xprintf: Likewise.
50550         * modules/xvasprintf: Likewise.
50551
50552 2007-10-27  Ben Pfaff  <blp@gnu.org>
50553
50554         * lib/math.in.h: Define isfinite macro and prototypes for
50555         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
50556         implementations.
50557         * m4/math_h.m4: New substitutions for isfinite module.
50558         * lib/isfinite.c: New file.
50559         * m4/isfinite.m4: New file.
50560         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
50561         * modules/isfinite: New file.
50562         * modules/isfinite-tests: New file.
50563         * tests/tests-isfinite.c: New file.
50564         * doc/functions/isfinite.texi: Mention isfinite module.
50565         * MODULES.html.sh: Mention new module.
50566
50567 2007-10-27  Ben Pfaff  <blp@gnu.org>
50568
50569         Ralf Wildenhues reported that Tru64 4.0D declares the round
50570         functions but does not have definitions.
50571         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
50572         cannot be found in any library, set the output variable to
50573         "missing" instead of "".
50574         * m4/round.m4: Also use our substitute if we cannot find round in
50575         any library, even if it is declared.
50576         * m4/roundf.m4: Likewise for roundf.
50577         * m4/roundl.m4: Likewise for roundl.
50578         * lib/math.in.h: Undefine roundf, round, roundl before defining
50579         their replacements, to allow for hypothetical systems where these
50580         may be defined as macros but not available in libraries.
50581
50582 2007-10-27  Bruno Haible  <bruno@clisp.org>
50583
50584         * doc/gnulib.texi: Invoke @firstparagraphindent.
50585         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
50586         changes in gnulib.
50587         (Source changes): New section.
50588
50589 2007-10-26  Bruno Haible  <bruno@clisp.org>
50590
50591         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
50592         borrowed from autoconf.
50593
50594 2007-10-26  Bruno Haible  <bruno@clisp.org>
50595
50596         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
50597         strerror returned the empty string. Needed on HP-UX 11.00.
50598
50599 2007-10-24  Micah Cowan  <micah@cowan.name>
50600
50601         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
50602         * build-aux/bootstrap: Remove support for now-unnecessary option,
50603         --cvs-user, and envvars CVS_USER, CVS_RSH.
50604
50605 2007-10-24  Jim Meyering  <meyering@redhat.com>
50606
50607         Avoid diagnostics from sha1sum when there is no cached checksum.
50608         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
50609         if the po.s1 file hasn't been created yet.
50610
50611         * build-aux/bootstrap: Sync from coreutils:
50612         2007-10-24  Jim Meyering  <meyering@redhat.com>
50613         Get gnulib from the git repository, not from an obsolete cvs one.
50614         * build-aux/bootstrap: Suggestion from Micah Cowan.
50615         2007-10-04  Jim Meyering  <jim@meyering.net>
50616         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
50617         (update_po_files): Work also when there are no .po files in po/.
50618
50619 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50620
50621         * README: Append ".git" to git and cg examples.
50622         Problem reported by Benoit Sigoure.
50623
50624 2007-10-23  Micah Cowan  <micah@cowan.name>
50625
50626         * users.txt: Add wget.
50627
50628 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50629
50630         Fix linking of some unistdio tests on FreeBSD.
50631         * modules/unistdio/u16-vsnprintf-tests
50632         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
50633         * modules/unistdio/u16-vsprintf-tests
50634         (test_u16_vsnprintf1_LDADD): Likewise.
50635         * modules/unistdio/u32-vsnprintf-tests
50636         (test_u32_vsnprintf1_LDADD): Likewise.
50637         * modules/unistdio/u32-vsprintf-tests
50638         (test_u32_vsprintf1_LDADD): Likewise.
50639         * modules/unistdio/u8-vsnprintf-tests
50640         (test_u8_vsnprintf1_LDADD): Likewise.
50641         * modules/unistdio/u8-vsprintf-tests
50642         (test_u8_vsprintf1_LDADD): Likewise.
50643         * modules/unistdio/ulc-vsnprintf-tests
50644         (test_ulc_vsnprintf1_LDADD): Likewise.
50645         * modules/unistdio/ulc-vsprintf-tests
50646         (test_ulc_vsprintf1_LDADD): Likewise.
50647
50648         Fix linking of some uniconv tests on FreeBSD.
50649         * modules/uniconv/u16-conv-from-enc-tests
50650         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
50651         * modules/uniconv/u16-conv-to-enc-tests
50652         (test_u16_conv_to_enc_LDADD): Likewise.
50653         * modules/uniconv/u16-strconv-from-enc-tests
50654         (test_u16_strconv_from_enc_LDADD): Likewise.
50655         * modules/uniconv/u16-strconv-to-enc-tests
50656         (test_u16_strconv_to_enc_LDADD): Likewise.
50657         * modules/uniconv/u32-conv-from-enc-tests
50658         (test_u32_conv_from_enc_LDADD): Likewise.
50659         * modules/uniconv/u32-conv-to-enc-tests
50660         (test_u32_conv_to_enc_LDADD): Likewise.
50661         * modules/uniconv/u32-strconv-from-enc-tests
50662         (test_u32_strconv_from_enc_LDADD): Likewise.
50663         * modules/uniconv/u32-strconv-to-enc-tests
50664         (test_u32_strconv_to_enc_LDADD): Likewise.
50665         * modules/uniconv/u8-conv-from-enc-tests
50666         (test_u8_conv_from_enc_LDADD): Likewise.
50667         * modules/uniconv/u8-conv-to-enc-tests
50668         (test_u8_conv_to_enc_LDADD): Likewise.
50669         * modules/uniconv/u8-strconv-from-enc-tests
50670         (test_u8_strconv_from_enc_LDADD): Likewise.
50671         * modules/uniconv/u8-strconv-to-enc-tests
50672         (test_u8_strconv_to_enc_LDADD): Likewise.
50673
50674 2007-10-22  Bruno Haible  <bruno@clisp.org>
50675
50676         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
50677         size.
50678
50679 2007-10-22  Eric Blake  <ebb9@byu.net>
50680
50681         Tweak x*printf documentation.
50682         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
50683         variable name and comments.
50684         Suggested by Bruno Haible.
50685
50686 2007-10-22  Bruno Haible  <bruno@clisp.org>
50687
50688         * lib/acl.c (copy_acl): Fix file name in comment.
50689
50690 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50691
50692         Fix Tru64 problem with stdbool.h.
50693         * lib/stdbool.in.h (false, true):
50694         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
50695         Don't declare as an enum in this situation; it runs afoul of Tru64.
50696         Problem reported by Steven M. Schweda in
50697         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
50698
50699 2007-10-22  Eric Blake  <ebb9@byu.net>
50700
50701         Also wrap vf?printf.
50702         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
50703         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
50704         (xvprintf, xvfprintf): New functions.
50705
50706 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50707
50708         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
50709         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
50710
50711         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
50712         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
50713
50714 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50715
50716         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
50717         by Bruno Haible.
50718
50719 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50720
50721         * lib/getloadavg.c
50722         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
50723         Undef `sys' after including sys/table.h, for Tru64 4.0D.
50724
50725         * tests/test-i-ring.c: Work for C89.
50726
50727 2007-10-22  Bruno Haible  <bruno@clisp.org>
50728
50729         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
50730         -1u, in preprocessor expression, so that we don't test for the bug
50731         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
50732         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
50733
50734 2007-10-22  Eric Blake  <ebb9@byu.net>
50735
50736         * tests/test-yesno.sh: Silence stderr during test.
50737
50738 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50739
50740         * modules/crypto/gc-camellia: New file.
50741
50742         * m4/gc-camellia.m4: New file.
50743
50744         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
50745
50746         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
50747
50748 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50749
50750         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
50751         --help to stdout.  Reported by sms@antinode.org (Steven
50752         M. Schweda).
50753
50754 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50755
50756         * users.txt: Fix link to libksba.
50757
50758 2007-10-21  Ben Pfaff  <blp@gnu.org>
50759
50760         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
50761         round.c roundf implementation that depends on floorf and ceilf to
50762         be tested unconditionally.
50763
50764 2007-10-21  Ben Pfaff  <blp@gnu.org>
50765
50766         * m4/check-libm-func.m4: Removed.
50767         * m4/check-math-lib.m4: New file.
50768         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
50769         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
50770         definition and lack of AC_LIBOBJ([roundf]).
50771         * m4/roundl.m4: Ditto, and similarly for roundl.
50772         * modules/round: Reference new m4 file.
50773         * modules/roundf: Ditto.
50774         * modules/roundl: Ditto.
50775         * tests/test-round2.c (main): Use ROUND instead of round.
50776         Bug report from Bruno Haible.
50777
50778 2007-10-21  Bruno Haible  <bruno@clisp.org>
50779
50780         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
50781         context.
50782
50783 2007-10-21  Bruno Haible  <bruno@clisp.org>
50784
50785         * tests/test-wcwidth.c (main): Allow negative result for some control
50786         characters.
50787
50788         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
50789         Needed on OSF/1 5.1.
50790
50791 2007-10-21  Bruno Haible  <bruno@clisp.org>
50792
50793         * tests/test-floorf1.c: Include isnanf.h.
50794         (main): Use isnanf() instead of isnan().
50795         * tests/test-ceilf1.c: Include isnanf.h.
50796         (main): Use isnanf() instead of isnan().
50797         * tests/test-truncf1.c: Include isnanf.h.
50798         (main): Use isnanf() instead of isnan().
50799         * tests/test-roundf1.c: Include isnanf.h.
50800         (main): Use isnanf() instead of isnan().
50801
50802 2007-10-21  Eric Blake  <ebb9@byu.net>
50803
50804         * users.txt: Update URL for m4.
50805
50806 2007-10-21  Bruno Haible  <bruno@clisp.org>
50807
50808         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
50809
50810 2007-10-21  Bruno Haible  <bruno@clisp.org>
50811
50812         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
50813         Git's management files if the CVS files are not present.
50814
50815 2007-10-20  Bruno Haible  <bruno@clisp.org>
50816
50817         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
50818         gcc-3.4.x.
50819
50820 2007-10-20  Ben Pfaff  <blp@gnu.org>
50821
50822         * lib/math.in.h: Declare round, roundf, roundl if we are providing
50823         implementations.
50824         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
50825         * lib/round.c: New file.
50826         * lib/roundf.c: New file.
50827         * lib/roundl.c: New file.
50828         * m4/round.m4: New file.
50829         * m4/roundf.m4: New file.
50830         * m4/roundl.m4: New file.
50831         * m4/check-libm-func-m4: New file.
50832         * modules/math: Replace round, roundf, roundl related @VARS@ in
50833         math.in.h.
50834         * modules/round: New file.
50835         * modules/round-tests: New file.
50836         * modules/roundf: New file.
50837         * modules/roundf-tests: New file.
50838         * modules/roundl: New file.
50839         * modules/roundl-tests: New file.
50840         * tests/test-round1.c: New file.
50841         * tests/test-round2.c: New file.
50842         * tests/test-roundf1.c: New file.
50843         * tests/test-roundf2.c: New file.
50844         * tests/test-roundl.c: New file.
50845         * doc/functions/round.texi: Mention round module.
50846         * doc/functions/roundf.texi: Mention roundf module.
50847         * doc/functions/roundl.texi: Mention roundl module.
50848         * MODULES.html.sh: Mention new modules.
50849         Thanks to Bruno Haible for suggestions.
50850
50851 2007-10-20  Jim Meyering  <meyering@redhat.com>
50852
50853         * lib/xprintf.c: Include <config.h> unconditionally.
50854
50855         Change xprintf's license to GPL.
50856         * modules/xprintf (License): s/LGPL/GPL/, since this module
50857         depends on modules (exit and exitfail) which are GPL.
50858         Suggestion from Bruno Haible.
50859
50860         xprintf fixes.
50861         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
50862         Use a clearer diagnostic.
50863         Patch from Bruno Haible.
50864
50865 2007-10-20  Bruno Haible  <bruno@clisp.org>
50866
50867         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
50868         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
50869         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50870
50871 2007-10-20  Bruno Haible  <bruno@clisp.org>
50872
50873         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
50874         precision in the comparison result > x - 1 or similar.
50875         * tests/test-ceilf2.c (correct_result_p): Likewise.
50876         * tests/test-truncf2.c (correct_result_p): Likewise.
50877         * tests/test-trunc2.c (correct_result_p): Likewise.
50878         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50879
50880 2007-10-20  Bruno Haible  <bruno@clisp.org>
50881
50882         * modules/ceil: New file.
50883         * m4/ceil.m4: New file.
50884         * doc/functions/ceil.texi: Mention the 'ceil' module.
50885
50886 2007-10-20  Bruno Haible  <bruno@clisp.org>
50887
50888         * modules/floor: New file.
50889         * m4/floor.m4: New file.
50890         * doc/functions/floor.texi: Mention the 'floor' module.
50891
50892 2007-10-20  Bruno Haible  <bruno@clisp.org>
50893
50894         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
50895         of %a.
50896         * modules/floorf-tests (Depends-on): Likewise.
50897         * modules/truncf-tests (Depends-on): Likewise.
50898         * modules/trunc-tests (Depends-on): Likewise.
50899         Reported by Ben Pfaff.
50900
50901 2007-10-19  Jim Meyering  <meyering@redhat.com>
50902
50903         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
50904         Don't bother testing specific errno values.  Just test ferror.
50905
50906         New module: xprintf
50907         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
50908
50909 2007-10-19  Bruno Haible  <bruno@clisp.org>
50910
50911         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
50912         syntax.
50913         * modules/javaexec (Makefile.am): Likewise.
50914         * modules/relocatable-prog (Makefile.am): Likewise.
50915         Suggested by Jim Meyering.
50916
50917 2007-10-18  Bruno Haible  <bruno@clisp.org>
50918
50919         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
50920         Reported by Jim Meyering.
50921
50922 2007-10-18  Eric Blake  <ebb9@byu.net>
50923
50924         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
50925
50926 2007-10-18  Bruno Haible  <bruno@clisp.org>
50927
50928         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
50929         the format string into writable memory. Needed in Fortify conditions.
50930
50931 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
50932             Bruno Haible  <bruno@clisp.org>
50933
50934         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
50935         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
50936         * modules/trim (Depends-on): Add mbchar.
50937         (configure.ac): Add gl_FUNC_MBRTOWC.
50938         (Makefile.am): Augment lib_SOURCES.
50939
50940 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
50941
50942         Modify glob.c to use fstatat and dirfd, to simplify it.
50943         Suggested by Eric Blake.
50944         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
50945         Don't include <stdbool.h>; not used.
50946         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
50947         (link_exists_p): Simplify implementation, since we can now assume
50948         dirfd and fstatat.
50949         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
50950
50951 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50952
50953         * gnulib-tool (func_get_dependencies): Fix sed script to
50954         match only tests.
50955
50956 2007-10-17  Bruno Haible  <bruno@clisp.org>
50957
50958         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
50959         allow locale names without encoding suffix.
50960         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
50961         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50962
50963 2007-10-16  Bruno Haible  <bruno@clisp.org>
50964
50965         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
50966         * lib/getgroups.c (getgroups): Likewise.
50967         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
50968
50969 2007-10-16  Bruno Haible  <bruno@clisp.org>
50970
50971         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
50972         * modules/malloc-posix (License): Likewise.
50973         * modules/realloc-posix (License): Likewise.
50974         * modules/calloc-posix (License): Likewise.
50975         * modules/intprops (License): Change from GPL to LGPL, with
50976         Paul Eggert's approval.
50977
50978 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50979
50980         Merge glibc changes into lib/glob.c.
50981
50982         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
50983         2007-10-15 04:59:03 UTC.  Here are the changes:
50984
50985         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
50986
50987         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
50988
50989         * lib/glob.c: Add some branch prediction throughout.
50990
50991         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
50992
50993         [BZ #5103]
50994         * lib/glob.c (glob): Recognize patterns starting \/.
50995
50996         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
50997
50998         [BZ #3996]
50999         * lib/glob.c (attribute_hidden): Define if not defined.
51000         (glob): Unescape dirname, filename or username when needed and not
51001         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51002         is NULL.  Handle unescaped [ in pattern without closing ].
51003         Don't pass GLOB_CHECK down to recursive glob for directories.
51004         (__glob_pattern_type): New function.
51005         (__glob_pattern_p): Implement using __glob_pattern_type.
51006         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51007         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51008         Remove unreachable code.
51009
51010         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51011
51012         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51013         explain why there are no leaks.
51014
51015         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51016
51017         [BZ #3253]
51018         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51019         time, rather allocate increasingly bigger arrays of pointers, if
51020         possible with alloca, if too large with malloc.
51021
51022 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51023
51024         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51025         Problem reported by H.Merijn Brand in
51026         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51027         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51028         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51029
51030 2007-10-15  Bruno Haible  <bruno@clisp.org>
51031
51032         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51033         with explicit rpl_ prefix.
51034         * lib/fopen.c (fopen): Likewise.
51035         * lib/freopen.c (freopen): Likewise.
51036         * lib/iconv.c (iconv): Likewise.
51037         * lib/iconv_close.c (iconv_close): Likewise.
51038
51039 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51040
51041         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51042
51043 2007-10-15  Bruno Haible  <bruno@clisp.org>
51044
51045         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51046         <stddef.h> instead of <stdlib.h> since we only need NULL.
51047         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51048
51049 2007-10-15  Bruno Haible  <bruno@clisp.org>
51050
51051         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51052         Replace paragraph talking about LIBOBJS.
51053         Reported by Colin Watson <cjwatson@debian.org>.
51054
51055 2007-10-15  Bruno Haible  <bruno@clisp.org>
51056
51057         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51058         <stdlib.h> before using NULL.
51059
51060 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51061
51062         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51063         Reported by Albert Chin <china@thewrittenword.com>.
51064
51065 2007-10-14  Bruno Haible  <bruno@clisp.org>
51066
51067         * modules/iconv_open-utf-tests: New file.
51068         * tests/test-iconv-utf.c: New file.
51069
51070         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51071         * modules/iconv_open-utf: New file.
51072         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51073         (iconv, iconv_close): New declarations.
51074         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51075         be defined.
51076         (iconv_open): Add special handling of conversion between UTF-8 and
51077         UTF-{16,32}{BE,LE}.
51078         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51079         * lib/iconv_close.c: New file.
51080         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51081         gl_FUNC_ICONV_OPEN.
51082         (gl_FUNC_ICONV_OPEN): Use it.
51083         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51084         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51085         and REPLACE_ICONV_UTF.
51086         * modules/iconv_open (Depends-on): Add c-strcase.
51087         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51088         ICONV_CONST.
51089         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51090
51091 2007-10-13  Albert Chin  <china@thewrittenword.com>
51092             Bruno Haible  <bruno@clisp.org>
51093
51094         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51095         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51096
51097 2007-10-13  Bruno Haible  <bruno@clisp.org>
51098
51099         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51100         defined, use the ISO C99 inline semantics.
51101         * lib/argp.h (ARGP_EI): Likewise.
51102
51103 2007-10-13  Bruno Haible  <bruno@clisp.org>
51104
51105         Handle 'inline' change in gcc 4.3.0.
51106         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51107         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51108         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51109         argp_fmtstream_point): Disable 'extern' declaration if the function
51110         definition is going to be provided inline.
51111         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51112         semantics, not the ISO C99 inline semantics.
51113         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51114         'extern' declaration if the function definition is going to be provided
51115         inline.
51116         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51117         the GNU C inline semantics, not the ISO C99 inline semantics. With
51118         GCC 4.2, avoid a warning.
51119
51120 2007-10-13  Bruno Haible  <bruno@clisp.org>
51121
51122         * lib/freading.h (freading): Enable the use of __freading for
51123         glibc >= 2.7.
51124         * lib/freading.c (freading): Likewise.
51125
51126 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51127
51128         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51129         "warning: C99 inline functions are not supported; using GNU89".
51130
51131 2007-10-12  Bruno Haible  <bruno@clisp.org>
51132
51133         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51134         of 2.
51135         * tests/test-ceilf2.c: New file.
51136         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51137
51138         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51139         * modules/ceilf-tests: Update.
51140
51141 2007-10-12  Bruno Haible  <bruno@clisp.org>
51142
51143         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
51144         of 2.
51145         * tests/test-floorf2.c: New file.
51146         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
51147
51148         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
51149         * modules/floorf-tests: Update.
51150
51151 2007-10-12  Bruno Haible  <bruno@clisp.org>
51152
51153         * tests/test-trunc2.c: New file.
51154         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
51155
51156         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
51157         * modules/trunc-tests: Update.
51158
51159 2007-10-12  Bruno Haible  <bruno@clisp.org>
51160
51161         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
51162         of 2.
51163         * tests/test-truncf2.c: New file.
51164         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
51165
51166         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
51167         * modules/truncf-tests: Update.
51168
51169 2007-10-11  Eric Blake  <ebb9@byu.net>
51170
51171         Don't claim strerror is broken on Interix.
51172         * doc/functions/strerror.texi (strerror): Known broken systems are
51173         now Solaris 8, and not Interix.
51174         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
51175         Interix on cross-compile.
51176         Reported by Martin Koeppe in
51177         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
51178
51179 2007-10-11  Bruno Haible  <bruno@clisp.org>
51180
51181         * modules/i-ring-tests: New file.
51182         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
51183         instead of assert.
51184
51185 2007-10-11  Bruno Haible  <bruno@clisp.org>
51186
51187         * modules/filenamecat-tests: New file.
51188         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
51189         * lib/filenamecat.c: Remove test code.
51190
51191 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51192
51193         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
51194
51195         * lib/strerror.c: Include <string.h> always, to test interface,
51196         and to remove the need for the dummy.
51197         Include intprops.h to compute width instead of doing it ourselves
51198         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
51199         (strerror): Define it to return NULL if there's no system strerror.
51200         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
51201         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
51202         ancient pre-strerror Unix systems well any more.  Saying "unknown
51203         system error" is enough.
51204         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
51205         simpler strerror.c implementation.
51206         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
51207         Simplify the tests to reflect the simpler strerror implementation.
51208         * modules/strerror (Depends-on): Add intprops.
51209
51210 2007-10-09  Eric Blake  <ebb9@byu.net>
51211
51212         Silence test-fpending.
51213         * modules/fpending-tests (Files): Add wrapper script.
51214         * tests/test-fpending.sh: New file.
51215
51216 2007-10-09  Bruno Haible  <bruno@clisp.org>
51217
51218         * MODULES.html.sh (func_module): Don't create a hyperlink for
51219         function names like 'printf_frexp'.
51220         (Misc): Add crc, memxor.
51221         (Characteristics of floating types): New section.
51222         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
51223         isnanf-nolibm, signbit, trunc, truncf, truncl.
51224         (Enhancements for ISO C 99 functions): New subsection Input/output.
51225         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
51226         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
51227         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
51228         (Compatibility checks for POSIX:2001 functions): Add clock-time.
51229         (Enhancements for POSIX:2001 functions): Add chdir-long.
51230         (File system functions): Add areadlink, chdir-safer, read-file.
51231         Remove cycle-check.
51232         (File system as inode set): New section.
51233         (Date and time): Add gethrxtime.
51234         (Multithreading): Add openmp.
51235         (Internationalization functions): Add localename.
51236         (Unicode string functions): Add unistr/u*-mbsnlen.
51237         (Support for maintaining and releasing projects): Add git-version-gen.
51238         (Lone files): Remove directories.
51239
51240 2007-10-08  Ben Pfaff  <blp@gnu.org>
51241
51242         * lib/xmalloca.h: Fix typo in comment.
51243
51244 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51245
51246         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
51247         when avoiding problems with integer overflow.  Use a portable test
51248         instead.
51249
51250 2007-10-08  Simon Josefsson  <simon@josefsson.org>
51251
51252         * modules/dummy (License): Change to LGPLv2+.
51253         * modules/float (License): Likewise
51254         * modules/realloc (License): Likewise
51255         * modules/stdlib (License): Likewise
51256
51257 2007-10-07  Bruno Haible  <bruno@clisp.org>
51258
51259         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
51260         * floor.c (TWO_MANT_DIG): Likewise.
51261         * ceil.c (TWO_MANT_DIG): Likewise.
51262         Reported by Ben Pfaff.
51263
51264 2007-10-07  Bruno Haible  <bruno@clisp.org>
51265
51266         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
51267         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
51268         * lib/frexp.c (FUNC): Likewise.
51269         * lib/printf-frexp.h (printf_frexp): Likewise.
51270         * lib/printf-frexpl.h (printf_frexpl): Likewise.
51271         * lib/printf-frexp.c (FUNC): Likewise.
51272         Suggested by Jim Meyering.
51273
51274 2007-10-07  Jim Meyering  <meyering@redhat.com>
51275
51276         Make xnanosleep's integer overflow test more robust.
51277         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51278         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51279
51280 2007-10-07  Bruno Haible  <bruno@clisp.org>
51281
51282         * NEWS: Mention the license change.
51283
51284         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51285         abbreviations in the modules files.
51286
51287         Change copyright notice from GPLv2+ to GPLv3+.
51288         * README: Change copyright notice.
51289         * MODULES.html.sh: Likewise.
51290         * build-aux/bootstrap.conf: Likewise.
51291         * build-aux/config.libpath: Likewise.
51292         * build-aux/csharpcomp.sh.in: Likewise.
51293         * build-aux/csharpexec.sh.in: Likewise.
51294         * build-aux/install-reloc: Likewise.
51295         * build-aux/javacomp.sh.in: Likewise.
51296         * build-aux/javaexec.sh.in: Likewise.
51297         * build-aux/ldd.sh.in: Likewise.
51298         * build-aux/reloc-ldflags: Likewise.
51299         * build-aux/relocatable.sh.in: Likewise.
51300         * build-aux/x-to-1.in: Likewise.
51301         * check-module: Likewise.
51302         * config/srclistvars.sh: Likewise.
51303         * gnulib-tool: Likewise.
51304         * lib/acl-internal.h: Likewise.
51305         * lib/acl.c: Likewise.
51306         * lib/acl.h: Likewise.
51307         * lib/acl_entries.c: Likewise.
51308         * lib/areadlink-with-size.c: Likewise.
51309         * lib/areadlink.c: Likewise.
51310         * lib/areadlink.h: Likewise.
51311         * lib/argmatch.c: Likewise.
51312         * lib/argmatch.h: Likewise.
51313         * lib/argp-ba.c: Likewise.
51314         * lib/argp-eexst.c: Likewise.
51315         * lib/argp-fmtstream.c: Likewise.
51316         * lib/argp-fmtstream.h: Likewise.
51317         * lib/argp-fs-xinl.c: Likewise.
51318         * lib/argp-help.c: Likewise.
51319         * lib/argp-namefrob.h: Likewise.
51320         * lib/argp-parse.c: Likewise.
51321         * lib/argp-pin.c: Likewise.
51322         * lib/argp-pv.c: Likewise.
51323         * lib/argp-pvh.c: Likewise.
51324         * lib/argp-xinl.c: Likewise.
51325         * lib/argp.h: Likewise.
51326         * lib/at-func.c: Likewise.
51327         * lib/atanl.c: Likewise.
51328         * lib/backupfile.c: Likewise.
51329         * lib/backupfile.h: Likewise.
51330         * lib/basename.c: Likewise.
51331         * lib/binary-io.h: Likewise.
51332         * lib/byteswap.in.h: Likewise.
51333         * lib/c-stack.c: Likewise.
51334         * lib/c-stack.h: Likewise.
51335         * lib/c-strcasestr.c: Likewise.
51336         * lib/c-strcasestr.h: Likewise.
51337         * lib/c-strstr.c: Likewise.
51338         * lib/c-strstr.h: Likewise.
51339         * lib/c-strtod.c: Likewise.
51340         * lib/calloc.c: Likewise.
51341         * lib/canon-host.c: Likewise.
51342         * lib/canon-host.h: Likewise.
51343         * lib/canonicalize-lgpl.c: Likewise.
51344         * lib/canonicalize.c: Likewise.
51345         * lib/canonicalize.h: Likewise.
51346         * lib/ceil.c: Likewise.
51347         * lib/ceilf.c: Likewise.
51348         * lib/ceill.c: Likewise.
51349         * lib/chdir-long.c: Likewise.
51350         * lib/chdir-long.h: Likewise.
51351         * lib/chdir-safer.c: Likewise.
51352         * lib/chdir-safer.h: Likewise.
51353         * lib/chown.c: Likewise.
51354         * lib/classpath.c: Likewise.
51355         * lib/classpath.h: Likewise.
51356         * lib/clean-temp.c: Likewise.
51357         * lib/clean-temp.h: Likewise.
51358         * lib/cloexec.c: Likewise.
51359         * lib/close-stream.c: Likewise.
51360         * lib/closein.c: Likewise.
51361         * lib/closein.h: Likewise.
51362         * lib/closeout.c: Likewise.
51363         * lib/closeout.h: Likewise.
51364         * lib/concat-filename.c: Likewise.
51365         * lib/copy-file.c: Likewise.
51366         * lib/copy-file.h: Likewise.
51367         * lib/count-one-bits.h: Likewise.
51368         * lib/crc.c: Likewise.
51369         * lib/crc.h: Likewise.
51370         * lib/creat-safer.c: Likewise.
51371         * lib/csharpcomp.c: Likewise.
51372         * lib/csharpcomp.h: Likewise.
51373         * lib/csharpexec.c: Likewise.
51374         * lib/csharpexec.h: Likewise.
51375         * lib/cycle-check.c: Likewise.
51376         * lib/cycle-check.h: Likewise.
51377         * lib/diacrit.c: Likewise.
51378         * lib/diacrit.h: Likewise.
51379         * lib/diffseq.h: Likewise.
51380         * lib/dirchownmod.c: Likewise.
51381         * lib/dirent.in.h: Likewise.
51382         * lib/dirfd.c: Likewise.
51383         * lib/dirfd.h: Likewise.
51384         * lib/dirname.c: Likewise.
51385         * lib/dirname.h: Likewise.
51386         * lib/dummy.c: Likewise.
51387         * lib/dup-safer.c: Likewise.
51388         * lib/dup2.c: Likewise.
51389         * lib/eealloc.h: Likewise.
51390         * lib/error.c: Likewise.
51391         * lib/error.h: Likewise.
51392         * lib/euidaccess.c: Likewise.
51393         * lib/exclude.c: Likewise.
51394         * lib/exclude.h: Likewise.
51395         * lib/execute.c: Likewise.
51396         * lib/execute.h: Likewise.
51397         * lib/exitfail.c: Likewise.
51398         * lib/exitfail.h: Likewise.
51399         * lib/expl.c: Likewise.
51400         * lib/fatal-signal.c: Likewise.
51401         * lib/fatal-signal.h: Likewise.
51402         * lib/fbufmode.c: Likewise.
51403         * lib/fbufmode.h: Likewise.
51404         * lib/fchdir.c: Likewise.
51405         * lib/fchmodat.c: Likewise.
51406         * lib/fchownat.c: Likewise.
51407         * lib/fcntl--.h: Likewise.
51408         * lib/fcntl-safer.h: Likewise.
51409         * lib/fcntl.in.h: Likewise.
51410         * lib/fd-safer.c: Likewise.
51411         * lib/fflush.c: Likewise.
51412         * lib/file-has-acl.c: Likewise.
51413         * lib/file-set.c: Likewise.
51414         * lib/file-type.c: Likewise.
51415         * lib/file-type.h: Likewise.
51416         * lib/fileblocks.c: Likewise.
51417         * lib/filemode.c: Likewise.
51418         * lib/filemode.h: Likewise.
51419         * lib/filename.h: Likewise.
51420         * lib/filenamecat.c: Likewise.
51421         * lib/filenamecat.h: Likewise.
51422         * lib/findprog.c: Likewise.
51423         * lib/findprog.h: Likewise.
51424         * lib/float.in.h: Likewise.
51425         * lib/floor.c: Likewise.
51426         * lib/floorf.c: Likewise.
51427         * lib/floorl.c: Likewise.
51428         * lib/fopen-safer.c: Likewise.
51429         * lib/fopen.c: Likewise.
51430         * lib/fpending.c: Likewise.
51431         * lib/fpending.h: Likewise.
51432         * lib/fprintf.c: Likewise.
51433         * lib/fprintftime.h: Likewise.
51434         * lib/fpucw.h: Likewise.
51435         * lib/fpurge.c: Likewise.
51436         * lib/fpurge.h: Likewise.
51437         * lib/freadable.c: Likewise.
51438         * lib/freadable.h: Likewise.
51439         * lib/freadahead.c: Likewise.
51440         * lib/freadahead.h: Likewise.
51441         * lib/freading.c: Likewise.
51442         * lib/freading.h: Likewise.
51443         * lib/free.c: Likewise.
51444         * lib/freopen.c: Likewise.
51445         * lib/frexp.c: Likewise.
51446         * lib/frexpl.c: Likewise.
51447         * lib/fseek.c: Likewise.
51448         * lib/fseterr.c: Likewise.
51449         * lib/fseterr.h: Likewise.
51450         * lib/fstatat.c: Likewise.
51451         * lib/fstrcmp.c: Likewise.
51452         * lib/fstrcmp.h: Likewise.
51453         * lib/fsusage.c: Likewise.
51454         * lib/fsusage.h: Likewise.
51455         * lib/ftell.c: Likewise.
51456         * lib/ftello.c: Likewise.
51457         * lib/fts-cycle.c: Likewise.
51458         * lib/fts.c: Likewise.
51459         * lib/fts_.h: Likewise.
51460         * lib/full-read.c: Likewise.
51461         * lib/full-read.h: Likewise.
51462         * lib/full-write.c: Likewise.
51463         * lib/full-write.h: Likewise.
51464         * lib/fwritable.c: Likewise.
51465         * lib/fwritable.h: Likewise.
51466         * lib/fwriteerror.c: Likewise.
51467         * lib/fwriteerror.h: Likewise.
51468         * lib/fwriting.c: Likewise.
51469         * lib/fwriting.h: Likewise.
51470         * lib/gcd.c: Likewise.
51471         * lib/gcd.h: Likewise.
51472         * lib/getcwd.c: Likewise.
51473         * lib/getdate.h: Likewise.
51474         * lib/getdate.y: Likewise.
51475         * lib/getdomainname.c: Likewise.
51476         * lib/getdomainname.h: Likewise.
51477         * lib/getgroups.c: Likewise.
51478         * lib/gethostname.c: Likewise.
51479         * lib/gethrxtime.c: Likewise.
51480         * lib/gethrxtime.h: Likewise.
51481         * lib/getloadavg.c: Likewise.
51482         * lib/getndelim2.c: Likewise.
51483         * lib/getndelim2.h: Likewise.
51484         * lib/getnline.c: Likewise.
51485         * lib/getnline.h: Likewise.
51486         * lib/getopt.c: Likewise.
51487         * lib/getopt.in.h: Likewise.
51488         * lib/getopt1.c: Likewise.
51489         * lib/getopt_int.h: Likewise.
51490         * lib/getpagesize.h: Likewise.
51491         * lib/getsubopt.c: Likewise.
51492         * lib/gettime.c: Likewise.
51493         * lib/getugroups.c: Likewise.
51494         * lib/getugroups.h: Likewise.
51495         * lib/getusershell.c: Likewise.
51496         * lib/gl_anyavltree_list1.h: Likewise.
51497         * lib/gl_anyavltree_list2.h: Likewise.
51498         * lib/gl_anyhash_list1.h: Likewise.
51499         * lib/gl_anyhash_list2.h: Likewise.
51500         * lib/gl_anylinked_list1.h: Likewise.
51501         * lib/gl_anylinked_list2.h: Likewise.
51502         * lib/gl_anyrbtree_list1.h: Likewise.
51503         * lib/gl_anyrbtree_list2.h: Likewise.
51504         * lib/gl_anytree_list1.h: Likewise.
51505         * lib/gl_anytree_list2.h: Likewise.
51506         * lib/gl_anytree_oset.h: Likewise.
51507         * lib/gl_anytreehash_list1.h: Likewise.
51508         * lib/gl_anytreehash_list2.h: Likewise.
51509         * lib/gl_array_list.c: Likewise.
51510         * lib/gl_array_list.h: Likewise.
51511         * lib/gl_array_oset.c: Likewise.
51512         * lib/gl_array_oset.h: Likewise.
51513         * lib/gl_avltree_list.c: Likewise.
51514         * lib/gl_avltree_list.h: Likewise.
51515         * lib/gl_avltree_oset.c: Likewise.
51516         * lib/gl_avltree_oset.h: Likewise.
51517         * lib/gl_avltreehash_list.c: Likewise.
51518         * lib/gl_avltreehash_list.h: Likewise.
51519         * lib/gl_carray_list.c: Likewise.
51520         * lib/gl_carray_list.h: Likewise.
51521         * lib/gl_linked_list.c: Likewise.
51522         * lib/gl_linked_list.h: Likewise.
51523         * lib/gl_linkedhash_list.c: Likewise.
51524         * lib/gl_linkedhash_list.h: Likewise.
51525         * lib/gl_list.c: Likewise.
51526         * lib/gl_list.h: Likewise.
51527         * lib/gl_oset.c: Likewise.
51528         * lib/gl_oset.h: Likewise.
51529         * lib/gl_rbtree_list.c: Likewise.
51530         * lib/gl_rbtree_list.h: Likewise.
51531         * lib/gl_rbtree_oset.c: Likewise.
51532         * lib/gl_rbtree_oset.h: Likewise.
51533         * lib/gl_rbtreehash_list.c: Likewise.
51534         * lib/gl_rbtreehash_list.h: Likewise.
51535         * lib/gl_sublist.c: Likewise.
51536         * lib/gl_sublist.h: Likewise.
51537         * lib/group-member.c: Likewise.
51538         * lib/group-member.h: Likewise.
51539         * lib/hard-locale.c: Likewise.
51540         * lib/hard-locale.h: Likewise.
51541         * lib/hash-pjw.c: Likewise.
51542         * lib/hash-pjw.h: Likewise.
51543         * lib/hash-triple.c: Likewise.
51544         * lib/hash.c: Likewise.
51545         * lib/hash.h: Likewise.
51546         * lib/human.c: Likewise.
51547         * lib/human.h: Likewise.
51548         * lib/i-ring.c: Likewise.
51549         * lib/i-ring.h: Likewise.
51550         * lib/idcache.c: Likewise.
51551         * lib/imaxabs.c: Likewise.
51552         * lib/imaxdiv.c: Likewise.
51553         * lib/inet_pton.c: Likewise.
51554         * lib/inet_pton.h: Likewise.
51555         * lib/intprops.h: Likewise.
51556         * lib/inttostr.c: Likewise.
51557         * lib/inttostr.h: Likewise.
51558         * lib/inttypes.in.h: Likewise.
51559         * lib/isapipe.c: Likewise.
51560         * lib/isdir.c: Likewise.
51561         * lib/isnan.c: Likewise.
51562         * lib/isnan.h: Likewise.
51563         * lib/isnanf.c: Likewise.
51564         * lib/isnanf.h: Likewise.
51565         * lib/isnanl-nolibm.h: Likewise.
51566         * lib/isnanl.c: Likewise.
51567         * lib/isnanl.h: Likewise.
51568         * lib/javacomp.c: Likewise.
51569         * lib/javacomp.h: Likewise.
51570         * lib/javaexec.c: Likewise.
51571         * lib/javaexec.h: Likewise.
51572         * lib/javaversion.c: Likewise.
51573         * lib/javaversion.h: Likewise.
51574         * lib/javaversion.java: Likewise.
51575         * lib/lbrkprop.h: Likewise.
51576         * lib/lchmod.h: Likewise.
51577         * lib/lchown.c: Likewise.
51578         * lib/ldexpl.c: Likewise.
51579         * lib/linebreak.c: Likewise.
51580         * lib/linebreak.h: Likewise.
51581         * lib/linebuffer.c: Likewise.
51582         * lib/linebuffer.h: Likewise.
51583         * lib/locale.in.h: Likewise.
51584         * lib/logl.c: Likewise.
51585         * lib/long-options.c: Likewise.
51586         * lib/long-options.h: Likewise.
51587         * lib/lstat.c: Likewise.
51588         * lib/lstat.h: Likewise.
51589         * lib/math.in.h: Likewise.
51590         * lib/mbchar.c: Likewise.
51591         * lib/mbchar.h: Likewise.
51592         * lib/mbfile.h: Likewise.
51593         * lib/mbiter.h: Likewise.
51594         * lib/mbscasecmp.c: Likewise.
51595         * lib/mbscasestr.c: Likewise.
51596         * lib/mbschr.c: Likewise.
51597         * lib/mbscspn.c: Likewise.
51598         * lib/mbslen.c: Likewise.
51599         * lib/mbsncasecmp.c: Likewise.
51600         * lib/mbsnlen.c: Likewise.
51601         * lib/mbspbrk.c: Likewise.
51602         * lib/mbspcasecmp.c: Likewise.
51603         * lib/mbsrchr.c: Likewise.
51604         * lib/mbssep.c: Likewise.
51605         * lib/mbsspn.c: Likewise.
51606         * lib/mbsstr.c: Likewise.
51607         * lib/mbstok_r.c: Likewise.
51608         * lib/mbswidth.c: Likewise.
51609         * lib/mbswidth.h: Likewise.
51610         * lib/mbuiter.h: Likewise.
51611         * lib/memcasecmp.c: Likewise.
51612         * lib/memcasecmp.h: Likewise.
51613         * lib/memchr.c: Likewise.
51614         * lib/memcmp.c: Likewise.
51615         * lib/memcoll.c: Likewise.
51616         * lib/memcoll.h: Likewise.
51617         * lib/memcpy.c: Likewise.
51618         * lib/memrchr.c: Likewise.
51619         * lib/mkancesdirs.c: Likewise.
51620         * lib/mkdir-p.c: Likewise.
51621         * lib/mkdir-p.h: Likewise.
51622         * lib/mkdir.c: Likewise.
51623         * lib/mkdirat.c: Likewise.
51624         * lib/mkdtemp.c: Likewise.
51625         * lib/mkstemp-safer.c: Likewise.
51626         * lib/mkstemp.c: Likewise.
51627         * lib/modechange.c: Likewise.
51628         * lib/modechange.h: Likewise.
51629         * lib/mountlist.c: Likewise.
51630         * lib/mountlist.h: Likewise.
51631         * lib/mpsort.c: Likewise.
51632         * lib/nanosleep.c: Likewise.
51633         * lib/obstack.c: Likewise.
51634         * lib/obstack.h: Likewise.
51635         * lib/open-safer.c: Likewise.
51636         * lib/open.c: Likewise.
51637         * lib/openat-die.c: Likewise.
51638         * lib/openat-priv.h: Likewise.
51639         * lib/openat-proc.c: Likewise.
51640         * lib/openat.c: Likewise.
51641         * lib/openat.h: Likewise.
51642         * lib/pagealign_alloc.c: Likewise.
51643         * lib/pagealign_alloc.h: Likewise.
51644         * lib/physmem.c: Likewise.
51645         * lib/physmem.h: Likewise.
51646         * lib/pipe-safer.c: Likewise.
51647         * lib/pipe.c: Likewise.
51648         * lib/pipe.h: Likewise.
51649         * lib/posixtm.c: Likewise.
51650         * lib/posixtm.h: Likewise.
51651         * lib/posixver.c: Likewise.
51652         * lib/printf-frexp.c: Likewise.
51653         * lib/printf-frexp.h: Likewise.
51654         * lib/printf-frexpl.c: Likewise.
51655         * lib/printf-frexpl.h: Likewise.
51656         * lib/printf.c: Likewise.
51657         * lib/progname.c: Likewise.
51658         * lib/progname.h: Likewise.
51659         * lib/progreloc.c: Likewise.
51660         * lib/putenv.c: Likewise.
51661         * lib/quote.c: Likewise.
51662         * lib/quote.h: Likewise.
51663         * lib/quotearg.c: Likewise.
51664         * lib/quotearg.h: Likewise.
51665         * lib/raise.c: Likewise.
51666         * lib/readline.c: Likewise.
51667         * lib/readline.h: Likewise.
51668         * lib/readlink.c: Likewise.
51669         * lib/readtokens.c: Likewise.
51670         * lib/readtokens.h: Likewise.
51671         * lib/readtokens0.c: Likewise.
51672         * lib/readtokens0.h: Likewise.
51673         * lib/readutmp.c: Likewise.
51674         * lib/readutmp.h: Likewise.
51675         * lib/realloc.c: Likewise.
51676         * lib/relocwrapper.c: Likewise.
51677         * lib/rename-dest-slash.c: Likewise.
51678         * lib/rename.c: Likewise.
51679         * lib/rmdir.c: Likewise.
51680         * lib/rpmatch.c: Likewise.
51681         * lib/safe-read.c: Likewise.
51682         * lib/safe-read.h: Likewise.
51683         * lib/safe-write.c: Likewise.
51684         * lib/safe-write.h: Likewise.
51685         * lib/same-inode.h: Likewise.
51686         * lib/same.c: Likewise.
51687         * lib/same.h: Likewise.
51688         * lib/save-cwd.c: Likewise.
51689         * lib/save-cwd.h: Likewise.
51690         * lib/savedir.c: Likewise.
51691         * lib/savedir.h: Likewise.
51692         * lib/savewd.c: Likewise.
51693         * lib/savewd.h: Likewise.
51694         * lib/search.in.h: Likewise.
51695         * lib/setenv.c: Likewise.
51696         * lib/setenv.h: Likewise.
51697         * lib/settime.c: Likewise.
51698         * lib/sh-quote.c: Likewise.
51699         * lib/sh-quote.h: Likewise.
51700         * lib/sig2str.c: Likewise.
51701         * lib/sig2str.h: Likewise.
51702         * lib/signal.in.h: Likewise.
51703         * lib/signbitd.c: Likewise.
51704         * lib/signbitf.c: Likewise.
51705         * lib/signbitl.c: Likewise.
51706         * lib/sigprocmask.c: Likewise.
51707         * lib/sincosl.c: Likewise.
51708         * lib/sleep.c: Likewise.
51709         * lib/sprintf.c: Likewise.
51710         * lib/sqrtl.c: Likewise.
51711         * lib/stat-time.h: Likewise.
51712         * lib/stdio--.h: Likewise.
51713         * lib/stdio-safer.h: Likewise.
51714         * lib/stdlib--.h: Likewise.
51715         * lib/stdlib-safer.h: Likewise.
51716         * lib/stdlib.in.h: Likewise.
51717         * lib/stpcpy.c: Likewise.
51718         * lib/stpncpy.c: Likewise.
51719         * lib/strchrnul.c: Likewise.
51720         * lib/strcspn.c: Likewise.
51721         * lib/strerror.c: Likewise.
51722         * lib/strftime.c: Likewise.
51723         * lib/strftime.h: Likewise.
51724         * lib/striconveh.c: Likewise.
51725         * lib/striconveh.h: Likewise.
51726         * lib/striconveha.c: Likewise.
51727         * lib/striconveha.h: Likewise.
51728         * lib/stripslash.c: Likewise.
51729         * lib/strnlen1.c: Likewise.
51730         * lib/strnlen1.h: Likewise.
51731         * lib/strtod.c: Likewise.
51732         * lib/strtoimax.c: Likewise.
51733         * lib/strtok_r.c: Likewise.
51734         * lib/strtol.c: Likewise.
51735         * lib/strtoll.c: Likewise.
51736         * lib/strtoul.c: Likewise.
51737         * lib/strtoull.c: Likewise.
51738         * lib/sysexits.in.h: Likewise.
51739         * lib/tempname.c: Likewise.
51740         * lib/tempname.h: Likewise.
51741         * lib/timespec.h: Likewise.
51742         * lib/tls.c: Likewise.
51743         * lib/tls.h: Likewise.
51744         * lib/tmpdir.c: Likewise.
51745         * lib/tmpdir.h: Likewise.
51746         * lib/tmpfile-safer.c: Likewise.
51747         * lib/tmpfile.c: Likewise.
51748         * lib/trigl.c: Likewise.
51749         * lib/trigl.h: Likewise.
51750         * lib/trim.c: Likewise.
51751         * lib/trim.h: Likewise.
51752         * lib/trunc.c: Likewise.
51753         * lib/truncf.c: Likewise.
51754         * lib/truncl.c: Likewise.
51755         * lib/tsearch.c: Likewise.
51756         * lib/unicodeio.c: Likewise.
51757         * lib/unicodeio.h: Likewise.
51758         * lib/unistd--.h: Likewise.
51759         * lib/unistd-safer.h: Likewise.
51760         * lib/unistdio/ulc-fprintf.c: Likewise.
51761         * lib/unistdio/ulc-vfprintf.c: Likewise.
51762         * lib/unlinkdir.c: Likewise.
51763         * lib/unlinkdir.h: Likewise.
51764         * lib/unlocked-io.h: Likewise.
51765         * lib/unsetenv.c: Likewise.
51766         * lib/userspec.c: Likewise.
51767         * lib/utime.c: Likewise.
51768         * lib/utimecmp.c: Likewise.
51769         * lib/utimecmp.h: Likewise.
51770         * lib/utimens.c: Likewise.
51771         * lib/verify.h: Likewise.
51772         * lib/verror.c: Likewise.
51773         * lib/verror.h: Likewise.
51774         * lib/version-etc-fsf.c: Likewise.
51775         * lib/version-etc.c: Likewise.
51776         * lib/version-etc.h: Likewise.
51777         * lib/vfprintf.c: Likewise.
51778         * lib/vprintf.c: Likewise.
51779         * lib/vsprintf.c: Likewise.
51780         * lib/w32spawn.h: Likewise.
51781         * lib/wait-process.c: Likewise.
51782         * lib/wait-process.h: Likewise.
51783         * lib/wcwidth.c: Likewise.
51784         * lib/write-any-file.c: Likewise.
51785         * lib/xalloc-die.c: Likewise.
51786         * lib/xalloc.h: Likewise.
51787         * lib/xasprintf.c: Likewise.
51788         * lib/xgetcwd.c: Likewise.
51789         * lib/xgetcwd.h: Likewise.
51790         * lib/xgetdomainname.c: Likewise.
51791         * lib/xgetdomainname.h: Likewise.
51792         * lib/xgethostname.c: Likewise.
51793         * lib/xmalloc.c: Likewise.
51794         * lib/xmalloca.c: Likewise.
51795         * lib/xmalloca.h: Likewise.
51796         * lib/xmemcoll.c: Likewise.
51797         * lib/xnanosleep.c: Likewise.
51798         * lib/xreadlink.c: Likewise.
51799         * lib/xreadlink.h: Likewise.
51800         * lib/xsetenv.c: Likewise.
51801         * lib/xsetenv.h: Likewise.
51802         * lib/xstriconv.c: Likewise.
51803         * lib/xstriconv.h: Likewise.
51804         * lib/xstrndup.c: Likewise.
51805         * lib/xstrndup.h: Likewise.
51806         * lib/xstrtod.c: Likewise.
51807         * lib/xstrtod.h: Likewise.
51808         * lib/xstrtol-error.c: Likewise.
51809         * lib/xstrtol.c: Likewise.
51810         * lib/xstrtol.h: Likewise.
51811         * lib/xtime.h: Likewise.
51812         * lib/xvasprintf.c: Likewise.
51813         * lib/xvasprintf.h: Likewise.
51814         * lib/yesno.c: Likewise.
51815         * lib/yesno.h: Likewise.
51816         * posix-modules: Likewise.
51817         * tests/test-alloca-opt.c: Likewise.
51818         * tests/test-arcfour.c: Likewise.
51819         * tests/test-arctwo.c: Likewise.
51820         * tests/test-argmatch.c: Likewise.
51821         * tests/test-argp-2.sh: Likewise.
51822         * tests/test-argp.c: Likewise.
51823         * tests/test-arpa_inet.c: Likewise.
51824         * tests/test-array_list.c: Likewise.
51825         * tests/test-array_oset.c: Likewise.
51826         * tests/test-atexit.c: Likewise.
51827         * tests/test-avltree_list.c: Likewise.
51828         * tests/test-avltree_oset.c: Likewise.
51829         * tests/test-avltreehash_list.c: Likewise.
51830         * tests/test-base64.c: Likewise.
51831         * tests/test-binary-io.c: Likewise.
51832         * tests/test-byteswap.c: Likewise.
51833         * tests/test-c-ctype.c: Likewise.
51834         * tests/test-c-strcasecmp.c: Likewise.
51835         * tests/test-c-strcasestr.c: Likewise.
51836         * tests/test-c-strncasecmp.c: Likewise.
51837         * tests/test-c-strstr.c: Likewise.
51838         * tests/test-canonicalize-lgpl.c: Likewise.
51839         * tests/test-canonicalize.c: Likewise.
51840         * tests/test-carray_list.c: Likewise.
51841         * tests/test-ceilf.c: Likewise.
51842         * tests/test-ceill.c: Likewise.
51843         * tests/test-count-one-bits.c: Likewise.
51844         * tests/test-crc.c: Likewise.
51845         * tests/test-dirname.c: Likewise.
51846         * tests/test-fbufmode.c: Likewise.
51847         * tests/test-fcntl.c: Likewise.
51848         * tests/test-fflush.c: Likewise.
51849         * tests/test-floorf.c: Likewise.
51850         * tests/test-floorl.c: Likewise.
51851         * tests/test-fopen.c: Likewise.
51852         * tests/test-fprintf-posix.c: Likewise.
51853         * tests/test-fprintf-posix.h: Likewise.
51854         * tests/test-fpurge.c: Likewise.
51855         * tests/test-freadable.c: Likewise.
51856         * tests/test-freadahead.c: Likewise.
51857         * tests/test-freading.c: Likewise.
51858         * tests/test-freopen.c: Likewise.
51859         * tests/test-frexp.c: Likewise.
51860         * tests/test-frexpl.c: Likewise.
51861         * tests/test-fseek.c: Likewise.
51862         * tests/test-fseeko.c: Likewise.
51863         * tests/test-fseterr.c: Likewise.
51864         * tests/test-fstrcmp.c: Likewise.
51865         * tests/test-ftell.c: Likewise.
51866         * tests/test-ftello.c: Likewise.
51867         * tests/test-fwritable.c: Likewise.
51868         * tests/test-fwriting.c: Likewise.
51869         * tests/test-getaddrinfo.c: Likewise.
51870         * tests/test-getpass.c: Likewise.
51871         * tests/test-gettimeofday.c: Likewise.
51872         * tests/test-hmac-md5.c: Likewise.
51873         * tests/test-hmac-sha1.c: Likewise.
51874         * tests/test-iconv.c: Likewise.
51875         * tests/test-iconvme.c: Likewise.
51876         * tests/test-inttypes.c: Likewise.
51877         * tests/test-isnan.c: Likewise.
51878         * tests/test-isnanf.c: Likewise.
51879         * tests/test-isnanl-nolibm.c: Likewise.
51880         * tests/test-isnanl.c: Likewise.
51881         * tests/test-isnanl.h: Likewise.
51882         * tests/test-ldexpl.c: Likewise.
51883         * tests/test-linked_list.c: Likewise.
51884         * tests/test-linkedhash_list.c: Likewise.
51885         * tests/test-locale.c: Likewise.
51886         * tests/test-localename.c: Likewise.
51887         * tests/test-lock.c: Likewise.
51888         * tests/test-lseek.c: Likewise.
51889         * tests/test-malloca.c: Likewise.
51890         * tests/test-math.c: Likewise.
51891         * tests/test-mbscasecmp.c: Likewise.
51892         * tests/test-mbscasestr1.c: Likewise.
51893         * tests/test-mbscasestr2.c: Likewise.
51894         * tests/test-mbscasestr3.c: Likewise.
51895         * tests/test-mbscasestr4.c: Likewise.
51896         * tests/test-mbschr.c: Likewise.
51897         * tests/test-mbscspn.c: Likewise.
51898         * tests/test-mbsncasecmp.c: Likewise.
51899         * tests/test-mbspbrk.c: Likewise.
51900         * tests/test-mbspcasecmp.c: Likewise.
51901         * tests/test-mbsrchr.c: Likewise.
51902         * tests/test-mbsspn.c: Likewise.
51903         * tests/test-mbsstr1.c: Likewise.
51904         * tests/test-mbsstr2.c: Likewise.
51905         * tests/test-mbsstr3.c: Likewise.
51906         * tests/test-md5.c: Likewise.
51907         * tests/test-memmem.c: Likewise.
51908         * tests/test-netinet_in.c: Likewise.
51909         * tests/test-open.c: Likewise.
51910         * tests/test-printf-frexp.c: Likewise.
51911         * tests/test-printf-frexpl.c: Likewise.
51912         * tests/test-printf-posix.c: Likewise.
51913         * tests/test-printf-posix.h: Likewise.
51914         * tests/test-rbtree_list.c: Likewise.
51915         * tests/test-rbtree_oset.c: Likewise.
51916         * tests/test-rbtreehash_list.c: Likewise.
51917         * tests/test-read-file.c: Likewise.
51918         * tests/test-rijndael.c: Likewise.
51919         * tests/test-search.c: Likewise.
51920         * tests/test-signbit.c: Likewise.
51921         * tests/test-sleep.c: Likewise.
51922         * tests/test-snprintf-posix.c: Likewise.
51923         * tests/test-snprintf-posix.h: Likewise.
51924         * tests/test-snprintf.c: Likewise.
51925         * tests/test-sprintf-posix.c: Likewise.
51926         * tests/test-sprintf-posix.h: Likewise.
51927         * tests/test-stat-time.c: Likewise.
51928         * tests/test-stdbool.c: Likewise.
51929         * tests/test-stdint.c: Likewise.
51930         * tests/test-stdio.c: Likewise.
51931         * tests/test-stdlib.c: Likewise.
51932         * tests/test-stpncpy.c: Likewise.
51933         * tests/test-strcasestr.c: Likewise.
51934         * tests/test-striconv.c: Likewise.
51935         * tests/test-striconveh.c: Likewise.
51936         * tests/test-striconveha.c: Likewise.
51937         * tests/test-string.c: Likewise.
51938         * tests/test-sys_select.c: Likewise.
51939         * tests/test-sys_socket.c: Likewise.
51940         * tests/test-sys_stat.c: Likewise.
51941         * tests/test-sys_time.c: Likewise.
51942         * tests/test-sysexits.c: Likewise.
51943         * tests/test-time.c: Likewise.
51944         * tests/test-tls.c: Likewise.
51945         * tests/test-trunc.c: Likewise.
51946         * tests/test-truncf.c: Likewise.
51947         * tests/test-truncl.c: Likewise.
51948         * tests/test-unistd.c: Likewise.
51949         * tests/test-vasnprintf-posix.c: Likewise.
51950         * tests/test-vasnprintf-posix2.c: Likewise.
51951         * tests/test-vasnprintf.c: Likewise.
51952         * tests/test-vasprintf-posix.c: Likewise.
51953         * tests/test-vasprintf.c: Likewise.
51954         * tests/test-verify.c: Likewise.
51955         * tests/test-vfprintf-posix.c: Likewise.
51956         * tests/test-vprintf-posix.c: Likewise.
51957         * tests/test-vsnprintf-posix.c: Likewise.
51958         * tests/test-vsnprintf.c: Likewise.
51959         * tests/test-vsprintf-posix.c: Likewise.
51960         * tests/test-wchar.c: Likewise.
51961         * tests/test-wctype.c: Likewise.
51962         * tests/test-wcwidth.c: Likewise.
51963         * tests/test-xstrtol.c: Likewise.
51964         * tests/test-xvasprintf.c: Likewise.
51965         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
51966         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
51967         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51968         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51969         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51970         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
51971         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51972         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51973         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51974         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
51975         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51976         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51977         * tests/uniname/test-uninames.c: Likewise.
51978         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
51979         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
51980         * tests/unistdio/test-u16-printf1.h: Likewise.
51981         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
51982         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
51983         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
51984         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
51985         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
51986         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
51987         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
51988         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
51989         * tests/unistdio/test-u32-printf1.h: Likewise.
51990         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
51991         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
51992         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
51993         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
51994         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
51995         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
51996         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
51997         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
51998         * tests/unistdio/test-u8-printf1.h: Likewise.
51999         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52000         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52001         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52002         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52003         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52004         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52005         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52006         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52007         * tests/unistdio/test-ulc-printf1.h: Likewise.
52008         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52009         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52010         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52011         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52012         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52013         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52014         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52015         * tests/uniwidth/test-u16-width.c: Likewise.
52016         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52017         * tests/uniwidth/test-u32-width.c: Likewise.
52018         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52019         * tests/uniwidth/test-u8-width.c: Likewise.
52020         * tests/uniwidth/test-uc_width.c: Likewise.
52021         * config/srclist-update: Likewise.
52022         (fixlicense): Update to GPLv3+.
52023
52024         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52025         * tests/test-tsearch.c: Change copyright notice.
52026
52027         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52028         * lib/c-strcaseeq.h: Change copyright notice.
52029         * lib/streq.h: Likewise.
52030         * lib/uniconv.h: Likewise.
52031         * lib/uniconv/u-conv-from-enc.h: Likewise.
52032         * lib/uniconv/u-conv-to-enc.h: Likewise.
52033         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52034         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52035         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52036         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52037         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52038         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52039         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52040         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52041         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52042         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52043         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52044         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52045         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52046         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52047         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52048         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52049         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52050         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52051         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52052         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52053         * lib/uniname.h: Likewise.
52054         * lib/uniname/uniname.c: Likewise.
52055         * lib/unistdio.h: Likewise.
52056         * lib/unistdio/u-asnprintf.h: Likewise.
52057         * lib/unistdio/u-asprintf.h: Likewise.
52058         * lib/unistdio/u-printf-args.c: Likewise.
52059         * lib/unistdio/u-printf-args.h: Likewise.
52060         * lib/unistdio/u-printf-parse.h: Likewise.
52061         * lib/unistdio/u-snprintf.h: Likewise.
52062         * lib/unistdio/u-sprintf.h: Likewise.
52063         * lib/unistdio/u-vasprintf.h: Likewise.
52064         * lib/unistdio/u-vsnprintf.h: Likewise.
52065         * lib/unistdio/u-vsprintf.h: Likewise.
52066         * lib/unistdio/u16-asnprintf.c: Likewise.
52067         * lib/unistdio/u16-asprintf.c: Likewise.
52068         * lib/unistdio/u16-printf-parse.c: Likewise.
52069         * lib/unistdio/u16-snprintf.c: Likewise.
52070         * lib/unistdio/u16-sprintf.c: Likewise.
52071         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52072         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52073         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52074         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52075         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52076         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52077         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52078         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52079         * lib/unistdio/u16-vasnprintf.c: Likewise.
52080         * lib/unistdio/u16-vasprintf.c: Likewise.
52081         * lib/unistdio/u16-vsnprintf.c: Likewise.
52082         * lib/unistdio/u16-vsprintf.c: Likewise.
52083         * lib/unistdio/u32-asnprintf.c: Likewise.
52084         * lib/unistdio/u32-asprintf.c: Likewise.
52085         * lib/unistdio/u32-printf-parse.c: Likewise.
52086         * lib/unistdio/u32-snprintf.c: Likewise.
52087         * lib/unistdio/u32-sprintf.c: Likewise.
52088         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52089         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52090         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52091         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52092         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52093         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52094         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52095         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52096         * lib/unistdio/u32-vasnprintf.c: Likewise.
52097         * lib/unistdio/u32-vasprintf.c: Likewise.
52098         * lib/unistdio/u32-vsnprintf.c: Likewise.
52099         * lib/unistdio/u32-vsprintf.c: Likewise.
52100         * lib/unistdio/u8-asnprintf.c: Likewise.
52101         * lib/unistdio/u8-asprintf.c: Likewise.
52102         * lib/unistdio/u8-printf-parse.c: Likewise.
52103         * lib/unistdio/u8-snprintf.c: Likewise.
52104         * lib/unistdio/u8-sprintf.c: Likewise.
52105         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52106         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52107         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52108         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52109         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52110         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52111         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52112         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52113         * lib/unistdio/u8-vasnprintf.c: Likewise.
52114         * lib/unistdio/u8-vasprintf.c: Likewise.
52115         * lib/unistdio/u8-vsnprintf.c: Likewise.
52116         * lib/unistdio/u8-vsprintf.c: Likewise.
52117         * lib/unistdio/ulc-asnprintf.c: Likewise.
52118         * lib/unistdio/ulc-asprintf.c: Likewise.
52119         * lib/unistdio/ulc-printf-parse.c: Likewise.
52120         * lib/unistdio/ulc-snprintf.c: Likewise.
52121         * lib/unistdio/ulc-sprintf.c: Likewise.
52122         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52123         * lib/unistdio/ulc-vasprintf.c: Likewise.
52124         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52125         * lib/unistdio/ulc-vsprintf.c: Likewise.
52126         * lib/unistr.h: Likewise.
52127         * lib/unistr/u-cpy-alloc.h: Likewise.
52128         * lib/unistr/u-cpy.h: Likewise.
52129         * lib/unistr/u-endswith.h: Likewise.
52130         * lib/unistr/u-move.h: Likewise.
52131         * lib/unistr/u-set.h: Likewise.
52132         * lib/unistr/u-startswith.h: Likewise.
52133         * lib/unistr/u-stpcpy.h: Likewise.
52134         * lib/unistr/u-stpncpy.h: Likewise.
52135         * lib/unistr/u-strcat.h: Likewise.
52136         * lib/unistr/u-strcpy.h: Likewise.
52137         * lib/unistr/u-strcspn.h: Likewise.
52138         * lib/unistr/u-strdup.h: Likewise.
52139         * lib/unistr/u-strlen.h: Likewise.
52140         * lib/unistr/u-strncat.h: Likewise.
52141         * lib/unistr/u-strncpy.h: Likewise.
52142         * lib/unistr/u-strnlen.h: Likewise.
52143         * lib/unistr/u-strpbrk.h: Likewise.
52144         * lib/unistr/u-strspn.h: Likewise.
52145         * lib/unistr/u-strstr.h: Likewise.
52146         * lib/unistr/u-strtok.h: Likewise.
52147         * lib/unistr/u16-check.c: Likewise.
52148         * lib/unistr/u16-chr.c: Likewise.
52149         * lib/unistr/u16-cmp.c: Likewise.
52150         * lib/unistr/u16-cpy-alloc.c: Likewise.
52151         * lib/unistr/u16-cpy.c: Likewise.
52152         * lib/unistr/u16-endswith.c: Likewise.
52153         * lib/unistr/u16-mblen.c: Likewise.
52154         * lib/unistr/u16-mbsnlen.c: Likewise.
52155         * lib/unistr/u16-mbtouc-aux.c: Likewise.
52156         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
52157         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
52158         * lib/unistr/u16-mbtouc.c: Likewise.
52159         * lib/unistr/u16-mbtoucr.c: Likewise.
52160         * lib/unistr/u16-move.c: Likewise.
52161         * lib/unistr/u16-next.c: Likewise.
52162         * lib/unistr/u16-prev.c: Likewise.
52163         * lib/unistr/u16-set.c: Likewise.
52164         * lib/unistr/u16-startswith.c: Likewise.
52165         * lib/unistr/u16-stpcpy.c: Likewise.
52166         * lib/unistr/u16-stpncpy.c: Likewise.
52167         * lib/unistr/u16-strcat.c: Likewise.
52168         * lib/unistr/u16-strchr.c: Likewise.
52169         * lib/unistr/u16-strcmp.c: Likewise.
52170         * lib/unistr/u16-strcpy.c: Likewise.
52171         * lib/unistr/u16-strcspn.c: Likewise.
52172         * lib/unistr/u16-strdup.c: Likewise.
52173         * lib/unistr/u16-strlen.c: Likewise.
52174         * lib/unistr/u16-strmblen.c: Likewise.
52175         * lib/unistr/u16-strmbtouc.c: Likewise.
52176         * lib/unistr/u16-strncat.c: Likewise.
52177         * lib/unistr/u16-strncmp.c: Likewise.
52178         * lib/unistr/u16-strncpy.c: Likewise.
52179         * lib/unistr/u16-strnlen.c: Likewise.
52180         * lib/unistr/u16-strpbrk.c: Likewise.
52181         * lib/unistr/u16-strrchr.c: Likewise.
52182         * lib/unistr/u16-strspn.c: Likewise.
52183         * lib/unistr/u16-strstr.c: Likewise.
52184         * lib/unistr/u16-strtok.c: Likewise.
52185         * lib/unistr/u16-to-u32.c: Likewise.
52186         * lib/unistr/u16-to-u8.c: Likewise.
52187         * lib/unistr/u16-uctomb-aux.c: Likewise.
52188         * lib/unistr/u16-uctomb.c: Likewise.
52189         * lib/unistr/u32-check.c: Likewise.
52190         * lib/unistr/u32-chr.c: Likewise.
52191         * lib/unistr/u32-cmp.c: Likewise.
52192         * lib/unistr/u32-cpy-alloc.c: Likewise.
52193         * lib/unistr/u32-cpy.c: Likewise.
52194         * lib/unistr/u32-endswith.c: Likewise.
52195         * lib/unistr/u32-mblen.c: Likewise.
52196         * lib/unistr/u32-mbsnlen.c: Likewise.
52197         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
52198         * lib/unistr/u32-mbtouc.c: Likewise.
52199         * lib/unistr/u32-mbtoucr.c: Likewise.
52200         * lib/unistr/u32-move.c: Likewise.
52201         * lib/unistr/u32-next.c: Likewise.
52202         * lib/unistr/u32-prev.c: Likewise.
52203         * lib/unistr/u32-set.c: Likewise.
52204         * lib/unistr/u32-startswith.c: Likewise.
52205         * lib/unistr/u32-stpcpy.c: Likewise.
52206         * lib/unistr/u32-stpncpy.c: Likewise.
52207         * lib/unistr/u32-strcat.c: Likewise.
52208         * lib/unistr/u32-strchr.c: Likewise.
52209         * lib/unistr/u32-strcmp.c: Likewise.
52210         * lib/unistr/u32-strcpy.c: Likewise.
52211         * lib/unistr/u32-strcspn.c: Likewise.
52212         * lib/unistr/u32-strdup.c: Likewise.
52213         * lib/unistr/u32-strlen.c: Likewise.
52214         * lib/unistr/u32-strmblen.c: Likewise.
52215         * lib/unistr/u32-strmbtouc.c: Likewise.
52216         * lib/unistr/u32-strncat.c: Likewise.
52217         * lib/unistr/u32-strncmp.c: Likewise.
52218         * lib/unistr/u32-strncpy.c: Likewise.
52219         * lib/unistr/u32-strnlen.c: Likewise.
52220         * lib/unistr/u32-strpbrk.c: Likewise.
52221         * lib/unistr/u32-strrchr.c: Likewise.
52222         * lib/unistr/u32-strspn.c: Likewise.
52223         * lib/unistr/u32-strstr.c: Likewise.
52224         * lib/unistr/u32-strtok.c: Likewise.
52225         * lib/unistr/u32-to-u16.c: Likewise.
52226         * lib/unistr/u32-to-u8.c: Likewise.
52227         * lib/unistr/u32-uctomb.c: Likewise.
52228         * lib/unistr/u8-check.c: Likewise.
52229         * lib/unistr/u8-chr.c: Likewise.
52230         * lib/unistr/u8-cmp.c: Likewise.
52231         * lib/unistr/u8-cpy-alloc.c: Likewise.
52232         * lib/unistr/u8-cpy.c: Likewise.
52233         * lib/unistr/u8-endswith.c: Likewise.
52234         * lib/unistr/u8-mblen.c: Likewise.
52235         * lib/unistr/u8-mbsnlen.c: Likewise.
52236         * lib/unistr/u8-mbtouc-aux.c: Likewise.
52237         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
52238         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
52239         * lib/unistr/u8-mbtouc.c: Likewise.
52240         * lib/unistr/u8-mbtoucr.c: Likewise.
52241         * lib/unistr/u8-move.c: Likewise.
52242         * lib/unistr/u8-next.c: Likewise.
52243         * lib/unistr/u8-prev.c: Likewise.
52244         * lib/unistr/u8-set.c: Likewise.
52245         * lib/unistr/u8-startswith.c: Likewise.
52246         * lib/unistr/u8-stpcpy.c: Likewise.
52247         * lib/unistr/u8-stpncpy.c: Likewise.
52248         * lib/unistr/u8-strcat.c: Likewise.
52249         * lib/unistr/u8-strchr.c: Likewise.
52250         * lib/unistr/u8-strcmp.c: Likewise.
52251         * lib/unistr/u8-strcpy.c: Likewise.
52252         * lib/unistr/u8-strcspn.c: Likewise.
52253         * lib/unistr/u8-strdup.c: Likewise.
52254         * lib/unistr/u8-strlen.c: Likewise.
52255         * lib/unistr/u8-strmblen.c: Likewise.
52256         * lib/unistr/u8-strmbtouc.c: Likewise.
52257         * lib/unistr/u8-strncat.c: Likewise.
52258         * lib/unistr/u8-strncmp.c: Likewise.
52259         * lib/unistr/u8-strncpy.c: Likewise.
52260         * lib/unistr/u8-strnlen.c: Likewise.
52261         * lib/unistr/u8-strpbrk.c: Likewise.
52262         * lib/unistr/u8-strrchr.c: Likewise.
52263         * lib/unistr/u8-strspn.c: Likewise.
52264         * lib/unistr/u8-strstr.c: Likewise.
52265         * lib/unistr/u8-strtok.c: Likewise.
52266         * lib/unistr/u8-to-u16.c: Likewise.
52267         * lib/unistr/u8-to-u32.c: Likewise.
52268         * lib/unistr/u8-uctomb-aux.c: Likewise.
52269         * lib/unistr/u8-uctomb.c: Likewise.
52270         * lib/unitypes.h: Likewise.
52271         * lib/uniwidth.h: Likewise.
52272         * lib/uniwidth/cjk.h: Likewise.
52273         * lib/uniwidth/u16-strwidth.c: Likewise.
52274         * lib/uniwidth/u16-width.c: Likewise.
52275         * lib/uniwidth/u32-strwidth.c: Likewise.
52276         * lib/uniwidth/u32-width.c: Likewise.
52277         * lib/uniwidth/u8-strwidth.c: Likewise.
52278         * lib/uniwidth/u8-width.c: Likewise.
52279         * lib/uniwidth/width.c: Likewise.
52280
52281 2007-10-07  Bruno Haible  <bruno@clisp.org>
52282
52283         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52284         The file is still under LGPL (see modules/inttypes).
52285
52286 2007-10-06  Bruno Haible  <bruno@clisp.org>
52287
52288         * modules/trunc (Dependencies): Add 'extensions'.
52289         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52290         Reported by Ben Pfaff <blp@gnu.org>.
52291
52292 2007-10-06  Bruno Haible  <bruno@clisp.org>
52293
52294         * modules/freopen-tests: New file.
52295         * tests/test-freopen.c: New file.
52296
52297         * modules/fopen-tests: New file.
52298         * tests/test-fopen.c: New file.
52299
52300         * modules/fopen: New file.
52301         * lib/fopen.c: New file.
52302         * m4/fopen.m4: New file.
52303         * modules/freopen: New file.
52304         * lib/freopen.c: New file.
52305         * m4/freopen.m4: New file.
52306         * lib/stdio.in.h (fopen, freopen): New declarations.
52307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52308         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52309         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
52310         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52311         * doc/functions/fopen.texi: Mention the 'fopen' module.
52312         * doc/functions/freopen.texi: Mention the 'freopen' module.
52313
52314 2007-10-06  Bruno Haible  <bruno@clisp.org>
52315
52316         * modules/open-tests: New file.
52317         * tests/test-open.c: New file.
52318
52319         * modules/open: New file.
52320         * lib/open.c: New file.
52321         * m4/open.m4: New file.
52322         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
52323         lib/open.c does.
52324         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
52325         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
52326         macros.
52327         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
52328         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
52329         REPLACE_OPEN.
52330         * doc/functions/open.texi: Mention the 'open' module.
52331
52332 2007-10-04  Bruno Haible  <bruno@clisp.org>
52333
52334         * modules/ceill-tests: New file.
52335         * tests/test-ceill.c: New file.
52336
52337         * modules/ceill: New file.
52338         * lib/ceill.c: Replace entire file.
52339         * m4/ceill.m4: New file.
52340         * lib/math.in.h (ceill): Replace declaration.
52341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
52342         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52343         * doc/functions/ceill.texi: Mention the 'ceill' module.
52344         * modules/mathl (Files): Remove lib/ceill.c.
52345         (Depends-on): Add ceill.
52346
52347 2007-10-04  Bruno Haible  <bruno@clisp.org>
52348
52349         * modules/ceilf-tests: New file.
52350         * tests/test-ceilf.c: New file.
52351
52352         * modules/ceilf: New file.
52353         * lib/ceil.c: New file.
52354         * lib/ceilf.c: New file.
52355         * m4/ceilf.m4: New file.
52356         * lib/math.in.h (ceilf): New declaration.
52357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
52358         HAVE_DECL_CEILF.
52359         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
52360         HAVE_DECL_CEILF.
52361         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
52362
52363 2007-10-04  Bruno Haible  <bruno@clisp.org>
52364
52365         * modules/floorl-tests: New file.
52366         * tests/test-floorl.c: New file.
52367
52368         * modules/floorl: New file.
52369         * lib/floorl.c: Replace entire file.
52370         * m4/floorl.m4: New file.
52371         * lib/math.in.h (floorl): Replace declaration.
52372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
52373         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
52374         * doc/functions/floorl.texi: Mention the 'floorl' module.
52375         * modules/mathl (Files): Remove lib/floorl.c.
52376         (Depends-on): Add floorl.
52377
52378 2007-10-04  Bruno Haible  <bruno@clisp.org>
52379
52380         * modules/floorf-tests: New file.
52381         * tests/test-floorf.c: New file.
52382
52383         * modules/floorf: New file.
52384         * lib/floor.c: New file.
52385         * lib/floorf.c: New file.
52386         * m4/floorf.m4: New file.
52387         * lib/math.in.h (floorf): New declaration.
52388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
52389         HAVE_DECL_FLOORF.
52390         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
52391         HAVE_DECL_FLOORF.
52392         * doc/functions/floorf.texi: Mention the 'floorf' module.
52393
52394 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
52395             Bruno Haible  <bruno@clisp.org>
52396
52397         Advertise for the Git server instead of the CVS server.
52398         * doc/gnulib-intro.texi (Steady Development): Mention the Git
52399         repository instead of the CVS one.
52400         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
52401         about all VCS systems generically.
52402         * doc/gnulib.texi (Introduction): Capitalize `Git'.
52403
52404 2007-10-04  Bruno Haible  <bruno@clisp.org>
52405
52406         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
52407         means.
52408         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
52409
52410 2007-10-04  Bruno Haible  <bruno@clisp.org>
52411
52412         * modules/truncl-tests: New file.
52413         * tests/test-truncl.c: New file.
52414
52415         * modules/truncl: New file.
52416         * lib/truncl.c: New file.
52417         * m4/truncl.m4: New file.
52418         * lib/math.in.h (truncl): New declaration.
52419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
52420         HAVE_DECL_TRUNCL.
52421         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
52422         HAVE_DECL_TRUNCL.
52423         * doc/functions/truncl.texi: Mention the 'truncl' module.
52424
52425 2007-10-04  Bruno Haible  <bruno@clisp.org>
52426
52427         * modules/truncf-tests: New file.
52428         * tests/test-truncf.c: New file.
52429
52430         * modules/truncf: New file.
52431         * lib/trunc.c: Make paramerizable through USE_* macros.
52432         * lib/truncf.c: New file.
52433         * m4/truncf.m4: New file.
52434         * lib/math.in.h (truncf): New declaration.
52435         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
52436         HAVE_DECL_TRUNCF.
52437         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
52438         HAVE_DECL_TRUNCF.
52439         * doc/functions/truncf.texi: Mention the 'truncf' module.
52440
52441 2007-10-03  Bruno Haible  <bruno@clisp.org>
52442
52443         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52444         augmentation also for tests modules.
52445         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
52446         * modules/atexit-tests (Makefile.am): Likewise.
52447         * modules/binary-io-tests (Makefile.am): Likewise.
52448         * modules/c-strcase-tests (Makefile.am): Likewise.
52449         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
52450         * modules/canonicalize-tests (Makefile.am): Likewise.
52451         * modules/closein-tests (Makefile.am): Likewise.
52452         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52453         * modules/freadahead-tests (Makefile.am): Likewise.
52454         * modules/fseek-tests (Makefile.am): Likewise.
52455         * modules/fseeko-tests (Makefile.am): Likewise.
52456         * modules/ftell-tests (Makefile.am): Likewise.
52457         * modules/ftello-tests (Makefile.am): Likewise.
52458         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
52459         * modules/isnanl-tests (Makefile.am): Likewise.
52460         * modules/lseek-tests (Makefile.am): Likewise.
52461         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52462         * modules/mbscasestr-tests (Makefile.am): Likewise.
52463         * modules/mbschr-tests (Makefile.am): Likewise.
52464         * modules/mbscspn-tests (Makefile.am): Likewise.
52465         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52466         * modules/mbspbrk-tests (Makefile.am): Likewise.
52467         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52468         * modules/mbsrchr-tests (Makefile.am): Likewise.
52469         * modules/mbsspn-tests (Makefile.am): Likewise.
52470         * modules/mbsstr-tests (Makefile.am): Likewise.
52471         * modules/printf-posix-tests (Makefile.am): Likewise.
52472         * modules/snprintf-posix-tests (Makefile.am): Likewise.
52473         * modules/sprintf-posix-tests (Makefile.am): Likewise.
52474         * modules/tsearch-tests (Makefile.am): Likewise.
52475         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52476         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52477         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52478         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52479         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52480         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52481         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52482         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52483         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
52484         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
52485         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52486         * modules/xstrtol-tests (Makefile.am): Likewise.
52487         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52488         * modules/yesno-tests (Makefile.am): Likewise.
52489
52490 2007-10-03  Bruno Haible  <bruno@clisp.org>
52491
52492         * modules/trunc-tests: New file.
52493         * tests/test-trunc.c: New file.
52494
52495         * modules/trunc: New file.
52496         * lib/trunc.c: New file.
52497         * m4/trunc.m4: New file.
52498         * lib/math.in.h (trunc): New declaration.
52499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
52500         HAVE_DECL_TRUNC.
52501         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
52502         HAVE_DECL_TRUNC.
52503         * doc/functions/trunc.texi: Mention the 'trunc' module.
52504
52505 2007-10-03  Bruno Haible  <bruno@clisp.org>
52506
52507         * tests/test-fpending.c: New file, mostly copied
52508         from coreutils/lib/t-fpending.c.
52509         * modules/fpending-tests: New file.
52510
52511 2007-10-03  Bruno Haible  <bruno@clisp.org>
52512
52513         Port the stdio extensions to QNX (untested).
52514         * lib/fseterr.c (fseterr): Add support for QNX.
52515         * lib/fbufmode.c (fbufmode): Likewise.
52516         * lib/freadable.c (freadable): Likewise.
52517         * lib/fwritable.c (fwritable): Likewise.
52518         * lib/freading.c (freading): Likewise.
52519         * lib/fwriting.c (fwriting): Likewise.
52520         * lib/freadahead.c (freadahed): Likewise.
52521         * lib/fpurge.c (fpurge): Likewise.
52522         * lib/fseeko.c (rpl_fseeko): Likewise.
52523
52524 2007-10-03  Bruno Haible  <bruno@clisp.org>
52525             Jim Meyering  <jim@meyering.net>
52526             Eric Blake  <ebb9@byu.net>
52527
52528         * doc/relocatable.texi: Use @command instead of @program.
52529
52530 2007-10-02  Jim Meyering  <jim@meyering.net>
52531
52532         Perform one more "_.h" -> ".in.h" substitution.
52533         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
52534         instead of unistd_.h here, too.
52535
52536 2007-10-01  Bruno Haible  <bruno@clisp.org>
52537
52538         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
52539         Needed for the alloca-opt module.
52540
52541 2007-09-30  Bruno Haible  <bruno@clisp.org>
52542
52543         * lib/alloca.in.h: Renamed from lib/alloca_.h.
52544         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
52545         alloca_.h.
52546         * lib/argz.in.h: Renamed from lib/argz_.h.
52547         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
52548         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
52549         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
52550         byteswap_.h.
52551         * lib/dirent.in.h: Renamed from lib/dirent_.h.
52552         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
52553         dirent_.h.
52554         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
52555         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
52556         fcntl_.h.
52557         * lib/float.in.h: Renamed from lib/float_.h.
52558         * modules/float (Files, Makefile.am): Use float.in.h instead of
52559         float_.h.
52560         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
52561         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
52562         fnmatch_.h.
52563         * lib/getopt.in.h: Renamed from lib/getopt_.h.
52564         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
52565         getopt_.h.
52566         * lib/glob.in.h: Renamed from lib/glob_.h.
52567         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
52568         * lib/iconv.in.h: Renamed from lib/iconv_.h.
52569         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
52570         iconv_.h.
52571         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
52572         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
52573         inttypes_.h.
52574         * lib/locale.in.h: Renamed from lib/locale_.h.
52575         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
52576         locale_.h.
52577         * lib/math.in.h: Renamed from lib/math_.h.
52578         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
52579         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
52580         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
52581         of netinet_in_.h. Add dependency.
52582         * lib/poll.in.h: Renamed from lib/poll_.h.
52583         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
52584         * lib/search.in.h: Renamed from lib/search_.h.
52585         * modules/search (Files, Makefile.am): Use search.in.h instead of
52586         search_.h.
52587         * lib/signal.in.h: Renamed from lib/signal_.h.
52588         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
52589         _signal.h.
52590         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
52591         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
52592         stdbool_.h.
52593         * lib/stdint.in.h: Renamed from lib/stdint_.h.
52594         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
52595         stdint_.h.
52596         * lib/stdio.in.h: Renamed from lib/stdio_.h.
52597         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
52598         stdio_.h.
52599         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
52600         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
52601         stdlib_.h.
52602         * lib/string.in.h: Renamed from lib/string_.h.
52603         * modules/string (Files, Makefile.am): Use string.in.h instead of
52604         string_.h.
52605         * doc/gnulib-tool.texi (Initial import): Update.
52606         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
52607         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
52608         of sys_select_.h. Add dependency.
52609         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
52610         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
52611         of sys_socket_.h.
52612         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
52613         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
52614         sys_stat_.h.
52615         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
52616         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
52617         sys_time_.h.
52618         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
52619         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
52620         sysexits_.h.
52621         * lib/time.in.h: Renamed from lib/time_.h.
52622         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
52623         * lib/unistd.in.h: Renamed from lib/unistd_.h.
52624         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
52625         unistd_.h.
52626         * lib/wchar.in.h: Renamed from lib/wchar_.h.
52627         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
52628         wchar_.h.
52629         * lib/wctype.in.h: Renamed from lib/wctype_.h.
52630         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
52631         wctype_.h.
52632         * build-aux/bootstrap (slurp): Update.
52633         * lib/.cppi-disable: Update.
52634
52635 2007-09-30  Bruno Haible  <bruno@clisp.org>
52636
52637         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
52638         Needed on BeOS.
52639
52640 2007-09-30  Bruno Haible  <bruno@clisp.org>
52641
52642         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
52643
52644 2007-09-29  Bruno Haible  <bruno@clisp.org>
52645
52646         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
52647
52648 2007-09-29  Bruno Haible  <bruno@clisp.org>
52649
52650         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
52651         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
52652         * build-aux/install-reloc: Compile also areadlink.c.
52653         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
52654
52655 2007-09-29  Bruno Haible  <bruno@clisp.org>
52656
52657         * gnulib-tool (func_emit_initmacro_done): Indentation.
52658
52659 2007-09-29  Bruno Haible  <bruno@clisp.org>
52660
52661         * README: Add CVS checkout update instructions.
52662         Info from Bob Proulx <bob@proulx.com>.
52663
52664 2007-09-28  Eric Blake  <ebb9@byu.net>
52665
52666         Provide move-if-change.
52667         * build-aux/move-if-change: New file, based on best practice
52668         rather than any canonical upstream location.
52669
52670 2007-09-28  Jim Meyering  <jim@meyering.net>
52671
52672         Fix canonicalize loop-detection corner case.
52673         Do not attempt to stat the symlink values stored via seen_triple.
52674         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
52675         on linux-2.6.18, (but not 2.6.22).
52676         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
52677         triple_compare.  The former compares dev,ino,filename, while the latter
52678         would actually stat dirname(filename) when dev and ino were equal.
52679         * lib/hash-triple.c: Install <string.h>.
52680         (STREQ): Define.
52681         (triple_compare_ino_str): New function.
52682         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
52683
52684 2007-09-28  Eric Blake  <ebb9@byu.net>
52685
52686         Enforce that AC_REPLACE_FUNCS files exist.
52687         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
52688         override check for typos.
52689
52690         Fix test-closein on Solaris 10.
52691         * tests/test-closein.c (main): Don't assume stdin can be inherited
52692         closed on all systems.
52693         * tests/test-closein.sh: Likewise.
52694         Reported by Piotr Tarnowski.
52695
52696 2007-09-28  Jim Meyering  <jim@meyering.net>
52697
52698         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
52699
52700 2007-09-27  Jim Meyering  <jim@meyering.net>
52701
52702         canonicalize: Avoid a false-positive cycle failure.
52703         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
52704         Sort.  Remove cycle-check.
52705         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
52706         not cycle-check.h.
52707         (seen_triple): New function.
52708         (canonicalize_filename_mode): Use it instead of cycle-check.
52709         * tests/test-canonicalize.c: Add a test for this bug.
52710         * tests/test-canonicalize.sh: Set up and run the test.
52711
52712         New module, file-set, from coreutils.
52713         * modules/file-set: Define it.
52714         * lib/file-set.c, lib/file-set.h: Implement.
52715
52716         New module, hash-triple, from coreutils.
52717         * modules/hash-triple: Define it.
52718         * lib/hash-triple.c, lib/hash-triple.h: Implement.
52719
52720 2007-09-25  Eric Blake  <ebb9@byu.net>
52721
52722         Fix strerror on Interix.
52723         * lib/string_.h (strerror): Declare replacement.
52724         * doc/functions/strerror.texi (strerror): Document the Interix
52725         shortcoming.
52726         * modules/string (Makefile.am): Support new hooks.
52727         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
52728         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
52729         gl_FUNC_STRERROR_SEPARATE.
52730         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
52731         * lib/strerror.c (rpl_strerror): Provide replacement.
52732         * modules/strerror (Depends-on): Add string.
52733         (configure.ac): Detect use of module.
52734         * tests/test-strerror.c: New file.
52735         * modules/strerror-tests: New test module.
52736         * modules/argp (Depends-on): Add strerror.
52737         * modules/error (Depends-on): Likewise.
52738         Reported by Martin Koeppe.
52739
52740 2007-09-24  Bruno Haible  <bruno@clisp.org>
52741
52742         * README: Update git instructions.
52743
52744 2007-09-24  Eric Blake  <ebb9@byu.net>
52745
52746         Revert fpending breakage from 2007-09-08.
52747         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
52748         __fpending.c.
52749
52750 2007-09-24  Jim Meyering  <jim@meyering.net>
52751
52752         filenamecat.c: Add a test.
52753         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
52754         showing how the function works when DIR is the empty string.
52755
52756 2007-09-21  Simon Josefsson  <simon@josefsson.org>
52757
52758         * tests/test-canonicalize.sh: Turn on executable bit.
52759
52760 2007-09-19  Eric Blake  <ebb9@byu.net>
52761
52762         * README: Update CVS instructions.
52763
52764 2007-09-18  Bruno Haible  <bruno@clisp.org>
52765
52766         * modules/areadlink: New file.
52767         * lib/areadlink.h (areadlink): New declaration.
52768         * lib/areadlink.c: New file, based on lib/xreadlink.c.
52769
52770 2007-09-17  Jim Meyering  <jim@meyering.net>
52771
52772         * lib/savewd.c (ESTALE) [!defined]: Define.
52773         Reported to be required on Interix by Martin Koeppe.
52774
52775 2007-09-17  Bruno Haible  <bruno@clisp.org>
52776
52777         * gnulib-tool (func_version): Use $version.
52778
52779 2007-09-16  Bruno Haible  <bruno@clisp.org>
52780
52781         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
52782         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
52783         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
52784         Reported by Greg Schafer <gschafer@zip.com.au>.
52785
52786 2007-09-15  Bruno Haible  <bruno@clisp.org>
52787
52788         * gnulib-tool (sed): Try a little harder to make bash understand the
52789         alias.
52790         Reported by Bruce Korb <bruce.korb@gmail.com>.
52791
52792 2007-09-13  Eric Blake  <ebb9@byu.net>
52793
52794         * ChangeLog: Remove conflict markers.
52795
52796 2007-09-13  Simon Josefsson  <simon@josefsson.org>
52797
52798         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
52799         Reported by Bruno Haible <bruno@clisp.org>.
52800
52801 2007-09-12  Bruno Haible  <bruno@clisp.org>
52802
52803         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
52804         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
52805         is not defined.
52806
52807 2007-09-12  Eric Blake  <ebb9@byu.net>
52808
52809         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
52810         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
52811         Autoconf definition.
52812         * modules/euidaccess (Depends-on): Add extensions, for
52813         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
52814         * modules/fnmatch (Depends-on): Likewise.
52815         * modules/getaddrinfo (Depends-on): Likewise.
52816         * modules/getdelim (Depends-on): Likewise.
52817         * modules/getline (Depends-on): Likewise.
52818         * modules/getsubopt (Depends-on): Likewise.
52819         * modules/gettext (Depends-on): Likewise.
52820         * modules/group-member (Depends-on): Likewise.
52821         * modules/mbchar (Depends-on): Likewise.
52822         * modules/memmem (Depends-on): Likewise.
52823         * modules/mempcpy (Depends-on): Likewise.
52824         * modules/memrchr (Depends-on): Likewise.
52825         * modules/pagealign_alloc (Depends-on): Likewise.
52826         * modules/readutmp (Depends-on): Likewise.
52827         * modules/stpcpy (Depends-on): Likewise.
52828         * modules/stpncpy (Depends-on): Likewise.
52829         * modules/strchrnul (Depends-on): Likewise.
52830         * modules/strndup (Depends-on): Likewise.
52831         * modules/strsep (Depends-on): Likewise.
52832         * modules/strverscmp (Depends-on): Likewise.
52833         * modules/vasprintf (Depends-on): Likewise.
52834         * modules/wcwidth (Depends-on): Likewise.
52835         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
52836         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
52837         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
52838         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
52839         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52840         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52841         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
52842         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52843         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
52844         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
52845         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52846         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
52847         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
52848         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
52849         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
52850         * m4/readutmp.m4 (gl_READUTMP): Likewise.
52851         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52852         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
52853         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52854         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
52855         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52856         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
52857         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
52858         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
52859         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
52860         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52861         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
52862         so that lock.m4 can be used in gettext without extensions module.
52863
52864 2007-09-11  Bruno Haible  <bruno@clisp.org>
52865
52866         * m4/isc-posix.m4: Remove file.
52867         Suggested by Eric Blake.
52868
52869 2007-09-11  Eric Blake  <ebb9@byu.net>
52870
52871         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
52872
52873 2007-09-10  Bruno Haible  <bruno@clisp.org>
52874
52875         * posix-modules: Fix typo in error message.
52876         Reported by Matt <mkraai@beckman.com>.
52877
52878 2007-09-09  Bruno Haible  <bruno@clisp.org>
52879
52880         * doc/functions/getdelim.texi: Update list of platforms lacking the
52881         function.
52882         * doc/functions/getline.texi: Likewise.
52883
52884 2007-09-09  Jim Meyering  <jim@meyering.net>
52885
52886         * lib/hash.c (hash_initialize): Detect calloc failure.
52887         Reported by Bruno Haible.
52888
52889 2007-09-09  Bruno Haible  <bruno@clisp.org>
52890
52891         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
52892         malloc or realloc fails.
52893
52894 2007-09-09  Bruno Haible  <bruno@clisp.org>
52895
52896         * modules/getcwd (Depends-on): Add malloc-posix.
52897         * modules/glob (Depends-on): Likewise.
52898         * modules/putenv (Depends-on): Likewise.
52899         * modules/strdup (Depends-on): Likewise.
52900         * modules/getdelim (Depends-on): Add realloc-posix.
52901         * modules/read-file (Depends-on): Likewise.
52902
52903 2007-09-09  Bruno Haible  <bruno@clisp.org>
52904
52905         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
52906         (gl_FUNC_MALLOC_POSIX): Require it.
52907         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
52908         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
52909         * modules/realloc (Files): Add m4/malloc.m4.
52910         * modules/calloc (Files): Likewise.
52911
52912 2007-09-09  Bruno Haible  <bruno@clisp.org>
52913
52914         * modules/malloc-posix: New file.
52915         * modules/malloc (Depends-on): Add malloc-posix.
52916         * lib/malloc.c: Include errno.h.
52917         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
52918         and a POSIX-compatible malloc into a single function. Set ENOMEM
52919         when returning NULL.
52920         * m4/malloc.m4: New file.
52921         * doc/functions/malloc.texi: Mention the malloc-posix module.
52922         * lib/stdlib_.h (malloc): New declaration.
52923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52924         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
52925         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
52926         and HAVE_MALLOC_POSIX.
52927
52928 2007-09-09  Bruno Haible  <bruno@clisp.org>
52929
52930         * modules/realloc-posix: New file.
52931         * modules/realloc (Depends-on): Add realloc-posix.
52932         * lib/realloc.c: Include errno.h.
52933         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
52934         and a POSIX-compatible realloc into a single function. Set ENOMEM
52935         when returning NULL.
52936         * m4/realloc.m4: New file.
52937         * doc/functions/realloc.texi: Mention the realloc-posix module.
52938         * lib/stdlib_.h (realloc): New declaration.
52939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52940         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
52941         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
52942         and HAVE_REALLOC_POSIX.
52943
52944 2007-09-09  Bruno Haible  <bruno@clisp.org>
52945
52946         * modules/calloc-posix: New file.
52947         * modules/calloc (Depends-on): Add calloc-posix.
52948         * lib/calloc.c: Include errno.h.
52949         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
52950         and a POSIX-compatible calloc into a single function. Set ENOMEM
52951         when returning NULL.
52952         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
52953         * doc/functions/calloc.texi: Mention the calloc-posix module.
52954         * lib/stdlib_.h (calloc): New declaration.
52955         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52956         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
52957         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
52958         and HAVE_CALLOC_POSIX.
52959
52960 2007-09-09  Bruno Haible  <bruno@clisp.org>
52961
52962         Allow for modules to show an arbitrary notice.
52963         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
52964         * gnulib-tool: New option --extract-notice.
52965         (func_usage): Document it.
52966         (sed_extract_prog): Update.
52967         (func_get_notice): New function.
52968         (func_modules_notice): New function.
52969         (func_import, func_create_testdir): Invoke it.
52970         Suggested by Jim Meyering.
52971
52972 2007-09-09  Bruno Haible  <bruno@clisp.org>
52973
52974         * gnulib-tool: New options --verbose, --quiet.
52975         (func_usage): Document them.
52976         (verbose): New variable.
52977         (func_execute_command): New function.
52978         (func_import): Don't show the module list and the file list if
52979         $verbose < 0.
52980         (func_create_testdir): Likewise. Use func_execute_command.
52981         (func_create_megatestdir): Use func_execute_command.
52982
52983 2007-09-08  Bruno Haible  <bruno@clisp.org>
52984
52985         * gnulib-tool (func_import): Prefer rsync over wget when available,
52986         for fetching the PO files.
52987
52988 2007-09-08  Bruno Haible  <bruno@clisp.org>
52989
52990         * posix-modules: New file. Portions copied from gnulib-tool.
52991         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
52992
52993 2007-09-08  Jim Meyering  <jim@meyering.net>
52994
52995         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
52996         * lib/fpending.h: Rename from __fpending.h.
52997         * lib/fpending.c: Rename from __fpending.c.
52998         Include "fpending.h", not "__fpending.h".
52999         * lib/__fpending.h, lib/__fpending.c: Remove files.
53000         * modules/fpending (Files): Reflect new file names.
53001         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53002
53003 2007-09-08  Bruno Haible  <bruno@clisp.org>
53004
53005         * m4/inttypes-h.m4: Remove stub file.
53006
53007 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53008
53009         * doc/headers/stdint.texi: Discuss #include_next issue.
53010
53011 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53012
53013         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53014
53015 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53016
53017         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53018         in variable name.
53019
53020 2007-09-03  Jim Meyering  <jim@meyering.net>
53021
53022         New module: git-version-gen.
53023         * modules/git-version-gen: New file.
53024
53025         Import changes from coreutils for bootstrap script.
53026
53027         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53028
53029         bootstrap: uses rsync to download the .po files
53030         * build-aux/bootstrap (po_download_command_format): New global.
53031         (download_po_files): Use rsync.
53032         (update_po_files): Don't remove .po files after download,
53033         so future rsync runs can take advantage of the copies.
53034
53035         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53036
53037         Solve the unnecessary-.po-file-regeneration problem once and for all.
53038         * build-aux/bootstrap (download_po_files): New function, renamed from
53039         get_translations.  Now, downloads, but doesn't update LINGUAS.
53040         (update_po_files): New function.
53041
53042         bootstrap: Ignore more.
53043         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53044         uniwidth to e.g., lib/.gitignore.
53045         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53046
53047         * build-aux/bootstrap: New setting: vc_ignore.
53048         (insert_sorted_if_absent): Create $file if absent.
53049         Adapt to new, possibly empty, list: $vc_ignore.
53050
53051         bootstrap: generate more ignorable names
53052         * build-aux/bootstrap (slurp): When generating ignorable names,
53053         also map .sin to .sed, .gperf to .c, and .y to .c.
53054
53055 2007-09-03  Jim Meyering  <jim@meyering.net>
53056
53057         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53058         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53059
53060 2007-09-02  Bruno Haible  <bruno@clisp.org>
53061
53062         Fix mis-recognition of 'mcs' on QNX 6.
53063         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53064         output contains the string "Mono".
53065         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53066         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53067
53068 2007-09-01  Bruno Haible  <bruno@clisp.org>
53069
53070         Fix collision between uniwidth/* and linebreak modules.
53071         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53072         u32_width): Remove declarations.
53073         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53074         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53075         streq3, streq2, streq1, streq0): Remove functions.
53076         (STREQ): Remove macro.
53077         (is_cjk_encoding): Remove function.
53078         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53079         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53080         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53081         * NEWS: Document the change.
53082
53083 2007-09-01  Bruno Haible  <bruno@clisp.org>
53084
53085         * lib/streq.h: Add double-inclusion guard.
53086
53087 2007-09-01  Karl Berry  <karl@gnu.org>
53088
53089         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53090
53091 2007-08-28  Jim Meyering  <jim@meyering.net>
53092
53093         Rename mreadlink_with_size to areadlink_with_size.
53094         * NEWS: Document the change.
53095         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53096         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53097         * lib/mreadlink.h: Rename this to...
53098         * lib/areadlink.h: ...this.
53099         * modules/mreadlink-with-size: Rename this to...
53100         * modules/areadlink-with-size: ...this.
53101         * lib/canonicalize.c: Reflect the renaming.
53102         * modules/canonicalize: Likewise.
53103
53104 2007-08-26  Bruno Haible  <bruno@clisp.org>
53105
53106         * gnulib-tool (func_import): When deciding which files to remove,
53107         consider also dangling symbolic links.
53108         Reported by Eric Blake.
53109
53110 2007-08-26  Bruno Haible  <bruno@clisp.org>
53111
53112         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53113
53114 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53115
53116         * lib/readline.c: Don't include getline.h, the prototype is now
53117         found in stdio.h.
53118
53119 2007-08-23  Jim Meyering  <jim@meyering.net>
53120
53121         Getdelim touchup.
53122         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53123         around the funlockfile call, since funlockfile never sets errno.
53124         Don't set errno upon failed realloc.
53125
53126 2007-08-22  Eric Blake  <ebb9@byu.net>
53127
53128         Getline touchups.
53129         * lib/getdelim.c (getdelim): Revert regression that required *n to
53130         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53131         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53132         getdelim, rather than whether implementation is missing.
53133         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53134         * lib/stdio_.h (getline): Also declare if replacement is
53135         required.
53136         * doc/functions/getdelim.texi: New file.
53137         * doc/functions/getline.texi: Likewise.
53138         * doc/gnulib.texi (Function Substitutes): Add new files.
53139         Reported by Bruno Haible.
53140
53141 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53142
53143         * users.txt: Add Guile.
53144
53145 2007-08-22  Eric Blake  <ebb9@byu.net>
53146
53147         * tests/test-getdelim.c (main): Use remove, not unlink.
53148         * tests/test-getline.c (main): Likewise.
53149
53150         Move getline and getdelim into stdio.h, per POSIX 200x.
53151         * modules/getline (Files): Remove getline.h.
53152         (Depends-on): Add stdio.
53153         (configure.ac): Add module indicator.
53154         * modules/getdelim (Files): Remove getdelim.h.
53155         (Depends-on): Add stdio.
53156         (configure.ac): Add module indicator.
53157         * modules/stdio (Makefile.am): Work with new indicators.
53158         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
53159         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
53160         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53161         * lib/getdelim.h: Delete.
53162         * lib/getline.h: Delete.
53163         * lib/stdio_.h (getdelim, getline): Declare.
53164         * modules/getdelim-tests: New module.
53165         * modules/getline-tests: Likewise.
53166         * tests/test-getdelim.c: New file.
53167         * tests/test-getline.c: Likewise.
53168         * NEWS: Document the change.
53169         * lib/getline.c: Update choice of header.
53170         * lib/csharpcomp.c: Likewise.
53171         * lib/getpass.c: Likewise.
53172         * lib/javacomp.c: Likewise.
53173         * lib/javaversion.c: Likewise.
53174         * lib/yesno.c: Likewise.
53175         * lib/getdelim.c: Likewise.
53176         (getdelim): Set errno on failure, and avoid memory leak.
53177
53178 2007-08-19  Bruno Haible  <bruno@clisp.org>
53179
53180         * modules/closein (Depends-on): Add freadahead.
53181         * lib/closein.c: Include freadahead.h.
53182         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
53183         is zero.
53184
53185 2007-08-19  Bruno Haible  <bruno@clisp.org>
53186
53187         * modules/freadahead-tests: New file.
53188         * tests/test-freadahead.sh: New file.
53189         * tests/test-freadahead.c: New file.
53190
53191         * modules/freadahead: New file.
53192         * lib/freadahead.h: New file.
53193         * lib/freadahead.c: New file.
53194         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
53195         fbufmode, fpurge, freadable, fwritable.
53196
53197 2007-08-19  Eric Blake  <ebb9@byu.net>
53198
53199         Test yesno in combination with closein.
53200         * lib/yesno.c (yesno): Document use of stdin.
53201         * modules/yesno-tests (Files): New module.
53202         * tests/test-yesno.c (main): New file.
53203         * tests/test-yesno.sh: Likewise.
53204
53205 2007-08-19  Bruno Haible  <bruno@clisp.org>
53206
53207         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
53208         * lib/fseeko.c (rpl_fseeko): Likewise.
53209         * lib/fseterr.c (fseterr): Likewise.
53210
53211 2007-08-19  Bruno Haible  <bruno@clisp.org>
53212
53213         * tests/test-lseek.c (main): Disable a test for BeOS.
53214         * doc/functions/lseek.texi: Document the BeOS bug.
53215
53216 2007-08-19  Bruno Haible  <bruno@clisp.org>
53217             Eric Blake  <ebb9@byu.net>
53218
53219         * lib/lseek.c: Include <sys/stat.h>.
53220         (rpl_lseek): Add workaround code also for Unix platforms.
53221         Needed for BeOS.
53222         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
53223         * doc/functions/lseek.texi: Document BeOS definiency.
53224
53225 2007-08-18  Bruno Haible  <bruno@clisp.org>
53226
53227         * modules/fstrcmp-tests: New file.
53228         * tests/test-fstrcmp.c: New file.
53229
53230 2007-08-18  Bruno Haible  <bruno@clisp.org>
53231
53232         * modules/fstrcmp: New file, from GNU gettext with modifications.
53233         * lib/fstrcmp.h: New file, from GNU gettext.
53234         * lib/fstrcmp.c: New file, from GNU gettext.
53235         * MODULES.html.sh (String handling): Add fstrcmp.
53236
53237 2007-08-18  Bruno Haible  <bruno@clisp.org>
53238
53239         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
53240         'bool'.
53241         (diag, compareseq): Remove const from the ctxt argument.
53242         (USE_HEURISTIC): Undefine at the end.
53243
53244 2007-08-18  Jim Meyering  <jim@meyering.net>
53245
53246         New file: lib/idcache.h
53247         * NEWS: Mention the addition.
53248         * modules/idcache (Files): Add lib/idcache.h
53249         * lib/idcache.c: Include "idcache.h".
53250         Don't include <sys/types.h>.
53251         Add a FIXME comment.
53252         Move file-scoped "static" declarations to the top.
53253         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
53254
53255 2007-08-17  Bruno Haible  <bruno@clisp.org>
53256         and Paul Eggert  <eggert@cs.ucla.edu>
53257
53258         * MODULES.html.sh: Add diffseq.
53259         * modules/diffseq: New file.
53260         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
53261         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
53262
53263 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53264
53265         Import changes from coreutils for bootstrap script.
53266
53267         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
53268
53269         * build-aux/bootstrap (slurp): Work even in environments where
53270         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
53271         current code does not slurp files whose names start with ".", and
53272         this looks like it might be a troublesome area.
53273
53274         2007-07-11  Jim Meyering  <jim@meyering.net>
53275
53276         If there's a GPL vN copyright comment, require that N == 3.
53277
53278         2007-07-08  Jim Meyering  <jim@meyering.net>
53279
53280         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53281         * build-aux/bootstrap (mam_template): Move definition out of loop.
53282
53283         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53284
53285         * build-aux/bootstrap (symlink_to_dir): Rename function from
53286         symlink_to_gnulib.  Add a directory parameter.  Update all
53287         callers.
53288         (cp_mark_as_generated): Also check for -- and link to -- files in
53289         gl/.
53290
53291         2007-07-08  Jim Meyering  <jim@meyering.net>
53292
53293         Adapt to deeper hierarchy in gnulib.
53294         * build-aux/bootstrap (symlink_to_dir): If the destination
53295         directory doesn't exist, create it. This is required at least for
53296         "lib/uniwidth/cjk.h".
53297
53298         2007-05-15  Jim Meyering  <jim@meyering.net>
53299
53300         * build-aux/bootstrap: Now that generated Makefile.am files
53301         are no longer under version control, they must be created at
53302         bootstrap time.
53303
53304 2007-08-14  Ben Pfaff  <blp@gnu.org>
53305
53306         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53307
53308 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53309
53310         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
53311         given the changes below.
53312         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
53313         even on hosts that have padding bits beyond the supported 64.
53314
53315 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53316
53317         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
53318         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
53319         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
53320         depends on it.
53321         (xstrtol_error): Remove.
53322         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
53323         but with a different signature.
53324         (ATTRIBUTE_NORETURN, __attribute__): New macros.
53325         * lib/xstrtol-error.c: Include exitfail.h.
53326         (xstrtol_fatal): New function, with a different signature from the
53327         old xstrtol_error, so that the caller need not worry about passing
53328         in an exit status, or about storage management of the option argument.
53329         (xstrtol_error): Now a static function.  Redo signature to
53330         implement xstrtol_fatal.  Output the correct number of hyphens in
53331         front of the option so that the caller need not worry about
53332         storage management.
53333         (N_): New macro.
53334         (_): Remove; not used now.
53335         * modules/xstrtol: Depend on getopt.
53336         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
53337         of old STRTOL_FATAL_ERROR macro.
53338         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
53339         of test program.
53340         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
53341         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
53342
53343 2007-08-08  Eric Blake  <ebb9@byu.net>
53344
53345         * lib/xstrtol-error.c: Add missing include.
53346
53347         Move xstrtol messages into gnulib domain, when --pobase is used.
53348         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
53349         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
53350         * modules/xstrtol (Files): Distribute new file.
53351         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
53352         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
53353         * tests/test-xstrtol.c: ...into new file.
53354         * tests/test-xstrtoul.c: Also test xstrtoul.
53355         * tests/test-xstrtoimax.c: Also test xstrtoimax.
53356         * tests/test-xstrtoumax.c: Also test xstrtoumax.
53357         * tests/test-xstrtol.sh: Drive the tests.
53358         * tests/test-xstrtoimax.sh: Likewise.
53359         * tests/test-xstrtoumax.sh: Likewise.
53360         * modules/xstrtol-tests: New module.
53361         * modules/xstrtoimax-tests: Likewise.
53362         * modules/xstrtoumax-tests: Likewise.
53363
53364 2007-08-08  Jim Meyering  <jim@meyering.net>
53365
53366         New function: mfile_name_concat.
53367         * lib/filenamecat.c (mfile_name_concat): New function, just like
53368         file_name_concat, but return NULL upon failure rather than exiting
53369         with a diagnostic.
53370         * lib/filenamecat.h: Declare it.
53371
53372 2007-08-07  Bruno Haible  <bruno@clisp.org>
53373
53374         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
53375         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
53376         warning from gcc.
53377         Reported by Eric Blake.
53378
53379 2007-08-07  Simon Josefsson  <simon@josefsson.org>
53380
53381         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
53382         * modules/crypto/arcfour (License): Likewise.
53383         * modules/crypto/des-tests (License): Likewise.
53384         * modules/crypto/gc-arctwo-tests (License): Likewise.
53385         * modules/crypto/gc-des-tests (License): Likewise.
53386         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
53387         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
53388         * modules/crypto/gc-md2-tests (License): Likewise.
53389         * modules/crypto/gc-md4-tests (License): Likewise.
53390         * modules/crypto/gc-md5-tests (License): Likewise.
53391         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
53392         * modules/crypto/gc-rijndael-tests (License): Likewise.
53393         * modules/crypto/gc-sha1-tests (License): Likewise.
53394         * modules/crypto/gc-tests (License): Likewise.
53395         * modules/crypto/hmac-md5 (License): Likewise.
53396         * modules/crypto/hmac-sha1 (License): Likewise.
53397         * modules/crypto/md2-tests (License): Likewise.
53398         * modules/crypto/md4-tests (License): Likewise.
53399         * modules/crypto/md5 (License): Likewise.
53400         * modules/crypto/rijndael (License): Likewise.
53401         * modules/crypto/sha1 (License): Likewise.
53402         * modules/memxor (License): Likewise.
53403
53404 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53405         and Bruno Haible  <bruno@clisp.org>
53406
53407         * NEWS: Describe interface changes to human, xstrtol.
53408         * lib/human.h: Include <xstrtol.h>.
53409         (human_options): Return enum strtol_error, not int.  Remove
53410         bool arg; take int * instead.
53411         * lib/human.c: Don't include "gettext.h".
53412         (_): Remove; no longer used.
53413         Don't include <xstrtol.h>, since human.h does it.
53414         (human_options): Adjust to abovementioned interface changes.
53415         Do not report error to stderr; that's now the caller's
53416         responsibility.
53417         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
53418         interface change.
53419         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
53420         Str, Argument_type_string.  All uses changed.  Put " argument"
53421         in diagnostics to make them clearer.  Change wording of suffix
53422         message for clarity.
53423         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
53424         Argument_type_string.
53425         (STRTOL_FATAL_WARN): Remove; no longer used.
53426         * modules/human (Depends-on): Remove gettext-h.
53427
53428 2007-08-06  Simon Josefsson  <simon@josefsson.org>
53429
53430         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
53431
53432 2007-07-31  Bruno Haible  <bruno@clisp.org>
53433
53434         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
53435         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
53436         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
53437
53438 2007-07-31  Bruno Haible  <bruno@clisp.org>
53439
53440         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
53441         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
53442
53443 2007-07-30  Bruno Haible  <bruno@clisp.org>
53444
53445         * modules/base64 (License): Use the synonymous term "LGPLv2+".
53446         * modules/c-ctype (License): Likewise.
53447         * modules/c-strcase (License): Likewise.
53448         * modules/check-version (License): Likewise.
53449         * modules/iconv (License): Likewise.
53450         * modules/iconv_open (License): Likewise.
53451         * modules/read-file (License): Likewise.
53452         * modules/striconv (License): Likewise.
53453         * modules/strverscmp (License): Likewise.
53454         * modules/vasprintf (License): Likewise.
53455         * modules/crypto/des (License): Likewise.
53456         * modules/crypto/gc (License): Likewise.
53457         * modules/crypto/gc-arcfour (License): Likewise.
53458         * modules/crypto/gc-arctwo (License): Likewise.
53459         * modules/crypto/gc-des (License): Likewise.
53460         * modules/crypto/gc-hmac-md5 (License): Likewise.
53461         * modules/crypto/gc-hmac-sha1 (License): Likewise.
53462         * modules/crypto/gc-md2 (License): Likewise.
53463         * modules/crypto/gc-md4 (License): Likewise.
53464         * modules/crypto/gc-md5 (License): Likewise.
53465         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
53466         * modules/crypto/gc-random (License): Likewise.
53467         * modules/crypto/gc-rijndael (License): Likewise.
53468         * modules/crypto/gc-sha1 (License): Likewise.
53469         * modules/crypto/md2 (License): Likewise.
53470         * modules/crypto/md4 (License): Likewise.
53471
53472 2007-07-30  Jim Meyering  <jim@meyering.net>
53473
53474         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
53475         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
53476         it has valid stat data.  This bug would cause du not to count the
53477         sizes of inaccessible directories.
53478         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
53479         in <http://bugzilla.redhat.com/250077>.
53480
53481 2007-07-25  Peter O'Gorman  <peter@pogma.com>
53482             Bruno Haible  <bruno@clisp.org>
53483
53484         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
53485         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
53486         #include_next, gives a diagnostic about it, but reports no error in
53487         the exit code.
53488         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53489
53490 2007-07-24  Ben Pfaff  <blp@gnu.org>
53491
53492         Improve name: "count-one-bits" is better than "popcount".
53493         * MODULES.html.sh: Update name.
53494         * lib/popcount.h: Renamed lib/count-one-bits.h.
53495         (popcount): Renamed count_one_bits.
53496         (popcountl): Renamed count_one_bits_l.
53497         (popcountll): Renamed count_one_bits_ll.
53498         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
53499         * modules/popcount: Renamed module/count-one-bits.
53500         * modules/popcount-tests: Renamed module/count-one-bits-tests.
53501         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
53502
53503 2007-07-23  Ben Pfaff  <blp@gnu.org>
53504
53505         * lib/popcount.h (popcount32): Reduce size of constants, to allow
53506         better code generation, and add U to large constants to avoid
53507         warnings, in non-GCC case.
53508         Suggested by Bruno Haible.
53509
53510 2007-07-23  Ben Pfaff  <blp@gnu.org>
53511
53512         * lib/popcount.h: Use verify_true instead of if...abort.
53513         * modules/popcount: Depend on verify module.
53514         Suggested by Jim Meyering.
53515
53516 2007-07-23  Bruno Haible  <bruno@clisp.org>
53517
53518         * gnulib-tool (func_import): Create a .cvsignore file also when the
53519         directory is not yet in CVS but the toplevel directory is. When
53520         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
53521         Reported by Karl Berry.
53522
53523 2007-07-22  Ben Pfaff  <blp@gnu.org>
53524
53525         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
53526         case.
53527         Suggested by Eric Blake.
53528
53529 2007-07-22  Ben Pfaff  <blp@gnu.org>
53530
53531         New module: popcount.
53532         * MODULES.html.sh: Add popcount.
53533         * modules/popcount: New file.
53534         * modules/popcount-tests: New file.
53535         * tests/test-popcount.c: New file.
53536         * lib/popcount.h: New file.
53537         * m4/popcount.m4: New file.
53538
53539 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53540
53541         * build-aux/announce-gen: Update to GPLv3.
53542
53543         * build-aux/config.guess: Update from config.
53544
53545 2007-07-21  Bruno Haible  <bruno@clisp.org>
53546
53547         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
53548         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
53549
53550 2007-07-20  Jim Meyering  <jim@meyering.net>
53551
53552         * check-module: Diagnose a self-dependency.
53553
53554 2007-07-19  Bruno Haible  <bruno@clisp.org>
53555
53556         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
53557         empty.
53558         Reported by Eric Blake.
53559
53560 2007-07-18  Bruno Haible  <bruno@clisp.org>
53561
53562         * gnulib-tool: New options --po-base, --po-domain.
53563         (func_usage): Document them.
53564         (pobase, po_domain): New variables.
53565         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
53566         DEFAULT_TEXT_DOMAIN.
53567         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
53568         (func_import): Consider pobase and po_domain. Create a po/ directory.
53569         (func_create_testdir): Set pobase and po_domain to empty.
53570         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
53571         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
53572
53573 2007-07-18  Bruno Haible  <bruno@clisp.org>
53574
53575         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53576         EXTRA_DIST augmentation for files in build-aux/.
53577
53578 2007-07-16  Bruno Haible  <bruno@clisp.org>
53579
53580         * modules/lseek (License): Use the synonymous term "LGPLv2+".
53581         * modules/getdelim (License): Likewise.
53582
53583 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53584
53585         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
53586         * modules/d-type (License): Likewise.
53587         * modules/extensions (License): Likewise.
53588         * modules/fnmatch (License): Likewise.
53589         * modules/fseeko (License): Likewise.
53590         * modules/getaddrinfo (License): Likewise.
53591         * modules/getline (License): Likewise.
53592         * modules/getlogin_r (License): Likewise.
53593         * modules/getpass (License): Likewise.
53594         * modules/gettimeofday (License): Likewise.
53595         * modules/glob (License): Likewise.
53596         * modules/inet_ntop (License): Likewise.
53597         * modules/malloc (License): Likewise.
53598         * modules/malloca (License): Likewise.
53599         * modules/memmem (License): Likewise.
53600         * modules/mempcpy (License): Likewise.
53601         * modules/memset (License): Likewise.
53602         * modules/minmax (License): Likewise.
53603         * modules/mktime (License): Likewise.
53604         * modules/netinet_in (License): Likewise.
53605         * modules/pathmax (License): Likewise.
53606         * modules/poll (License): Likewise.
53607         * modules/regex (License): Likewise.
53608         * modules/snprintf (License): Likewise.
53609         * modules/stdbool (License): Likewise.
53610         * modules/stdint (License): Likewise.
53611         * modules/stdio (License): Likewise.
53612         * modules/strcase (License): Likewise.
53613         * modules/strcasestr (License): Likewise.
53614         * modules/strdup (License): Likewise.
53615         * modules/string (License): Likewise.
53616         * modules/strndup (License): Likewise.
53617         * modules/strnlen (License): Likewise.
53618         * modules/strpbrk (License): Likewise.
53619         * modules/strptime (License): Likewise.
53620         * modules/strsep (License): Likewise.
53621         * modules/sys_select (License): Likewise.
53622         * modules/sys_socket (License): Likewise.
53623         * modules/sys_stat (License): Likewise.
53624         * modules/sys_time (License): Likewise.
53625         * modules/time (License): Likewise.
53626         * modules/time_r (License): Likewise.
53627         * modules/timegm (License): Likewise.
53628         * modules/unistd (License): Likewise.
53629         * modules/vsnprintf (License): Likewise.
53630         * modules/wctype (License): Likewise.
53631
53632 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53633
53634         * modules/argz (License): LGPLv2+.
53635
53636 2007-07-15  Karl Berry  <karl@gnu.org>
53637
53638         * doc/gnulib.texi: revise node structure per new fdl.texi.
53639
53640 2007-07-14  Bruno Haible  <bruno@clisp.org>
53641
53642         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
53643         the output file.
53644         * lib/uniname/uninames.h: Regenerated.
53645
53646 2007-07-14  Karl Berry  <karl@gnu.org>
53647
53648         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
53649         omitting sectioning and index commands.
53650
53651 2007-07-13  Bruno Haible  <bruno@clisp.org>
53652
53653         New gnulib-tool option --more-symlinks.
53654         * gnulib-tool (func_usage): Document --more-symlinks.
53655         (do_copyrights): New variable.
53656         Recognize option --more-symlinks.
53657         (func_import): Don't add a copyright notice transform to
53658         sed_transform_lib_file if do_copyrights is empty.
53659
53660 2007-07-13  Bruno Haible  <bruno@clisp.org>
53661
53662         * lib/vasnprintf.c (decimal_point_char): Define also if
53663         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
53664         && !NEED_PRINTF_DIRECTIVE_A.
53665         Reported by Clemens Koller <clemens.koller@anagramm.de> via
53666         Gary V. Vaughan <gary@gnu.org>.
53667
53668 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
53669
53670         * lib/inttypes_.h: Undo previous change, since it was fixed
53671         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
53672
53673 2007-07-13  Bruno Haible  <bruno@clisp.org>
53674
53675         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
53676         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
53677
53678 2007-07-13  Jim Meyering  <jim@meyering.net>
53679
53680         df: Don't fail for Tru64's "file-on-file mount".
53681         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
53682         so we fall through and use statfs instead.  Details here:
53683         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
53684         Reported by Albert Chin.
53685
53686 2007-07-13  Bruno Haible  <bruno@clisp.org>
53687
53688         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
53689         * modules/configmake (License): Likewise.
53690         * modules/gettext (License): Likewise.
53691         * modules/gettext-h (License): Likewise.
53692         * modules/include_next (License): Likewise.
53693         * modules/link-warning (License): Likewise.
53694         * modules/localcharset (License): Likewise.
53695         * modules/localename (License): Likewise.
53696         * modules/lock (License): Likewise.
53697         * modules/relocatable-lib-lgpl (License): Likewise.
53698         * modules/size_max (License): Likewise.
53699         * modules/vasnprintf (License): Likewise.
53700         * modules/wchar (License): Likewise.
53701         * modules/xsize (License): Likewise.
53702
53703 2007-07-13  Bruno Haible  <bruno@clisp.org>
53704
53705         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
53706         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
53707
53708 2007-07-12  Bruno Haible  <bruno@clisp.org>
53709
53710         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
53711         in the modules files.
53712
53713 2007-07-11  Karl Berry  <karl@gnu.org>
53714
53715         * MODULES.html.sh (func_module): use
53716          sed -e '\|^'"${includefile}"'$|d'
53717          instead of /.../d, to avoid errors on $includefile's containing /.
53718
53719 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53720
53721         * gnulib-tool (func_import): Avoid duplication of --avoid
53722         statements
53723         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
53724         names to `_' in variable names.
53725
53726 2007-07-10  Eric Blake  <ebb9@byu.net>
53727
53728         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
53729         * NEWS: Document this change.
53730
53731 2007-07-08  Bruno Haible  <bruno@clisp.org>
53732
53733         Update to Unicode 5.0.
53734         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
53735         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
53736         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
53737         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
53738         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
53739         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
53740         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
53741         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
53742         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
53743         U+10A3F, U+1D242..U+1D244.
53744         (nonspacing_table_ind): Update.
53745         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
53746         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
53747
53748 2007-07-08  Bruno Haible  <bruno@clisp.org>
53749
53750         Update to Unicode 5.0.
53751         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
53752         code transform. Extend the name index field of unicode_name_to_code and
53753         unicode_code_to_name from 16 to 24 bits.
53754         * lib/uniname/uniname.c (unicode_character_name,
53755         unicode_name_character): Add the range 0x12xxx to the code transform.
53756         * lib/uniname/uninames.h: Regenerated.
53757         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
53758
53759 2007-07-07  Bruno Haible  <bruno@clisp.org>
53760
53761         * modules/wcwidth-tests: New file.
53762         * tests/test-wcwidth.c: New file.
53763
53764         Work around MacOS X wcwidth() bug.
53765         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
53766         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
53767         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
53768         original wcwidth in non-UTF-8 locales.
53769         * modules/wcwidth (Depends-on): Add localcharset, streq,
53770         uniwidth/width.
53771         * doc/functions/wcwidth.texi: Update.
53772
53773 2007-07-07  Bruno Haible  <bruno@clisp.org>
53774
53775         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
53776         (wcwidth): New declaration.
53777         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
53778         macros.
53779         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
53780         here. Prepare for creating <wchar.h> unconditionally.
53781         * modules/wchar (Depends-on): Add link-warning.
53782         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
53783         REPLACE_WCWIDTH, and GL_LINK_WARNING.
53784         * lib/wcwidth.h: Remove file.
53785         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
53786         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
53787         * modules/wcwidth (Files): Remove lib/wcwidth.h.
53788         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
53789         (Include): Replace wcwidth.h with <wchar.h>.
53790         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
53791         * lib/mbchar.h: Don't include wcwidth.h.
53792         * lib/mbswidth.c: Likewise.
53793         * NEWS: Mention the change.
53794
53795 2007-07-07  Bruno Haible  <bruno@clisp.org>
53796
53797         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
53798         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
53799         definition with an external declaration.
53800         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
53801         defined as a function. Remove AC_C_INLINE requirement.
53802         * modules/wcwidth (Files): Add lib/wcwidth.c.
53803         (Makefile.am): Remove redundant statement.
53804
53805 2007-07-07  Bruno Haible  <bruno@clisp.org>
53806
53807         * MODULES.html.sh (Unicode string functions): Add the new modules.
53808
53809         * tests/uniwidth/test-u32-strwidth.c: New file.
53810         * modules/uniwidth/u32-strwidth-tests: New file.
53811
53812         * lib/uniwidth/u32-strwidth.c: New file.
53813         * modules/uniwidth/u32-strwidth: New file.
53814
53815         * tests/uniwidth/test-u16-strwidth.c: New file.
53816         * modules/uniwidth/u16-strwidth-tests: New file.
53817
53818         * lib/uniwidth/u16-strwidth.c: New file.
53819         * modules/uniwidth/u16-strwidth: New file.
53820
53821         * tests/uniwidth/test-u8-strwidth.c: New file.
53822         * modules/uniwidth/u8-strwidth-tests: New file.
53823
53824         * lib/uniwidth/u8-strwidth.c: New file.
53825         * modules/uniwidth/u8-strwidth: New file.
53826
53827         * tests/uniwidth/test-u32-width.c: New file.
53828         * modules/uniwidth/u32-width-tests: New file.
53829
53830         * lib/uniwidth/u32-width.c: New file.
53831         * modules/uniwidth/u32-width: New file.
53832
53833         * tests/uniwidth/test-u16-width.c: New file.
53834         * modules/uniwidth/u16-width-tests: New file.
53835
53836         * lib/uniwidth/u16-width.c: New file.
53837         * modules/uniwidth/u16-width: New file.
53838
53839         * tests/uniwidth/test-u8-width.c: New file.
53840         * modules/uniwidth/u8-width-tests: New file.
53841
53842         * lib/uniwidth/u8-width.c: New file.
53843         * modules/uniwidth/u8-width: New file.
53844
53845         * tests/uniwidth/test-uc_width.c: New file.
53846         * modules/uniwidth/width-tests: New file.
53847
53848         * lib/uniwidth/width.c: New file, from GNU libiconv.
53849         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
53850         * modules/uniwidth/width: New file.
53851
53852         * lib/uniwidth.h: New file, from GNU libiconv.
53853         * modules/uniwidth/base: New file.
53854
53855 2007-07-07  Bruno Haible  <bruno@clisp.org>
53856
53857         * lib/uniname.h: New file, from GNU gettext.
53858         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
53859         * lib/uniname/uninames.h: New file, from GNU gettext.
53860         * lib/uniname/uniname.c: New file, from GNU gettext.
53861         * tests/uniname/test-uninames.sh: New file.
53862         * tests/uniname/test-uninames.c: New file, from GNU gettext.
53863         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
53864         * modules/uniname/base: New file.
53865         * modules/uniname/uniname: New file.
53866         * modules/uniname/uniname-tests: New file.
53867         * MODULES.html.sh (Unicode string functions): Add the new modules.
53868
53869 2007-07-06  Bruno Haible  <bruno@clisp.org>
53870
53871         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
53872
53873 2007-07-06  Bruno Haible  <bruno@clisp.org>
53874
53875         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
53876         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
53877         includes <cygwin/sys_time.h> which includes <sys/select.h> which
53878         include <sys/time.h>.
53879         Reported by Eric Blake.
53880
53881 2007-07-06  Eric Blake  <ebb9@byu.net>
53882
53883         Fix testing canonicalize on cygwin.
53884         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
53885         Revert patch from 2007-06-19.
53886         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
53887         canonicalize module is also in use.
53888         * tests/test-canonicalize.c: New file.
53889         * tests/test-canonicalize.sh: Likewise.
53890         * modules/canonicalize-tests: Likewise.
53891
53892 2007-07-06  Jim Meyering  <jim@meyering.net>
53893
53894         * lib/getugroups.c (getugroups): Detect getgrent failure.
53895         Adjust comment to reflect reality: this function may return -1.
53896
53897 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
53898
53899         * build-aux/bootstrap (TP_URL,get_translations): Update to use
53900         the new TP address.
53901         (usage): Fix typo
53902         (gnulib_mk): New variable.
53903
53904 2007-07-05  Jim Meyering  <jim@meyering.net>
53905
53906         Don't let endgrent clobber errno, no matter how improbable.
53907         * lib/getugroups.c (getugroups): Save and restore errno around
53908         endgrent call.
53909
53910         Close the group DB even when failing with 2^31 or more members.
53911         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
53912
53913 2007-07-04  Jim Meyering  <jim@meyering.net>
53914
53915         * lib/getugroups.h: New file.
53916         * lib/getugroups.c: Include "getugroups.h".
53917         Remove uses of "register" keyword.
53918         Move local variable, "cp", down into scope where used.
53919         Give "username" parameter the "const" attribute.
53920         * modules/getugroups (Files): Add lib/getugroups.h
53921
53922 2007-07-04  Karl Berry  <karl@gnu.org>
53923
53924         * MODULES.html.sh (func_all_modules): Complete rename of
53925         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
53926
53927 2007-07-02  Bruno Haible  <bruno@clisp.org>
53928
53929         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
53930         mode, when inttypes.h comes from gnulib.
53931         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53932
53933 2007-07-02  Simon Josefsson  <simon@josefsson.org>
53934
53935         * NEWS: Mention lgpl module name change.
53936
53937         * modules/lgpl-2.1: Renamed from lgpl.
53938
53939         * NEWS: Mention gpl module name change.
53940
53941         * modules/gpl-3.0: New file, based on gpl-2.0.
53942
53943         * modules/gpl-2.0: Renamed from gpl.
53944
53945         * modules/gpl: Fix filename, doc/gpl.texi is now found at
53946         doc/gpl-2.0.texi.
53947
53948 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53949
53950         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
53951         #define __STDC_LIMIT_MACROS temporarily while including
53952         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
53953         Problem reported by Joel E. Denny in
53954         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
53955
53956 2007-07-01  Bruno Haible  <bruno@clisp.org>
53957
53958         * lib/unistdio.h: New file.
53959         * lib/unistdio/u-asnprintf.h: New file.
53960         * lib/unistdio/u-asprintf.h: New file.
53961         * lib/unistdio/u-printf-args.c: New file.
53962         * lib/unistdio/u-printf-args.h: New file.
53963         * lib/unistdio/u-printf-parse.h: New file.
53964         * lib/unistdio/u-snprintf.h: New file.
53965         * lib/unistdio/u-sprintf.h: New file.
53966         * lib/unistdio/u-vasprintf.h: New file.
53967         * lib/unistdio/u-vsnprintf.h: New file.
53968         * lib/unistdio/u-vsprintf.h: New file.
53969         * lib/unistdio/ulc-asnprintf.c: New file.
53970         * lib/unistdio/ulc-asprintf.c: New file.
53971         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
53972         * lib/unistdio/ulc-printf-parse.c: New file.
53973         * lib/unistdio/ulc-snprintf.c: New file.
53974         * lib/unistdio/ulc-sprintf.c: New file.
53975         * lib/unistdio/ulc-vasnprintf.c: New file.
53976         * lib/unistdio/ulc-vasprintf.c: New file.
53977         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
53978         * lib/unistdio/ulc-vsnprintf.c: New file.
53979         * lib/unistdio/ulc-vsprintf.c: New file.
53980         * lib/unistdio/u8-asnprintf.c: New file.
53981         * lib/unistdio/u8-asprintf.c: New file.
53982         * lib/unistdio/u8-printf-parse.c: New file.
53983         * lib/unistdio/u8-snprintf.c: New file.
53984         * lib/unistdio/u8-sprintf.c: New file.
53985         * lib/unistdio/u8-vasnprintf.c: New file.
53986         * lib/unistdio/u8-vasprintf.c: New file.
53987         * lib/unistdio/u8-vsnprintf.c: New file.
53988         * lib/unistdio/u8-vsprintf.c: New file.
53989         * lib/unistdio/u8-u8-asnprintf.c: New file.
53990         * lib/unistdio/u8-u8-asprintf.c: New file.
53991         * lib/unistdio/u8-u8-snprintf.c: New file.
53992         * lib/unistdio/u8-u8-sprintf.c: New file.
53993         * lib/unistdio/u8-u8-vasnprintf.c: New file.
53994         * lib/unistdio/u8-u8-vasprintf.c: New file.
53995         * lib/unistdio/u8-u8-vsnprintf.c: New file.
53996         * lib/unistdio/u8-u8-vsprintf.c: New file.
53997         * lib/unistdio/u16-asnprintf.c: New file.
53998         * lib/unistdio/u16-asprintf.c: New file.
53999         * lib/unistdio/u16-printf-parse.c: New file.
54000         * lib/unistdio/u16-snprintf.c: New file.
54001         * lib/unistdio/u16-sprintf.c: New file.
54002         * lib/unistdio/u16-vasnprintf.c: New file.
54003         * lib/unistdio/u16-vasprintf.c: New file.
54004         * lib/unistdio/u16-vsnprintf.c: New file.
54005         * lib/unistdio/u16-vsprintf.c: New file.
54006         * lib/unistdio/u16-u16-asnprintf.c: New file.
54007         * lib/unistdio/u16-u16-asprintf.c: New file.
54008         * lib/unistdio/u16-u16-snprintf.c: New file.
54009         * lib/unistdio/u16-u16-sprintf.c: New file.
54010         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54011         * lib/unistdio/u16-u16-vasprintf.c: New file.
54012         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54013         * lib/unistdio/u16-u16-vsprintf.c: New file.
54014         * lib/unistdio/u32-asnprintf.c: New file.
54015         * lib/unistdio/u32-asprintf.c: New file.
54016         * lib/unistdio/u32-printf-parse.c: New file.
54017         * lib/unistdio/u32-snprintf.c: New file.
54018         * lib/unistdio/u32-sprintf.c: New file.
54019         * lib/unistdio/u32-vasnprintf.c: New file.
54020         * lib/unistdio/u32-vasprintf.c: New file.
54021         * lib/unistdio/u32-vsnprintf.c: New file.
54022         * lib/unistdio/u32-vsprintf.c: New file.
54023         * lib/unistdio/u32-u32-asnprintf.c: New file.
54024         * lib/unistdio/u32-u32-asprintf.c: New file.
54025         * lib/unistdio/u32-u32-snprintf.c: New file.
54026         * lib/unistdio/u32-u32-sprintf.c: New file.
54027         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54028         * lib/unistdio/u32-u32-vasprintf.c: New file.
54029         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54030         * lib/unistdio/u32-u32-vsprintf.c: New file.
54031         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54032         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54033         * tests/unistdio/test-ulc-printf1.h: New file.
54034         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54035         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54036         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54037         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54038         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54039         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54040         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54041         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54042         * tests/unistdio/test-u8-asnprintf1.c: New file.
54043         * tests/unistdio/test-u8-asnprintf1.h: New file.
54044         * tests/unistdio/test-u8-printf1.h: New file.
54045         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54046         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54047         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54048         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54049         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54050         * tests/unistdio/test-u8-vasprintf1.c: New file.
54051         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54052         * tests/unistdio/test-u8-vsprintf1.c: New file.
54053         * tests/unistdio/test-u16-asnprintf1.c: New file.
54054         * tests/unistdio/test-u16-asnprintf1.h: New file.
54055         * tests/unistdio/test-u16-printf1.h: New file.
54056         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54057         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54058         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54059         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54060         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54061         * tests/unistdio/test-u16-vasprintf1.c: New file.
54062         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54063         * tests/unistdio/test-u16-vsprintf1.c: New file.
54064         * tests/unistdio/test-u32-asnprintf1.c: New file.
54065         * tests/unistdio/test-u32-asnprintf1.h: New file.
54066         * tests/unistdio/test-u32-printf1.h: New file.
54067         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54068         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54069         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54070         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54071         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54072         * tests/unistdio/test-u32-vasprintf1.c: New file.
54073         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54074         * tests/unistdio/test-u32-vsprintf1.c: New file.
54075         * modules/unistdio/base: New file.
54076         * modules/unistdio/u-printf-args: New file.
54077         * modules/unistdio/ulc-asnprintf: New file.
54078         * modules/unistdio/ulc-asprintf: New file.
54079         * modules/unistdio/ulc-fprintf: New file.
54080         * modules/unistdio/ulc-printf-parse: New file.
54081         * modules/unistdio/ulc-snprintf: New file.
54082         * modules/unistdio/ulc-sprintf: New file.
54083         * modules/unistdio/ulc-vasnprintf: New file.
54084         * modules/unistdio/ulc-vasprintf: New file.
54085         * modules/unistdio/ulc-vfprintf: New file.
54086         * modules/unistdio/ulc-vsnprintf: New file.
54087         * modules/unistdio/ulc-vsprintf: New file.
54088         * modules/unistdio/u8-asnprintf: New file.
54089         * modules/unistdio/u8-asprintf: New file.
54090         * modules/unistdio/u8-printf-parse: New file.
54091         * modules/unistdio/u8-snprintf: New file.
54092         * modules/unistdio/u8-sprintf: New file.
54093         * modules/unistdio/u8-vasnprintf: New file.
54094         * modules/unistdio/u8-vasprintf: New file.
54095         * modules/unistdio/u8-vsnprintf: New file.
54096         * modules/unistdio/u8-vsprintf: New file.
54097         * modules/unistdio/u8-u8-asnprintf: New file.
54098         * modules/unistdio/u8-u8-asprintf: New file.
54099         * modules/unistdio/u8-u8-snprintf: New file.
54100         * modules/unistdio/u8-u8-sprintf: New file.
54101         * modules/unistdio/u8-u8-vasnprintf: New file.
54102         * modules/unistdio/u8-u8-vasprintf: New file.
54103         * modules/unistdio/u8-u8-vsnprintf: New file.
54104         * modules/unistdio/u8-u8-vsprintf: New file.
54105         * modules/unistdio/u16-asnprintf: New file.
54106         * modules/unistdio/u16-asprintf: New file.
54107         * modules/unistdio/u16-printf-parse: New file.
54108         * modules/unistdio/u16-snprintf: New file.
54109         * modules/unistdio/u16-sprintf: New file.
54110         * modules/unistdio/u16-vasnprintf: New file.
54111         * modules/unistdio/u16-vasprintf: New file.
54112         * modules/unistdio/u16-vsnprintf: New file.
54113         * modules/unistdio/u16-vsprintf: New file.
54114         * modules/unistdio/u16-u16-asnprintf: New file.
54115         * modules/unistdio/u16-u16-asprintf: New file.
54116         * modules/unistdio/u16-u16-snprintf: New file.
54117         * modules/unistdio/u16-u16-sprintf: New file.
54118         * modules/unistdio/u16-u16-vasnprintf: New file.
54119         * modules/unistdio/u16-u16-vasprintf: New file.
54120         * modules/unistdio/u16-u16-vsnprintf: New file.
54121         * modules/unistdio/u16-u16-vsprintf: New file.
54122         * modules/unistdio/u32-asnprintf: New file.
54123         * modules/unistdio/u32-asprintf: New file.
54124         * modules/unistdio/u32-printf-parse: New file.
54125         * modules/unistdio/u32-snprintf: New file.
54126         * modules/unistdio/u32-sprintf: New file.
54127         * modules/unistdio/u32-vasnprintf: New file.
54128         * modules/unistdio/u32-vasprintf: New file.
54129         * modules/unistdio/u32-vsnprintf: New file.
54130         * modules/unistdio/u32-vsprintf: New file.
54131         * modules/unistdio/u32-u32-asnprintf: New file.
54132         * modules/unistdio/u32-u32-asprintf: New file.
54133         * modules/unistdio/u32-u32-snprintf: New file.
54134         * modules/unistdio/u32-u32-sprintf: New file.
54135         * modules/unistdio/u32-u32-vasnprintf: New file.
54136         * modules/unistdio/u32-u32-vasprintf: New file.
54137         * modules/unistdio/u32-u32-vsnprintf: New file.
54138         * modules/unistdio/u32-u32-vsprintf: New file.
54139         * modules/unistdio/ulc-asnprintf-tests: New file.
54140         * modules/unistdio/ulc-vasnprintf-tests: New file.
54141         * modules/unistdio/ulc-vasprintf-tests: New file.
54142         * modules/unistdio/ulc-vsnprintf-tests: New file.
54143         * modules/unistdio/ulc-vsprintf-tests: New file.
54144         * modules/unistdio/u8-asnprintf-tests: New file.
54145         * modules/unistdio/u8-vasnprintf-tests: New file.
54146         * modules/unistdio/u8-vasprintf-tests: New file.
54147         * modules/unistdio/u8-vsnprintf-tests: New file.
54148         * modules/unistdio/u8-vsprintf-tests: New file.
54149         * modules/unistdio/u16-asnprintf-tests: New file.
54150         * modules/unistdio/u16-vasnprintf-tests: New file.
54151         * modules/unistdio/u16-vasprintf-tests: New file.
54152         * modules/unistdio/u16-vsnprintf-tests: New file.
54153         * modules/unistdio/u16-vsprintf-tests: New file.
54154         * modules/unistdio/u32-asnprintf-tests: New file.
54155         * modules/unistdio/u32-vasnprintf-tests: New file.
54156         * modules/unistdio/u32-vasprintf-tests: New file.
54157         * modules/unistdio/u32-vsnprintf-tests: New file.
54158         * modules/unistdio/u32-vsprintf-tests: New file.
54159         * MODULES.html.sh (Unicode string functions): Add the new modules.
54160
54161 2007-07-01  Bruno Haible  <bruno@clisp.org>
54162
54163         * lib/sprintf.c (sprintf): Limit the available length estimation,
54164         to avoid address wraparound.
54165         * lib/vsprintf.c (vsprintf): Likewise.
54166         * modules/sprintf-posix (Dependencies): Add stdint.
54167         * modules/vsprintf-posix (Dependencies): Likewise.
54168
54169 2007-07-01  Bruno Haible  <bruno@clisp.org>
54170
54171         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
54172         Windows PATH as well. Conservative double-quoting. Comments.
54173
54174 2007-07-01  Bruno Haible  <bruno@clisp.org>
54175             Eric Blake  <ebb9@byu.net>
54176             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54177
54178         * gnulib-tool (self_abspathname): Fix algorithm to cope with
54179         empty components in $PATH, denoting '.'.
54180
54181 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54182
54183         * gnulib-tool: Fix indentation.
54184         (func_create_megatestdir): Likewise.
54185         Report by Bruno Haible.
54186
54187 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54188
54189         Sync from Automake.
54190         * build-aux/gnupload: Fix shell portability issues with for loops.
54191         Report by Karl Berry.
54192
54193 2007-06-29  Simon Josefsson  <simon@josefsson.org>
54194
54195         * build-aux/maint.mk (POURL): Use translationproject.org.
54196
54197 2007-06-27  Simon Josefsson  <simon@josefsson.org>
54198             Bruno Haible  <bruno@clisp.org>
54199
54200         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
54201         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
54202         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
54203         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
54204         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
54205
54206 2007-06-27  Bruno Haible  <bruno@clisp.org>
54207
54208         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
54209         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
54210
54211 2007-06-26  Karl Berry  <karl@gnu.org>
54212
54213         * MODULES.html.sh: remove xreadlink-with-size.
54214
54215 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54216
54217         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
54218         method that I hope also handles the double-include problem noted
54219         by Bruno Haible in
54220         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
54221
54222 2007-06-23  Bruno Haible  <bruno@clisp.org>
54223
54224         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54225         Don't let the 'mostlyclean' target fail if the last subdirectory could
54226         not be removed.
54227         Reported by Karl Berry.
54228
54229 2007-06-23  Bruno Haible  <bruno@clisp.org>
54230
54231         * gnulib-tool (echo): Add a speedier workaround for ksh.
54232         * tests/test-echo.sh: Likewise.
54233
54234 2007-06-23  Bruno Haible  <bruno@clisp.org>
54235
54236         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
54237         * tests/test-echo.sh: Likewise.
54238
54239 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54240
54241         * gnulib-tool (IFS): Initialize early, so we don't set it to
54242         empty later.
54243         (self_abspathname): Rewrite algorithm to set it, reindent.
54244         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
54245         (func_create_megatestdir): Merge some sed scripts.
54246
54247 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54248
54249         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
54250         exposed by Sun Studio 11 cc on Solaris 8.
54251
54252 2007-06-22  Bruno Haible  <bruno@clisp.org>
54253
54254         * gnulib-tool (echo): Ensure the echo primitive does not interpret
54255         backslashes.
54256         * tests/test-echo.sh: New file.
54257
54258 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54259
54260         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
54261         simplify `sed_replace_build_aux' scripts, they are portable but
54262         echoing them with `echo' is not.
54263         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
54264
54265 2007-06-21  Karl Berry  <karl@gnu.org>
54266
54267         * config/srclist.txt: guess we can't handle the licenses via
54268         srclist at the moment.
54269
54270 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54271
54272         * MODULES.html.sh: Add include_next.
54273         * modules/include_next: New file.
54274
54275 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54276
54277         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54278         INCLUDE_NEXT.
54279         (gl_CHECK_NEXT_HEADERS): New macro.
54280         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54281         the obsolescent gl_ABSOLUTE_HEADER.
54282         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54283         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54284         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54285         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54286         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54287         * m4/math_h.m4 (gl_MATH_H): Likewise.
54288         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54289         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54290         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54291         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54292         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54293         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54294         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54295         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54296         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54297         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54298         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54299         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54300         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54301         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54302         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54303         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54304         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54305         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54306         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54307         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54308         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
54309         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
54310         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
54311         * lib/float_.h: Likewise.
54312         * lib/inttypes_.h: Likewise.
54313         * lib/math_.h: Likewise.
54314         * lib/search_.h: Likewise.
54315         * lib/signal_.h: Likewise.
54316         * lib/stdint_.h: Likewise.
54317         * lib/stdio_.h: Likewise.
54318         * lib/stdlib_.h: Likewise.
54319         * lib/string_.h: Likewise.
54320         * lib/sys_stat_.h: Likewise.
54321         * lib/sys_time_.h: Likewise.
54322         * lib/time_.h: Likewise.
54323         * lib/unistd_.h: Likewise.
54324         * lib/wchar_.h: Likewise.
54325         * lib/wctype_.h: Likewise.
54326         * lib/dirent_.h: Likewise.
54327         * lib/iconv_.h: Likewise.
54328         * lib/locale_.h: Likewise.
54329         * lib/netinet_in_.h: Likewise.
54330         * lib/sys_select_.h: Likewise.
54331         * lib/sys_socket_.h: Likewise.
54332         * lib/sysexits_.h: Likewise.
54333         * modules/fcntl (Depends-on): Depend on include_next, not
54334         absolute_header.
54335         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
54336         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
54337         * modules/fchdir: Likewise.
54338         * modules/float: Likewise.
54339         * modules/iconv_open: Likewise.
54340         * modules/inttypes: Likewise.
54341         * modules/locale: Likewise.
54342         * modules/math: Likewise.
54343         * modules/netinet_in: Likewise.
54344         * modules/search: Likewise.
54345         * modules/signal: Likewise.
54346         * modules/stdint: Likewise.
54347         * modules/stdio: Likewise.
54348         * modules/stdlib: Likewise.
54349         * modules/string: Likewise.
54350         * modules/sys_select: Likewise.
54351         * modules/sys_socket: Likewise.
54352         * modules/sys_stat: Likewise.
54353         * modules/sys_time: Likewise.
54354         * modules/sysexits: Likewise.
54355         * modules/time: Likewise.
54356         * modules/unistd: Likewise.
54357         * modules/wchar: Likewise.
54358         * modules/wctype: Likewise.
54359         * modules/sys_stat: Change maintainer to "all".
54360         * modules/unistd: Likewise.
54361
54362 2007-06-20  Karl Berry  <karl@gnu.org>
54363
54364         * config/srclist.txt: track www changes in license files.
54365
54366 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
54367
54368         * build-aux/bootstrap: Remove stray dot.
54369         Make sure build_aux settings are honored when linking
54370         gnulib_extra_files.
54371
54372 2007-06-19  Eric Blake  <ebb9@byu.net>
54373
54374         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54375         Allow compilation on cygwin.
54376
54377 2007-06-19  Jim Meyering  <jim@meyering.net>
54378
54379         xreadlink-with-size: Remove module.  No longer used.
54380         Ex-callers now use xreadlink or mreadlink-with-size.
54381         * modules/xreadlink-with-size: Remove module.
54382         * lib/xreadlink-with-size.c: Remove file.
54383         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
54384         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
54385         just before the function definition *is* accurate.
54386
54387         Eliminate one way canonicalize_filename_mode could exit.
54388         * lib/canonicalize.c (canonicalize_filename_mode):
54389         Use mreadlink_with_size, not xreadlink_with_size.
54390
54391 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
54392
54393         Detect porting problems to FreeBSD/arm, which has time_t wider than
54394         long int.  Original problem reported for GNU diff by Xin Li in
54395         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
54396         * modules/getdate (Depends-on): Add intprops, verify.
54397         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
54398         is an integer type no wider than long int.
54399
54400 2007-06-18  Jim Meyering  <jim@meyering.net>
54401
54402         New module: mreadlink-with-size.
54403         * MODULES.html.sh: Add mreadlink-with-size.
54404         * modules/mreadlink-with-size: New module
54405         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
54406         not xreadlink-with-size.
54407         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
54408
54409 2007-06-16  Bruno Haible  <bruno@clisp.org>
54410
54411         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
54412         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
54413         Reported by Gary V. Vaughan <gary@gnu.org>.
54414
54415 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54416
54417         Revamp lchown so that it lives in unistd.h where it belongs.
54418         * lib/lchown.h: Remove.
54419         * lib/dirchownmod.c: Don't include lib/lchown.h.
54420         * lib/fchownat.c: Likewise.
54421         * lib/openat.c: Likewise.
54422         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
54423         does not follow symlinks.
54424         (EOPNOTSUPP): Define if not defined.
54425         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
54426         is defined to 0.
54427         (lchown): New decl.
54428         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
54429         Do not check for lchown decl.
54430         Set REPLACE_LCHOWN.
54431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
54432         REPLACE_LCHOWN.
54433         * modules/chown: Make it clear it follows symlinks.
54434         * modules/lchown: Make it clear it doesn't follow symlinks.
54435         (Files): Remove lib/lchown.h
54436         (Depends-on): Add unistd.
54437         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
54438         (Include): Include <unistd.h>, not "lchown.h".
54439         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
54440         REPLACE_LCHOWN.
54441
54442 2007-06-15  Jim Meyering  <jim@meyering.net>
54443
54444         Change license (GPL to LGPL) of fsusage and dependents.
54445         * modules/fsusage (License): Change to LGPL.
54446         * modules/full-read (License): Likewise.
54447         * modules/full-write (License): Likewise.
54448         * modules/safe-read (License): Likewise.
54449         * modules/safe-write (License): Likewise.
54450
54451 2007-06-14  Ben Pfaff  <blp@gnu.org>
54452
54453         Missing part of allocsa -> malloca transition.
54454         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
54455         gl_MALLOCA.
54456
54457 2007-06-12  Bruno Haible  <bruno@clisp.org>
54458
54459         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
54460         to ia64, x86_64, i386.
54461         Reported by Eric Blake.
54462
54463 2007-06-12  Bruno Haible  <bruno@clisp.org>
54464
54465         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
54466         cross-compiling to x86_64.
54467
54468 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
54469
54470         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
54471         glitch reported by Ralf Wildenhues in
54472         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
54473
54474         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
54475         Vin Shelton.
54476
54477 2007-06-11  Bruno Haible  <bruno@clisp.org>
54478
54479         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
54480         replacement string.
54481         Reported by Eric Blake.
54482
54483 2007-06-10  Bruno Haible  <bruno@clisp.org>
54484
54485         Prepare vasnprintf code for use with Unicode strings.
54486         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
54487         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
54488         TYPE_U32_STRING.
54489         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
54490         a_u32_string variants.
54491         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54492         * lib/printf-args.c: Don't include config.h and the specification
54493         header if PRINTF_FETCHARGS is already defined.
54494         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54495         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
54496         TYPE_U16_STRING, TYPE_U32_STRING.
54497         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
54498         u16_directive, u16_directives, u32_directive, u32_directives): New
54499         types.
54500         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
54501         New declarations.
54502         * lib/printf-parse.c: Don't include config.h and the specification
54503         header if PRINTF_PARSE is already defined. Eliminate the set of
54504         parameters for WIDE_CHAR_VERSION; the user of this file must provide
54505         them now. Include c-ctype.h.
54506         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
54507         directive and CHAR_T_ONLY_ASCII.
54508         * lib/vasnprintf.c: Don't include config.h and the specification header
54509         if VASNPRINTF is already defined.
54510         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
54511         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
54512         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
54513         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
54514         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
54515         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
54516         code accordingly.
54517         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
54518         pad_ourselves also in this case, with the 'c' and 's' directives, and
54519         with a different notion of "width".
54520         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
54521
54522 2007-06-10  Bruno Haible  <bruno@clisp.org>
54523
54524         * modules/unistr/u32-mbsnlen: New file.
54525         * lib/unistr/u32-mbsnlen.c: New file.
54526
54527         * modules/unistr/u16-mbsnlen: New file.
54528         * lib/unistr/u16-mbsnlen.c: New file.
54529
54530         * modules/unistr/u8-mbsnlen: New file.
54531         * lib/unistr/u8-mbsnlen.c: New file.
54532
54533         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
54534         declarations.
54535
54536 2007-06-10  Bruno Haible  <bruno@clisp.org>
54537
54538         * lib/string_.h (mbsnlen): New declaration.
54539         * lib/mbsnlen.c: New file.
54540         * m4/mbsnlen.m4: New file.
54541         * modules/mbsnlen: New file.
54542         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
54543         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
54544         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
54545
54546 2007-06-10  Bruno Haible  <bruno@clisp.org>
54547
54548         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
54549
54550 2007-06-10  Bruno Haible  <bruno@clisp.org>
54551
54552         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
54553         * lib/mbuiter.h: Likewise.
54554
54555 2007-06-10  Bruno Haible  <bruno@clisp.org>
54556
54557         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
54558         declaration.
54559
54560 2007-06-10  Karl Berry  <karl@gnu.org>
54561
54562         * config/srclist.txt: remove gettext entries, Bruno prefers
54563         to update individually.
54564
54565 2007-06-10  Bruno Haible  <bruno@clisp.org>
54566
54567         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
54568         'maxlen'. Ensure only length + width bytes are allocated, not
54569         length + 1 + width.
54570
54571 2007-06-09  Bruno Haible  <bruno@clisp.org>
54572
54573         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
54574         (CHAR_T): Remove macro.
54575         (VASNPRINTF): Update.
54576
54577 2007-06-09  Bruno Haible  <bruno@clisp.org>
54578
54579         * MODULES.html.sh (Unicode string functions): Add the new modules.
54580
54581         * modules/uniconv/u32-conv-to-enc: New file.
54582         * lib/uniconv/u32-conv-to-enc.c: New file.
54583         * modules/uniconv/u32-conv-to-enc-tests: New file.
54584         * tests/uniconv/test-u32-conv-to-enc.c: New file.
54585
54586         * modules/uniconv/u16-conv-to-enc: New file.
54587         * lib/uniconv/u16-conv-to-enc.c: New file.
54588         * lib/uniconv/u-conv-to-enc.h: New file.
54589         * modules/uniconv/u16-conv-to-enc-tests: New file.
54590         * tests/uniconv/test-u16-conv-to-enc.c: New file.
54591
54592         * modules/uniconv/u8-conv-to-enc: New file.
54593         * lib/uniconv/u8-conv-to-enc.c: New file.
54594         * modules/uniconv/u8-conv-to-enc-tests: New file.
54595         * tests/uniconv/test-u8-conv-to-enc.c: New file.
54596
54597         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
54598         u32_conv_to_encoding): New declarations.
54599
54600 2007-06-09  Bruno Haible  <bruno@clisp.org>
54601
54602         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
54603
54604 2007-06-09  Bruno Haible  <bruno@clisp.org>
54605
54606         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
54607         * modules/malloca: Renamed from modules/allocsa, updated.
54608         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
54609         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
54610         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
54611         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
54612         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
54613         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
54614         * modules/xmalloca: Renamed from modules/xallocsa, updated.
54615         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
54616         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
54617         * modules/c-strcasestr (Depends-on): Update.
54618         * lib/c-strcasestr.c: Update.
54619         * modules/c-strstr (Depends-on): Update.
54620         * lib/c-strstr.c: Update.
54621         * modules/canonicalize-lgpl (Depends-on): Update.
54622         * lib/canonicalize-lgpl.c: Update.
54623         * modules/clean-temp (Depends-on): Update.
54624         * lib/clean-temp.c: Update.
54625         * modules/csharpcomp (Depends-on): Update.
54626         * lib/csharpcomp.c: Update.
54627         * modules/csharpexec (Depends-on): Update.
54628         * lib/csharpexec.c: Update.
54629         * modules/javacomp (Depends-on): Update.
54630         * lib/javacomp.c: Update.
54631         * modules/javaexec (Depends-on): Update.
54632         * lib/javaexec.c: Update.
54633         * modules/mbscasestr (Depends-on): Update.
54634         * lib/mbscasestr.c: Update.
54635         * modules/mbsstr (Depends-on): Update.
54636         * lib/mbsstr.c: Update.
54637         * modules/setenv (Depends-on): Update.
54638         * lib/setenv.c: Update.
54639         * modules/strcasestr (Depends-on): Update.
54640         * lib/strcasestr.c: Update.
54641         * modules/striconveha (Depends-on): Update.
54642         * lib/striconveha.c: Update.
54643         * modules/relocatable-prog-wrapper (Files): Update.
54644         * lib/relocwrapper.c: Update.
54645         * build-aux/install-reloc: Update.
54646         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
54647
54648 2007-06-08  Bruno Haible  <bruno@clisp.org>
54649
54650         Port to uClibc.
54651         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
54652         * lib/fpurge.c (fpurge): Likewise.
54653         * lib/freading.c (freading): Likewise.
54654         * lib/fseeko.c (rpl_fseeko): Likewise.
54655         * lib/fseterr.c (fseterr): Likewise.
54656         * lib/fwriting.c (fwriting): Likewise.
54657         * tests/test-fflush.c (main): Avoid a failure on uClibc.
54658
54659 2007-06-08  Bruno Haible  <bruno@clisp.org>
54660
54661         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
54662         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
54663         * modules/gettext (Files): Add m4/intlmacosx.m4.
54664
54665 2007-06-07  Bruno Haible  <bruno@clisp.org>
54666
54667         * modules/localename-tests: New file.
54668         * tests/test-localename.c: New file.
54669
54670         New module 'localename'.
54671         * lib/localename.h: New file.
54672         * lib/localename.c: New file, from GNU gettext.
54673         * m4/localename.m4: New file.
54674         * modules/localename: New file.
54675
54676 2007-06-07  Bruno Haible  <bruno@clisp.org>
54677
54678         Work around the lack of <wchar.h> on some builds of uClibc.
54679         * doc/headers/wchar.texi: Update.
54680         * lib/wchar_.h: Include <wchar.h> only if it exists.
54681         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
54682         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
54683         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
54684         doesn't exist.
54685         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
54686         * modules/mbfile (Depends-on): Add wchar.
54687         * modules/mbiter (Depends-on): Likewise.
54688         * modules/mbuiter (Depends-on): Likewise.
54689         Reported by Simon Josefsson.
54690
54691 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54692
54693         Work around problem reported by Steven M. Schweda in
54694         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
54695         Tru64 5.1B with the Compaq compiler environment installed declares
54696         an 'isblank' function but does not define it in the C library.
54697         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
54698         * lib/regex_internal.h (isblank): Likewise.
54699         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
54700         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54701
54702 2007-06-05  Bruno Haible  <bruno@clisp.org>
54703
54704         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
54705         ia64.
54706         * modules/printf-safe: New file.
54707         * modules/fprintf-posix (Depends-on): Add printf-safe.
54708         * modules/printf-posix (Depends-on): Likewise.
54709         * modules/snprintf-posix (Depends-on): Likewise.
54710         * modules/sprintf-posix (Depends-on): Likewise.
54711         * modules/vasnprintf-posix (Depends-on): Likewise.
54712         * modules/vasprintf-posix (Depends-on): Likewise.
54713         * modules/vfprintf-posix (Depends-on): Likewise.
54714         * modules/vprintf-posix (Depends-on): Likewise.
54715         * modules/vsnprintf-posix (Depends-on): Likewise.
54716         * modules/vsprintf-posix (Depends-on): Likewise.
54717         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
54718         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
54719         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
54720         "no" on i386, x86_64, ia64.
54721         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
54722         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54723         on i386, x86_64, ia64.
54724         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
54725         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54726         on i386, x86_64, ia64.
54727         * tests/test-vasnprintf-posix.c: Include float.h.
54728         (LDBL80_WORDS): New macro.
54729         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54730         on i386, x86_64, ia64.
54731         * tests/test-vasprintf-posix.c: Include float.h.
54732         (LDBL80_WORDS): New macro.
54733         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54734         on i386, x86_64, ia64.
54735         * tests/test-snprintf-posix.c: Include float.h.
54736         * tests/test-sprintf-posix.c: Likewise.
54737         * tests/test-vsnprintf-posix.c: Likewise.
54738         * tests/test-vsprintf-posix.c: Likewise.
54739
54740 2007-06-05  Bruno Haible  <bruno@clisp.org>
54741
54742         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
54743         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
54744         non-IEEE numbers on i386, x86_64, ia64.
54745         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
54746         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
54747         * tests/test-isnanl.h: Include float.h.
54748         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
54749
54750 2007-06-05  Bruno Haible  <bruno@clisp.org>
54751
54752         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
54753         also the %a / %A. Handle the %a / %A code before this extra handling.
54754
54755 2007-06-05  Bruno Haible  <bruno@clisp.org>
54756
54757         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
54758         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
54759
54760 2007-06-05  Bruno Haible  <bruno@clisp.org>
54761
54762         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
54763         typo in variable name.
54764
54765 2007-06-05  Eric Blake  <ebb9@byu.net>
54766
54767         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
54768         Reported by Simon Josefsson.
54769
54770 2007-06-04  Bruno Haible  <bruno@clisp.org>
54771
54772         Avoid test failures on some PowerPC platforms.
54773         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
54774         Define differently for PowerPC.
54775         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
54776         Reported by Gary V. Vaughan <gary@gnu.org>.
54777
54778 2007-06-02  Bruno Haible  <bruno@clisp.org>
54779
54780         Fix test-stdint failure on FreeBSD/ia64.
54781         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
54782         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
54783         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
54784         * doc/headers/stdint.texi: Update.
54785
54786 2007-06-01  Bruno Haible  <bruno@clisp.org>
54787
54788         * tests/test-binary-io.c (main): Pass a third argument to open().
54789         Reported by Gary V. Vaughan <gary@gnu.org>.
54790
54791 2007-06-01  Bruno Haible  <bruno@clisp.org>
54792
54793         * doc/functions/frexpl.texi: Update for mingw.
54794
54795 2007-06-01  Bruno Haible  <bruno@clisp.org>
54796
54797         * tests/test-lseek.c (main): Disable test of errno for invalid third
54798         argument.
54799         * doc/functions/lseek.texi: Update.
54800         Reported by Gary V. Vaughan <gary@gnu.org>.
54801
54802 2007-05-28  Bruno Haible  <bruno@clisp.org>
54803
54804         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
54805
54806 2007-05-31  Eric Blake  <ebb9@byu.net>
54807
54808         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
54809         cross compiling.
54810
54811 2007-05-30  Eric Blake  <ebb9@byu.net>
54812         and Bruno Haible  <bruno@clisp.org>
54813
54814         Work around mingw test failures exposed by m4-1.4.9b.
54815         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
54816         * tests/test-unistd.c: Disable uid_t and git_t tests for the
54817         moment.
54818
54819 2007-05-30  Bruno Haible  <bruno@clisp.org>
54820
54821         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
54822         assuming that they are closed. Needed on HP-UX 11.
54823
54824 2007-05-29  Bruno Haible  <bruno@clisp.org>
54825
54826         Fix a problem with #include_next.
54827         * lib/dirent_.h: Split the double-inclusion guard.
54828         * lib/fcntl_.h: Likewise.
54829         * lib/float_.h: Likewise.
54830         * lib/iconv_.h: Likewise.
54831         * lib/inttypes_.h: Likewise.
54832         * lib/locale_.h: Likewise.
54833         * lib/math_.h: Likewise.
54834         * lib/netinet_in_.h: Likewise.
54835         * lib/search_.h: Likewise.
54836         * lib/signal_.h: Likewise.
54837         * lib/stdint_.h: Likewise.
54838         * lib/stdio_.h: Likewise.
54839         * lib/stdlib_.h: Likewise.
54840         * lib/string_.h: Likewise.
54841         * lib/sys_select_.h: Likewise.
54842         * lib/sys_socket_.h: Likewise.
54843         * lib/sys_stat_.h: Likewise.
54844         * lib/sys_time_.h: Likewise.
54845         * lib/sysexits_.h: Likewise.
54846         * lib/time_.h: Likewise.
54847         * lib/unistd_.h: Likewise.
54848         * lib/wchar_.h: Likewise.
54849         * lib/wctype_.h: Likewise.
54850
54851 2007-05-29  Bruno Haible  <bruno@clisp.org>
54852
54853         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
54854         for the moment.
54855
54856 2007-05-29  Bruno Haible  <bruno@clisp.org>
54857
54858         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
54859         invocation.
54860         Reported by Eric Blake.
54861
54862 2007-05-29  Bruno Haible  <bruno@clisp.org>
54863
54864         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
54865         compiling case.
54866
54867 2007-05-29  Eric Blake  <ebb9@byu.net>
54868             Bruno Haible  <bruno@clisp.org>
54869
54870         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
54871         cross compiles.
54872
54873 2007-05-28  Eric Blake  <ebb9@byu.net>
54874
54875         * modules/closein-tests (test_closein_LDADD): Support test on
54876         cygwin with libtool.
54877
54878 2007-05-28  Bruno Haible  <bruno@clisp.org>
54879
54880         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
54881         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54882         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54883         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54884         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54885         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54886         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54887         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54888         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54889
54890 2007-05-28  Eric Blake  <ebb9@byu.net>
54891
54892         Unconditionally include <config.h> in unit tests.
54893         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
54894         * tests/test-allocsa.c, tests/test-arcfour.c,
54895         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
54896         tests/test-array_list.c, tests/test-array_oset.c,
54897         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
54898         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
54899         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
54900         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
54901         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
54902         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
54903         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
54904         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
54905         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
54906         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
54907         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
54908         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
54909         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
54910         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
54911         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
54912         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
54913         test-md5.c, test-memmem.c, test-printf-posix.c,
54914         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
54915         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
54916         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
54917         test-strcasestr.c, test-striconv.c, test-striconveh.c,
54918         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
54919         test-vasnprintf-posix2.c, test-vasnprintf.c,
54920         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
54921         test-vfprintf-posix.c, test-vprintf-posix.c,
54922         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
54923         test-xvasprintf.c: Likewise.
54924
54925 2007-05-28  Bruno Haible  <bruno@clisp.org>
54926
54927         * gnulib-tool (func_import): Remember the --with-tests command-line
54928         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
54929         Reported by Eric Blake.
54930
54931 2007-05-28  Bruno Haible  <bruno@clisp.org>
54932
54933         * modules/ftell-tests: New file.
54934         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
54935         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
54936
54937         * lib/ftell.c: New file.
54938         * modules/ftell: New file.
54939         * m4/ftell.m4: New file.
54940         * doc/functions/ftell.texi: Update.
54941         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
54942         REPLACE_FTELL.
54943         * lib/stdio_.h (rpl_ftell): New declaration.
54944         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
54945         REPLACE_FTELL.
54946
54947 2007-05-28  Eric Blake  <ebb9@byu.net>
54948
54949         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
54950
54951 2007-05-28  Bruno Haible  <bruno@clisp.org>
54952
54953         * modules/fseek-tests: New file.
54954         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
54955         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
54956
54957         * lib/fseek.c: New file.
54958         * modules/fseek: New file.
54959         * m4/fseek.m4: New file.
54960         * doc/functions/fseek.texi: Update.
54961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
54962         REPLACE_FSEEK.
54963         * lib/stdio_.h (rpl_fseek): New declaration.
54964         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
54965         REPLACE_FSEEK.
54966
54967 2007-05-28  Bruno Haible  <bruno@clisp.org>
54968
54969         * lib/stdio_.h (fflush): More comments.
54970
54971 2007-05-28  Bruno Haible  <bruno@clisp.org>
54972
54973         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
54974         runtime test.
54975
54976 2007-05-28  Eric Blake  <ebb9@byu.net>
54977
54978         Improve lseek module.
54979         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
54980         * lib/unistd_.h (lseek): Scale back link warning message.
54981         * tests/test-lseek.c: Beef up test.
54982         * tests/test-lseek.sh: Exercise more facets of lseek.
54983         Reported by Bruno Haible.
54984
54985 2007-05-28  Bruno Haible  <bruno@clisp.org>
54986
54987         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
54988         to define.
54989
54990 2007-05-27  Bruno Haible  <bruno@clisp.org>
54991
54992         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
54993
54994 2007-05-27  Bruno Haible  <bruno@clisp.org>
54995
54996         * modules/openmp: New file.
54997         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
54998         Noah Misch.
54999
55000 2007-05-26  Bruno Haible  <bruno@clisp.org>
55001
55002         * modules/chdir-long (Depends-on): Add fchdir.
55003         * modules/chdir-safer (Depends-on): Likewise.
55004         * modules/fts (Depends-on): Likewise.
55005         * modules/fts-lgpl (Depends-on): Likewise.
55006         * modules/openat (Depends-on): Likewise.
55007         * modules/savewd (Depends-on): Likewise.
55008
55009 2007-05-24  Eric Blake  <ebb9@byu.net>
55010
55011         Fix lseek on mingw.
55012         * modules/lseek: New module.
55013         * m4/lseek.m4: New file.
55014         * lib/lseek.c: New file.
55015         * modules/lseek-tests: New file.
55016         * tests/test-lseek.c: New file.
55017         * tests/test-lseek.sh: New file.
55018         * MODULES.html.sh: Document lseek module.
55019         * modules/fflush (Depends-on): Add lseek, fseeko.
55020         * modules/fseeko (Depends-on): Likewise.
55021         * modules/ftello (Depends-on): Likewise.
55022         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55023         broken.
55024         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55025         broken.
55026         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55027         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55028         * lib/ftello.c (rpl_ftello): Likewise.
55029         * tests/test-fseeko.c (main): Test this.
55030         * tests/test-fseeko.sh: Likewise.
55031         * tests/test-ftello.c (main): Likewise.
55032         * tests/test-ftello.sh: Likewise.
55033         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55034         implies replacing fseek.
55035         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55036         HAVE_FTELLO.
55037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55038         * modules/unistd (Makefile.am): Likewise.
55039         * lib/unistd_.h (lseek): Declare a replacement.
55040         * doc/functions/lseek.texi (lseek): Document this fix.
55041         * doc/functions/fseek.texi (fseek): Likewise.
55042         * doc/functions/ftell.texi (ftell): Likewise.
55043
55044 2007-05-24  Bruno Haible  <bruno@clisp.org>
55045
55046         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55047         in the printed representation of a NaN.
55048         * tests/test-vasprintf-posix.c (test_function): Likewise.
55049         * tests/test-snprintf-posix.h (test_function): Likewise.
55050         * tests/test-sprintf-posix.h (test_function): Likewise.
55051         Reported by Eric Blake.
55052
55053 2007-05-23  Eric Blake  <ebb9@byu.net>
55054
55055         Fix fseeko/ftello on cygwin 1.5.24.
55056         * doc/functions/fseeko.texi (fseeko): Document the fix.
55057         * doc/functions/ftello.texi (ftello): Document the fix.
55058         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55059         * doc/functions/stdout.text (stdout): New file.
55060         * doc/functions/stderr.text (stderr): New file.
55061         * doc/gnulib.texi (Function Substitutes): Use new files.
55062         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55063         prior to 1.7.0.
55064         * tests/test-ftello.c (main): Likewise for ftello.
55065         * tests/test-fseeko.sh: New file.
55066         * tests/test-ftello.sh: New file.
55067         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55068         with seekable stdin.
55069         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55070         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55071         (gl_REPLACE_FSEEKO): New macro.
55072         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55073         * modules/fseeko (Files): Distribute fseeko.c.
55074         * modules/ftello (Files): Distribute ftello.c.
55075         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55076         mode.
55077         * lib/ftello.c (rpl_ftello): New file.
55078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55079         fseeko, ftello.
55080         (gl_STDIN_LARGE_OFFSET): New macro.
55081         * modules/stdio (Makefile.am): Perform the replacement.
55082         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55083
55084 2007-05-23  Bruno Haible  <bruno@clisp.org>
55085
55086         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55087         GNULIB_POSIXCHECK is defined.
55088
55089 2007-05-21  Bruno Haible  <bruno@clisp.org>
55090
55091         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55092         Check also the output for NaN arguments. When cross-compiling, guess
55093         no on IRIX.
55094         * lib/vasnprintf.c: Update comments.
55095         * tests/test-vasnprintf-posix.c (strisnan): New function.
55096         (test_function): Use it.
55097         * tests/test-vasprintf-posix.c (strisnan): New function.
55098         (test_function): Use it.
55099         * tests/test-snprintf-posix.h (strisnan): New function.
55100         (test_function): Use it.
55101         * tests/test-sprintf-posix.h (strisnan): New function.
55102         (test_function): Use it.
55103         Reported by Eric Blake.
55104
55105 2007-05-20  Bruno Haible  <bruno@clisp.org>
55106
55107         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55108         numbers that fails on BeOS.
55109         * doc/functions/frexpl.texi: Update.
55110
55111 2007-05-20  Jim Meyering  <jim@meyering.net>
55112
55113         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55114         forced upon us by glibc-2.6.
55115
55116 2007-05-20  Bruno Haible  <bruno@clisp.org>
55117
55118         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55119         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55120         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55121         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55122         NEED_PRINTF_INFINITE.
55123         (is_infinitel): New function.
55124         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55125         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55126         gl_PREREQ_VASNPRINTF_INFINITE.
55127         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55128         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55129         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55130         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55131         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55132         gl_PREREQ_VASNPRINTF_INFINITE.
55133         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55134         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55135         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55136         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55137         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55138         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55139         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55140         * doc/functions/fprintf.texi: Update.
55141         * doc/functions/printf.texi: Update.
55142         * doc/functions/snprintf.texi: Update.
55143         * doc/functions/sprintf.texi: Update.
55144         * doc/functions/vfprintf.texi: Update.
55145         * doc/functions/vprintf.texi: Update.
55146         * doc/functions/vsnprintf.texi: Update.
55147         * doc/functions/vsprintf.texi: Update.
55148
55149 2007-05-20  Bruno Haible  <bruno@clisp.org>
55150
55151         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
55152         was not found in libc.
55153         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55154
55155 2007-05-20  Bruno Haible  <bruno@clisp.org>
55156
55157         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55158         printed as "-nan" instead of "nan".
55159         * tests/test-vasprintf-posix.c (test_function): Likewise.
55160         * tests/test-snprintf-posix.h (test_function): Likewise.
55161         * tests/test-sprintf-posix.h (test_function): Likewise.
55162         Needed for HP-UX 11.
55163
55164 2007-05-20  Jim Meyering  <jim@meyering.net>
55165
55166         Fix buggy test for the fchownat-deref bug.
55167         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
55168         symlink required for the run-test.  Without it, this test would
55169         always declare that fchownat doesn't work, and client code would
55170         unnecessarily use the replacement function with fixed libc.
55171         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
55172         Reported by Greg Schafer.
55173
55174 2007-05-19  Bruno Haible  <bruno@clisp.org>
55175
55176         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
55177         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
55178         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
55179         Needed for IRIX 6.5 and Solaris 2.5.1.
55180
55181 2007-05-19  Bruno Haible  <bruno@clisp.org>
55182
55183         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
55184         (test_function): Skip tests involving -0.0 on platforms where
55185         -0.0 = 0.0.
55186         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
55187         (test_function): Skip tests involving -0.0 on platforms where
55188         -0.0 = 0.0.
55189         * tests/test-snprintf-posix.h (have_minus_zero): New function.
55190         (test_function): Skip tests involving -0.0 on platforms where
55191         -0.0 = 0.0.
55192         * tests/test-sprintf-posix.h (have_minus_zero): New function.
55193         (test_function): Skip tests involving -0.0 on platforms where
55194         -0.0 = 0.0.
55195         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
55196         tests.
55197         * tests/test-printf-posix.h (test_function): Likewise.
55198         * tests/test-printf-posix.output: Remove all -0.0 related results.
55199         Needed for IRIX 6.5.
55200
55201 2007-05-19  Bruno Haible  <bruno@clisp.org>
55202
55203         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55204         printed as "nan0x7fffffff" instead of "nan".
55205         * tests/test-vasprintf-posix.c (test_function): Likewise.
55206         * tests/test-snprintf-posix.h (test_function): Likewise.
55207         * tests/test-sprintf-posix.h (test_function): Likewise.
55208         * tests/test-fprintf-posix.h (NaN): Remove macro.
55209         (test_function): Remove all NaN related tests.
55210         * tests/test-printf-posix.h (NaN): Remove macro.
55211         (test_function): Remove all NaN related tests.
55212         * tests/test-printf-posix.output: Remove all NaN related results.
55213         Needed for IRIX 6.5.
55214
55215 2007-05-19  Bruno Haible  <bruno@clisp.org>
55216
55217         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
55218         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55219
55220 2007-05-19  Bruno Haible  <bruno@clisp.org>
55221
55222         * lib/float_.h: New file.
55223         * m4/float_h.m4: New file.
55224         * modules/float: New file.
55225         * modules/isnanl (Dependencies): Add float.
55226         * modules/isnanl-nolibm (Dependencies): Likewise.
55227         * modules/mathl (Dependencies): Likewise.
55228         * modules/printf-frexpl (Dependencies): Likewise.
55229         * modules/signbit (Dependencies): Likewise.
55230         * modules/vasnprintf (Dependencies): Likewise.
55231         * doc/headers/float.texi: Update.
55232
55233 2007-05-19  Jim Meyering  <jim@meyering.net>
55234
55235         * lib/utimens.c (gl_futimens): Rename from futimens,
55236         now that glibc-2.6 declares futimens.
55237         * lib/utimens.h: Likewise.
55238
55239 2007-05-19  Bruno Haible  <bruno@clisp.org>
55240
55241         Avoid test failures on mingw.
55242         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
55243         * tests/test-printf-posix.sh: Likewise.
55244         * tests/test-vfprintf-posix.sh: Likewise.
55245         * tests/test-vprintf-posix.sh: Likewise.
55246
55247 2007-05-19  Bruno Haible  <bruno@clisp.org>
55248
55249         Fix *printf result for NaN, Inf, -0.0 on mingw.
55250         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
55251         * lib/vasnprintf.c: Include math.h and isnan.h.
55252         (is_infinite_or_zero): New function.
55253         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
55254         values in the %f, %F, %e, %E, %g, %G directives.
55255         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
55256         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55257         gl_PRINTF_INFINITE and test its result. Invoke
55258         gl_PREREQ_VASNPRINTF_INFINITE.
55259         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55260         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55261         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55262         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55263         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55264         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55265         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55266         * doc/functions/fprintf.texi: Update.
55267         * doc/functions/printf.texi: Update.
55268         * doc/functions/snprintf.texi: Update.
55269         * doc/functions/sprintf.texi: Update.
55270         * doc/functions/vfprintf.texi: Update.
55271         * doc/functions/vprintf.texi: Update.
55272         * doc/functions/vsnprintf.texi: Update.
55273         * doc/functions/vsprintf.texi: Update.
55274
55275 2007-05-19  Bruno Haible  <bruno@clisp.org>
55276
55277         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55278         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55279         Instead of multiplying with 10^k, set extra_zeroes to k.
55280         (scale10_round_long_double): Remove function.
55281
55282 2007-05-18  Bruno Haible  <bruno@clisp.org>
55283
55284         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55285         introduced on 2007-05-06.
55286
55287 2007-05-18  Bruno Haible  <bruno@clisp.org>
55288
55289         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55290         %g directives.
55291         * tests/test-vasprintf-posix.c (test_function): Likewise.
55292         * tests/test-snprintf-posix.h (test_function): Likewise.
55293         * tests/test-sprintf-posix.h (test_function): Likewise.
55294
55295 2007-05-18  Bruno Haible  <bruno@clisp.org>
55296
55297         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55298         (strmatch): New function.
55299         (test_function): Test the %f directive on numbers of various exponents.
55300         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55301         (strmatch): New function.
55302         (test_function): Test the %f directive on numbers of various exponents.
55303         * tests/test-snprintf-posix.h (strmatch): New function.
55304         (test_function): Test the %f directive on numbers of various exponents.
55305         * tests/test-sprintf-posix.h (strmatch): New function.
55306         (test_function): Test the %f directive on numbers of various exponents.
55307         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55308         * tests/test-sprintf-posix.c (SIZEOF): New macro.
55309         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
55310         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
55311
55312 2007-05-18  Bruno Haible  <bruno@clisp.org>
55313
55314         Add support for 'long double' number output.
55315         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
55316         * lib/vasnprintf.c: Include math.h and float+.h.
55317         (mp_limb_t): New type.
55318         (GMP_LIMB_BITS): New macro.
55319         (mp_twolimb_t): New type.
55320         (GMP_TWOLIMB_BITS): New macro.
55321         (mpn_t): New type.
55322         (multiply, divide, convert_to_decimal, decode_long_double,
55323         scale10_round_long_double, scale10_round_decimal_long_double,
55324         floorlog10l): New functions.
55325         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
55326         for the %f, %F, %e, %E, %g, %G directives.
55327         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
55328         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55329         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
55330         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
55331         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55332         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55333         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55334         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55335         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55336         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55337         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55338         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
55339         * modules/snprintf-posix (Depends-on): Likewise.
55340         * modules/sprintf-posix (Depends-on): Likewise.
55341         * modules/vasnprintf-posix (Depends-on): Likewise.
55342         * modules/vasprintf-posix (Depends-on): Likewise.
55343         * modules/vfprintf-posix (Depends-on): Likewise.
55344         * modules/vsnprintf-posix (Depends-on): Likewise.
55345         * modules/vsprintf-posix (Depends-on): Likewise.
55346         * modules/vasnprintf (Files): Add lib/float+.h.
55347         * doc/functions/fprintf.texi: Update.
55348         * doc/functions/printf.texi: Update.
55349         * doc/functions/snprintf.texi: Update.
55350         * doc/functions/sprintf.texi: Update.
55351         * doc/functions/vfprintf.texi: Update.
55352         * doc/functions/vprintf.texi: Update.
55353         * doc/functions/vsnprintf.texi: Update.
55354         * doc/functions/vsprintf.texi: Update.
55355
55356 2007-05-18  Bruno Haible  <bruno@clisp.org>
55357
55358         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
55359
55360 2007-05-18  Bruno Haible  <bruno@clisp.org>
55361
55362         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
55363         for printing 64-bit integers. Needed for mingw.
55364
55365 2007-05-18  Bruno Haible  <bruno@clisp.org>
55366
55367         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55368         gl_FUNC_FREXPL_WORKS.
55369         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
55370
55371 2007-05-18  Bruno Haible  <bruno@clisp.org>
55372
55373         * modules/frexpl-nolibm-tests: New file.
55374
55375         * modules/frexpl-nolibm: New file.
55376         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
55377
55378 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55379
55380         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
55381         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55382         GCC 4.2, which otherwise issues a lot of warnings.
55383         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
55384         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
55385         Likewise.
55386         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
55387         * modules/iconv_open (iconv.h): Likewise.
55388         * modules/locale (locale.h): Likewise.
55389         * modules/netinet_in (netinet/in.h): Likewise.
55390         * modules/sys_select (sys_select.h): Likewise.
55391         * modules/sys_socket (sys/socket.h): Likewise.
55392         * modules/sys_stat (sys/stat.h): Likewise.
55393         * modules/sysexits (sysexits.h): Likewise.
55394         * modules/unistd (unistd.h): Likewise.
55395
55396 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55397
55398         * modules/closein-tests (Makefile.am): Distribute
55399         `test-closein.sh'.
55400
55401 2007-05-17  Bruno Haible  <bruno@clisp.org>
55402
55403         * tests/test-printf-posix.output: Renamed from
55404         tests/test-fprintf-posix.out.
55405         * modules/fprintf-posix-tests: Update.
55406         * modules/printf-posix-tests: Update.
55407         * modules/vfprintf-posix-tests: Update.
55408         * modules/vprintf-posix-tests: Update.
55409         * tests/test-fprintf-posix.sh: Update.
55410         * tests/test-printf-posix.sh: Update.
55411         * tests/test-vfprintf-posix.sh: Update.
55412         * tests/test-vprintf-posix.sh: Update.
55413         Reported by Ralf Wildenhues.
55414
55415 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55416
55417         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
55418         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55419         GCC 4.2, which otherwise issues a lot of warnings.
55420         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
55421         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
55422         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
55423         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
55424         it should no longer be needed.
55425         * lib/string_.h: Likewise.
55426         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
55427         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
55428         * modules/inttypes (inttypes.h): Likewise.
55429         * modules/math (math.h): Likewise.
55430         * modules/search (search.h): Likewise.
55431         * modules/signal (signal.h): Likewise.
55432         * modules/stdint (stdint.h): Likewise.
55433         * modules/stdio (stdio.h): Likewise.
55434         * modules/stdlib (stdlib.h): Likewise.
55435         * modules/string (string.h): Likewise.
55436         * modules/sys_time (sys/time.h): Likewise.
55437         * modules/time (time.h): Likewise.
55438         * modules/wchar (wchar.h): Likewise.
55439         * modules/wctype (wtype.h): Likewise.
55440
55441 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55442
55443         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
55444
55445 2007-05-13  Bruno Haible  <bruno@clisp.org>
55446
55447         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
55448         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55449         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
55450         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55451         (gl_PREREQ_STRTOK_R): Don't require it here.
55452
55453 2007-05-13  Bruno Haible  <bruno@clisp.org>
55454
55455         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
55456         when used in C++ mode.
55457
55458 2007-05-12  Bruno Haible  <bruno@clisp.org>
55459
55460         * lib/linebuffer.h: Tweak doc.
55461         * lib/linebuffer.c: Likewise.
55462
55463 2007-05-12  James Youngman  <jay@gnu.org>
55464
55465         * lib/linebuffer.c (readlinebuffer_delim): New function,
55466         like readlinebuffer, but use a caller-specified delimiter.
55467         (readlinebuffer): Just call readlinebuffer_delim with '\n'
55468         as the delimiter.
55469         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
55470
55471 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55472
55473         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
55474         * modules/openat (Files): Remove openat-die.c.
55475         (Depends-on): Add openat-die.
55476         * modules/openat-die: New module.
55477
55478 2007-05-06  Bruno Haible  <bruno@clisp.org>
55479
55480         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
55481         Update with info about Cygwin.
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         Reported by Eric Blake.
55491
55492 2007-05-06  Bruno Haible  <bruno@clisp.org>
55493
55494         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
55495         padding ourselves for the floating-point directives.
55496         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
55497         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
55498         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55499         gl_PRINTF_FLAG_ZERO and test its result. Invoke
55500         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
55501         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55502         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55503         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55504         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55505         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55506         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55507         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55508         * tests/test-snprintf-posix.h (test_function): Also check the width
55509         and some flags in the %f directive.
55510         * tests/test-sprintf-posix.h (test_function): Likewise.
55511         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55512         * tests/test-vasprintf-posix.c (test_function): Likewise.
55513         * doc/functions/fprintf.texi: Update.
55514         * doc/functions/printf.texi: Update.
55515         * doc/functions/snprintf.texi: Update.
55516         * doc/functions/sprintf.texi: Update.
55517         * doc/functions/vfprintf.texi: Update.
55518         * doc/functions/vprintf.texi: Update.
55519         * doc/functions/vsnprintf.texi: Update.
55520         * doc/functions/vsprintf.texi: Update.
55521
55522 2007-05-06  Bruno Haible  <bruno@clisp.org>
55523
55524         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
55525         pass the ' flag character to sprintf or snprintf.
55526         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
55527         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
55528         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55529         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
55530         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
55531         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55532         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55533         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55534         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55535         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55536         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55537         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55538         * tests/test-snprintf-posix.h (test_function): Also check the grouping
55539         flag.
55540         * tests/test-sprintf-posix.h (test_function): Likewise.
55541         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55542         * tests/test-vasprintf-posix.c (test_function): Likewise.
55543         * doc/functions/fprintf.texi: Update.
55544         * doc/functions/printf.texi: Update.
55545         * doc/functions/snprintf.texi: Update.
55546         * doc/functions/sprintf.texi: Update.
55547         * doc/functions/vfprintf.texi: Update.
55548         * doc/functions/vprintf.texi: Update.
55549         * doc/functions/vsnprintf.texi: Update.
55550         * doc/functions/vsprintf.texi: Update.
55551
55552 2007-05-01  Bruno Haible  <bruno@clisp.org>
55553
55554         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
55555
55556 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
55557
55558         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
55559         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
55560
55561 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55562
55563         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
55564         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
55565         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
55566
55567 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
55568
55569         * lib/argp-help.c (struct hol_entry): New member `ord'.
55570         (HOL_ENTRY_PTRCMP): Use ord for comparison
55571         (hol_sort): Initialize ord.
55572
55573 2007-05-01  Bruno Haible  <bruno@clisp.org>
55574
55575         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
55576         Reported by Eric Blake.
55577         * doc/gnulib.texi (Function Substitutes): Update.
55578
55579 2007-05-01  Bruno Haible  <bruno@clisp.org>
55580
55581         * doc/functions.texi: Remove file, now redundant through
55582         doc/functions/*.texi.
55583
55584 2007-05-01  Bruno Haible  <bruno@clisp.org>
55585
55586         * modules/argp (Depends-on): Add sleep.
55587
55588 2007-05-01  Bruno Haible  <bruno@clisp.org>
55589
55590         * modules/sleep-tests: New file.
55591         * tests/test-sleep.c: New file.
55592
55593         * modules/sleep: New file.
55594         * lib/sleep.c: New file.
55595         * m4/sleep.m4: New file.
55596         * lib/unistd_.h (sleep): New declaration.
55597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
55598         HAVE_SLEEP.
55599         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
55600         * doc/functions/sleep.texi: Document the sleep module.
55601
55602 2007-05-01  Bruno Haible  <bruno@clisp.org>
55603
55604         * lib/sigprocmask.h: Remove file.
55605         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
55606         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
55607         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
55608         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
55609         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
55610         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
55611         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
55612         HAVE_SIGSET_T as a shell variable.
55613         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
55614         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
55615         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
55616         (Depends-on): Add signal. Remove verify.
55617         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
55618         (Include): Mention <signal.h> instead of sigprocmask.h.
55619         * NEWS: Mention the change.
55620         * lib/fatal-signal.c: Don't include sigprocmask.h.
55621
55622 2007-05-01  Bruno Haible  <bruno@clisp.org>
55623
55624         * modules/signal: New file.
55625         * lib/signal_.h: New file.
55626         * m4/signal_h.m4: New file.
55627
55628 2007-05-01  Bruno Haible  <bruno@clisp.org>
55629
55630         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
55631         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
55632         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
55633         HAVE_WCTYPE_CTMP_BUG into wctype.h.
55634
55635 2007-05-01  Bruno Haible  <bruno@clisp.org>
55636
55637         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
55638         configure time.
55639         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
55640         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
55641         * modules/sys_stat (Makefile.am): Substitute their values into
55642         sys/stat.h.
55643
55644 2007-05-01  Bruno Haible  <bruno@clisp.org>
55645
55646         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
55647         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
55648         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
55649
55650 2007-05-01  Bruno Haible  <bruno@clisp.org>
55651
55652         * doc/header/assert.texi: Undo last change: don't mention the gnulib
55653         'assert' module here.
55654
55655 2007-05-01  Bruno Haible  <bruno@clisp.org>
55656
55657         * doc/functions/*.texi: New files.
55658         * doc/functions/google-ranking.txt: New file.
55659         * doc/gnulib.texi (Function Substitutes): New chapter.
55660         (ctime, inet_ntoa): Remove sections.
55661         * doc/ctime.texi: Remove file.
55662         * doc/inet_ntoa.texi: Remove file.
55663         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
55664         dependencies.
55665         (%.info): New rule, specifying a --reference-limit.
55666
55667 2007-05-01  Bruno Haible  <bruno@clisp.org>
55668
55669         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
55670
55671 2007-05-01  Bruno Haible  <bruno@clisp.org>
55672
55673         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
55674         the portability of 'mkdir' to mingw systems.
55675
55676 2007-05-01  Bruno Haible  <bruno@clisp.org>
55677
55678         * doc/headers/google-ranking.txt: New file.
55679
55680 2007-04-30  Eric Blake  <ebb9@byu.net>
55681
55682         Prefer fseeko to fseek.
55683         * modules/getpass (Depends-on): Add fseeko.
55684         * lib/getpass.c (getpass): Use fseeko, not fseek.
55685
55686 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
55687
55688         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
55689         assumes the sorting is stable, while most qsort implementations
55690         are not.  Use argument addresses to ensure they never compare as
55691         equal.
55692
55693         * tests/test-argp-2.sh (usage-indent test): Fix output
55694         (func_compare): Restore diff options
55695         * tests/test-argp.c: Restore #include "progname.h"
55696
55697 2007-04-29  Bruno Haible  <bruno@clisp.org>
55698
55699         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
55700         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55701         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
55702         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55703         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
55704         (configure.ac): Define CHECK_SNPRINTF_POSIX.
55705         (TESTS, check_PROGRAMS): Add test-snprintf.
55706         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
55707         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
55708         (TESTS, check_PROGRAMS): Add test-vsnprintf.
55709         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
55710         assertions that fail on HP-UX, OSF/1, or IRIX.
55711         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
55712
55713 2007-04-29  Bruno Haible  <bruno@clisp.org>
55714
55715         * MODULES.html.sh (posix_functions): Remove 'contents'.
55716
55717 2007-04-29  Karl Berry  <karl@gnu.org>
55718
55719         * config/srclist.txt (gendocs_template_min): new entry.
55720
55721 2007-04-29  Bruno Haible  <bruno@clisp.org>
55722
55723         Work around fpurge bug on BSD systems.
55724         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
55725         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
55726         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
55727         fpurge to rpl_fpurge if the system already has this function.
55728         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
55729         the case where the system already has this function. Correct invariants
55730         on BSD systems.
55731         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
55732         BSD systems.
55733
55734 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
55735
55736         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
55737         proposed by Sven Verdoolaege.
55738
55739         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
55740         options.
55741         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
55742         (usage and help tests): Update
55743
55744 2007-04-29  Bruno Haible  <bruno@clisp.org>
55745
55746         * tests/test-fflush.c (main): Use a file of size 17, not 10.
55747         Print more information in case of failure. Disable a test on BeOS.
55748
55749 2007-04-29  Bruno Haible  <bruno@clisp.org>
55750
55751         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
55752         This helps debugging on systems on which no gdb is available.
55753
55754 2007-04-29  Bruno Haible  <bruno@clisp.org>
55755
55756         * lib/freading.h: Improve comments.
55757         * lib/fwriting.h: Likewise.
55758         * tests/test-freading.c (main): Don't check freading immediately after
55759         repositioning. Needed for glibc.
55760
55761 2007-04-29  Bruno Haible  <bruno@clisp.org>
55762
55763         * lib/freading.c (freading): Trivial simplification.
55764
55765 2007-04-28  Bruno Haible  <bruno@clisp.org>
55766
55767         * tests/test-fwriting.c (main): Also test the interaction between
55768         fflush and fwriting.
55769         * modules/fwriting-tests (Depends-on): Add fflush.
55770
55771         * tests/test-freading.c (main): Also test the interaction between
55772         fflush and freading.
55773         * modules/freading-tests (Depends-on): Add fflush.
55774
55775 2007-04-28  Bruno Haible  <bruno@clisp.org>
55776
55777         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
55778         fseeko and ftello.
55779         Suggested by Eric Blake.
55780
55781 2007-04-28  Jim Meyering  <jim@meyering.net>
55782
55783         Avoid false-negative in gl_STDINT_H's C99 conformance test.
55784         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
55785         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
55786
55787 2007-04-27  Eric Blake  <ebb9@byu.net>
55788
55789         * doc/headers/assert.texi (assert.h): Document assert module use.
55790
55791 2007-04-27  Bruno Haible  <bruno@clisp.org>
55792
55793         * doc/headers/*.texi: New files.
55794         * doc/gnulib.texi (Header File Substitutes): New chapter.
55795         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
55796         dependencies.
55797         (standards.info ,standards.html, standards.dvi): Update dependencies.
55798         (mostlyclean, clean): New targets.
55799
55800 2007-04-27  Bruno Haible  <bruno@clisp.org>
55801
55802         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
55803         * modules/sysexits (Files, Makefile.am): Update.
55804
55805         * lib/sys_socket_.h: Renamed from lib/socket_.h.
55806         * modules/sys_socket (Files, Makefile.am): Update.
55807
55808         * lib/sys_stat_.h: Renamed from lib/stat_.h.
55809         * modules/sys_stat (Files, Makefile.am): Update.
55810
55811 2007-04-27  Eric Blake  <ebb9@byu.net>
55812
55813         * lib/freading.h: Improve comments.
55814         * lib/fwriting.h: Likewise.
55815         * lib/fflush.c: Likewise.
55816
55817         Fix closein for mingw.
55818         * modules/closein-tests: Add tests for closein.
55819         * tests/test-closein.c: New file.
55820         * tests/test-closein.sh: Likewise.
55821         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
55822         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
55823
55824 2007-04-27  Bruno Haible  <bruno@clisp.org>
55825
55826         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
55827         version is < 6.
55828         * lib/math_.h [__DECC]: Likewise.
55829         * lib/stdio_.h [__DECC]: Likewise.
55830         * lib/stdlib_.h [__DECC]: Likewise.
55831         * lib/string_.h [__DECC]: Likewise.
55832         * lib/time_.h [__DECC]: Likewise.
55833         * lib/wchar_.h [__DECC]: Likewise.
55834         * lib/wctype_.h [__DECC]: Likewise.
55835
55836 2007-04-27  Bruno Haible  <bruno@clisp.org>
55837
55838         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
55839
55840 2007-04-27  Bruno Haible  <bruno@clisp.org>
55841
55842         * lib/fflush.c: Add comments.
55843         * modules/fpurge-tests (Depends-on): Add fflush.
55844         * modules/freadable-tests (Depends-on): Likewise.
55845         * modules/fwritable-tests (Depends-on): Likewise.
55846
55847 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
55848
55849         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
55850         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
55851         Report by Bruno Haible <bruno@clisp.org>.
55852
55853 2007-04-26  Eric Blake  <ebb9@byu.net>
55854
55855         Fix fflush on mingw.
55856         * modules/fflush (Depends-on): Add freading.
55857         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
55858         but unread data.
55859
55860 2007-04-26  Eric Blake  <ebb9@byu.net>
55861         and Bruno Haible  <bruno@clisp.org>
55862
55863         Implement freading and fwriting.
55864         * lib/freading.c: New file.
55865         * lib/freading.h: Likewise.
55866         * m4/freading.m4: Likewise.
55867         * modules/freading: Likewise.
55868         * modules/freading-tests: Likewise.
55869         * tests/test-freading.c: Likewise.
55870         * lib/fwriting.c: New file.
55871         * lib/fwriting.h: Likewise.
55872         * m4/fwriting.m4: Likewise.
55873         * modules/fwriting: Likewise.
55874         * modules/fwriting-tests: Likewise.
55875         * tests/test-fwriting.c: Likewise.
55876         * MODULES.html.sh (File stream based Input/Output): Mention them.
55877
55878 2007-04-26  Bruno Haible  <bruno@clisp.org>
55879
55880         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
55881         'long' when we assume it.
55882         Suggested by Eric Blake.
55883
55884 2007-04-26  Bruno Haible  <bruno@clisp.org>
55885
55886         Ensure fseeko, ftello are declared on glibc systems.
55887         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
55888         * modules/fseeko (configure.ac-early): Likewise.
55889         * modules/ftello (configure.ac-early): Likewise.
55890         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
55891         AC_FUNC_FSEEKO for this.
55892         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
55893         (gl_CHECK_FSEEKO): Remove macro.
55894
55895 2007-04-26  Bruno Haible  <bruno@clisp.org>
55896
55897         * tests/test-fflush.c (main): Also check the ftell result after
55898         fflush and fseek/fseeko.
55899         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
55900         file descriptor position cache in the stream.
55901         * lib/fseeko.c (rpl_fseeko): Likewise.
55902
55903 2007-04-26  Bruno Haible  <bruno@clisp.org>
55904
55905         * modules/fflush-tests (Depends-on): Add fseeko.
55906
55907 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
55908             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55909
55910         * lib/argz_.h: ensure error_t definition is obtained in same
55911         mechanism system argz.h would have.
55912         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
55913         argz facilities are known bad.  Err on the side of caution if
55914         cross-compiling.
55915
55916 2007-04-25  Eric Blake  <ebb9@byu.net>
55917
55918         * lib/fpurge.c (includes): Use stdlib.h for free.
55919         * tests/test-fflush.c (main): Also test fflush-fseeko.
55920
55921 2007-04-25  Bruno Haible  <bruno@clisp.org>
55922
55923         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
55924         * lib/fseeko.c: New file.
55925         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
55926         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
55927         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
55928         gl_FUNC_FSEEKO.
55929         (gl_FUNC_FSEEKO): Invoke it.
55930         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
55931         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
55932         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
55933
55934 2007-04-25  Bruno Haible  <bruno@clisp.org>
55935
55936         * modules/fflush (Depends-on): Add ftello.
55937
55938 2007-04-25  Bruno Haible  <bruno@clisp.org>
55939
55940         * modules/ftello-tests: New file.
55941         * tests/test-ftello.c: New file.
55942
55943         * modules/ftello: New file.
55944         * m4/ftello.m4: New file.
55945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
55946         HAVE_FTELLO.
55947         * lib/stdio_.h (ftello): New declaration.
55948         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
55949         HAVE_FTELLO.
55950
55951 2007-04-25  Bruno Haible  <bruno@clisp.org>
55952
55953         * modules/fseeko-tests: New file.
55954         * tests/test-fseeko.c: New file.
55955
55956         * modules/fseeko: New file.
55957         * m4/fseeko.m4: New file.
55958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
55959         HAVE_FSEEKO.
55960         * lib/stdio_.h (fseeko): New declaration.
55961         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
55962         HAVE_FSEEKO.
55963
55964 2007-04-25  Bruno Haible  <bruno@clisp.org>
55965
55966         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
55967
55968 2007-04-25  Bruno Haible  <bruno@clisp.org>
55969
55970         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
55971         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
55972         * tests/test-unistd.c: Likewise.
55973         * tests/test-fcntl.c: Likewise.
55974
55975 2007-04-23  Eric Blake  <ebb9@byu.net>
55976
55977         * lib/fflush.c: Fix missing include.
55978         Reported by Bruno Haible.
55979
55980 2007-04-23  Bruno Haible  <bruno@clisp.org>
55981
55982         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
55983         Reported by Eric Blake.
55984
55985 2007-04-23  Bruno Haible  <bruno@clisp.org>
55986
55987         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
55988
55989 2007-04-23  Bruno Haible  <bruno@clisp.org>
55990
55991         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
55992
55993 2007-04-23  Bruno Haible  <bruno@clisp.org>
55994
55995         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
55996         Needed on HP-UX 11.
55997
55998 2007-04-16  Eric Blake  <ebb9@byu.net>
55999
56000         Make fflush rely on fpurge.
56001         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56002         open coding all variants.
56003         * modules/fflush (Depends-on): Add fpurge and unistd.
56004         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56005         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56006
56007         Fix --with-tests compilation on cygwin.
56008         * modules/argmatch-tests (Makefile.am): List gnulib library first
56009         in LDADD.
56010         * modules/argp-tests (Makefile.am): Likewise.
56011         * modules/array-list-tests (Makefile.am): Likewise.
56012         * modules/array-oset-tests (Makefile.am): Likewise.
56013         * modules/avltree-list-tests (Makefile.am): Likewise.
56014         * modules/avltree-oset-tests (Makefile.am): Likewise.
56015         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56016         * modules/carray-list-tests (Makefile.am): Likewise.
56017         * modules/dirname-tests (Makefile.am): Likewise.
56018         * modules/frexp-tests (Makefile.am): Likewise.
56019         * modules/isnanl-tests (Makefile.am): Likewise.
56020         * modules/linked-list-tests (Makefile.am): Likewise.
56021         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56022         * modules/lock-tests (Makefile.am): Likewise.
56023         * modules/rbtree-list-tests (Makefile.am): Likewise.
56024         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56025         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56026         * modules/tls-tests (Makefile.am): Likewise.
56027         * modules/tsearch-tests (Makefile.am): Likewise.
56028         * modules/xvasprintf-tests (Makefile.am): Likewise.
56029
56030         Fix fpurge for cygwin.
56031         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56032         value.
56033         * modules/fpurge-tests (Depends-on): Clean up trash.
56034
56035 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56036
56037         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56038
56039         * m4/autobuild.m4: Re-indent.
56040
56041 2007-04-13  Bruno Haible  <bruno@clisp.org>
56042
56043         * modules/fpurge-tests: New file.
56044         * tests/test-fpurge.c: New file.
56045
56046         * modules/fpurge: New file.
56047         * lib/fpurge.h: New file.
56048         * lib/fpurge.c: New file.
56049         * m4/fpurge.m4: New file.
56050
56051 2007-04-13  Bruno Haible  <bruno@clisp.org>
56052
56053         * modules/fbufmode-tests: New file.
56054         * tests/test-fbufmode.c: New file.
56055
56056         * modules/fbufmode: New file.
56057         * lib/fbufmode.h: New file.
56058         * lib/fbufmode.c: New file.
56059         * m4/fbufmode.m4: New file.
56060
56061 2007-04-13  Bruno Haible  <bruno@clisp.org>
56062
56063         * modules/fwritable-tests: New file.
56064         * tests/test-fwritable.c: New file.
56065
56066         * modules/fwritable: New file.
56067         * lib/fwritable.h: New file.
56068         * lib/fwritable.c: New file.
56069         * m4/fwritable.m4: New file.
56070
56071 2007-04-13  Bruno Haible  <bruno@clisp.org>
56072
56073         * modules/freadable-tests: New file.
56074         * tests/test-freadable.c: New file.
56075
56076         * modules/freadable: New file.
56077         * lib/freadable.h: New file.
56078         * lib/freadable.c: New file.
56079         * m4/freadable.m4: New file.
56080
56081 2007-04-13  Bruno Haible  <bruno@clisp.org>
56082
56083         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56084         MOSTLYCLEANFILES.
56085
56086 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56087
56088         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56089         gzip bootstrap.conf to avoid dragging in i18n machinery.
56090         (gnulib_tool_option): Use it.
56091
56092 2007-04-13  Bruno Haible  <bruno@clisp.org>
56093
56094         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56095         %F directives.
56096         * tests/test-vasprintf-posix.c (test_function): Likewise.
56097         * tests/test-snprintf-posix.h (test_function): Likewise.
56098         * tests/test-sprintf-posix.h (test_function): Likewise.
56099         * tests/test-fprintf-posix.h (test_function): Likewise.
56100         * tests/test-printf-posix.h (test_function): Likewise.
56101         * tests/test-fprintf-posix.out: Likewise.
56102
56103 2007-04-13  Bruno Haible  <bruno@clisp.org>
56104
56105         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56106         * modules/tls-tests (configure.ac): Likewise.
56107         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56108
56109 2007-04-13  Bruno Haible  <bruno@clisp.org>
56110
56111         * lib/tls.c (glthread_tls_get): Fix return type.
56112         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56113
56114 2007-04-12  Eric Blake  <ebb9@byu.net>
56115
56116         * modules/gettime (Depends-on): Remove gettime.
56117         Reported by Dmitry V. Levin.
56118
56119 2007-04-12  Bruno Haible  <bruno@clisp.org>
56120
56121         * modules/fflush (Include): Mention <stdio.h>.
56122         * modules/strtoimax (Include): Mention <inttypes.h>.
56123         * modules/strtoumax (Include): Likewise.
56124
56125 2007-04-12  Eric Blake  <ebb9@byu.net>
56126
56127         * .cvsignore: New file.
56128         * .gitignore: Likewise.
56129
56130 2007-04-12  Bruno Haible  <bruno@clisp.org>
56131
56132         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56133         not before, since $(LDADD) often contains libgnu.a.
56134         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56135         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56136         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56137         Needed on Cygwin.
56138
56139 2007-04-12  Eric Blake  <ebb9@byu.net>
56140
56141         Work around glibc's failure to flush stdin on fclose.
56142         * lib/closein.c (close_stdin): Flush stdin before closing.
56143
56144         Work around glibc's failure to reset seekable stdin on exit.
56145         * modules/closein: New module.
56146         * lib/closein.c: New file.
56147         * lib/closein.h: Likewise.
56148         * m4/closein.m4: Likewise.
56149         * MODULES.html.sh (File stream based Input/Output): Document it.
56150
56151 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56152
56153         * gnulib-tool: Rename generated 'autobuild' script to
56154         'do-autobuild' in --create-megatestdir output.
56155
56156         * doc/gnulib.texi (Build robot for gnulib): Fix.
56157
56158 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56159
56160         * modules/sysexits (Depends-on): Add absolute-header.
56161
56162 2007-04-12  Eric Blake  <ebb9@byu.net>
56163
56164         No need to preserve errno on success.
56165         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
56166         Reported by Bruno Haible.
56167
56168 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56169
56170         * MODULES.html.sh (Support for maintaining and releasing
56171         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
56172
56173 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56174
56175         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
56176
56177 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56178
56179         * modules/autobuild: New module.
56180
56181         * m4/autobuild.m4: New file.
56182
56183 2007-04-11  Bruno Haible  <bruno@clisp.org>
56184
56185         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
56186         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
56187         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
56188         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
56189         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56190         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56191         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56192         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56193         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56194         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56195         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
56196         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56197         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56198         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
56199         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56200         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56201         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
56202         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56203         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56204         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
56205         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56206         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56207         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
56208         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56209         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56210         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
56211         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56212         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56213         Reported by Eric Blake.
56214
56215 2007-04-11  Bruno Haible  <bruno@clisp.org>
56216
56217         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
56218
56219 2007-04-10  Bruno Haible  <bruno@clisp.org>
56220
56221         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
56222         for NaN and Infinity. Needed on FreeBSD 6.1.
56223         * tests/test-vasnprintf-posix.c (test_function): Undo last change
56224         regarding results for "%010a" of Infinity and NaN.
56225         * tests/test-vasprintf-posix.c (test_function): Likewise.
56226         * tests/test-snprintf-posix.h (test_function): Likewise.
56227         * tests/test-sprintf-posix.h (test_function): Likewise.
56228         * tests/test-fprintf-posix.h (test_function): Likewise.
56229         * tests/test-printf-posix.h (test_function): Likewise.
56230         * tests/test-fprintf-posix.out: Likewise.
56231
56232 2007-04-10  Bruno Haible  <bruno@clisp.org>
56233
56234         * modules/locale-tests: New file.
56235         * tests/test-locale.c: New file.
56236
56237         * modules/locale: New file.
56238         * lib/locale_.h: New file.
56239         * m4/locale_h.m4: New file.
56240
56241 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
56242             Bruno Haible  <bruno@clisp.org>
56243
56244         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
56245         be determined, test for availability of the copysignf, copysign,
56246         copysignl functions.
56247         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
56248         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
56249         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
56250
56251 2007-04-09  Eric Blake  <ebb9@byu.net>
56252
56253         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
56254         * modules/stdio (Makefile.am): Support fflush.
56255         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56256         * modules/fflush: New file.
56257         * lib/fflush.c: Likewise.
56258         * m4/fflush.m4: Likewise.
56259         * modules/fflush-tests: New test.
56260         * tests/test-fflush.c: Likewise.
56261         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
56262
56263 2007-04-06  Bruno Haible  <bruno@clisp.org>
56264
56265         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
56266         (VASNPRINTF): Use signbit for faster determination whether to print a
56267         minus sign.
56268         * modules/vasnprintf (Files): Remove lib/float+.h.
56269         * modules/fprintf-posix (Depends-on): Add signbit.
56270         * modules/snprintf-posix (Depends-on): Likewise.
56271         * modules/sprintf-posix (Depends-on): Likewise.
56272         * modules/vasnprintf-posix (Depends-on): Likewise.
56273         * modules/vasprintf-posix (Depends-on): Likewise.
56274         * modules/vfprintf-posix (Depends-on): Likewise.
56275         * modules/vsnprintf-posix (Depends-on): Likewise.
56276         * modules/vsprintf-posix (Depends-on): Likewise.
56277
56278 2007-04-06  Bruno Haible  <bruno@clisp.org>
56279
56280         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56281         * tests/test-frexpl.c (main): Likewise.
56282         * tests/test-ldexpl.c (main): Likewise.
56283         * modules/frexp-tests (Depends-on): Add signbit.
56284         * modules/frexpl-tests (Depdends-on): Likewise.
56285         * modules/ldexpl-tests (Depdends-on): Likewise.
56286
56287 2007-04-06  Bruno Haible  <bruno@clisp.org>
56288
56289         * modules/signbit-tests: New file.
56290         * tests/test-signbit.c: New file.
56291
56292         * modules/signbit: New file.
56293         * lib/signbitf.c: New file.
56294         * lib/signbitd.c: New file.
56295         * lib/signbitl.c: New file.
56296         * m4/signbit.m4: New file.
56297         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56298         (signbit): New macro.
56299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56300         REPLACE_SIGNBIT.
56301         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56302         REPLACE_FREXPL into math.h.
56303
56304 2007-04-06  Bruno Haible  <bruno@clisp.org>
56305
56306         * modules/isnanf-nolibm-tests: New file.
56307         * tests/test-isnanf.c: New file.
56308
56309         * modules/isnanf-nolibm: New file.
56310         * lib/isnanf.h: New file.
56311         * lib/isnanf.c: New file.
56312         * lib/isnan.c: Consider the USE_FLOAT macro.
56313         * m4/isnanf.m4: New file.
56314
56315 2007-04-06  Bruno Haible  <bruno@clisp.org>
56316
56317         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
56318         (Link): New section.
56319
56320         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
56321
56322 2007-04-06  Bruno Haible  <bruno@clisp.org>
56323
56324         Assume the 'long double' type.
56325         * m4/longdouble.m4: Remove file.
56326         * config/srclist.txt: Don't mention longdouble.m4.
56327         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
56328         * lib/float+.h: Likewise.
56329         * lib/frexp.c: Likewise.
56330         * lib/printf-args.h: Likewise.
56331         * lib/printf-args.c: Likewise.
56332         * lib/printf-frexp.c: Likewise.
56333         * lib/printf-parse.c: Likewise.
56334         * lib/vasnprintf.c: Likewise.
56335         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
56336         * m4/intl.m4: Likewise.
56337         * m4/isnanl.m4: Likewise.
56338         * m4/printf.m4: Likewise.
56339         * m4/printf-frexpl.m4: Likewise.
56340         * m4/vasnprintf.m4: Likewise.
56341         * modules/allocsa (Files): Remove m4/longdouble.m4.
56342         * modules/gettext (Files): Likewise.
56343         * modules/relocatable-prog-wrapper (Files): Likewise.
56344         * modules/vasnprintf (Files): Likewise.
56345         * modules/isnanl (Files): Likewise.
56346         (Include): Simplify.
56347         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
56348         (Include): Simplify.
56349         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
56350         (Include): Simplify.
56351         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
56352         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56353         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
56354         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56355         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56356         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56357         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
56358         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56359         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56360         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56361         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
56362         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56363         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
56364         * tests/test-isnanl.c: Likewise.
56365         * tests/test-snprintf-posix.h: Likewise.
56366         * tests/test-sprintf-posix.h: Likewise.
56367         * tests/test-vasnprintf-posix.c: Likewise.
56368         * tests/test-vasnprintf-posix2.c: Likewise.
56369         * tests/test-vasprintf-posix.c: Likewise.
56370
56371 2007-04-06  Bruno Haible  <bruno@clisp.org>
56372
56373         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
56374         * lib/math_.h [__DECC]: Include the overridden include file through
56375         #include_next, outside the double-inclusion guard.
56376         * lib/stdio_.h [__DECC]: Likewise.
56377         * lib/stdlib_.h [__DECC]: Likewise.
56378         * lib/string_.h [__DECC]: Likewise.
56379         * lib/time_.h [__DECC]: Likewise.
56380         * lib/wchar_.h [__DECC]: Likewise.
56381         * lib/wctype_.h [__DECC]: Likewise.
56382         * lib/inttypes_.h [__DECC]: Likewise.
56383         Reported by Albert Chin <china@thewrittenword.com> in
56384         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
56385
56386 2007-04-04  Eric Blake  <ebb9@byu.net>
56387
56388         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
56389         1.5.x.
56390
56391 2007-04-04  Bruno Haible  <bruno@clisp.org>
56392
56393         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
56394         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
56395
56396 2007-04-04  Bruno Haible  <bruno@clisp.org>
56397
56398         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
56399         results for "%010a" of Infinity and NaN.
56400         * tests/test-vasprintf-posix.c (test_function): Likewise.
56401         * tests/test-snprintf-posix.h (test_function): Likewise.
56402         * tests/test-sprintf-posix.h (test_function): Likewise.
56403         * tests/test-fprintf-posix.h (test_function): Remove these tests.
56404         * tests/test-printf-posix.h (test_function): Likewise.
56405         * tests/test-fprintf-posix.out: Update.
56406         Needed for FreeBSD 6.1.
56407
56408 2007-04-04  Bruno Haible  <bruno@clisp.org>
56409
56410         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
56411         directly used by the gnulib modules nor by gnulib-tool.
56412
56413 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56414
56415         * DEPENDENCIES: Give overall description of version dependency
56416         desirability.  Use more-typical names for apps.
56417         Add shell, coreutils, diffutils, grep, tar, gzip.
56418
56419 2007-04-04  Simon Josefsson  <simon@josefsson.org>
56420
56421         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
56422
56423 2007-04-04  Karl Berry  <karl@gnu.org>
56424
56425         * MODULES.html.sh (func_module): missing '.
56426
56427 2007-04-03  Bruno Haible  <bruno@clisp.org>
56428
56429         * modules/argmatch-tests (Makefile.am): New variable
56430         test_argmatch_LDADD.
56431         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
56432         * modules/array-list-tests (Makefile.am): New variable
56433         test_array_list_LDADD.
56434         * modules/array-oset-tests (Makefile.am): New variable
56435         test_array_oset_LDADD.
56436         * modules/avltree-list-tests (Makefile.am): New variable
56437         test_avltree_list_LDADD.
56438         * modules/avltree-oset-tests (Makefile.am): New variable
56439         test_avltree_oset_LDADD.
56440         * modules/avltreehash-list-tests (Makefile.am): New variable
56441         test_avltreehash_list_LDADD.
56442         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
56443         test_canonicalize_lgpl_LDADD.
56444         * modules/carray-list-tests (Makefile.am): New variable
56445         test_carray_list_LDADD.
56446         * modules/dirname-tests (Makefile.am): New variable
56447         test_dirname_LDADD.
56448         * modules/linked-list-tests (Makefile.am): New variable
56449         test_linked_list_LDADD.
56450         * modules/linkedhash-list-tests (Makefile.am): New variable
56451         test_linkedhash_list_LDADD.
56452         * modules/rbtree-list-tests (Makefile.am): New variable
56453         test_rbtree_list_LDADD.
56454         * modules/rbtree-oset-tests (Makefile.am): New variable
56455         test_rbtree_oset_LDADD.
56456         * modules/rbtreehash-list-tests (Makefile.am): New variable
56457         test_rbtreehash_list_LDADD.
56458         * modules/xvasprintf-tests (Makefile.am): New variable
56459         test_xvasprintf_LDADD.
56460         Reported by Eric Blake.
56461
56462 2007-04-03  Eric Blake  <ebb9@byu.net>
56463
56464         * DEPENDENCIES: Weaken m4 requirements.
56465
56466 2007-04-03  Bruno Haible  <bruno@clisp.org>
56467
56468         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
56469         * modules/isnanl-tests (configure.ac): Likewise.
56470
56471 2007-04-03  Ben Pfaff  <blp@gnu.org>
56472
56473         * modules/iconv_open: Add $(srcdir)/ to source directory
56474         references in Makefile fragments that call gperf, to fix VPATH
56475         builds.
56476
56477 2007-04-03  Bruno Haible  <bruno@clisp.org>
56478
56479         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
56480         * lib/ldexpl.c: Undo last change.
56481
56482 2007-04-03  Bruno Haible  <bruno@clisp.org>
56483
56484         * modules/printf-frexpl (Depends-on): Undo last change.
56485         (Files): Add m4/ldexpl.m4.
56486
56487 2007-04-03  Bruno Haible  <bruno@clisp.org>
56488
56489         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
56490         * modules/isnanl (Link): New section.
56491
56492         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
56493         * modules/frexp (Link): New section.
56494
56495         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
56496         * modules/frexpl (Link): New section.
56497
56498         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
56499         * modules/ldexpl (Link): New section.
56500
56501 2007-04-03  Bruno Haible  <bruno@clisp.org>
56502
56503         * modules/TEMPLATE-EXTENDED: New file.
56504         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
56505
56506 2007-04-03  Bruno Haible  <bruno@clisp.org>
56507
56508         * DEPENDENCIES: New file.
56509         Suggested by Simon Josefsson.
56510
56511 2007-04-03  Bruno Haible  <bruno@clisp.org>
56512
56513         * doc/gnulib.texi: Escape @.
56514
56515 2007-04-03  James Youngman  <jay@gnu.org>
56516         and Paul Eggert  <eggert@cs.ucla.edu>
56517
56518         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
56519         birthtime on all systems that have birthtime, not just those which
56520         use st_birthtimensec rather than st_birthtim.  Putting zero in
56521         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
56522         that the birth time is not available for files on an NFS mount.
56523
56524 2007-04-03  Simon Josefsson  <simon@josefsson.org>
56525
56526         * modules/memxor: Move back from crypto/, suggested by Bruno.
56527         * modules/crypto/hmac-sha1: Fix memxor dependency.
56528
56529         * modules/crypto/gc: Moved from ../.
56530
56531 2007-04-02  Eric Blake  <ebb9@byu.net>
56532
56533         * lib/ldexpl.c (includes): Avoid libm.
56534
56535         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
56536
56537 2007-04-02  Bruno Haible  <bruno@clisp.org>
56538
56539         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
56540         on IRIX.
56541
56542 2007-04-02  Bruno Haible  <bruno@clisp.org>
56543
56544         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
56545         x86 or x86_64 platforms running MacOS X.
56546         Reported by Ryan Schmidt <@ryandesign.com>.
56547
56548 2007-04-02  Bruno Haible  <bruno@clisp.org>
56549
56550         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
56551         i386.
56552
56553 2007-04-01  Simon Josefsson  <simon@josefsson.org>
56554
56555         * modules/crypto/arcfour: Moved from ../.
56556         * modules/crypto/arcfour-tests: Moved from ../.
56557         * modules/crypto/arctwo: Moved from ../.
56558         * modules/crypto/arctwo-tests: Moved from ../.
56559         * modules/crypto/des: Moved from ../.
56560         * modules/crypto/des-tests: Moved from ../.
56561         * modules/crypto/gc-arcfour: Moved from ../.
56562         * modules/crypto/gc-arcfour-tests: Moved from ../.
56563         * modules/crypto/gc-arctwo: Moved from ../.
56564         * modules/crypto/gc-arctwo-tests: Moved from ../.
56565         * modules/crypto/gc-des: Moved from ../.
56566         * modules/crypto/gc-des-tests: Moved from ../.
56567         * modules/crypto/gc-hmac-md5: Moved from ../.
56568         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
56569         * modules/crypto/gc-hmac-sha1: Moved from ../.
56570         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
56571         * modules/crypto/gc-md2: Moved from ../.
56572         * modules/crypto/gc-md2-tests: Moved from ../.
56573         * modules/crypto/gc-md4: Moved from ../.
56574         * modules/crypto/gc-md4-tests: Moved from ../.
56575         * modules/crypto/gc-md5: Moved from ../.
56576         * modules/crypto/gc-md5-tests: Moved from ../.
56577         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
56578         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
56579         * modules/crypto/gc-random: Moved from ../.
56580         * modules/crypto/gc-rijndael: Moved from ../.
56581         * modules/crypto/gc-rijndael-tests: Moved from ../.
56582         * modules/crypto/gc-sha1: Moved from ../.
56583         * modules/crypto/gc-sha1-tests: Moved from ../.
56584         * modules/crypto/gc-tests: Moved from ../.
56585         * modules/crypto/hmac-md5: Moved from ../.
56586         * modules/crypto/hmac-md5-tests: Moved from ../.
56587         * modules/crypto/hmac-sha1: Moved from ../.
56588         * modules/crypto/hmac-sha1-tests: Moved from ../.
56589         * modules/crypto/md2: Moved from ../.
56590         * modules/crypto/md2-tests: Moved from ../.
56591         * modules/crypto/md4: Moved from ../.
56592         * modules/crypto/md4-tests: Moved from ../.
56593         * modules/crypto/md5: Moved from ../.
56594         * modules/crypto/md5-tests: Moved from ../.
56595         * modules/crypto/memxor: Moved from ../.
56596         * modules/crypto/rijndael: Moved from ../.
56597         * modules/crypto/rijndael-tests: Moved from ../.
56598         * modules/crypto/sha1: Moved from ../.
56599
56600 2007-03-30  James Youngman  <jay@gnu.org>
56601
56602         * tests/test-stat-time.c (prepare_test): use chmod() rather than
56603         rename() to change the ctime of a file (because ctime is unaffected
56604         by rename on jfs2 on AIX 5.1).
56605         (main): Start by doing cleanup, in case a previous run failed leaving
56606         test files behind.
56607
56608 2007-03-31  Bruno Haible  <bruno@clisp.org>
56609
56610         Support old proprietary implementations of iconv.
56611         * modules/iconv_open: New file.
56612         * lib/iconv_.h: New file.
56613         * m4/iconv_h.m4: New file.
56614         * lib/iconv_open.c: New file.
56615         * lib/iconv_open-aix.gperf: New file.
56616         * lib/iconv_open-hpux.gperf: New file.
56617         * lib/iconv_open-irix.gperf: New file.
56618         * lib/iconv_open-osf.gperf: New file.
56619         * m4/iconv_open.m4: New file.
56620         * modules/linebreak (Depends-on): Add iconv_open.
56621         * modules/striconv (Depends-on): Likewise.
56622         * modules/striconveh (Depends-on): Likewise.
56623         * modules/unicodeio (Depends-on): Likewise.
56624         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
56625         (iconv_t)(-1).
56626         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
56627         conversion if cd is (iconv_t)(-1).
56628         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
56629         is not possible.
56630
56631 2007-03-31  Bruno Haible  <bruno@clisp.org>
56632
56633         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56634         work on Solaris either. Protect also second use of "autodetect_jp".
56635
56636 2007-03-31  Bruno Haible  <bruno@clisp.org>
56637
56638         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
56639         the function is not present.
56640
56641 2007-03-31  Bruno Haible  <bruno@clisp.org>
56642
56643         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
56644         the function is not present.
56645
56646 2007-03-31  Bruno Haible  <bruno@clisp.org>
56647
56648         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
56649         a bug in HP-UX iconv_open().
56650
56651 2007-03-31  Bruno Haible  <bruno@clisp.org>
56652
56653         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
56654         (Mathematics <math.h>): New section, add fpieee.
56655         (Input/output <stdio.h>): Add fseterr.
56656         (Mathematics <math.h>): New section, add printf-frexp.
56657         (Container data structures): Add sublist.
56658         (Core language properties): Add fpucw, inline.
56659         (Functions for greatest-width integer types <inttypes.h>): Add
56660         imaxabs, imaxdiv, inttypes.
56661         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
56662         isnanl-nolibm, ldexp.
56663         (Mathematics <math.h>): New section, add printf-frexpl.
56664         (Support for systems lacking POSIX:2001): Add fprintf-posix,
56665         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
56666         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
56667         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
56668         (Unicode string functions): Add unistr/u*-mbtoucr.
56669         (Java): Add javacomp-script, javaexec-script.
56670         (C#): Add csharpcomp-script, csharpexec-script.
56671         (Support for building libraries and executables): Add havelib,
56672         relocatable-*.
56673         (Support for maintaining and releasing projects): Renamed from
56674         'Support for maintaining and release projects'. Add announce-gen.
56675
56676 2007-03-31  Bruno Haible  <bruno@clisp.org>
56677
56678         * README: Talk primarily about git.
56679         (git and CVS): Renamed from CVS.
56680         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
56681         gnulib is available through git.
56682         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
56683
56684 2007-03-30  Bruno Haible  <bruno@clisp.org>
56685
56686         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
56687         * lib/poll_.h: Likewise.
56688         * lib/stat_.h: Likewise.
56689         * lib/sys_time_.h: Likewise.
56690         * lib/sysexit_.h: Likewise.
56691         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
56692         * lib/stdbool_.h: Likewise.
56693         * lib/byteswap_.h: Add double-inclusion guard.
56694
56695 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
56696
56697         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
56698
56699 2007-03-30  Karl Berry  <karl@gnu.org>
56700
56701         * config/srclist-update: double space after USA in the license
56702         substitution, since that's how it's usually (?) written.
56703
56704 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56705
56706         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
56707         reported by Bruno Haible.
56708
56709 2007-03-29  Bruno Haible  <bruno@clisp.org>
56710
56711         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
56712         a bug in AIX iconv().
56713
56714 2007-03-29  Bruno Haible  <bruno@clisp.org>
56715
56716         * modules/ldexpl-tests: New file.
56717         * tests/test-ldexpl.c: New file.
56718
56719 2007-03-29  Bruno Haible  <bruno@clisp.org>
56720
56721         * lib/ldexpl.c: Include fpucw.h.
56722         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
56723         multiplication.
56724         * modules/ldexpl (Depends-on): Add fpucw.
56725
56726 2007-03-29  Bruno Haible  <bruno@clisp.org>
56727
56728         * modules/ldexpl: New file.
56729         * m4/ldexpl.m4: New file.
56730         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
56731         set.
56732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
56733         REPLACE_LDEXPL.
56734         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
56735         REPLACE_LDEXPL.
56736         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56737         gl_FUNC_LDEXPL_WORKS.
56738         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
56739         * modules/mathl (Files): Remove lib/ldexpl.c.
56740         (Depends-on): Add ldexpl.
56741
56742 2007-03-29  Bruno Haible  <bruno@clisp.org>
56743
56744         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
56745
56746 2007-03-29  Bruno Haible  <bruno@clisp.org>
56747
56748         * tests/test-striconveh.c (main): Don't assume that a direct conversion
56749         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
56750         and possibly also HP-UX.
56751         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56752         work on AIX, IRIX, HP-UX, OSF/1.
56753         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
56754         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
56755         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
56756         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
56757         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
56758         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
56759
56760 2007-03-29  Bruno Haible  <bruno@clisp.org>
56761
56762         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
56763
56764 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
56765
56766         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
56767         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
56768
56769 2007-03-29  Eric Blake  <ebb9@byu.net>
56770
56771         * lib/acl-internal.h: Remove redundant include.
56772         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
56773         Cygwin when a file is locked.
56774
56775 2007-03-29  Bruno Haible  <bruno@clisp.org>
56776
56777         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
56778         file.
56779         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
56780
56781 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
56782
56783         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
56784         try to remove a parent directory if the child couldn't be removed
56785         (except for the first rmdir, which could fail because the child
56786         doesn't exist).  Problem reported by Jeff Blaine in
56787         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
56788
56789 2007-03-28  Bruno Haible  <bruno@clisp.org>
56790
56791         * lib/striconveh.c (utf8conv_carefully): New function.
56792         (mem_cd_iconveh_internal): Invoke it.
56793
56794 2007-03-28  Bruno Haible  <bruno@clisp.org>
56795
56796         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
56797         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
56798         input.
56799         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
56800         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
56801         unistr/u8-uctomb.
56802
56803 2007-03-28  Bruno Haible  <bruno@clisp.org>
56804
56805         * modules/unistr/u8-mbtoucr: New file.
56806         * lib/unistr/u8-mbtoucr.c: New file.
56807         * modules/unistr/u16-mbtoucr: New file.
56808         * lib/unistr/u16-mbtoucr.c: New file.
56809         * modules/unistr/u16-mbtoucr: New file.
56810         * lib/unistr/u16-mbtoucr.c: New file.
56811         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
56812
56813 2007-03-27  Simon Josefsson  <simon@josefsson.org>
56814             Bruno Haible  <bruno@clisp.org>
56815
56816         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
56817         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
56818         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
56819
56820         * m4/stdio_h.m4: Add stubs for vasprintf too.
56821
56822         * modules/stdio: Support vasprintf in sed command.
56823
56824         * modules/vasprintf: Depend on stdio for prototypes.  Remove
56825         vasprintf.h.  Add stdio module indicator.
56826
56827         * lib/stdio_.h: Declare asprintf and vasprintf, based on
56828         vasprintf.h.
56829
56830         * lib/vasprintf.h: File removed.
56831
56832         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
56833         * lib/vasprintf.c: Ditto.
56834         * lib/xvasprintf.c: Ditto.
56835         * tests/test-vasprintf-posix.c: Ditto.
56836         * tests/test-vasprintf.c: Ditto.
56837
56838 2007-03-27  Bruno Haible  <bruno@clisp.org>
56839
56840         Make vasnprintf multithread-safe.
56841         * lib/vasnprintf.c (decimal_point_char): New function.
56842         (VASNPRINTF): Use it.
56843         Suggested by Simon Josefsson.
56844
56845 2007-03-27  Eric Blake  <ebb9@byu.net>
56846
56847         Support sub-second birthtime on cygwin.
56848         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
56849         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
56850         (get_stat_birthtime): Also work with st_birthtim.
56851
56852 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
56853
56854         * lib/stat-time.h (USE_BIRTHTIME): Remove.
56855         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
56856         (get_stat_birthtime_ns): Do not try to use "spare" fields.
56857         (get_stat_birthtime_ns): Simplify compile-time tests.
56858         (get_stat_birthtime): Change the API to look like
56859         get_stat_mtime etc., except return a negative tv_nsec on error.
56860         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
56861         Don't check for "spare" fields.
56862         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
56863         or for struct stat.st_birthtime, as these tests aren't used.
56864         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
56865
56866 2007-03-27  Bruno Haible  <bruno@clisp.org>
56867
56868         * lib/stat-time.h: Include <sys/stat.h>.
56869
56870 2007-03-27  James Youngman  <jay@gnu.org>
56871
56872         * lib/stat-time.h (get_stat_birthtime): New function for
56873           retrieving st_birthtime as provided by UFS2 (hence *BSD).
56874         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
56875           and its variants.
56876         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
56877         * modules/stat-time-test: New file.
56878         * tests/test-stat-time.c: New test, devised by Bruno Haible.
56879
56880 2007-03-26  Bruno Haible  <bruno@clisp.org>
56881
56882         Better support of signalling NaNs.
56883         * lib/atanl.c: Include isnanl.h.
56884         (atanl): Perform test for NaN at the beginning of the function and
56885         through a call to isnanl.
56886         * lib/cosl.c: Include isnanl.h.
56887         (cosl): Perform test for NaN at the beginning of the function and
56888         through a call to isnanl.
56889         * lib/ldexpl.c: Include isnanl.h.
56890         (ldexpl): Perform test for NaN through a call to isnanl.
56891         * lib/logl.c: Include isnanl.h.
56892         (logl): Perform test for NaN at the beginning of the function and
56893         through a call to isnanl.
56894         * lib/sinl.c: Include isnanl.h.
56895         (sinl): Perform test for NaN at the beginning of the function and
56896         through a call to isnanl.
56897         * lib/sqrtl.c: Include isnanl.h.
56898         (sqrtl): Perform test for NaN at the beginning of the function and
56899         through a call to isnanl.
56900         * lib/tanl.c: Include isnanl.h.
56901         (tanl): Perform test for NaN at the beginning of the function and
56902         through a call to isnanl.
56903         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
56904         * modules/mathl (Depends-on): Add isnanl.
56905
56906 2007-03-26  Eric Blake  <ebb9@byu.net>
56907
56908         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
56909         regression in logic sense of previous patch.
56910
56911 2007-03-26  Bruno Haible  <bruno@clisp.org>
56912
56913         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
56914         unportable shell command "if ! ...".
56915         Reported by Ralf Wildenhues.
56916
56917 2007-03-25  Bruno Haible  <bruno@clisp.org>
56918
56919         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
56920         <sysexits.h> file, and only add EX_CONFIG.
56921         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
56922         absolute file name and whether it is sufficient. Substitute also
56923         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
56924         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
56925         ABSOLUTE_SYSEXITS_H into sysexits.h.
56926
56927 2007-03-25  Bruno Haible  <bruno@clisp.org>
56928
56929         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
56930         hints is NULL.
56931
56932 2007-03-25  Bruno Haible  <bruno@clisp.org>
56933
56934         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
56935         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
56936
56937 2007-03-25  Bruno Haible  <bruno@clisp.org>
56938
56939         * lib/vasnprintf.c: Include langinfo.h.
56940         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
56941         multithread-safe.
56942         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
56943         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
56944         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56945         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56946         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56947         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56948         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56949         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
56950         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56951         Reported by Simon Josefsson.
56952
56953 2007-03-25  Bruno Haible  <bruno@clisp.org>
56954
56955         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
56956         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
56957         * modules/vasnprintf (Depends-on): Add stdint.
56958
56959 2007-03-25  Bruno Haible  <bruno@clisp.org>
56960
56961         * modules/fpieee: New file.
56962         * m4/fpieee.m4: New file.
56963         * modules/isnan-nolibm (Depends-on): Add fpieee.
56964         * modules/isnanl-nolibm (Depends-on): Add fpieee.
56965         * modules/isnanl (Depends-on): Add fpieee.
56966
56967 2007-03-25  Bruno Haible  <bruno@clisp.org>
56968
56969         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
56970
56971 2007-03-25  Bruno Haible  <bruno@clisp.org>
56972
56973         Avoid test failures on IRIX 6.5.
56974         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
56975         (main): Use it.
56976         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
56977         macros.
56978         (main): Use them.
56979
56980 2007-03-25  Bruno Haible  <bruno@clisp.org>
56981
56982         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
56983         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
56984         exists but doesn't work.
56985         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
56986         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
56987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
56988         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
56989         math.h.
56990
56991 2007-03-25  Bruno Haible  <bruno@clisp.org>
56992
56993         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
56994         returns inf. Needed on IRIX 6.5.
56995
56996 2007-03-25  Bruno Haible  <bruno@clisp.org>
56997
56998         * tests/test-frexpl.c: Include isnanl-nolibm.h.
56999         (main): Use isnanl instead of x != x idiom.
57000         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57001
57002         * tests/test-frexp.c: Include isnan.h.
57003         (main): Use isnan instead of x != x idiom.
57004         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57005
57006 2007-03-25  Bruno Haible  <bruno@clisp.org>
57007
57008         * tests/test-frexp.c (NaN): New function/macro.
57009         (main): Use it instead of 0.0 / 0.0.
57010         * tests/test-isnan.c (NaN): New function/macro.
57011         (main): Use it instead of 0.0 / 0.0.
57012         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57013         (test_function): Use it instead of 0.0 / 0.0.
57014         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57015         (test_function): Use it instead of 0.0 / 0.0.
57016         * tests/test-snprintf-posix.h (NaN): New function/macro.
57017         (test_function): Use it instead of 0.0 / 0.0.
57018         * tests/test-sprintf-posix.h (NaN): New function/macro.
57019         (test_function): Use it instead of 0.0 / 0.0.
57020         * tests/test-fprintf-posix.h (NaN): New function/macro.
57021         (test_function): Use it instead of 0.0 / 0.0.
57022         * tests/test-printf-posix.h (NaN): New function/macro.
57023         (test_function): Use it instead of 0.0 / 0.0.
57024
57025         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57026
57027 2007-03-25  Bruno Haible  <bruno@clisp.org>
57028
57029         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57030
57031 2007-03-25  Bruno Haible  <bruno@clisp.org>
57032
57033         * lib/regexec.c (merge_state_with_log): Make static.
57034
57035 2007-03-25  Bruno Haible  <bruno@clisp.org>
57036
57037         * lib/trigl.c (kernel_rem_pio2): Make static.
57038
57039 2007-03-25  Bruno Haible  <bruno@clisp.org>
57040
57041         * lib/sincosl.c (sincosl_table): Make static.
57042
57043 2007-03-25  Bruno Haible  <bruno@clisp.org>
57044
57045         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57046         if the compiler does not support C99.
57047
57048 2007-03-25  Bruno Haible  <bruno@clisp.org>
57049
57050         * modules/time (Makefile.am): Ensure all rule action lines start with a
57051         tab.
57052
57053 2007-03-24  Bruno Haible  <bruno@clisp.org>
57054
57055         * modules/tsearch-tests: New file.
57056         * tests/test-tsearch.sh: New file.
57057         * tests/test-tsearch.c: New file, mostly copied from glibc.
57058
57059         * modules/search-tests: New file.
57060         * tests/test-search.c: New file.
57061
57062         * modules/search: New file.
57063         * lib/search_.h: New file, incorporating lib/tsearch.h.
57064         * m4/search_h.m4: New file.
57065         * lib/tsearch.h: Remove file.
57066         * lib/tsearch.c: Include search.h instead of tsearch.h.
57067         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57068         HAVE_TSEARCH.
57069         * modules/tsearch (Files): Remove lib/tsearch.h.
57070         (Depends-on): Add search.
57071         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57072         (Include): Change tsearch.h into search.h.
57073
57074 2007-03-24  Bruno Haible  <bruno@clisp.org>
57075
57076         * modules/fpucw: New file.
57077         * lib/fpucw.h: New file.
57078         * lib/frexp.c: Include fpucw.h.
57079         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57080         (FUNC): Use them.
57081         * lib/printf-frexp.c: Include fpucw.h.
57082         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57083         (FUNC): Use them.
57084         * lib/vasnprintf.c: Include fpucw.h.
57085         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57086         'long double' calculations.
57087         * tests/test-frexpl.c: Include fpucw.h.
57088         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57089         * tests/test-printf-frexpl.c: Include fpucw.h.
57090         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57091         * modules/frexpl (Depends-on): Add fpucw.
57092         * modules/printf-frexpl (Depends-on): Likewise.
57093         * modules/fprintf-posix (Depends-on): Likewise.
57094         * modules/snprintf-posix (Depends-on): Likewise.
57095         * modules/sprintf-posix (Depends-on): Likewise.
57096         * modules/vasnprintf-posix (Depends-on): Likewise.
57097         * modules/vasprintf-posix (Depends-on): Likewise.
57098         * modules/vfprintf-posix (Depends-on): Likewise.
57099         * modules/vsnprintf-posix (Depends-on): Likewise.
57100         * modules/vsprintf-posix (Depends-on): Likewise.
57101         * modules/frexpl-tests (Depends-on): Likewise.
57102         * modules/printf-frexpl-tests (Depends-on): Likewise.
57103
57104 2007-03-24  Bruno Haible  <bruno@clisp.org>
57105
57106         * lib/float+.h: New file.
57107         * lib/isnan.c: Include float+.h.
57108         (SIZE): New macro.
57109         (FUNC): Compare only SIZE bytes of the value.
57110         * lib/vasnprintf.c: Include float+.h.
57111         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57112         SIZEOF_LDBL or SIZEOF_DBL bytes.
57113         * modules/isnan-nolibm (Files): Add lib/float+.h.
57114         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57115         * modules/isnanl (Files): Add lib/float+.h.
57116         * modules/vasnprintf (Files): Add lib/float+.h.
57117
57118 2007-03-24  Bruno Haible  <bruno@clisp.org>
57119
57120         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57121         include isnanl-nolibm.h.
57122
57123 2007-03-24  Bruno Haible  <bruno@clisp.org>
57124
57125         * tests/test-read-file.c (main): Don't produce spurious output for
57126         expected situations. Make the test fail if it encountered unexpected
57127         results.
57128
57129 2007-03-24  Bruno Haible  <bruno@clisp.org>
57130
57131         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57132         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57133
57134 2007-03-24  Bruno Haible  <bruno@clisp.org>
57135
57136         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57137
57138 2007-03-24  Bruno Haible  <bruno@clisp.org>
57139
57140         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57141         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57142
57143         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
57144         * modules/utf8-ucs4: Turn into a symbolic link to module
57145         unistr/u8-mbtouc.
57146
57147         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
57148         utf8-ucs4-unsafe.
57149         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
57150         unistr/u8-mbtouc-unsafe.
57151
57152         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
57153         * modules/utf16-ucs4: Turn into a symbolic link to module
57154         unistr/u16-mbtouc.
57155
57156         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
57157         utf16-ucs4-unsafe.
57158         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
57159         unistr/u16-mbtouc-unsafe.
57160
57161         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
57162         * modules/ucs4-utf8: Turn into a symbolic link to module
57163         unistr/u8-ubtomb.
57164
57165         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
57166         * modules/ucs4-utf16: Turn into a symbolic link to module
57167         unistr/u16-ubtomb.
57168
57169 2007-03-24  Bruno Haible  <bruno@clisp.org>
57170
57171         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
57172         Enable the function only if HAVE_INLINE.
57173         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
57174         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57175         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
57176         Enable the function only if HAVE_INLINE.
57177         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
57178         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57179         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
57180         Enable the function only if HAVE_INLINE.
57181         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
57182         Enable the function only if HAVE_INLINE.
57183         * modules/utf8-ucs4: Update.
57184         * modules/utf8-ucs4-unsafe: Update.
57185         * modules/utf16-ucs4: Update.
57186         * modules/utf16-ucs4-unsafe: Update.
57187         * modules/ucs4-utf8: Update.
57188         * modules/ucs4-utf16: Update.
57189
57190 2007-03-24  Bruno Haible  <bruno@clisp.org>
57191
57192         * lib/utf8-ucs4.h: Remove file.
57193         * lib/utf8-ucs4-unsafe.h: Remove file.
57194         * lib/utf16-ucs4.h: Remove file.
57195         * lib/utf16-ucs4-unsafe.h: Remove file.
57196         * lib/ucs4-utf8.h: Remove file.
57197         * lib/ucs4-utf16.h: Remove file.
57198         * lib/unistr.h: Include their previous contents.
57199         * m4/utf-ucs4.m4: Remove file.
57200         * m4/ucs4-utf.m4: Remove file.
57201         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
57202         (Depends-on): Add unistr/base.
57203         (configure.ac): Remove gl_UTF_UCS4.
57204         (Makefile.am): Update.
57205         (Include): Change to unistr.h.
57206         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
57207         (Depends-on): Add unistr/base.
57208         (configure.ac): Remove gl_UTF_UCS4.
57209         (Makefile.am): Update.
57210         (Include): Change to unistr.h.
57211         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
57212         (Depends-on): Add unistr/base.
57213         (configure.ac): Remove gl_UTF_UCS4.
57214         (Makefile.am): Update.
57215         (Include): Change to unistr.h.
57216         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
57217         (Depends-on): Add unistr/base.
57218         (configure.ac): Remove gl_UTF_UCS4.
57219         (Makefile.am): Update.
57220         (Include): Change to unistr.h.
57221         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
57222         (Depends-on): Add unistr/base.
57223         (configure.ac): Remove gl_UCS4_UTF.
57224         (Makefile.am): Update.
57225         (Include): Change to unistr.h.
57226         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
57227         (Depends-on): Add unistr/base.
57228         (configure.ac): Remove gl_UCS4_UTF.
57229         (Makefile.am): Update.
57230         (Include): Change to unistr.h.
57231         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
57232         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
57233         utf8-ucs4-unsafe.h.
57234         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
57235         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
57236         utf16-ucs4-unsafe.h.
57237         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
57238         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
57239         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
57240         * lib/unistr/u8-strchr.c: Likewise.
57241         * lib/unistr/u8-strrchr.c: Likewise.
57242         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
57243         * lib/unistr/u16-strchr.c: Likewise.
57244         * lib/unistr/u16-strrchr.c: Likewise.
57245         * lib/striconveh.c: Update.
57246         * lib/linebreak.c: Update.
57247
57248 2007-03-24  Bruno Haible  <bruno@clisp.org>
57249
57250         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
57251         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
57252
57253 2007-03-22  Bruno Haible  <bruno@clisp.org>
57254
57255         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
57256
57257 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57258
57259         * MODULES.html.sh (File system functions): New module write-any-file.
57260         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
57261         * m4/write-any-file.m4: New files.
57262
57263 2007-03-23  Eric Blake  <ebb9@byu.net>
57264
57265         * gnulib-tool: Rearrange space-tab sequences, since some editors
57266         like to eat them.
57267
57268 2007-03-23  Eric Blake  <ebb9@byu.net>
57269
57270         * lib/version-etc.c (version_etc_va): Update license wording to
57271         be more concise.  Recommended by Richard Stallman.
57272
57273 2007-03-22  Bruno Haible  <bruno@clisp.org>
57274
57275         * lib/poll.c (MSG_PEEK): New fallback definition.
57276
57277 2007-03-22  Bruno Haible  <bruno@clisp.org>
57278
57279         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57280         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57281         (main): Update.
57282         Fixes a compilation error on BeOS.
57283
57284 2007-03-22  Bruno Haible  <bruno@clisp.org>
57285
57286         * modules/frexpl-tests: New file.
57287         * tests/test-frexpl.c: New file.
57288
57289         * modules/frexpl: New file.
57290         * m4/frexpl.m4: New file.
57291         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57292         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57293         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57294         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57295         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57296         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57297
57298 2007-03-22  Bruno Haible  <bruno@clisp.org>
57299
57300         * lib/frexpl.c: Share code with lib/frexp.c.
57301         * modules/mathl (Files): Add lib/frexp.c.
57302         (Depends-on): Add isnanl-nolibm.
57303
57304 2007-03-22  Bruno Haible  <bruno@clisp.org>
57305
57306         * modules/printf-frexp (Files): Add m4/frexp.m4.
57307         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57308         only if the found frexp function actually works.
57309
57310 2007-03-22  Bruno Haible  <bruno@clisp.org>
57311
57312         * lib/frexp.c: Remove older implementation that uses divisions.
57313
57314 2007-03-21  Bruno Haible  <bruno@clisp.org>
57315
57316         * modules/frexp-tests: New file.
57317         * tests/test-frexp.c: New file.
57318
57319         * modules/frexp: New file.
57320         * lib/frexp.c: New file.
57321         * m4/frexp.m4: New file.
57322         * lib/math_.h (frexp): New declaration.
57323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
57324         REPLACE_FREXP.
57325         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
57326
57327 2007-03-21  Bruno Haible  <bruno@clisp.org>
57328
57329         * modules/isnanl-tests: New file.
57330         * tests/test-isnanl.c: New file.
57331
57332         * modules/isnanl: New file.
57333         * lib/isnanl.h: New file.
57334         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
57335         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
57336         gl_FUNC_ISNANL_WORKS.
57337         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
57338         New macros.
57339
57340 2007-03-21  Bruno Haible  <bruno@clisp.org>
57341
57342         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
57343         lib/isnanl.h.
57344         (Include): Update.
57345         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
57346         * lib/vasnprintf.c: Update.
57347         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
57348         tests/test-isnanl.h, remove tests/test-isnanl.c.
57349         (Makefile.am): Update.
57350         * tests/test-isnanl-nolibm.c: New file.
57351         * tests/test-isnanl.h: New file.
57352         * tests/test-isnanl.c: Remove file.
57353
57354 2007-03-21  Jim Meyering  <jim@meyering.net>
57355
57356         When trying to open ".", treat ESTALE like EACCES.
57357         * lib/savewd.c (savewd_save): Resort to forking not just upon
57358         failure with EACCES, but also when errno is ESTALE.
57359
57360 2007-03-20  Bruno Haible  <bruno@clisp.org>
57361
57362         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
57363         Needed on AIX 5.1. Reported by Matthew Woehlke.
57364
57365 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57366
57367         Suggestions by Bruno Haible:
57368         * lib/acl-internal.h: Include "gettext.h" rather than rolling
57369         our own.
57370         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
57371         * modules/acl (Depends-on): Add gettext.
57372
57373 2007-03-19  Bruno Haible  <bruno@clisp.org>
57374
57375         * modules/iconvme: Remove file.
57376         * lib/iconvme.h: Remove file.
57377         * lib/iconvme.c: Remove file.
57378         * m4/iconvme.m4: Remove file.
57379
57380 2007-03-19  Bruno Haible  <bruno@clisp.org>
57381
57382         * doc/relocatable-maint.texi: Break long shell script line.
57383         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57384
57385 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57386
57387         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
57388         handle file_has_acl.
57389         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
57390         * lib/acl.c: Move header inclusions and related macro defns into
57391         lib/acl-internal.h.
57392         (S_ISLNK): Remove defn, since that's now done for us.
57393         (file_has_acl): Move to lib/file-has-acl.c.
57394         Call acl_trivial if available.  This is the crucial part of the fix.
57395         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
57396         shared within the library.  Rewrite a bit, partly to make it compatible
57397         with the GNU coding style.
57398         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
57399         Remove unnecessary double-quotes.
57400         Don't test for acl_to_text; the build will catch that.
57401         Replace acl_entries if it doesn't exist and it is needed.
57402         Check for -lsec and acl_trivial (as used on Solaris 10).
57403         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
57404         lib/file-has-acl.c.
57405         (Depends-on): Add sys_stat, for S_ISLNK.
57406
57407 2007-03-19  Ben Pfaff  <blp@gnu.org>
57408
57409         * doc/gnulib.texi: Fix typos.
57410         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57411
57412 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57413
57414         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
57415         If size is zero here, buf must be zero.
57416
57417 2007-03-19  Simon Josefsson  <simon@josefsson.org>
57418
57419         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
57420         <bruno@clisp.org>.
57421
57422 2007-03-18  Bruno Haible  <bruno@clisp.org>
57423
57424         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
57425         Suggested by Eric Blake.
57426
57427 2007-03-18  Ben Pfaff  <blp@gnu.org>
57428
57429         * doc/relocatable.texi: Recommend using as prefix a directory
57430         that does not exist and will never be created.  Based on
57431         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
57432         and others.
57433
57434 2007-03-17  Bruno Haible  <bruno@clisp.org>
57435
57436         * lib/fchownat.c: Include lchown.h.
57437
57438 2007-03-17  Bruno Haible  <bruno@clisp.org>
57439
57440         Fix endless loop when the given allocated size was > INT_MAX.
57441         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
57442         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
57443         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
57444         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
57445         * lib/sprintf.c (sprintf): Likewise.
57446
57447 2007-03-17  Bruno Haible  <bruno@clisp.org>
57448
57449         * tests/test-argp-2.sh (func_compare): Output a context diff.
57450
57451 2007-03-17  Bruno Haible  <bruno@clisp.org>
57452
57453         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
57454         locale's decimal-point character.
57455
57456 2007-03-17  Bruno Haible  <bruno@clisp.org>
57457
57458         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
57459         before comparing it. Needed because on some platforms (e.g. x86) a
57460         'long double' occupies less bytes than sizeof (long double).
57461
57462 2007-03-17  Bruno Haible  <bruno@clisp.org>
57463
57464         * tests/test-crc.c (main): Make printf statements 64-bit clean.
57465         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
57466         * tests/test-getaddrinfo.c (simple): Likewise.
57467         * tests/test-read-file.c (main): Likewise.
57468
57469 2007-03-17  Bruno Haible  <bruno@clisp.org>
57470
57471         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
57472
57473 2007-03-17  Bruno Haible  <bruno@clisp.org>
57474
57475         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
57476         unused variable.
57477
57478 2007-03-17  Bruno Haible  <bruno@clisp.org>
57479
57480         * tests/test-c-strcasecmp.c: Include c-strcase.h.
57481         * tests/test-c-strncasecmp.c: Likewise.
57482
57483 2007-03-17  Bruno Haible  <bruno@clisp.org>
57484
57485         * modules/stdlib (Depends-on): Add unistd.
57486         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
57487         Needed for MacOS X 10.3.
57488
57489 2007-03-17  Bruno Haible  <bruno@clisp.org>
57490
57491         * lib/unistr/u-strdup.h: Include <stdlib.h>.
57492
57493 2007-03-17  Bruno Haible  <bruno@clisp.org>
57494
57495         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
57496
57497 2007-03-17  Bruno Haible  <bruno@clisp.org>
57498
57499         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
57500         to reflect files copied from gnulib (with or without modifications).
57501         Suggested by Jim Meyering.
57502
57503 2007-03-17  Eric Blake  <ebb9@byu.net>
57504
57505         * NEWS: Document stdlib change from 2007-02-18.
57506
57507 2007-03-17  Jim Meyering  <jim@meyering.net>
57508
57509         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
57510         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
57511         someone uses a name containing shell meta-characters.
57512         Reported by Alfred M. Szmidt.
57513
57514         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
57515
57516 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57517
57518         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
57519         and copy gettext configuration files only if configure.ac contains
57520         a use of AM_GNU_GETTEXT_VERSION.
57521
57522 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57523
57524         * build-aux/bootstrap (gnulib_name): New variable.
57525         (gnulib_tool_options): Use it.
57526
57527 2007-03-13  Simon Josefsson  <simon@josefsson.org>
57528
57529         * tests/test-des.c: Use new namespace.
57530
57531 2007-03-15  Bruno Haible  <bruno@clisp.org>
57532
57533         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
57534         Reported by James Youngman <jay@gnu.org>.
57535
57536 2007-03-15  Bruno Haible  <bruno@clisp.org>
57537
57538         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
57539         declared prototype. Needed with cc on OSF/1 5.1.
57540
57541 2007-03-15  Bruno Haible  <bruno@clisp.org>
57542
57543         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
57544         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
57545         (struct gl_list_implementation): Add dispose_fn argument to the
57546         'create_empty', 'create' methods.
57547         (struct gl_list_impl_base): Add field 'dispose_fn'.
57548         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
57549         argument.
57550         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
57551         dispose_fn argument.
57552         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
57553         dispose_fn on the dropped values.
57554         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
57555         dispose_fn argument.
57556         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
57557         dropped values.
57558         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
57559         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57560         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
57561         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57562         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
57563         argument.
57564         (gl_tree_list_free): Call dispose_fn on the dropped values.
57565         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
57566         the dropped values.
57567         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57568         Add dispose_fn argument.
57569         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
57570         Call dispose_fn on the dropped values.
57571         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
57572         Add dispose_fn argument.
57573         (gl_sublist_create): Initialize the 'dispose_fn' field.
57574         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
57575         * tests/test-array_list.c (main): Update.
57576         * tests/test-carray_list.c (main): Update.
57577         * tests/test-avltree_list.c (main): Update.
57578         * tests/test-rbtree_list.c (main): Update.
57579         * tests/test-avltreehash_list.c (main): Update.
57580         * tests/test-rbtreehash_list.c (main): Update.
57581         * tests/test-linked_list.c (main): Update.
57582         * tests/test-linkedhash_list.c (main): Update.
57583         * tests/test-array_oset.c (main): Update.
57584
57585 2007-03-15  Bruno Haible  <bruno@clisp.org>
57586
57587         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
57588         (gl_oset_create_empty): Add dispose_fn argument.
57589         (struct gl_oset_implementation): Add dispose_fn argument to
57590         'create_empty' method.
57591         (struct gl_oset_impl_base): Add dispose_fn field.
57592         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
57593         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
57594         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
57595         values.
57596         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
57597         (gl_tree_oset_free): Call dispose_fn on the dropped values.
57598         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57599         dropped value.
57600         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57601         dropped value.
57602         * tests/test-array_oset.c (main): Update.
57603         * tests/test-avltree_oset.c (main): Update.
57604         * tests/test-rbtree_oset.c (main): Update.
57605         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
57606
57607 2007-03-13  Bruno Haible  <bruno@clisp.org>
57608
57609         * tests/test-stdbool.c (i): Update after last patch.
57610
57611 2007-03-12  Bruno Haible  <bruno@clisp.org>
57612
57613         * lib/quotearg.c: Include <wctype.h> early, before the definition of
57614         the iswprint macro. Needed on Solaris 2.5.1.
57615
57616 2007-03-12  Bruno Haible  <bruno@clisp.org>
57617
57618         * tests/test-printf-frexp.c (main): Declare x as volatile.
57619
57620 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57621
57622         * doc/gnulib.texi (Build robot for gnulib): New section.
57623
57624 2007-03-12  Jim Meyering  <jim@meyering.net>
57625
57626         * build-aux/bootstrap: New file.
57627         * build-aux/bootstrap.conf: New file, from coreutils.
57628
57629 2007-03-11  Bruno Haible  <bruno@clisp.org>
57630
57631         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
57632
57633 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57634
57635         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
57636         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
57637         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
57638
57639 2007-03-11  Bruno Haible  <bruno@clisp.org>
57640
57641         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
57642         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
57643
57644 2007-03-11  Bruno Haible  <bruno@clisp.org>
57645
57646         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
57647         formula. Needed for SunPRO C 5.0.
57648
57649 2007-03-11  Bruno Haible  <bruno@clisp.org>
57650
57651         * modules/long-options (Depends-on): Add getopt.
57652
57653 2007-03-11  Bruno Haible  <bruno@clisp.org>
57654
57655         * modules/modechange (Depends-on): Add stdbool.
57656
57657 2007-03-11  Bruno Haible  <bruno@clisp.org>
57658
57659         * modules/i-ring (Depends-on): Add stdbool.
57660
57661 2007-03-11  Bruno Haible  <bruno@clisp.org>
57662
57663         * modules/gc-des (Depends-on): Add stdbool.
57664
57665 2007-03-11  Bruno Haible  <bruno@clisp.org>
57666
57667         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
57668
57669 2007-03-11  Bruno Haible  <bruno@clisp.org>
57670
57671         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
57672
57673 2007-03-11  Bruno Haible  <bruno@clisp.org>
57674
57675         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
57676
57677 2007-03-11  Bruno Haible  <bruno@clisp.org>
57678
57679         * lib/vasnprintf.c (sprintf): Undefine.
57680
57681 2007-03-11  Bruno Haible  <bruno@clisp.org>
57682
57683         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
57684         initializers in SunPRO C and Compaq C compilers.
57685
57686 2007-03-11  Bruno Haible  <bruno@clisp.org>
57687
57688         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
57689         decrementing code ANSI C compliant.
57690
57691 2007-03-11  Bruno Haible  <bruno@clisp.org>
57692
57693         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
57694         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
57695
57696 2007-03-11  Bruno Haible  <bruno@clisp.org>
57697
57698         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
57699         <stdbool.h> substitute doesn't pass.
57700
57701 2007-03-11  Bruno Haible  <bruno@clisp.org>
57702
57703         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
57704
57705 2007-03-11  Bruno Haible  <bruno@clisp.org>
57706
57707         * gnulib-tool (func_create_megatestdir): Create also an autobuild
57708         script, for submission to autobuild.josefsson.org.
57709
57710 2007-03-10  Bruno Haible  <bruno@clisp.org>
57711
57712         * modules/canonicalize-lgpl-tests: New file.
57713         * tests/test-canonicalize-lgpl.sh: New file.
57714         * tests/test-canonicalize-lgpl.c: New file.
57715
57716         * modules/c-strcase-tests: New file.
57717         * tests/test-c-strcase.sh: New file.
57718         * tests/test-c-strcasecmp.c: New file.
57719         * tests/test-c-strncasecmp.c: New file.
57720
57721         * modules/atexit-tests: New file.
57722         * tests/test-atexit.sh: New file.
57723         * tests/test-atexit.c: New file.
57724
57725 2007-03-10  Bruno Haible  <bruno@clisp.org>
57726
57727         * tests/test-binary-io.sh: Use temporary filenames that are not so
57728         likely to clash with those of other tests (in a parallel make).
57729         * tests/test-binary-io.c: Likewise.
57730
57731 2007-03-10  Bruno Haible  <bruno@clisp.org>
57732
57733         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
57734         fallback; use #error instead.
57735         Suggested by Simon Josefsson.
57736
57737 2007-03-10  Bruno Haible  <bruno@clisp.org>
57738
57739         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
57740         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
57741         first and the last.
57742
57743 2007-03-10  Bruno Haible  <bruno@clisp.org>
57744
57745         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
57746
57747 2007-03-10  Bruno Haible  <bruno@clisp.org>
57748
57749         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
57750         "make distcheck".
57751         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
57752         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
57753         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
57754
57755 2007-03-10  Bruno Haible  <bruno@clisp.org>
57756
57757         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
57758         variable.
57759         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
57760         variable.
57761
57762 2007-03-09  Eric Blake  <ebb9@byu.net>
57763         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
57764
57765         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
57766         types are not being provided by gnulib.
57767         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
57768         types are supported.
57769
57770 2007-03-10  Bruno Haible  <bruno@clisp.org>
57771
57772         * lib/stdio_.h (__attribute__): New macro.
57773         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
57774         vsprintf): Specify __attribute__ __format__ for GCC.
57775         Suggested by Eric Blake.
57776
57777 2007-03-09  Bruno Haible  <bruno@clisp.org>
57778
57779         * modules/printf-posix-tests: New file.
57780         * tests/test-printf-posix.sh: New file.
57781         * tests/test-printf-posix.c: New file.
57782
57783         * modules/printf-posix: New file.
57784         * lib/printf.c: New file.
57785         * m4/printf-posix-rpl.m4: New file.
57786         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
57787         REPLACE_PRINTF.
57788         * lib/stdio_.h (printf): New declaration.
57789         (format, __format__, ____printf____, ____scanf____, ____strftime____,
57790         ____strfmon____): New macros.
57791         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
57792         REPLACE_PRINTF.
57793
57794 2007-03-09  Bruno Haible  <bruno@clisp.org>
57795
57796         * tests/test-vasnprintf-posix2.sh: New file.
57797         * tests/test-vasnprintf-posix2.c: New file.
57798         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
57799         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
57800         (Makefile.am): Activate test-vasnprintf-posix2.sh.
57801
57802         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
57803         a locale dependent decimal point, rather than always '.'.
57804
57805 2007-03-09  Eric Blake  <ebb9@byu.net>
57806
57807         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
57808         spite of platforms like Tandem/NSK that define it to -1.
57809
57810 2007-03-08  Bruno Haible  <bruno@clisp.org>
57811
57812         * modules/vprintf-posix-tests: New file.
57813         * tests/test-vprintf-posix.sh: New file.
57814         * tests/test-vprintf-posix.c: New file.
57815         * tests/test-printf-posix.h: New file.
57816
57817         * modules/vprintf-posix: New file.
57818         * lib/vprintf.c: New file.
57819         * m4/vprintf-posix.m4: New file.
57820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
57821         REPLACE_VPRINTF.
57822         * lib/stdio_.h (vprintf): New declaration.
57823         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
57824         REPLACE_VPRINTF.
57825
57826 2007-03-08  Bruno Haible  <bruno@clisp.org>
57827
57828         * modules/fprintf-posix-tests: New file.
57829         * tests/test-fprintf-posix.sh: New file.
57830         * tests/test-fprintf-posix.c: New file.
57831
57832         * modules/fprintf-posix: New file.
57833         * lib/fprintf.c: New file.
57834         * m4/fprintf-posix.m4: New file.
57835         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
57836         REPLACE_FPRINTF.
57837         * lib/stdio_.h (fprintf): New declaration.
57838         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
57839         REPLACE_FPRINTF.
57840
57841 2007-03-08  Bruno Haible  <bruno@clisp.org>
57842
57843         * modules/vfprintf-posix-tests: New file.
57844         * tests/test-vfprintf-posix.sh: New file.
57845         * tests/test-vfprintf-posix.c: New file.
57846         * tests/test-fprintf-posix.h: New file.
57847         * tests/test-fprintf-posix.out: New file.
57848
57849         * modules/vfprintf-posix: New file.
57850         * lib/vfprintf.c: New file.
57851         * m4/vfprintf-posix.m4: New file.
57852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
57853         REPLACE_VFPRINTF.
57854         * lib/stdio_.h (vfprintf): New declaration.
57855         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
57856         REPLACE_VFPRINTF.
57857
57858 2007-03-08  Bruno Haible  <bruno@clisp.org>
57859
57860         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
57861
57862 2007-03-08  Bruno Haible  <bruno@clisp.org>
57863
57864         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
57865         instead of 'expr' invocations.
57866         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57867         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57868         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57869         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57870         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57871         Suggested by Paul Eggert.
57872
57873 2007-03-08  Bruno Haible  <bruno@clisp.org>
57874
57875         * modules/fseterr-tests: New file.
57876         * tests/test-fseterr.c: New file.
57877
57878         * modules/fseterr: New file.
57879         * lib/fseterr.h: New file.
57880         * lib/fseterr.c: New file.
57881
57882 2007-03-08  Bruno Haible  <bruno@clisp.org>
57883
57884         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
57885         * lib/getopt_.h: Likewise.
57886         * lib/mbswidth.h: Likewise.
57887         * lib/setenv.h: Likewise.
57888         * lib/vasnprintf.h: Likewise.
57889         * lib/vasprintf.h: Likewise.
57890         * lib/verror.h: Likewise.
57891         * lib/xsetenv.h: Likewise.
57892         * lib/xvasprintf.h: Likewise.
57893
57894 2007-03-08  Jim Meyering  <jim@meyering.net>
57895
57896         * users.txt: Add parted.
57897
57898         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
57899
57900 2007-03-07  Bruno Haible  <bruno@clisp.org>
57901
57902         * m4/printf.m4: Make the shell script snippets copy&pastable.
57903
57904 2007-03-02  Bruno Haible  <bruno@clisp.org>
57905
57906         * lib/netinet_in_.h: New file.
57907         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
57908         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
57909         * modules/netinet_in (Files): Add lib/netinet_in_.h.
57910         (Depends-on): Add absolute-header.
57911         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
57912         into netinet/in.h.
57913
57914 2007-03-03  Bruno Haible  <bruno@clisp.org>
57915
57916         * lib/sys_select_.h: New file.
57917         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
57918         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
57919         * modules/sys_select (Files): Add lib/sys_select_.h.
57920         (Depends-on): Add absolute-header.
57921         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
57922         into sys/select.h.
57923
57924 2007-03-02  Bruno Haible  <bruno@clisp.org>
57925
57926         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
57927         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
57928         values.
57929         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
57930         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
57931         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
57932         * modules/sys_socket (Depends-on): Add absolute-header.
57933         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
57934         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
57935         (Include): Remove requirement of inclusion of <sys/types.h>.
57936
57937 2007-03-02  Bruno Haible  <bruno@clisp.org>
57938
57939         * lib/byteswap_.h (bswap_32): Fix formula.
57940
57941 2007-03-06  Bruno Haible  <bruno@clisp.org>
57942
57943         * modules/sprintf-posix-tests: New file.
57944         * tests/test-sprintf-posix.c: New file.
57945
57946         * modules/sprintf-posix: New file.
57947         * lib/sprintf.c: New file.
57948         * m4/sprintf-posix.m4: New file.
57949         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
57950         REPLACE_SPRINTF.
57951         * lib/stdio_.h (sprintf): New declaration.
57952         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
57953         REPLACE_SPRINTF.
57954
57955 2007-03-06  Bruno Haible  <bruno@clisp.org>
57956
57957         * modules/vsprintf-posix-tests: New file.
57958         * tests/test-vsprintf-posix.c: New file.
57959         * tests/test-sprintf-posix.h: New file.
57960
57961         * modules/vsprintf-posix: New file.
57962         * lib/vsprintf.c: New file.
57963         * m4/vsprintf-posix.m4: New file.
57964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
57965         REPLACE_VSPRINTF.
57966         * lib/stdio_.h (vsprintf): New declaration.
57967         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
57968         REPLACE_VSPRINTF.
57969
57970 2007-03-06  Bruno Haible  <bruno@clisp.org>
57971
57972         * modules/vsnprintf (Depend-on): Remove minmax.
57973
57974 2007-03-06  Bruno Haible  <bruno@clisp.org>
57975
57976         * modules/snprintf-posix-tests: New file.
57977         * tests/test-snprintf-posix.c: New file.
57978
57979         * modules/snprintf-posix: New file.
57980         * m4/snprintf-posix.m4: New file.
57981         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
57982         gl_FUNC_SNPRINTF.
57983         (gl_FUNC_SNPRINTF): Invoke it.
57984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
57985         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
57986         is set.
57987         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
57988
57989 2007-03-06  Bruno Haible  <bruno@clisp.org>
57990
57991         * modules/vsnprintf-posix-tests: New file.
57992         * tests/test-vsnprintf-posix.c: New file.
57993         * tests/test-snprintf-posix.h: New file.
57994
57995         * modules/vsnprintf-posix: New file.
57996         * m4/vsnprintf-posix.m4: New file.
57997         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
57998         gl_FUNC_VSNPRINTF.
57999         (gl_FUNC_VSNPRINTF): Invoke it.
58000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58001         * lib/stdio_.h (vsnprintf): Define as a replacement if
58002         REPLACE_VSNPRINTF is set.
58003         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58004
58005 2007-03-06  Bruno Haible  <bruno@clisp.org>
58006
58007         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58008         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58009
58010 2007-03-06  Bruno Haible  <bruno@clisp.org>
58011
58012         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58013         (asinl): Declare also if HAVE_DECL_ASINL is set.
58014         (atanl): Declare also if HAVE_DECL_ATANL is set.
58015         (ceill): Declare also if HAVE_DECL_CEILL is set.
58016         (cosl): Declare also if HAVE_DECL_COSL is set.
58017         (expl): Declare also if HAVE_DECL_EXPL is set.
58018         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58019         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58020         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58021         (logl): Declare also if HAVE_DECL_LOGL is set.
58022         (sinl): Declare also if HAVE_DECL_SINL is set.
58023         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58024         (tanl): Declare also if HAVE_DECL_TANL is set.
58025         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58027         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58028         declaration of frexpl, ldexpl.
58029         * modules/printf-frexpl (Depends-on): Add math.
58030         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58031
58032 2007-03-05  Bruno Haible  <bruno@clisp.org>
58033
58034         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58035         frexpl and ldexpl are declared.
58036         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58037
58038 2007-03-05  Bruno Haible  <bruno@clisp.org>
58039
58040         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58041         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58042
58043 2007-03-05  Bruno Haible  <bruno@clisp.org>
58044
58045         * lib/stdio_.h: Include <stddef.h>.
58046
58047 2007-03-05  Bruno Haible  <bruno@clisp.org>
58048
58049         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58050
58051 2007-03-05  Bruno Haible  <bruno@clisp.org>
58052
58053         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58054         NetBSD 4, from Ralf Wildenhues.
58055
58056 2007-03-04  Bruno Haible  <bruno@clisp.org>
58057
58058         * lib/vasprintf.h: Update #if logic for the case when the functions
58059         exist but are overridden.
58060
58061 2007-03-04  Bruno Haible  <bruno@clisp.org>
58062
58063         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58064         implementations: glibc-2.4 and MacOS X 10.3.
58065         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58066         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58067         * tests/test-vasprintf-posix.c (test_function): Likewise.
58068
58069 2007-03-04  Bruno Haible  <bruno@clisp.org>
58070
58071         * modules/vasprintf-posix-tests: New file.
58072         * tests/test-vasprintf-posix.c: New file.
58073
58074         * modules/vasprintf-posix: New file.
58075         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58076         defined.
58077         * m4/vasprintf-posix.m4: New file.
58078         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58079         gl_FUNC_VASPRINTF.
58080         (gl_FUNC_VASPRINTF): Invoke it.
58081         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58082         here.
58083         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58084
58085 2007-03-04  Bruno Haible  <bruno@clisp.org>
58086
58087         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58088         REPLACE_GETTIMEOFDAY.
58089         * modules/sys_time (Makefile.am): Likewise.
58090         * m4/sys_time_h.m4: Likewise.
58091         * m4/gettimeofday.m4: Likewise.
58092
58093 2007-03-04  Bruno Haible  <bruno@clisp.org>
58094
58095         * modules/vasnprintf-posix-tests: New file.
58096         * tests/test-vasnprintf-posix.c: New file.
58097
58098         * modules/vasnprintf-posix: New file.
58099         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58100         printf-frexpl.h.
58101         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58102         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58103         REPLACE_VASNPRINTF is defined.
58104         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58105         gl_FUNC_VASNPRINTF.
58106         (gl_FUNC_VASNPRINTF): Invoke it.
58107         * m4/vasnprintf-posix.m4: New file.
58108         * m4/printf.m4: New file.
58109
58110 2007-03-04  Bruno Haible  <bruno@clisp.org>
58111
58112         Compile progreloc.c only if --enable-relocatable is specified.
58113         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58114         if --enable-relocatable was specified.
58115         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58116         lib_SOURCES.
58117
58118 2007-03-04  Jim Meyering  <jim@meyering.net>
58119
58120         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58121         Use it consistently, rather than enumerating errno constants.
58122
58123 2007-03-04  Bruno Haible  <bruno@clisp.org>
58124
58125         * modules/xvasprintf-tests: New file.
58126         * tests/test-xvasprintf.c: New file.
58127
58128         * modules/vasprintf-tests: New file.
58129         * tests/test-vasprintf.c: New file.
58130
58131         * modules/vasnprintf-tests: New file.
58132         * tests/test-vasnprintf.c: New file.
58133
58134         * modules/vsnprintf-tests: New file.
58135         * tests/test-vsnprintf.c: New file.
58136
58137         * modules/snprintf-tests: New file.
58138         * tests/test-snprintf.c: New file.
58139
58140 2007-03-04  Bruno Haible  <bruno@clisp.org>
58141
58142         Compile relocatable.c only if --enable-relocatable is specified.
58143         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
58144         gl_RELOCATABLE_LIBRARY.
58145         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
58146         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
58147         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
58148         gl_RELOCATABLE_LIBRARY.
58149         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
58150         (Makefile.am): Remove lib_SOURCES.
58151         * modules/relocatable-lib-lgpl (configure.ac): Invoke
58152         gl_RELOCATABLE_LIBRARY.
58153         (Makefile.am): Remove lib_SOURCES.
58154         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
58155         always.
58156         * modules/relocatable-prog-wrapper (configure.ac): Invoke
58157         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
58158
58159 2007-03-04  Bruno Haible  <bruno@clisp.org>
58160
58161         * modules/argmatch-tests: New file.
58162         * tests/test-argmatch.c: New file.
58163
58164         * tests/test-allocsa.c (main): Halve the number of loop runs.
58165
58166         * modules/alloca-opt-tests: New file.
58167         * tests/test-alloca-opt.c: New file.
58168
58169 2007-03-04  Jim Meyering  <jim@meyering.net>
58170
58171         Work around difference between Linux ACLs and Solaris 10 ZFS.
58172         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
58173         for EINVAL.
58174
58175 2007-03-03  Bruno Haible  <bruno@clisp.org>
58176
58177         * modules/relocatable-prog (Depends-on): Add back progreloc's
58178         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
58179
58180 2007-03-03  Bruno Haible  <bruno@clisp.org>
58181
58182         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
58183         * modules/relocatable-lib: New file.
58184
58185 2007-03-03  Bruno Haible  <bruno@clisp.org>
58186
58187         * modules/relocatable-prog: Renamed from modules/relocatable.
58188         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
58189
58190 2007-03-03  Bruno Haible  <bruno@clisp.org>
58191
58192         * modules/relocatable-script (Files): Add doc/relocatable.texi,
58193         m4/relocatable-lib.m4.
58194         (Depends-on): Remove 'relocatable'.
58195         (configure.ac): Add gl_RELOCATABLE_NOP.
58196
58197 2007-03-03  Bruno Haible  <bruno@clisp.org>
58198
58199         * modules/relocatable-prog-wrapper: New file.
58200         * modules/relocatable (Depends-on): Add it. Remove all other
58201         dependencies except progname.
58202         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
58203
58204         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
58205         (gl_FUNC_STRERROR): Nop.
58206         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
58207
58208         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
58209         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
58210
58211         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
58212         (gl_FUNC_READLINK): Update.
58213
58214         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
58215
58216 2007-03-03  Bruno Haible  <bruno@clisp.org>
58217
58218         * lib/xreadlink.c: Include <unistd.h> unconditionally.
58219         * modules/xreadlink (Depends-on): Add unistd.
58220         * modules/xreadlink-with-size (Depends-on): Likewise.
58221
58222 2007-03-03  Bruno Haible  <bruno@clisp.org>
58223
58224         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
58225         extracted from gt_FUNC_SETENV.
58226         (gt_FUNC_SETENV): Remove macro.
58227         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
58228         remove gt_FUNC_SETENV.
58229
58230 2007-03-03  Bruno Haible  <bruno@clisp.org>
58231
58232         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
58233         ENABLE_RELOCATABLE here.
58234         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
58235
58236 2007-03-03  Bruno Haible  <bruno@clisp.org>
58237
58238         * modules/rbtreehash-list-tests (Depends-on): Add progname.
58239         * tests/test-rbtreehash_list.c: Include progname.h.
58240         (main): Call set_program_name.
58241
58242         * modules/rbtree-oset-tests (Depends-on): Add progname.
58243         * tests/test-rbtree_oset.c: Include progname.h.
58244         (main): Call set_program_name.
58245
58246         * modules/rbtree-list-tests (Depends-on): Add progname.
58247         * tests/test-rbtree_list.c: Include progname.h.
58248         (main): Call set_program_name.
58249
58250         * modules/linked-list-tests (Depends-on): Add progname.
58251         * tests/test-linked_list.c: Include progname.h.
58252         (main): Call set_program_name.
58253
58254 2007-03-03  Bruno Haible  <bruno@clisp.org>
58255
58256         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
58257         All uses of __restrict changed to _Restrict_.
58258         * lib/glob_.h (__restrict): Remove macro.
58259
58260 2007-03-02  Bruno Haible  <bruno@clisp.org>
58261
58262         * modules/gettext (configure.ac): Require gettext infrastructure
58263         from version 0.16.1.
58264
58265 2007-03-02  Bruno Haible  <bruno@clisp.org>
58266
58267         * modules/linkedhash-list-tests (Depends-on): Add progname.
58268         * tests/test-linkedhash_list.c: Include progname.h.
58269         (main): Call set_program_name.
58270
58271         * modules/carray-list-tests (Depends-on): Add progname.
58272         * tests/test-carray_list.c: Include progname.h.
58273         (main): Call set_program_name.
58274
58275         * modules/avltreehash-list-tests (Depends-on): Add progname.
58276         * tests/test-avltreehash_list.c: Include progname.h.
58277         (main): Call set_program_name.
58278
58279         * modules/avltree-oset-tests (Depends-on): Add progname.
58280         * tests/test-avltree_oset.c: Include progname.h.
58281         (main): Call set_program_name.
58282
58283         * modules/avltree-list-tests (Depends-on): Add progname.
58284         * tests/test-avltree_list.c: Include progname.h.
58285         (main): Call set_program_name.
58286
58287         * modules/array-oset-tests (Depends-on): Add progname.
58288         * tests/test-array_oset.c: Include progname.h.
58289         (main): Call set_program_name.
58290
58291         * modules/array-list-tests (Depends-on): Add progname.
58292         * tests/test-array_list.c: Include progname.h.
58293         (main): Call set_program_name.
58294
58295         * modules/argp-tests (Depends-on): Add progname.
58296         * tests/test-argp.c: Include argp.h first. Include progname.h.
58297         (main): Call set_program_name.
58298
58299 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58300
58301         * doc/gnulib-tool.texi (Initial import): Reword description of
58302         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58303         limited effect even if defined after the first system include.
58304
58305 2007-03-01  Bruno Haible  <bruno@clisp.org>
58306
58307         * build-aux/config.libpath: Update to libtool-1.5.22.
58308         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58309
58310 2007-03-01  Bruno Haible  <bruno@clisp.org>
58311
58312         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
58313         foo_CFLAGS.
58314         Reported by Ralf Wildenhues.
58315
58316 2007-03-01  Bruno Haible  <bruno@clisp.org>
58317
58318         * build-aux/install-reloc: Remove object files left over by some
58319         compilers.
58320         Reported by Ralf Wildenhues.
58321
58322 2007-03-01  Bruno Haible  <bruno@clisp.org>
58323
58324         * build-aux/install-reloc: Break long lines.
58325
58326 2007-03-01  Bruno Haible  <bruno@clisp.org>
58327
58328         * doc/relocatable.texi: Document that it may not work on OpenBSD.
58329         Reported by Ralf Wildenhues.
58330
58331 2007-03-01  Bruno Haible  <bruno@clisp.org>
58332
58333         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
58334         include ordering constraints.
58335
58336 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58337
58338         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
58339         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
58340         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
58341         as another example.
58342         * lib/time_.h: Fix misspelling.
58343         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58344         Require gl_HEADER_TIME_H_DEFAULTS.
58345         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
58346         * m4/time_r.m4 (gl_TIME_R): Likewise.
58347         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
58348
58349 2007-03-01  Bruno Haible  <bruno@clisp.org>
58350
58351         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
58352         * m4/utimens.m4 (gl_UTIMENS): Likewise.
58353
58354 2007-03-01  Jim Meyering  <jim@meyering.net>
58355
58356         * modules/xreadlink (Maintainer): Add my name.
58357         * modules/xreadlink-with-size (Depends-on): Alphabetize.
58358
58359 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
58360             Bruno Haible  <bruno@clisp.org>
58361
58362         * build-aux/install-reloc: Compile also c-ctype.c.
58363         * build-aux/relocatable.sh.in: New file.
58364         * doc/relocatable.texi: New file.
58365         * doc/relocatable-maint.texi: New file.
58366         * doc/gnulib.texi: Include relocatable-maint.texi.
58367         * lib/progreloc.c: Include unistd.h unconditionally.
58368         * lib/relocwrapper.c: Include unistd.h unconditionally.
58369         Include c-ctype.h.
58370         (add_dotbin): Use c_tolower.
58371         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
58372         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
58373         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
58374         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
58375         to m4/relocatable-lib.m4.
58376         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
58377         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
58378         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
58379         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
58380         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
58381         * modules/relocatable: New file.
58382         * modules/relocatable-lib: New file.
58383         * modules/relocatable-script: New file.
58384
58385 2007-02-28  Bruno Haible  <bruno@clisp.org>
58386
58387         Import --enable-relocatable infrastructure.
58388         * build-aux/config.libpath: New file, from GNU gettext.
58389         * build-aux/install-reloc: New file, from GNU gettext.
58390         * build-aux/reloc-ldflags: New file, from GNU gettext.
58391         * lib/relocatable.h: New file, from GNU gettext.
58392         * lib/relocatable.c: New file, from GNU gettext.
58393         * lib/relocwrapper.c: New file, from GNU gettext.
58394         * m4/relocatable.m4: New file, from GNU gettext.
58395
58396 2007-02-28  Bruno Haible  <bruno@clisp.org>
58397
58398         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
58399
58400         * modules/xreadlink: New file, from GNU gettext with modifications.
58401         * lib/xreadlink.c: New file, from GNU gettext.
58402         * lib/xreadlink.h: Add comments.
58403         (xreadlink): New declaration.
58404
58405         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
58406         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
58407         lib/xreadlink-with-size.c.
58408         (configure.ac): Remove gl_XREADLINK invocation.
58409         (Makefile.am): Augment lib_SOURCES.
58410         * m4/xreadlink.m4: Remove file.
58411         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
58412         (xreadlink_with_size): Renamed from xreadink.
58413         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
58414         * modules/canonicalize (Depends-on): Replace xreadlink with
58415         xreadlink-with-size.
58416         * lib/canonicalize.c (canonicalize_filename_mode): Update.
58417
58418 2007-02-25  Jim Meyering  <jim@meyering.net>
58419
58420         * build-aux/announce-gen: When complaining about excess arguments,
58421         list them.
58422
58423 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58424
58425         * README: Document signed integer overflow situation more
58426         accurately.
58427
58428 2007-02-25  Bruno Haible  <bruno@clisp.org>
58429
58430         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
58431         'a' or 'A' conversion.
58432
58433 2007-02-25  Bruno Haible  <bruno@clisp.org>
58434
58435         * modules/filename: Renamed from modules/pathname.
58436         (Files): Replace lib/pathname.h with lib/filename.h. Replace
58437         lib/concatpath.c with lib/concat-filename.c.
58438         (Makefile.am): Update.
58439         (Include): Replace pathname.h with filename.h.
58440         * lib/filename.h: Renamed from lib/pathname.h.
58441         (concatenated_filename): Renamed from concatenated_pathname.
58442         * lib/concat-filename.c: Renamed from lib/concatpath.c.
58443         (concatenated_filename): Renamed from concatenated_pathname.
58444         * lib/findprog.c: Include filename.h instead of pathname.h.
58445         (find_in_path): Update.
58446         * lib/javacomp.c: Include filename.h instead of pathname.h.
58447         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58448         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58449         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58450         is_oldgcj_14_13_usable, is_javac_usable): Update.
58451         * lib/javaexec.c: Include filename.h instead of pathname.h.
58452         (execute_java_class): Update.
58453         * modules/findprog: Update.
58454         * modules/javacomp: Update.
58455         * modules/javaexec: Update.
58456         * MODULES.html.sh (File system functions): Add 'filename', remove
58457         'pathname'.
58458
58459 2007-02-25  Bruno Haible  <bruno@clisp.org>
58460
58461         * modules/printf-frexpl-tests: New file.
58462         * tests/test-printf-frexpl.c: New file.
58463
58464         * modules/printf-frexpl: New file.
58465         * lib/printf-frexpl.h: New file.
58466         * lib/printf-frexpl.c: New file.
58467         * m4/printf-frexpl.m4: New file.
58468
58469 2007-02-25  Bruno Haible  <bruno@clisp.org>
58470
58471         * modules/printf-frexp-tests: New file.
58472         * tests/test-printf-frexp.c: New file.
58473
58474         * modules/printf-frexp: New file.
58475         * lib/printf-frexp.h: New file.
58476         * lib/printf-frexp.c: New file.
58477         * m4/printf-frexp.m4: New file.
58478
58479 2007-02-25  Bruno Haible  <bruno@clisp.org>
58480
58481         Assume automake >= 1.10 for the tests.
58482         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
58483         * modules/arctwo-tests: Likewise.
58484         * modules/argp-tests: Likewise.
58485         * modules/avltree-list-tests: Likewise.
58486         * modules/avltree-oset-tests: Likewise.
58487         * modules/avltreehash-list-tests: Likewise.
58488         * modules/carray-list-tests: Likewise.
58489         * modules/crc-tests: Likewise.
58490         * modules/des-tests: Likewise.
58491         * modules/gc-arcfour-tests: Likewise.
58492         * modules/gc-arctwo-tests: Likewise.
58493         * modules/gc-des-tests: Likewise.
58494         * modules/gc-hmac-md5-tests: Likewise.
58495         * modules/gc-hmac-sha1-tests: Likewise.
58496         * modules/gc-md2-tests: Likewise.
58497         * modules/gc-md4-tests: Likewise.
58498         * modules/gc-md5-tests: Likewise.
58499         * modules/gc-pbkdf2-sha1-tests: Likewise.
58500         * modules/gc-rijndael-tests: Likewise.
58501         * modules/gc-sha1-tests: Likewise.
58502         * modules/gc-tests: Likewise.
58503         * modules/getaddrinfo-tests: Likewise.
58504         * modules/hmac-md5-tests: Likewise.
58505         * modules/hmac-sha1-tests: Likewise.
58506         * modules/linked-list-tests: Likewise.
58507         * modules/linkedhash-list-tests: Likewise.
58508         * modules/lock-tests: Likewise.
58509         * modules/md2-tests: Likewise.
58510         * modules/md4-tests: Likewise.
58511         * modules/md5-tests: Likewise.
58512         * modules/rbtree-list-tests: Likewise.
58513         * modules/rbtree-oset-tests: Likewise.
58514         * modules/rbtreehash-list-tests: Likewise.
58515         * modules/read-file-tests: Likewise.
58516         * modules/rijndael-tests: Likewise.
58517         * modules/stdint-tests: Likewise.
58518         * modules/tls-tests: Likewise.
58519
58520 2007-02-24  Bruno Haible  <bruno@clisp.org>
58521
58522         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
58523         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
58524         function; instead check whether isnan with a double argument links.
58525         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
58526         function; instead check whether isnan with a 'long double' argument
58527         links.
58528         Reported by Eric Blake <ebb9@byu.net>.
58529
58530 2007-02-24  Bruno Haible  <bruno@clisp.org>
58531
58532         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
58533         defined.
58534         * lib/isnanl.c: Remove all code. Just include isnan.c.
58535         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
58536
58537 2007-02-25  Jim Meyering  <jim@meyering.net>
58538
58539         Avoid conflicting types for 'unsetenv' on FreeBSD.
58540         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
58541         conflicting with FreeBSD's (5.0 and 6.1) function declaration
58542         in stdlib.h.
58543
58544 2007-02-24  Bruno Haible  <bruno@clisp.org>
58545
58546         * modules/isnanl-nolibm-tests: New file.
58547         * tests/test-isnanl.c: New file.
58548
58549         * modules/isnanl-nolibm: New file.
58550         * lib/isnanl.h: New file.
58551         * lib/isnanl.c: New file.
58552         * m4/isnanl.m4: New file.
58553
58554 2007-02-24  Bruno Haible  <bruno@clisp.org>
58555
58556         * modules/isnan-nolibm-tests: New file.
58557         * tests/test-isnan.c: New file.
58558
58559         * modules/isnan-nolibm: New file.
58560         * lib/isnan.h: New file.
58561         * lib/isnan.c: New file.
58562         * m4/isnan.m4: New file.
58563
58564 2007-02-24  Bruno Haible  <bruno@clisp.org>
58565
58566         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
58567         assume that an exponent fits in 20 bits.
58568
58569 2007-02-24  Jim Meyering  <jim@meyering.net>
58570
58571         * m4/regex.m4: Update the description of the configure-time option,
58572         --without-included-regex, to state accurately what the defaults are,
58573         and perhaps to give people an idea why using this option is risky.
58574
58575 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58576
58577         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
58578         loops on small arguments.  This attempts to avoid the problem
58579         Bruno Haible reported for AIX 4.3.2 in
58580         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
58581
58582 2007-02-23  Bruno Haible  <bruno@clisp.org>
58583
58584         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
58585         Needed for help2man.
58586
58587 2007-02-23  Karl Berry  <karl@gnu.org>
58588
58589         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
58590         exists, foo.h should be cvs-ignored, not committed.
58591
58592 2007-02-23  Eric Blake  <ebb9@byu.net>
58593
58594         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
58595         * lib/stat-time.h (includes): Likewise.
58596         * lib/utimecmp.c (includes): Likewise.
58597         * lib/utimens.h (includes): Likewise.
58598         * lib/getdate.y (includes): Also include "timespec.h" for use
58599         internal to the module.
58600         * modules/utimens (Depends-on): Revert yesterday's patch.
58601         * modules/nanosleep (Depends-on): Add missing dependency.
58602
58603 2007-02-22  Bruno Haible  <bruno@clisp.org>
58604
58605         * lib/glob.c: Don't include getlogin_r.h.
58606
58607 2007-02-22  Jim Meyering  <jim@meyering.net>
58608
58609         * modules/utimens (Depends-on): Add timespec, required for
58610         utimens.h's inclusion of timespec.h.
58611
58612 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
58613
58614         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
58615         long unreadable paths in GNU/Linux.  Problem reported by Andreas
58616         Schwab in
58617         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
58618         I'll try to think of a better way to fix the Solaris problem.
58619
58620         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
58621         like glibc; on Solaris 10, it fails with errno == EINVAL.
58622         POSIX says the behavior is unspecified if the first argument is NULL,
58623         so play it safe and never pass NULL to the system getcwd.
58624
58625 2007-02-21  Jim Meyering  <jim@meyering.net>
58626
58627         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
58628         of gettimeofday.  It would conflict with the one now always
58629         provided via sys_time_.h.  Reported by Matthew Woehlke, as
58630         an IRIX 6.5 build failure.
58631
58632 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58633
58634         Minor fixups to port to Solaris 10 with Sun C 5.8.
58635         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
58636         * modules/getcwd (Depends-on): Add dirfd.
58637         * lib/putenv.c (putenv): #undef it.
58638         (rpl_putenv): New decl.
58639         (malloc, free): Include <stdlib.h> rather than prototyping separately.
58640
58641 2007-02-20  Bruno Haible  <bruno@clisp.org>
58642
58643         * modules/stdio-tests: New file.
58644         * tests/test-stdio.c: New file.
58645
58646         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
58647         (Depends-on): Add stdio.
58648         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58649         (Include): Use <stdio.h> instead of vsnprintf.h.
58650         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58651         HAVE_DECL_VSNPRINTF.
58652         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
58653
58654         * modules/snprintf (Files): Remove lib/snprintf.h.
58655         (Depends-on): Add stdio.
58656         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58657         (Include): Use <stdio.h> instead of snprintf.h.
58658         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58659         HAVE_DECL_SNPRINTF.
58660         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
58661         * lib/getaddrinfo.c: Likewise.
58662
58663         * modules/stdio: New file.
58664         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
58665         * lib/snprintf.h: Remove file.
58666         * lib/vsnprintf.h: Remove file.
58667         * lib/.cppi-disable: Remove snprintf.h.
58668         * m4/stdio_h.m4: New file.
58669         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
58670
58671 2007-02-20  Jim Meyering  <jim@meyering.net>
58672
58673         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
58674         used by e.g., mingw.  From Bruno Haible.
58675
58676 2007-02-19  Bruno Haible  <bruno@clisp.org>
58677
58678         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
58679         warnings.
58680         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58681
58682 2007-02-19  Bruno Haible  <bruno@clisp.org>
58683
58684         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
58685         from mingw users.
58686
58687 2007-02-19  Bruno Haible  <bruno@clisp.org>
58688
58689         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
58690         warnings.
58691         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
58692
58693 2007-02-19  Jim Meyering  <jim@meyering.net>
58694
58695         Don't use FD after a successful "fdopendir (fd)".
58696         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
58697         Reset it by calling dirfd on the just-obtained DIR*.
58698
58699         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
58700         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
58701
58702 2007-02-18  Bruno Haible  <bruno@clisp.org>
58703
58704         * lib/readlink.c: Include <unistd.h>.
58705         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
58706         HAVE_READLINK.
58707         * modules/readlink (Depends-on): Add unistd.
58708         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58709         (Include): Add <unistd.h>.
58710
58711         * lib/getlogin_r.h: Remove file.
58712         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
58713         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
58714         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
58715         HAVE_DECL_GETLOGIN_R.
58716         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
58717         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58718         (Include): Use <unistd.h> instead of getlogin_r.h.
58719
58720         * lib/getcwd.h: Remove file.
58721         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
58722         * lib/xgetcwd.c: Likewise.
58723         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
58724         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
58725         * modules/getcwd (Files): Remove lib/getcwd.h.
58726         (Depends-on): Add unistd.
58727         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58728         (Include): Use <unistd.h> instad of getcwd.h.
58729
58730         * lib/ftruncate.c: Include <unistd.h> first.
58731         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
58732         Set HAVE_FTRUNCATE.
58733         * modules/ftruncate (Depends-on): Add unistd.
58734         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58735
58736         * lib/fchdir.c: Include <unistd.h> first.
58737         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
58738         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
58739         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
58740         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58741         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
58742
58743         * lib/dup2.c: Include <unistd.h> first.
58744         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
58745         HAVE_DUP2.
58746         * modules/dup2 (Depends-on): Add unistd.
58747         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58748
58749         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
58750         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
58751         REPLACE_CHOWN. Don't define chown as a macro here.
58752         * modules/chown (Depends-on): Add unistd.
58753         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58754
58755         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
58756         Add definition for GL_LINK_WARNING.
58757         (chown, dup2): New declarations.
58758         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
58759         link warning.
58760         (ftruncate): New declaration.
58761         (getcwd): New declaration, taken from old getcwd.h.
58762         (getlogin_r): New declaration, taken from old getlogin_r.h.
58763         (readlink): New declaration.
58764         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
58765         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
58766         (gl_PREREQ_UNISTD): Remove macro.
58767         (gl_UNISTD_MODULE_INDICATOR): New macro.
58768         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
58769         many new variables. Don't set UNISTD_H.
58770         * modules/unistd (Description): Change.
58771         (Depends-on): Add link-warning.
58772         (configure.ac): Update.
58773         (Makefile.am): Create unistd.h always. Substitute many new variables
58774         into it.
58775
58776 2007-02-18  Bruno Haible  <bruno@clisp.org>
58777
58778         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
58779         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
58780         HAVE_GETSUBOPT.
58781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
58782         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
58783         * lib/getsubopt.h: Remove file.
58784         * modules/getsubopt (Files): Remove lib/getsubopt.h.
58785         (Depends-on): Add stdlib.
58786         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58787         (Includes): Use <stdlib.h> instead of getsubopt.h.
58788         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
58789         Set HAVE_GETSUBOPT.
58790         * lib/getsubopt.c: Don't include getsubopt.h.
58791
58792 2007-02-18  Bruno Haible  <bruno@clisp.org>
58793
58794         * modules/fchdir (Depends-on): Add dup2.
58795
58796 2007-02-18  Bruno Haible  <bruno@clisp.org>
58797
58798         * lib/stdlib_.h: Handle glibc's special invocation convention
58799         specially.
58800
58801 2007-02-18  Bruno Haible  <bruno@clisp.org>
58802
58803         * modules/stdlib-tests: New file.
58804         * tests/test-stdlib.c: New file.
58805
58806         * modules/mkstemp (Files): Remove lib/mkstemp.h.
58807         (Depends-on): Add stdlib.
58808         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58809         (Includes): Use <stdlib.h> instead of mkstemp.h.
58810         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
58811         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
58812         * lib/mkstemp.c: Don't include mkstemp.h.
58813         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
58814         * lib/stdlib--.h: Don't include mkstemp.h.
58815
58816         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
58817         (Depends-on): Add stdlib.
58818         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58819         (Includes): Use <stdlib.h> instead of mkdtemp.h.
58820         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
58821         HAVE_MKDTEMP.
58822         * lib/mkdtemp.c: Don't include mkdtemp.h.
58823         * lib/clean-temp.c: Don't include mkdtemp.h.
58824
58825         * modules/exit (Files): Remove lib/exit.h.
58826         (Depends-on): Add stdlib.
58827         (Makefile.am): Remove lib_SOURCES.
58828         (Include): Use <stdlib.h> instead of exit.h.
58829         * lib/argmatch.c: Don't include exit.h.
58830         * lib/execute.c: Likewise.
58831         * lib/pagealign_alloc.c: Likewise.
58832         * lib/pipe.c: Likewise.
58833         * lib/wait-process.c: Likewise.
58834         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
58835         * lib/exitfail.c: Likewise.
58836         * lib/savewd.c: Likewise.
58837         * lib/xsetenv.c: Likewise.
58838
58839         * modules/stdlib: New file.
58840         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
58841         and extra comments about mkstemp().
58842         * lib/exit.h: Remove file.
58843         * lib/mkdtemp.h: Remove file.
58844         * lib/mkstemp.h: Remove file.
58845         * m4/stdlib_h.m4: New file.
58846         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
58847
58848 2007-02-18  Bruno Haible  <bruno@clisp.org>
58849
58850         * modules/math-tests: New file.
58851         * tests/test-math.c: New file.
58852
58853         * modules/math: New file.
58854         * modules/mathl (Files): Remove lib/mathl.h.
58855         (Depends-on): Add math.
58856         (Makefile.am): Don't mention mathl.h.
58857         (Include): Use <math.h> instead of mathl.h.
58858         * lib/math_.h: New file.
58859         * lib/mathl.h: Remove file.
58860         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
58861         mathl.h.
58862         * lib/asinl.c: Likewise.
58863         * lib/atanl.c: Likewise.
58864         * lib/ceill.c: Likewise.
58865         * lib/cosl.c: Likewise.
58866         * lib/expl.c: Likewise.
58867         * lib/floorl.c: Likewise.
58868         * lib/frexpl.c: Likewise.
58869         * lib/ldexpl.c: Likewise.
58870         * lib/logl.c: Likewise.
58871         * lib/sincosl.c: Likewise.
58872         * lib/sinl.c: Likewise.
58873         * lib/sqrtl.c: Likewise.
58874         * lib/tanl.c: Likewise.
58875         * lib/trigl.c: Likewise.
58876         * m4/math_h.m4: New file.
58877         * MODULES.html.sh (Mathematics): Add math.
58878
58879 2007-02-17  Bruno Haible  <bruno@clisp.org>
58880
58881         * modules/wctype-tests: New file.
58882         * tests/test-wctype.c: New file.
58883
58884         * modules/wchar-tests: New file.
58885         * tests/test-wchar.c: New file.
58886
58887         * modules/unistd-tests: New file.
58888         * tests/test-unistd.c: New file.
58889
58890         * modules/time-tests: New file.
58891         * tests/test-time.c: New file.
58892
58893         * modules/sysexits-tests: New file.
58894         * tests/test-sysexits.c: New file.
58895
58896         * modules/sys_time-tests: New file.
58897         * tests/test-sys_time.c: New file.
58898
58899         * modules/sys_stat-tests: New file.
58900         * tests/test-sys_stat.c: New file.
58901
58902         * modules/sys_socket-tests: New file.
58903         * tests/test-sys_socket.c: New file.
58904
58905         * modules/sys_select-tests: New file.
58906         * tests/test-sys_select.c: New file.
58907
58908         * modules/string-tests: New file.
58909         * tests/test-string.c: New file.
58910
58911         * modules/stdbool-tests: New file.
58912         * tests/test-stdbool.c: New file.
58913
58914         * modules/netinet_in-tests: New file.
58915         * tests/test-netinet_in.c: New file.
58916
58917         * modules/inttypes-tests: New file.
58918         * tests/test-inttypes.c: New file.
58919
58920         * modules/fcntl-tests: New file.
58921         * tests/test-fcntl.c: New file.
58922
58923         * modules/byteswap-tests: New file.
58924         * tests/test-byteswap.c: New file.
58925
58926         * modules/arpa_inet-tests: New file.
58927         * tests/test-arpa_inet.c: New file.
58928
58929 2007-02-17  Bruno Haible  <bruno@clisp.org>
58930
58931         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
58932         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
58933         if the corresponding module is not enabled. Emit link warnings if
58934         the function is used nevertheless.
58935         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
58936         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
58937         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
58938         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
58939         * modules/inttypes (Depends-on): Add link-warning.
58940         (Makefile.am): Copy the contents of build-aux/link-warning.h into
58941         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
58942         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
58943         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
58944         * modules/imaxdiv (configure.ac): Likewise.
58945         * modules/strtoimax (configure.ac): Likewise.
58946         * modules/strtoumax (configure.ac): Likewise.
58947
58948 2007-02-17  Bruno Haible  <bruno@clisp.org>
58949
58950         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
58951         gl_STRING_MODULE_INDICATOR_DEFAULTS.
58952         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
58953         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
58954
58955 2007-02-17  Bruno Haible  <bruno@clisp.org>
58956
58957         * modules/link-warning: New file.
58958         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
58959         * lib/string_.h (GL_LINK_WARNING): Remove definition.
58960         * modules/string (Depends-on): Add link-warning.
58961         (Makefile.am): Copy the contents of build-aux/link-warning.h into
58962         string.h.
58963         * MODULES.html.sh (Support for building libraries and executables): Add
58964         link-warning.
58965
58966 2007-02-17  Bruno Haible  <bruno@clisp.org>
58967
58968         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
58969         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
58970         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
58971         long lines.
58972
58973 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
58974             Bruno Haible  <bruno@clisp.org>
58975
58976         * modules/tmpfile: New file.
58977         * lib/tmpfile.c: New file.
58978         * m4/tmpfile.m4: New file.
58979         * MODULES.html.sh (func_all_modules): New section "Input/output".
58980
58981 2007-02-15  Bruno Haible  <bruno@clisp.org>
58982
58983         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
58984         (supports_delete_on_close): New function.
58985         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
58986
58987 2007-02-14  Bruno Haible  <bruno@clisp.org>
58988
58989         * modules/mbspcasecmp-tests: New file.
58990         * tests/test-mbspcasecmp.sh: New file.
58991         * tests/test-mbspcasecmp.c: New file.
58992
58993         New module mbspcasecmp.
58994         * modules/mbspcasecmp: New file.
58995         * lib/mbspcasecmp.c: New file.
58996         * lib/string_.h (strncasecmp): Change warning message.
58997         (mbspcasecmp): New declaration.
58998         * m4/mbspcasecmp.m4: New file.
58999         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59000         GNULIB_MBSPCASECMP.
59001         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59002         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59003
59004 2007-02-14  Bruno Haible  <bruno@clisp.org>
59005
59006         * modules/mbsncasecmp-tests: New file.
59007         * tests/test-mbsncasecmp.sh: New file.
59008         * tests/test-mbsncasecmp.c: New file.
59009
59010         New module mbsncasecmp.
59011         * modules/mbsncasecmp: New file.
59012         * lib/mbsncasecmp.c: New file.
59013         * lib/string_.h (mbsncasecmp): New declaration.
59014         * m4/mbsncasecmp.m4: New file.
59015         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59016         GNULIB_MBSNCASECMP.
59017         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59018         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59019
59020 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59021
59022         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59023         Verify that it doesn't overlap with our flags.
59024         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59025         do not have the desired effect in multibyte locales; instead, use
59026         mbscasecmp.
59027         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59028         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59029         we don't require GNU fnmatch ourselves (if our users require it, they
59030         should do so explicitly).
59031
59032         Fix regex code so it doesn't rely on strcasecmp.
59033         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59034         Otherwise, include gnulib's langinfo.h.
59035         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59036         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59037         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59038         * modules/regex (FILES): Remove m4/codeset.m4.
59039         (Depends-on): Add localcharset.  Remove strcase.
59040
59041 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59042
59043         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59044         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59045
59046 2007-02-13  Bruno Haible  <bruno@clisp.org>
59047
59048         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59049         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59050
59051 2007-02-12  Bruno Haible  <bruno@clisp.org>
59052
59053         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59054         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59055         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59056         time warning rather than a link error.
59057
59058 2007-02-12  Bruno Haible  <bruno@clisp.org>
59059
59060         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59061         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59062         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59063
59064 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59065
59066         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59067         args, not 2.
59068
59069 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59070
59071         New module 'time', so that apps can include <time.h> as per
59072         POSIX and GNU instead of separate include files like time_r.h
59073         and timegm.h.  This implementation tries out a simpler approach
59074         for replacing decls in standard include files (as compared to
59075         the string module), somewhat as an experiment.
59076
59077         * config/srclist.txt: Comment out mktime.c for now.
59078         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59079         since it doesn't apply any more.  Use generic wording instead.
59080         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59081         'time'.
59082         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59083         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59084         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59085         Don't include <sys/types.h>; no longer needed since we assume C89.
59086         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59087         * lib/strftime.c: Likewise.
59088         * lib/time_r.c: Likewise.
59089         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59090         * lib/nanosleep.c: Include <time.h> first, to check interface.
59091         * lib/strptime.c: Likewise.
59092         * lib/time_r.c: Likewise.
59093         * lib/timegm.c: Likewise.
59094         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59095         needed.
59096         * lib/timegm.c: Don't include timegm.h; no longer needed.
59097         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59098         time.h now handles any problems in that area.
59099         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59100         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59101         that time.h defines struct timespec.
59102         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59103         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59104         handles that.
59105         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59106         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59107         needed.  Set REPLACE_LOCALTIME.
59108         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59109         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59110         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59111         nanosleep; time_h.m4 now does that.  Don't require
59112         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59113         module handles this now.
59114         * modules/getdate (Depends-on): Remove timespec.  Add time.
59115         * modules/nanosleep (Depends-on): Likewise.
59116         * modules/stat-time (Depends-on): Likewise.
59117         * modules/nanosleep (Include): Include time.h, not timespec.h.
59118         * modules/strptime (Files): Remove lib/strptime.h.
59119         (Depends-on): Add extensions, time.
59120         (Include): Include time.h, not strptime.h.
59121         * modules/time_r (Files): Remove lib/time_r.h.
59122         (Depends-on): Add time.
59123         (Include): Include time.h, not time_r.h.
59124         * modules/timegm: Likewise.
59125         * modules/timespec (Description): Now does timespec-related decls
59126         of our own, instead of struct timespec itself.
59127         (Depends-on): Add time; remove extensions.
59128         (Maintainer): Add self.
59129         * modules/utimecmp (Depends-on): Add time; remove timespec.
59130         * modules/utimens (Depends-on): Likewise.
59131         * modules/xnanosleep (Depends-on): Likewise.
59132
59133 2007-02-11  Bruno Haible  <bruno@clisp.org>
59134
59135         * lib/c-strstr.c: Include allocsa.h.
59136         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59137         * lib/c-strcasestr.c: Include allocsa.h.
59138         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59139         * lib/strcasestr.c: Include allocsa.h.
59140         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59141         * lib/mbsstr.c: Include allocsa.h.
59142         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59143         allocsa/freesa instead of malloc/free.
59144         * lib/mbscasestr.c: Include allocsa.h.
59145         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59146         allocsa/freesa instead of malloc/free.
59147         * modules/c-strstr (Depends-on): Add allocsa.
59148         * modules/c-strcasestr (Depends-on): Likewise.
59149         * modules/strcasestr (Depends-on): Likewise.
59150         * modules/mbsstr (Depends-on): Likewise.
59151         * modules/mbscasestr (Depends-on): Likewise.
59152
59153 2007-02-11  Bruno Haible  <bruno@clisp.org>
59154
59155         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
59156
59157         * modules/mbsspn-tests: New file.
59158         * tests/test-mbsspn.sh: New file.
59159         * tests/test-mbsspn.c: New file.
59160
59161 2007-02-11  Bruno Haible  <bruno@clisp.org>
59162
59163         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
59164
59165         * modules/mbspbrk-tests: New file.
59166         * tests/test-mbspbrk.sh: New file.
59167         * tests/test-mbspbrk.c: New file.
59168
59169 2007-02-11  Bruno Haible  <bruno@clisp.org>
59170
59171         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
59172         unneeded cast.
59173
59174         * modules/mbscspn-tests: New file.
59175         * tests/test-mbscspn.sh: New file.
59176         * tests/test-mbscspn.c: New file.
59177
59178 2007-02-11  Bruno Haible  <bruno@clisp.org>
59179
59180         * modules/mbscasecmp-tests: New file.
59181         * tests/test-mbscasecmp.sh: New file.
59182         * tests/test-mbscasecmp.c: New file.
59183
59184 2007-02-11  Bruno Haible  <bruno@clisp.org>
59185
59186         Ensure O(n) worst-case complexity of mbscasestr.
59187         * lib/mbscasestr.c: Include stdbool.h.
59188         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59189         functions.
59190         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
59191         the bookkeeping indicates that it's worth it.
59192         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
59193
59194         * modules/mbscasestr-tests: New file.
59195         * tests/test-mbscasestr1.c: New file.
59196         * tests/test-mbscasestr2.sh: New file.
59197         * tests/test-mbscasestr2.c: New file.
59198         * tests/test-mbscasestr3.sh: New file.
59199         * tests/test-mbscasestr3.c: New file.
59200         * tests/test-mbscasestr4.sh: New file.
59201         * tests/test-mbscasestr4.c: New file.
59202         * m4/locale-tr.m4: New file.
59203
59204 2007-02-11  Bruno Haible  <bruno@clisp.org>
59205
59206         Ensure O(n) worst-case complexity of mbsstr.
59207         * lib/mbsstr.c: Include stdbool.h.
59208         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59209         functions.
59210         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
59211         bookkeeping indicates that it's worth it.
59212         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
59213
59214         * modules/mbsstr-tests: New file.
59215         * tests/test-mbsstr1.c: New file.
59216         * tests/test-mbsstr2.sh: New file.
59217         * tests/test-mbsstr2.c: New file.
59218         * tests/test-mbsstr3.sh: New file.
59219         * tests/test-mbsstr3.c: New file.
59220         * m4/locale-fr.m4: New file.
59221
59222 2007-02-11  Bruno Haible  <bruno@clisp.org>
59223
59224         * lib/mbsrchr.c (mbsrchr): Fix bug.
59225
59226         * modules/mbsrchr-tests: New file.
59227         * tests/test-mbsrchr.sh: New file.
59228         * tests/test-mbsrchr.c: New file.
59229
59230 2007-02-11  Bruno Haible  <bruno@clisp.org>
59231
59232         * lib/mbschr.c (mbschr): Fix bug.
59233
59234         * modules/mbschr-tests: New file.
59235         * tests/test-mbschr.sh: New file.
59236         * tests/test-mbschr.c: New file.
59237         * m4/locale-zh.m4: New file.
59238
59239 2007-02-11  Bruno Haible  <bruno@clisp.org>
59240
59241         Support for copying multibyte string iterators.
59242         * lib/mbiter.h: Include <string.h>.
59243         (mbiter_multi_copy): New function.
59244         (mbi_copy): New macro.
59245         * lib/mbuiter.h: Include <string.h>.
59246         (mbuiter_multi_copy): New function.
59247         (mbui_copy): New macro.
59248
59249 2007-02-11  Bruno Haible  <bruno@clisp.org>
59250
59251         New module mbslen.
59252         * modules/mbslen: New file.
59253         * lib/mbslen.c: New file.
59254         * lib/string_.h (mbslen): New declaration.
59255         * m4/mbslen.m4: New file.
59256         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59257         GNULIB_MBSLEN.
59258         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
59259         * MODULES.html.sh (Internationalization functions): Add mbslen.
59260
59261 2007-02-11  Bruno Haible  <bruno@clisp.org>
59262
59263         Ensure O(n) worst-case complexity of strcasestr substitute.
59264         * lib/strcasestr.c: Include stdbool.h.
59265         (knuth_morris_pratt): New function.
59266         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59267         bookkeeping indicates that it's worth it.
59268         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
59269
59270         * modules/strcasestr-tests: New file.
59271         * tests/test-strcasestr.c: New file.
59272
59273 2007-02-11  Bruno Haible  <bruno@clisp.org>
59274
59275         Ensure O(n) worst-case complexity of c_strcasestr.
59276         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59277         (knuth_morris_pratt): New function.
59278         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59279         the bookkeeping indicates that it's worth it.
59280         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59281
59282         * modules/c-strcasestr-tests: New file.
59283         * tests/test-c-strcasestr.c: New file.
59284
59285 2007-02-11  Bruno Haible  <bruno@clisp.org>
59286
59287         Ensure O(n) worst-case complexity of c_strstr.
59288         * lib/c-strstr.c: Include stdbool.h, string.h.
59289         (knuth_morris_pratt): New function.
59290         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59291         bookkeeping indicates that it's worth it.
59292         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59293
59294         * lib/c-strstr.c: Complete rewrite for maintainability.
59295
59296         * modules/c-strstr-tests: New file.
59297         * tests/test-c-strstr.c: New file.
59298
59299 2007-02-11  Bruno Haible  <bruno@clisp.org>
59300
59301         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59302         5.2.1 and earlier, whereby \055 was treated just like the range
59303         delimiter '-'.
59304         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59305
59306 2007-02-08  Bruno Haible  <bruno@clisp.org>
59307
59308         * modules/regex (Depends-on): Add stdbool.
59309         Reported by Dalibor Topic <robilad@kaffe.org>.
59310
59311 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59312
59313         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
59314         Prefer returning from main to exiting from it.
59315         Remove unnecessary parens after sizeof.
59316
59317 2007-02-05  Bruno Haible  <bruno@clisp.org>
59318
59319         New module mbssep.
59320         * modules/mbssep: New file.
59321         * lib/mbssep.c: New file.
59322         * lib/string_.h (strsep): Add a conditional link warning.
59323         (mbssep): New declaration.
59324         * m4/mbssep.m4: New file.
59325         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59326         GNULIB_MBSSEP.
59327         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
59328         * MODULES.html.sh (Internationalization functions): Add mbssep.
59329
59330 2007-02-05  Bruno Haible  <bruno@clisp.org>
59331
59332         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
59333         Optimize search in case of 1 delimiter.
59334
59335 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59336
59337         * lib/acl.h: Include sys/types.h before sys/acl.h.
59338
59339 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59340
59341         Merge upstream fix for glibc bugzilla #3957:
59342
59343         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
59344
59345         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
59346         bit for RE_HAT_LISTS_NOT_NEWLINE.
59347         (build_charclass_op): Remove bogus comment.
59348
59349 2007-02-05  Simon Josefsson  <simon@josefsson.org>
59350
59351         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
59352
59353 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59354
59355         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
59356         * lib/memmem.c [!defined _LIBC]: Include config.h.
59357
59358 2007-02-04  Bruno Haible  <bruno@clisp.org>
59359
59360         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
59361         warning message.
59362
59363 2007-02-04  Bruno Haible  <bruno@clisp.org>
59364
59365         New module mbstok_r.
59366         * modules/mbstok_r: New file.
59367         * lib/mbstok_r.c: New file.
59368         * lib/string_.h (strtok_r): Change argument names to match the
59369         comments. Add a conditional link warning.
59370         (mbstok_r): New declaration.
59371         * m4/mbstok_r.m4: New file.
59372         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59373         GNULIB_MBSTOK_R.
59374         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
59375         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
59376
59377 2007-02-04  Bruno Haible  <bruno@clisp.org>
59378
59379         New module mbsspn.
59380         * modules/mbsspn: New file.
59381         * lib/mbsspn.c: New file.
59382         * lib/string_.h (strspn): Add a conditional link warning.
59383         (mbsspn): New declaration.
59384         * m4/mbsspn.m4: New file.
59385         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59386         GNULIB_MBSSPN.
59387         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
59388         * MODULES.html.sh (Internationalization functions): Add mbsspn.
59389
59390 2007-02-04  Bruno Haible  <bruno@clisp.org>
59391
59392         New module mbspbrk.
59393         * modules/mbspbrk: New file.
59394         * lib/mbspbrk.c: New file.
59395         * lib/string_.h (strpbrk): Add a conditional link warning.
59396         (mbspbrk): New declaration.
59397         * m4/mbspbrk.m4: New file.
59398         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59399         GNULIB_MBSPBRK.
59400         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
59401         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
59402
59403 2007-02-04  Bruno Haible  <bruno@clisp.org>
59404
59405         New module mbscspn.
59406         * modules/mbscspn: New file.
59407         * lib/mbscspn.c: New file.
59408         * lib/string_.h (strcspn): Add a conditional link warning.
59409         (mbscspn): New declaration.
59410         * m4/mbscspn.m4: New file.
59411         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59412         GNULIB_MBSCSPN.
59413         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
59414         * MODULES.html.sh (Internationalization functions): Add mbscspn.
59415
59416 2007-02-04  Bruno Haible  <bruno@clisp.org>
59417
59418         New module mbscasestr, reduced goal of strcasestr.
59419         * modules/mbscasestr: New file.
59420         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
59421         (mbscasestr): Renamed from strcasestr.
59422         * lib/strcasestr.c: Don't include mbuiter.h.
59423         (strcasestr): Remove support for multibyte locales.
59424         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
59425         Change the conditional link warning.
59426         (mbscasestr): New declaration.
59427         * m4/mbscasestr.m4: New file.
59428         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
59429         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
59430         REPLACE_STRCASESTR.
59431         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
59432         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59433         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59434         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
59435         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
59436         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59437         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
59438         (Depends-on): Remove mbuiter.
59439         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
59440
59441 2007-02-04  Bruno Haible  <bruno@clisp.org>
59442
59443         Simplify handling of strncasecmp.
59444         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
59445         the conditional link warning.
59446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59447         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
59448         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
59449         * modules/strcase (configure.ac): Don't invoke
59450         gl_STRING_MODULE_INDICATOR.
59451         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
59452
59453 2007-02-04  Bruno Haible  <bruno@clisp.org>
59454
59455         New module mbscasecmp, reduced goal of strcasecmp.
59456         * modules/mbscasecmp: New file.
59457         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
59458         (mbscasecmp): Renamed from strcasecmp.
59459         * lib/strcasecmp.c: Don't include mbuiter.h.
59460         (strcasecmp): Remove support for multibyte locales.
59461         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
59462         Change the conditional link warning.
59463         (mbscasecmp): New declaration.
59464         * m4/mbscasecmp.m4: New file.
59465         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
59466         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
59467         REPLACE_STRCASECMP.
59468         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
59469         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59470         GNULIB_MBSCASECMP.
59471         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
59472         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
59473         * modules/strcase (Files): Remove m4/mbrtowc.m4.
59474         (Depends-on): Remove mbuiter.
59475         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
59476
59477 2007-02-04  Bruno Haible  <bruno@clisp.org>
59478
59479         New module mbsstr. Remove module strstr.
59480         * modules/mbsstr: New file.
59481         * modules/strstr: Remove file.
59482         * lib/mbsstr.c: Renamed from lib/strstr.c.
59483         (mbsstr): Renamed from strstr.
59484         * lib/string_.h (strstr): Remove declaration. Change the conditional
59485         link warning.
59486         (mbsstr): New declaration.
59487         * m4/mbsstr.m4: New file.
59488         * m4/strstr.m4: Remove file.
59489         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
59490         REPLACE_STRSTR.
59491         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
59492         Don't initialize GNULIB_STRSTR.
59493         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
59494         substitute GNULIB_STRSTR and REPLACE_STRSTR.
59495         * MODULES.html.sh (Internationalization functions): Add mbsstr.
59496         (Support for systems lacking ANSI C 89): Remove strstr.
59497
59498 2007-02-04  Bruno Haible  <bruno@clisp.org>
59499
59500         New module mbsrchr.
59501         * modules/mbsrchr: New file.
59502         * lib/mbsrchr.c: New file.
59503         * lib/string_.h (strrchr): Add a conditional link warning.
59504         (mbsrchr): New declaration.
59505         * m4/mbsrchr.m4: New file.
59506         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59507         GNULIB_MBSRCHR.
59508         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
59509         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
59510
59511 2007-02-04  Bruno Haible  <bruno@clisp.org>
59512
59513         New module mbschr.
59514         * modules/mbschr: New file.
59515         * lib/mbschr.c: New file.
59516         * lib/string_.h (strchr): Add a conditional link warning.
59517         (mbschr): New declaration.
59518         * m4/mbschr.m4: New file.
59519         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59520         GNULIB_MBSCHR.
59521         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
59522         * MODULES.html.sh (Internationalization functions): Add mbschr.
59523
59524 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59525
59526         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
59527
59528         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
59529
59530 2007-02-04  Bruno Haible  <bruno@clisp.org>
59531
59532         New module description section 'configure.ac-early'.
59533         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
59534         (func_get_autoconf_early_snippet): New function.
59535         (func_import, func_create_testdir): Use it. Remove special cases for
59536         modules 'extensions' and 'lock'.
59537         * modules/extensions (configure.ac-early): Require
59538         gl_USE_SYSTEM_EXTENSIONS.
59539         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
59540
59541 2007-02-04  Bruno Haible  <bruno@clisp.org>
59542
59543         Make use of gcj-4.3's -fsource and -ftarget option.
59544         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
59545         and if so try the options -fsource and -ftarget.
59546         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
59547         source_version, ftarget_option, target_version arguments.
59548         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
59549         (is_envjavac_oldgcj_14_14_usable): Renamed from
59550         is_envjavac_gcj_14_14_usable.
59551         (is_envjavac_oldgcj_14_13_usable): Renamed from
59552         is_envjavac_gcj_14_13_usable.
59553         (is_gcj_present): Update.
59554         (is_gcj_43, is_gcj43_usable): New functions.
59555         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
59556         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
59557         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
59558         try the options -fsource and -ftarget.
59559
59560 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59561
59562         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
59563         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
59564         larger value.
59565
59566 2007-02-03  Jim Meyering  <jim@meyering.net>
59567
59568         Give tools a better chance to allocate space for very large buffers.
59569         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
59570
59571         Make pwd and readlink work also when run with an unreadable parent dir
59572         on systems with openat support.
59573         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
59574         provided getcwd function, even when we have openat support.
59575         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
59576
59577 2007-02-02  Bruno Haible  <bruno@clisp.org>
59578
59579         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59580         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
59581         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
59582         portability problems if one of these functions is only used on specific
59583         platforms.
59584         Reported by Paul Eggert.
59585
59586 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
59587
59588         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
59589         is causing more trouble than it's curing.
59590         * lib/regex_internal.h (__mempcpy): Remove.
59591         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
59592         (and make the code a tad smaller to boot).
59593         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
59594
59595 2007-02-02  Jim Meyering  <jim@meyering.net>
59596
59597         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
59598         section, not in the Makefile.am: one.
59599
59600 2007-02-02  Eric Blake  <ebb9@byu.net>
59601
59602         * lib/strchrnul.c: Always include config.h first.
59603
59604         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
59605         gnulib strstr is not necessary here.
59606
59607 2007-02-02  Simon Josefsson  <simon@josefsson.org>
59608
59609         * m4/socklen.m4: Fix typo.
59610
59611 2007-02-02  Eric Blake  <ebb9@byu.net>
59612
59613         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
59614         * modules/netinet_in (Makefile.am): Likewise.
59615
59616 2007-02-01  Bruno Haible  <bruno@clisp.org>
59617
59618         * lib/string_.h (GL_LINK_WARNING): New macro.
59619         (strcasecmp, strstr, strcasestr): If provided by the system,
59620         conditionally define as a macro that leads to a warning instead of to
59621         an error.
59622         (strncasecmp): Conditionally define as a macro that leads to a warning.
59623
59624 2007-02-01  Karl Berry  <karl@gnu.org>
59625
59626         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
59627
59628 2007-02-01  Bruno Haible  <bruno@clisp.org>
59629
59630         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
59631         renamings.
59632
59633 2007-02-01  Eric Blake  <ebb9@byu.net>
59634
59635         * modules/regex (Depends-on): Revert dependence on mempcpy.
59636         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
59637         module's definition of mempcpy.
59638         Reported by Paul Eggert.
59639
59640 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59641
59642         * lib/string_.h: If the gnulib module XYZ is not present, undefine
59643         the symbol XYZ before redefining it.  This fixes a problem with
59644         programs that don't use XYZ, when compiled on systems that define
59645         XYZ to something else.
59646
59647 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
59648
59649         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
59650         occurs when "mkdir -m foo" creates a setgid directory that is (1)
59651         writeable to group or other and (2) is intended to have a special
59652         mode bit that is set or cleared.  In such a case, the directory
59653         should be neither group- nor other-writeable until the special
59654         mode bits are right.
59655
59656 2007-01-31  Eric Blake  <ebb9@byu.net>
59657
59658         * modules/mountlist (Depends-on): Add strstr.
59659
59660         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
59661         bug.
59662         * modules/string (Makefile.am): Remove redundant replacement.
59663         * modules/regex (Depends-on): Add mempcpy.
59664
59665 2007-01-31  Bruno Haible  <bruno@clisp.org>
59666
59667         New module description field 'Link'.
59668         * gnulib-tool (func_usage): Document --extract-link-directive.
59669         (sed_extract_prog): Recognize 'Link' directive.
59670         (func_get_link_directive): New function.
59671         (func_import): Show summary of link directives.
59672         Handle --extract-link-directive option.
59673         * modules/acl (Link): New section.
59674         * modules/clock-time (Link): New section.
59675         * modules/euidaccess (Link): New section.
59676         * modules/gettext (Link): New section.
59677         * modules/iconv (Link): New section.
59678         * modules/lock (Link): New section.
59679         * modules/nanosleep (Link): New section.
59680         * modules/readline (Link): New section.
59681
59682 2007-01-27  Bruno Haible  <bruno@clisp.org>
59683
59684         Enforce the use of gnulib modules for unportable <string.h> functions.
59685         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
59686         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
59687         (gl_HEADER_STRING_H_BODY): Require it.
59688         * lib/string_.h: If the gnulib module XYZ is not present, redefine
59689         the symbol XYZ to one that gives a link error.
59690         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
59691         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
59692         * modules/mempcpy (configure.ac): Likewise.
59693         * modules/memrchr (configure.ac): Likewise.
59694         * modules/stpcpy (configure.ac): Likewise.
59695         * modules/stpncpy (configure.ac): Likewise.
59696         * modules/strcase (configure.ac): Likewise.
59697         * modules/strcasestr (configure.ac): Likewise.
59698         * modules/strchrnul (configure.ac): Likewise.
59699         * modules/strdup (configure.ac): Likewise.
59700         * modules/strndup (configure.ac): Likewise.
59701         * modules/strnlen (configure.ac): Likewise.
59702         * modules/strpbrk (configure.ac): Likewise.
59703         * modules/strsep (configure.ac): Likewise.
59704         * modules/strstr (configure.ac): Likewise.
59705         * modules/strtok_r (configure.ac): Likewise.
59706
59707 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
59708
59709         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
59710
59711 2007-01-30  Jim Meyering  <jim@meyering.net>
59712
59713         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
59714
59715 2007-01-29  Bruno Haible  <bruno@clisp.org>
59716
59717         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
59718         * lib/execute.c: Likewise.
59719         * lib/pipe.c: Likewise.
59720         * lib/printf-args.h: Likewise.
59721         * lib/printf-args.c: Likewise.
59722         * lib/printf-parse.c: Likewise.
59723         * lib/vasnprintf.c: Likewise.
59724
59725 2007-01-29  Eric Blake  <ebb9@byu.net>
59726
59727         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
59728         declaration.
59729
59730 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
59731
59732         * lib/strptime.h (strptime): Use 'restrict' for args where
59733         POSIX requires this.
59734         * lib/strptime.c (strptime): Likewise.
59735         Change license notice from LGPL to GPL, since gnulib-tool will
59736         change this as needed.
59737         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
59738         defined.
59739         Include "strptime.h" first, to check interface.
59740         Do not #undef _LIBC and _NL_CURRENT.
59741         Do not include <stdlib.h>; no longer needed.
59742         Include "time_r.h" and declare ptime_locale_status
59743         only if _LIBC is not defined.
59744         (__P): Remove unused macro.
59745         (match_string): Bring back glibc version, but use it only if _LIBC
59746         is defined.
59747         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
59748         Remove unnecessary assertion and abort() call.
59749         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
59750         * m4/strptime.m4: Fix serial number comment.
59751         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
59752         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
59753         (Depends-on): Add time_r.
59754
59755 2007-01-29  Bruno Haible  <bruno@clisp.org>
59756
59757         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59758         strptime.
59759         * modules/strptime (Depends-on): Add stdbool.
59760         * lib/strptime.h: Include <time.h> always. Add comments.
59761
59762 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59763
59764         * modules/strptime: New file.
59765         * lib/strptime.h: New file.
59766         * lib/strptime.c: New file.
59767         * m4/strptime.m4: New file.
59768
59769 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59770
59771         * MODULES.html.sh: New module mpsort.
59772         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
59773
59774         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
59775         a circularity problem with HP-UX ia64 reported by Bob Proulx in
59776         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
59777         All uses changed.
59778         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
59779         All uses changed.
59780         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
59781         to _Restrict_.
59782         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
59783         the parameter matches the prototype.
59784
59785 2007-01-28  Jim Meyering  <jim@meyering.net>
59786
59787         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
59788         sys/time.h here, reverting that part of the previous patch:
59789         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
59790
59791 2007-01-28  Bruno Haible  <bruno@clisp.org>
59792
59793         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
59794         value of $(SYS_TIME_H).
59795         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
59796         remove it conditionally, too. [added by Jim Meyering]
59797         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
59798         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59799         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
59800         GETTIMEOFDAY_REPLACEMENT to 1.
59801
59802 2007-01-28  Bruno Haible  <bruno@clisp.org>
59803
59804         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
59805         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
59806         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
59807         Set UNISTD_H instead of UNISTD_H2.
59808         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
59809
59810 2007-01-28  Bruno Haible  <bruno@clisp.org>
59811
59812         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
59813         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
59814
59815 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59816
59817         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
59818         (func_create_testdir): Ensure C locale for `grep' and `tr'
59819         character ranges.
59820         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
59821         ACLOCAL_AMFLAGS parsing state machine.
59822
59823 2007-01-27  Bruno Haible  <bruno@clisp.org>
59824
59825         * modules/unistr/base: Update.
59826
59827 2007-01-27  Bruno Haible  <bruno@clisp.org>
59828
59829         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
59830         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
59831         * modules/unistr/u32-mbtouc-unsafe: Renamed from
59832         modules/unistr/u32-mbtouc.
59833         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
59834         * lib/unistr.h: Update.
59835         * lib/linebreak.c: Update.
59836         * modules/unistr/u32-mbtouc: Renamed from
59837         modules/unistr/u32-mbtouc-safe.
59838         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
59839         * lib/unistr.h: Update.
59840         * lib/unistr/u32-to-u8.c: Update.
59841         * lib/unistr/u32-to-u16.c: Update.
59842
59843 2007-01-27  Bruno Haible  <bruno@clisp.org>
59844
59845         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
59846         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
59847         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
59848         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
59849         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
59850         * modules/unistr/u16-mbtouc-unsafe: Renamed from
59851         modules/unistr/u16-mbtouc.
59852         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
59853         * lib/unistr.h: Update.
59854         * lib/linebreak.c: Update.
59855         * modules/linebreak: Update.
59856         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
59857         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
59858         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
59859         * modules/unistr/u16-mbtouc: Renamed from
59860         modules/unistr/u16-mbtouc-safe.
59861         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
59862         * lib/unistr.h: Update.
59863         * lib/unistr/u16-to-u8.c: Update.
59864         * modules/unistr/u16-to-u8: Update.
59865         * lib/unistr/u16-to-u32.c: Update.
59866         * modules/unistr/u16-to-u32: Update.
59867
59868 2007-01-27  Bruno Haible  <bruno@clisp.org>
59869
59870         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
59871         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
59872         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
59873         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
59874         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
59875         * modules/unistr/u8-mbtouc-unsafe: Renamed from
59876         modules/unistr/u8-mbtouc.
59877         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
59878         * lib/unistr.h: Update.
59879         * lib/striconveh.c: Update.
59880         * modules/striconveh: Update.
59881         * lib/linebreak.c: Update.
59882         * modules/linebreak: Update.
59883         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
59884         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
59885         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
59886         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
59887         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
59888         * lib/unistr.h: Update.
59889         * lib/striconveh.c: Update.
59890         * modules/striconveh: Update.
59891         * lib/unistr/u8-to-u16.c: Update.
59892         * modules/unistr/u8-to-u16: Update.
59893         * lib/unistr/u8-to-u32.c: Update.
59894         * modules/unistr/u8-to-u32: Update.
59895
59896 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59897
59898         Sync from Libtool.
59899         * lib/argz.c: Do not include strings.h nor memory.h, include
59900         string.h unconditionally.  Patch by Simon Josefsson.
59901
59902 2007-01-27  Bruno Haible  <bruno@clisp.org>
59903
59904         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
59905         from gl_HEADER_STRING_H_BODY.
59906         (gl_HEADER_STRING_H_BODY): Require it.
59907         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
59908         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59909         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59910         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59911         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59912         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
59913         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59914         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59915         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
59916         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59917         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59918         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
59919         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59920         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59921         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59922
59923 2007-01-27  Bruno Haible  <bruno@clisp.org>
59924
59925         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
59926         check_PROGRAMS into noinst_PROGRAMS.
59927         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
59928         check_PROGRAMS in this case.
59929         (func_import): Set for_test to false.
59930         (func_create_testdir): Set for_test to true.
59931
59932 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59933             Bruno Haible  <bruno@clisp.org>
59934
59935         * modules/strcasestr (Files): Remove lib/strcasestr.h.
59936         (Depends-on): Add string.
59937         (Includes): Use <string.h> instead of strcasestr.h.
59938         * modules/string (Makefile.am): Also substitute the value of
59939         REPLACE_STRCASESTR.
59940         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
59941         assume strcasestr is declared in <string.h> not <strings.h>. Also
59942         set REPLACE_STRCASESTR.
59943         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
59944         REPLACE_STRCASESTR.
59945         * lib/strcasestr.h: Remove file.
59946         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
59947         * lib/string_.h (strcasestr): New declaration.
59948
59949 2007-01-27  Bruno Haible  <bruno@clisp.org>
59950
59951         * lib/string_.h: Use 'extern'.
59952
59953 2007-01-27  Jim Meyering  <jim@meyering.net>
59954
59955         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
59956         of set-but-not-used local, "q".
59957
59958         * lib/mempcpy.c: Include <config.h> before <string.h>.
59959         This fixes a compilation error on HP-UX, due to the system's
59960         "restrict"-using mempcpy prototype.
59961
59962 2007-01-26  Bruno Haible  <bruno@clisp.org>
59963
59964         Small optimization.
59965         * lib/javacomp.c: Include c-strstr.h.
59966          (is_envjavac_gcj): Use c_strstr instead of strstr.
59967         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
59968
59969 2007-01-26  Bruno Haible  <bruno@clisp.org>
59970
59971         * MODULES.html.sh (Unicode string functions): Add the new modules.
59972
59973         * modules/uniconv/u32-strconv-to-locale: New file.
59974         * lib/uniconv/u32-strconv-to-locale.c: New file.
59975
59976         * modules/uniconv/u16-strconv-to-locale: New file.
59977         * lib/uniconv/u16-strconv-to-locale.c: New file.
59978
59979         * modules/uniconv/u8-strconv-to-locale: New file.
59980         * lib/uniconv/u8-strconv-to-locale.c: New file.
59981
59982         * modules/uniconv/u32-strconv-from-locale: New file.
59983         * lib/uniconv/u32-strconv-from-locale.c: New file.
59984
59985         * modules/uniconv/u16-strconv-from-locale: New file.
59986         * lib/uniconv/u16-strconv-from-locale.c: New file.
59987
59988         * modules/uniconv/u8-strconv-from-locale: New file.
59989         * lib/uniconv/u8-strconv-from-locale.c: New file.
59990
59991         * modules/uniconv/u32-strconv-to-enc: New file.
59992         * lib/uniconv/u32-strconv-to-enc.c: New file.
59993         * modules/uniconv/u32-strconv-to-enc-tests: New file.
59994         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
59995
59996         * modules/uniconv/u16-strconv-to-enc: New file.
59997         * lib/uniconv/u16-strconv-to-enc.c: New file.
59998         * lib/uniconv/u-strconv-to-enc.h: New file.
59999         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60000         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60001
60002         * modules/uniconv/u8-strconv-to-enc: New file.
60003         * lib/uniconv/u8-strconv-to-enc.c: New file.
60004         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60005         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60006
60007         * modules/uniconv/u32-strconv-from-enc: New file.
60008         * lib/uniconv/u32-strconv-from-enc.c: New file.
60009         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60010         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60011
60012         * modules/uniconv/u16-strconv-from-enc: New file.
60013         * lib/uniconv/u16-strconv-from-enc.c: New file.
60014         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60015         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60016
60017         * modules/uniconv/u8-strconv-from-enc: New file.
60018         * lib/uniconv/u8-strconv-from-enc.c: New file.
60019         * lib/uniconv/u-strconv-from-enc.h: New file.
60020         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60021         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60022
60023         * modules/uniconv/u32-conv-from-enc: New file.
60024         * lib/uniconv/u32-conv-from-enc.c: New file.
60025         * modules/uniconv/u32-conv-from-enc-tests: New file.
60026         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60027
60028         * modules/uniconv/u16-conv-from-enc: New file.
60029         * lib/uniconv/u16-conv-from-enc.c: New file.
60030         * lib/uniconv/u-conv-from-enc.h: New file.
60031         * modules/uniconv/u16-conv-from-enc-tests: New file.
60032         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60033
60034         * modules/uniconv/u8-conv-from-enc: New file.
60035         * lib/uniconv/u8-conv-from-enc.c: New file.
60036         * modules/uniconv/u8-conv-from-enc-tests: New file.
60037         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60038
60039         * modules/uniconv/base: New file.
60040         * lib/uniconv.h: New file.
60041
60042 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60043
60044         * doc/gnulib-tool.texi (Initial import): Update to match current
60045         behavior with strdup module.
60046         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60047         * lib/memmem.h: Remove; all uses removed.  This is now done
60048         by <string.h>.
60049         * lib/mempcpy.h: Likewise.
60050         * lib/memrchr.h: Likewise.
60051         * lib/stpcpy.h: Likewise.
60052         * lib/stpncpy.h: Likewise.
60053         * lib/strcase.h: Likewise.
60054         * lib/strchrnul.h: Likewise.
60055         * lib/strdup.h: Likewise.
60056         * lib/strndup.h: Likewise.
60057         * lib/strnlen.h: Likewise.
60058         * lib/strpbrk.h: Likewise.
60059         * lib/strsep.h: Likewise.
60060         * lib/strstr.h: Likewise.
60061         * lib/strtok_r.h: Likewise.
60062         * lib/string_.h: New file.
60063         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60064         Rely on <string.h> instead.
60065         * lib/canon-host.c: Likewise.
60066         * lib/chdir-long.c: Likewise.
60067         * lib/concatpath.c: Likewise.
60068         * lib/exclude.c: Likewise.
60069         * lib/fchdir.c: Likewise.
60070         * lib/getaddrinfo.c: Likewise.
60071         * lib/getcwd.c: Likewise.
60072         * lib/getsubopt.c: Likewise.
60073         * lib/glob.c: Likewise.
60074         * lib/hard-locale.c: Likewise.
60075         * lib/iconvme.c: Likewise.
60076         * lib/javacomp.c: Likewise.
60077         * lib/mempcpy.c: Likewise.
60078         * lib/memrchr.c: Likewise.
60079         * lib/regex_internal.h: Likewise.
60080         * lib/stpncpy.c: Likewise.
60081         * lib/strcasecmp.c: Likewise.
60082         * lib/strchrnul.c: Likewise.
60083         * lib/strdup.c: Likewise.
60084         * lib/striconv.c: Likewise.
60085         * lib/striconveh.c: Likewise.
60086         * lib/striconveha.c: Likewise.
60087         * lib/strncasecmp.c: Likewise.
60088         * lib/strndup.c: Likewise.
60089         * lib/strnlen.c: Likewise.
60090         * lib/strsep.c: Likewise.
60091         * lib/strstr.c: Likewise.
60092         * lib/strtok_r.c: Likewise.
60093         * lib/userspec.c: Likewise.
60094         * lib/w32spawn.h: Likewise.
60095         * lib/xstrndup.c: Likewise.
60096         * lib/mountlist.c (strstr): Remove decl.
60097         * m4/string_h.m4: New file.
60098         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60099         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60100         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60101         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60102         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60103         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60104         Set REPLACE_STRCASECMP if necessary.
60105         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60106         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60107         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60108         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60109         HAVE_DECL_STRDUP if necessary.
60110         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60111         since gl_FUNC_STRNDUP does that now.
60112         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60113         Check for decl here...
60114         (gl_PREREQ_STRNLEN): ... not here.
60115         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60116         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60117         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60118         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60119         necessary.
60120         * modules/string: New file.
60121         * modules/memmem (Files): Remove special-purpose include file.
60122         (Depends-on): Add string.
60123         (Include): Include <string.h>, not the removed file.
60124         * modules/mempcpy: Likewise.
60125         * modules/memrchr: Likewise.
60126         * modules/stpcpy: Likewise.
60127         * modules/stpncpy: Likewise.
60128         * modules/strcase: Likewise.
60129         * modules/strchrnul: Likewise.
60130         * modules/strdup: Likewise.
60131         * modules/strndup: Likewise.
60132         * modules/strnlen: Likewise.
60133         * modules/strpbrk: Likewise.
60134         * modules/strsep: Likewise.
60135         * modules/strstr: Likewise.
60136         * modules/strtok_r: Likewise.
60137         * tests/test-dirname.c: Don't include "strdup.h", since
60138         <string.h> now suffices.
60139         * tests/test-memmem.c: Don't include "memmem.h", since
60140         <string.h> now suffices.
60141
60142 2007-01-25  Bruno Haible  <bruno@clisp.org>
60143
60144         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
60145         *resultp is 0.
60146
60147         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
60148         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
60149         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
60150         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
60151
60152         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
60153         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
60154         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
60155         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
60156         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
60157         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
60158
60159 2007-01-24  Bruno Haible  <bruno@clisp.org>
60160
60161         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
60162         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
60163         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
60164         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
60165         gl_FUNC_FTS_CORE.
60166         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
60167         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
60168         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60169         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
60170         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
60171         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
60172         gl_FUNC_FCHOWNAT.
60173         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
60174         gl_FUNC_STRFTIME.
60175         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
60176         Reported by Ralf Wildenhues.
60177
60178 2007-01-24  Bruno Haible  <bruno@clisp.org>
60179
60180         Drop AC_REQUIRE calls that are redundant with the module dependencies.
60181         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
60182         gl_GETADDRINFO.
60183         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
60184         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
60185         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
60186
60187 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
60188
60189         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
60190         Don't use 'exit'; just return from 'main'.
60191         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
60192
60193         * lib/fnmatch_.h: Readjust white space and comments to match
60194         glibc, to avoid spurious diffs.
60195
60196 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60197
60198         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
60199         2004-12-01 change by Jakub Jelinek, since this code won't compile
60200         if !LIBC.  Problem reported by Bob Proulx.
60201
60202 2007-01-23  Bruno Haible  <bruno@clisp.org>
60203
60204         * lib/striconveh.c: Include c-strcaseeq.h.
60205         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
60206         * modules/striconveh (Depends-on): Add c-strcaseeq.
60207
60208 2007-01-23  Bruno Haible  <bruno@clisp.org>
60209
60210         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
60211
60212         * modules/c-strcaseeq: New file.
60213         * lib/c-strcaseeq.h: New file.
60214
60215         * modules/streq: New file.
60216         * lib/streq.h: New file.
60217
60218 2007-01-23  Bruno Haible  <bruno@clisp.org>
60219
60220         * modules/striconveha-tests: New file.
60221         * tests/test-striconveha.c: New file.
60222
60223         * lib/striconveha.h: Include <stdbool.h>.
60224         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
60225         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
60226         (mem_iconveha_notranslit): Renamed from mem_iconveha.
60227         (mem_iconveha): New function.
60228         (str_iconveha_notranslit): Renamed from str_iconveha.
60229         (str_iconveha): New function.
60230         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
60231         c-strcase.
60232
60233 2007-01-23  Bruno Haible  <bruno@clisp.org>
60234
60235         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
60236         encodings without forgiving before trying any encoding with handler.
60237         (str_iconveha): Try all encodings without forgiving before trying any
60238         encoding with handler.
60239
60240 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60241
60242         Import the following changes from libc.
60243
60244         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60245
60246         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
60247
60248         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60249
60250         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
60251         normal_bracket label.
60252
60253         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
60254
60255         [BZ #361]
60256         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
60257         to normal_bracket after fetching the next character.
60258
60259 2007-01-22  Bruno Haible  <bruno@clisp.org>
60260
60261         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
60262         argument.
60263         * lib/striconveh.c (iconv_carefully_1): New function.
60264         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
60265         argument.
60266         (str_cd_iconveh): Update.
60267         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
60268         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
60269         * tests/test-striconveh.c (MAGIC): New macro.
60270         (new_offsets): New function.
60271         (main): Test call with and without offsets.
60272
60273 2007-01-22  Bruno Haible  <bruno@clisp.org>
60274
60275         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60276         * modules/sys_select (Makefile.am): Likewise.
60277         * modules/sys_socket (Makefile.am): Likewise.
60278         * modules/sys_time (Makefile.am): Likewise.
60279
60280 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60281
60282         * modules/gettimeofday (License): Change from GPL to LGPL, since
60283         gettimeofday is a library function.
60284
60285 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60286
60287         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60288
60289 2007-01-21  Bruno Haible  <bruno@clisp.org>
60290
60291         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60292
60293 2007-01-21  Bruno Haible  <bruno@clisp.org>
60294
60295         * modules/striconveha: New file.
60296         * lib/striconveha.h: New file.
60297         * lib/striconveha.c: New file.
60298         * MODULES.html.sh (Internationalization functions): Add striconveha.
60299         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60300         string.
60301         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60302
60303 2007-01-21  Bruno Haible  <bruno@clisp.org>
60304
60305         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60306         * lib/striconveh.c (str_iconveh): Likewise.
60307
60308 2007-01-21  Bruno Haible  <bruno@clisp.org>
60309
60310         * lib/striconveh.h (mem_iconveh): New declaration.
60311         * lib/striconveh.c (mem_iconveh): New function.
60312         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
60313
60314 2007-01-21  Bruno Haible  <bruno@clisp.org>
60315
60316         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
60317
60318         * lib/striconveh.h (mem_cd_iconveh): Change specification.
60319         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
60320         original result buffer.
60321         (str_cd_iconveh): Update.
60322         * tests/test-striconveh.c (main): Update.
60323
60324         * lib/striconv.h (mem_cd_iconv): Change specification.
60325         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
60326         result buffer.
60327         (str_cd_iconv): Update.
60328         * tests/test-striconv.c (main): Update.
60329
60330 2007-01-21  Bruno Haible  <bruno@clisp.org>
60331
60332         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
60333
60334 2007-01-20  Jim Meyering  <jim@meyering.net>
60335
60336         * lib/userspec.c (parse_with_separator): If a user or group string
60337         starts with "+", skip the corresponding name-to-ID look-up, since
60338         such a look-up must fail: user and group names may not include "+".
60339
60340 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60341
60342         * lib/poll.c: Include sys/time.h and time.h unconditionally,
60343         since we now assume the sys_time module.
60344         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
60345         check for sys/time.h; no longer needed.
60346         * modules/poll (Depends-on): Depend on sys_time.
60347
60348 2007-01-18  Bruno Haible  <bruno@clisp.org>
60349
60350         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
60351         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60352
60353         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
60354         gettimeofday.
60355
60356         * tests/test-gettimeofday.c: Include <time.h>.
60357         (dummy): Remove variable.
60358
60359         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
60360         gl_HEADER_SYS_TIME_H.
60361         (gl_HEADER_SYS_TIME_H): New macro.
60362
60363         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
60364         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60365         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
60366         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
60367         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60368         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
60369         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
60370         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60371         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
60372         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
60373         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60374
60375         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
60376         last change; it caused a compilation error when cross-compiling to
60377         Cygwin.
60378
60379 2007-01-18  Jim Meyering  <jim@meyering.net>
60380
60381         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
60382         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
60383         than the race-prone "test -d sys || mkdir sys".
60384         (configure.ac): Use AC_PROG_MKDIR_P.
60385         * modules/sys_select: Likewise.
60386         * modules/sys_socket: Likewise.
60387         * modules/sys_time: Likewise.
60388
60389 2007-01-18  Eric Blake  <ebb9@byu.net>
60390
60391         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
60392         replace gettimeofday.
60393         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
60394         name, to avoid infinite recursion.
60395
60396 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
60397
60398         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
60399         module sys_time.
60400         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
60401         assume timespec.h defines struct timeval.
60402         * lib/settime.c: Likewise.
60403         * lib/utimens.c: Likewise.
60404         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
60405         since we now assume the gettimeofday module.
60406         * lib/tempname.c (__gen_tempname): Likewise.
60407         * lib/gettimeofday.h: Remove.
60408         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
60409         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
60410         Include <time.h>, for 'time()'.
60411         (localtime_buffer_addr): Also use this workaround if
60412         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
60413         to simplify the uses.  All uses changed.
60414         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
60415         that #undef is inside {}, and 'const' follows type name consistently.
60416         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
60417         (gettimeofday): Do not use the maximum possible value for
60418         tv->tv_usec, since that might break usages other than ls.c.
60419         Instead, we'll leave ls.c alone.  This undoes today's patch
60420         by Bruno.  Add a compile-time warning for 1s-clock resolution;
60421         we've never observed the problem but might as well keep the
60422         canary.
60423         * lib/nanosleep.c: Include timespec.h first, for interface check.
60424         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
60425         now assume the sys_time module.
60426         * lib/tempname.c: Likewise.
60427         * lib/timespec.h: Likewise.
60428         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
60429         needed.
60430         * lib/strftime.c: Likewise.
60431         * lib/timespec.h: Likewise.
60432         * lib/posixtm.c: Include posixtm.h first, for interface check.
60433         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
60434         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
60435         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
60436         * lib/sys_time_.h: New file.
60437         * lib/timespec.h (struct timespec): Use long int, not long.
60438         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60439         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
60440         Remove obsolescent call to AC_HEADER_TIME.
60441         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60442         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60443         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60444         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
60445         Likewise.
60446         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
60447         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
60448         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
60449         into the sys_time module.  Check for gettimeofday just once.
60450         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
60451         for gettimeofday signature to just check the signature.  Merely
60452         compile it, since linking doesn't test signature.  Improve test for
60453         whether gettimeofday.o is actually needed.
60454         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
60455         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
60456         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
60457         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60458         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
60459         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
60460         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
60461         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
60462         than worrying about sys/time.h.
60463         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60464         Don't bother worrying about TIME_WITH_SYS_TIME.
60465         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
60466         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
60467         * m4/sys_time_h.m4: New file.
60468         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
60469         Don't include sys/time.h.  Return from main rather than exiting.
60470         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
60471         all uses changed.
60472         * modules/gethrxtime (Depends-on): Add sys_time.
60473         * modules/gettime (Depends-on): Likewise.
60474         * modules/gettimeofday (Depends-on): Likewise.
60475         * modules/nanosleep (Depends-on): Likewise.
60476         * modules/settime (Depends-on): Likewise.
60477         * modules/tempname (Depends-on): Likewise.
60478         * modules/utimens (Depends-on): Likewise.
60479         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
60480         (Include): Change back to <sys/time.h>.
60481         (Maintainer): Add self.
60482         * modules/sys_time: New file.
60483         * modules/tempname (Depends-on): Add gettimeofday.
60484         * tests/test-gettimeofday.c: Include <sys/time.h>
60485         rather than gettimeofday.h.
60486
60487 2007-01-17  Bruno Haible  <bruno@clisp.org>
60488
60489         * gnulib-tool (func_get_license): Revert last patch. Instead, let
60490         the license default to GPL.
60491         (func_create_testdir): Don't complain if a module is LGPL and its
60492         tests module depends on GPLed modules.
60493
60494 2007-01-17  Bruno Haible  <bruno@clisp.org>
60495
60496         * lib/gettimeofday.c (gettimeofday): Add code for the case
60497         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
60498         maximum possible value for tv->tv_usec, rather than the minimum one.
60499
60500 2005-10-08  Martin Lambers  <marlam@marlam.de>
60501 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60502 2007-01-16  Bruno Haible  <bruno@clisp.org>
60503
60504         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
60505         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
60506         gl_FUNC_GETTIMEOFDAY.
60507         (Include): Add gettimeofday.h.
60508         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
60509         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
60510         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
60511         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
60512         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
60513         * lib/gettimeofday.h: New file.
60514         * lib/gettimeofday.c: Include <sys/timeb.h>.
60515         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
60516         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60517         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
60518         fall back on time().
60519
60520         * tests/test-gettimeofday.c: New file.
60521         * modules/gettimeofday-tests: New file.
60522
60523 2007-01-16  Eric Blake  <ebb9@byu.net>
60524
60525         * modules/fnmatch (Depends-on): Depend on wchar.
60526         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
60527         * m4/fnmatch.m4: Likewise.
60528         * modules/mbchar (Makefile.am): Assume <wchar.h>.
60529         * m4/mbchar.m4: Likewise.
60530         * modules/mbswidth (Depends-on): Depend on wchar.
60531         * lib/mbswidth.c: Assume <wchar.h>.
60532         * m4/mbswidth.m4: Likewise.
60533         * modules/quotearg (Depends-on): Depend on wchar.
60534         * lib/quotearg.c: Assume <wchar.h>.
60535         * m4/quotearg.m4: Likewise.
60536         * modules/regex (Depends-on): Depend on wchar.
60537         * lib/regex_internal.h: Assume <wchar.h>.
60538         * m4/regex.m4: Likewise.
60539         * modules/stdint (Depends-on): Depend on wchar.
60540         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
60541         * m4/stdint.m4: Likewise.
60542         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
60543         * modules/strftime (Depends-on): Depend on wchar.
60544         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
60545         * modules/strtol (Depends-on): Depend on wchar.
60546         * lib/strtol.c: Assume <wchar.h>.
60547         * modules/wcwidth (Depends-on): Depend on wchar.
60548         * lib/wcwidth.h: Assume <wchar.h>.
60549         * m4/wcwidth.m4: Likewise.
60550
60551 2007-01-16  Bruno Haible  <bruno@clisp.org>
60552
60553         * modules/csharpexec-script: New, created from...
60554         * modules/csharpexec: ... this.
60555
60556 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60557
60558         * modules/javaexec-script: New, created from...
60559         * modules/javaexec: ... this.
60560
60561 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60562
60563         * modules/poll (Dependencies): Add sys_select.
60564
60565 2007-01-15  Jim Meyering  <jim@meyering.net>
60566
60567         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
60568         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
60569         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
60570         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
60571
60572 2007-01-15  Bruno Haible  <bruno@clisp.org>
60573
60574         * modules/striconveh: New file.
60575         * lib/striconveh.h: New file.
60576         * lib/striconveh.c: New file.
60577         * MODULES.html.sh (Internationalization functions): Add striconveh.
60578
60579         * modules/striconveh-tests: New file.
60580         * tests/test-striconveh.c: New file.
60581
60582 2007-01-15  Bruno Haible  <bruno@clisp.org>
60583
60584         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
60585         not from GNU libiconv or GNU libc.
60586
60587 2007-01-15  Bruno Haible  <bruno@clisp.org>
60588
60589         * doc/gnulib-intro.texi (Copyright): Explain the different license
60590         terms for module descriptions, autoconf macros, tests, documentation.
60591
60592 2007-01-14  Bruno Haible  <bruno@clisp.org>
60593
60594         * modules/striconv-tests: New file.
60595         * tests/test-striconv.c: New file.
60596
60597 2007-01-14  Bruno Haible  <bruno@clisp.org>
60598
60599         * modules/iconv-tests: New file.
60600         * tests/test-iconv.c: New file.
60601
60602 2007-01-14  Bruno Haible  <bruno@clisp.org>
60603
60604         * gnulib-tool (func_get_license): For test modules, use the license of
60605         the main module.
60606
60607 2007-01-14  Bruno Haible  <bruno@clisp.org>
60608
60609         * modules/iconv (Include): Clarify that <iconv.h> can only be included
60610         if iconv is found to exist.
60611
60612 2007-01-14  Bruno Haible  <bruno@clisp.org>
60613
60614         * modules/c-ctype-tests: New file.
60615         * tests/test-c-ctype.c: New file.
60616
60617 2007-01-14  Bruno Haible  <bruno@clisp.org>
60618
60619         * modules/binary-io-tests: New file.
60620         * tests/test-binary-io.sh: New file.
60621         * tests/test-binary-io.c: New file.
60622
60623 2007-01-14  Bruno Haible  <bruno@clisp.org>
60624
60625         * modules/array-oset-tests: New file.
60626         * tests/test-array_oset.c: New file.
60627
60628 2007-01-14  Bruno Haible  <bruno@clisp.org>
60629
60630         * modules/array-list-tests: New file.
60631         * tests/test-array_list.c: New file.
60632
60633 2007-01-14  Bruno Haible  <bruno@clisp.org>
60634
60635         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
60636         and make.
60637         Reported by Simon Josefsson in
60638         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
60639
60640 2007-01-14  Bruno Haible  <bruno@clisp.org>
60641
60642         * modules/allocsa-tests: New file.
60643         * tests/test-allocsa.c: New file.
60644
60645 2007-01-14  Bruno Haible  <bruno@clisp.org>
60646
60647         * modules/fchdir (Depends-on): Add absolute-header.
60648         * modules/unistd (Depends-on): Likewise.
60649
60650 2006-12-30  Bruno Haible  <bruno@clisp.org>
60651
60652         * modules/fchdir: New file.
60653         * modules/unistd (Files): Add lib/unistd_.h.
60654         (Makefile.am): Generate unistd.h from unistd_.h.
60655         * lib/fchdir.c: New file.
60656         * lib/dirent_.h: New file.
60657         * lib/unistd_.h: New file.
60658         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
60659         * m4/fchdir.m4: New file.
60660         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
60661         (gl_HEADER_UNISTD): Invoke it.
60662         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
60663         function.
60664         * lib/backupfile.c (opendir, closedir): Undefine.
60665         * lib/chown.c (open, close): Undefine.
60666         * lib/clean-temp.c (open, close): Undefine.
60667         * lib/copy-file.c (open, close): Undefine.
60668         * lib/execute.c (open, close): Undefine.
60669         * lib/fsusage.c (open, close): Undefine.
60670         * lib/gc-gnulib.c (open, close): Undefine.
60671         * lib/getcwd.c (opendir, closedir): Undefine.
60672         * lib/glob.c (opendir, closedir): Undefine.
60673         * lib/javacomp.c (open, close): Undefine.
60674         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
60675         * lib/openat-proc.c (open, close): Undefine.
60676         * lib/pagealign_alloc.c (open, close): Undefine.
60677         * lib/pipe.c (open, close): Undefine.
60678         * lib/progreloc.c (open, close): Undefine.
60679         * lib/savedir.c (opendir, closedir): Undefine.
60680         * lib/utime.c (open, close): Undefine.
60681         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
60682
60683 2007-01-10  Bruno Haible  <bruno@clisp.org>
60684
60685         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
60686
60687 2007-01-12  Eric Blake  <ebb9@byu.net>
60688
60689         Provide a robust <wchar.h>.  Further simplifications are now
60690         possible in other modules, but not included here.
60691         * modules/wchar: New module.
60692         * m4/wchar.m4: New file.
60693         * lib/wchar_.h: Likewise.
60694         * modules/mbchar (Depends-on): Depend on wchar, as the first use
60695         of the new module.
60696         * MODULES.html.sh (Extended multibyte and wide character utilities):
60697         New section.
60698
60699 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
60700
60701         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
60702         to a reasonable default for memory allocation.
60703         (xreadlink): Don't allocate a huge buffer, to work around a buggy
60704         file system that reports garbage st_size values for symlinks.
60705         Problem reported by Liyang Hu.
60706
60707 2007-01-11  Simon Josefsson  <simon@josefsson.org>
60708
60709         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
60710         Emacs .#* auto-save files).
60711
60712 2007-01-11  Bruno Haible  <bruno@clisp.org>
60713
60714         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
60715         directory.
60716
60717 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60718
60719         Use @...@ consistently in lib/wctype_.h.
60720         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
60721         on it being set to 1 or 0.
60722         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
60723         go back to AC_SUBSTing it.
60724         * modules/wctype (Makefile.am): Undo previous change.
60725
60726 2007-01-10  Eric Blake  <ebb9@byu.net>
60727
60728         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
60729         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
60730         * modules/wctype (Makefile.am): Likewise.
60731         Reported by Chris McGuire.
60732
60733 2007-01-10  Jim Meyering  <jim@meyering.net>
60734
60735         fts.c: a small readability/maintainability improvement
60736         * lib/fts.c (fts_read): Make this code slightly more readable and
60737         maintainable by hoisting the "sp->fts_cur = p" assignments to
60738         immediately follow the statements that set P.  Derived from
60739         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
60740
60741 2007-01-10  Eric Blake  <ebb9@byu.net>
60742
60743         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
60744         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
60745         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60746         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
60747         Reported by Chris McGuire.
60748
60749 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60750
60751         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
60752         in sed script.
60753
60754 2007-01-09  Bruno Haible  <bruno@clisp.org>
60755
60756         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
60757         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
60758         variables.
60759         (func_module): Use them.
60760
60761 2007-01-09  Bruno Haible  <bruno@clisp.org>
60762
60763         * modules/unistr/base: New file.
60764         * lib/unistr.h: New file.
60765
60766         * modules/unistr/u8-to-u16: New file.
60767         * lib/unistr/u8-to-u16.c: New file.
60768
60769         * modules/unistr/u8-to-u32: New file.
60770         * lib/unistr/u8-to-u32.c: New file.
60771
60772         * modules/unistr/u16-to-u8: New file.
60773         * lib/unistr/u16-to-u8.c: New file.
60774
60775         * modules/unistr/u16-to-u32: New file.
60776         * lib/unistr/u16-to-u32.c: New file.
60777
60778         * modules/unistr/u32-to-u8: New file.
60779         * lib/unistr/u32-to-u8.c: New file.
60780
60781         * modules/unistr/u32-to-u16: New file.
60782         * lib/unistr/u32-to-u16.c: New file.
60783
60784         * modules/unistr/u8-check: New file.
60785         * modules/unistr/u16-check: New file.
60786         * modules/unistr/u32-check: New file.
60787         * lib/unistr/u8-check.c: New file.
60788         * lib/unistr/u16-check.c: New file.
60789         * lib/unistr/u32-check.c: New file.
60790
60791         * modules/unistr/u8-chr: New file.
60792         * modules/unistr/u16-chr: New file.
60793         * modules/unistr/u32-chr: New file.
60794         * lib/unistr/u8-chr.c: New file.
60795         * lib/unistr/u16-chr.c: New file.
60796         * lib/unistr/u32-chr.c: New file.
60797
60798         * modules/unistr/u8-cmp: New file.
60799         * modules/unistr/u16-cmp: New file.
60800         * modules/unistr/u32-cmp: New file.
60801         * lib/unistr/u8-cmp.c: New file.
60802         * lib/unistr/u16-cmp.c: New file.
60803         * lib/unistr/u32-cmp.c: New file.
60804
60805         * modules/unistr/u8-cpy: New file.
60806         * modules/unistr/u16-cpy: New file.
60807         * modules/unistr/u32-cpy: New file.
60808         * lib/unistr/u8-cpy.c: New file.
60809         * lib/unistr/u16-cpy.c: New file.
60810         * lib/unistr/u32-cpy.c: New file.
60811         * lib/unistr/u-cpy.h: New file.
60812
60813         * modules/unistr/u8-cpy-alloc: New file.
60814         * modules/unistr/u16-cpy-alloc: New file.
60815         * modules/unistr/u32-cpy-alloc: New file.
60816         * lib/unistr/u8-cpy-alloc.c: New file.
60817         * lib/unistr/u16-cpy-alloc.c: New file.
60818         * lib/unistr/u32-cpy-alloc.c: New file.
60819         * lib/unistr/u-cpy-alloc.h: New file.
60820
60821         * modules/unistr/u8-endswith: New file.
60822         * modules/unistr/u16-endswith: New file.
60823         * modules/unistr/u32-endswith: New file.
60824         * lib/unistr/u8-endswith.c: New file.
60825         * lib/unistr/u16-endswith.c: New file.
60826         * lib/unistr/u32-endswith.c: New file.
60827         * lib/unistr/u-endswith.h: New file.
60828
60829         * modules/unistr/u8-mblen: New file.
60830         * modules/unistr/u16-mblen: New file.
60831         * modules/unistr/u32-mblen: New file.
60832         * lib/unistr/u8-mblen.c: New file.
60833         * lib/unistr/u16-mblen.c: New file.
60834         * lib/unistr/u32-mblen.c: New file.
60835
60836         * modules/unistr/u8-mbtouc: New file.
60837         * modules/unistr/u16-mbtouc: New file.
60838         * modules/unistr/u32-mbtouc: New file.
60839         * lib/unistr/u8-mbtouc.c: New file.
60840         * lib/unistr/u16-mbtouc.c: New file.
60841         * lib/unistr/u32-mbtouc.c: New file.
60842
60843         * modules/unistr/u8-mbtouc-safe: New file.
60844         * modules/unistr/u16-mbtouc-safe: New file.
60845         * modules/unistr/u32-mbtouc-safe: New file.
60846         * lib/unistr/u8-mbtouc-safe.c: New file.
60847         * lib/unistr/u16-mbtouc-safe.c: New file.
60848         * lib/unistr/u32-mbtouc-safe.c: New file.
60849
60850         * modules/unistr/u8-move: New file.
60851         * modules/unistr/u16-move: New file.
60852         * modules/unistr/u32-move: New file.
60853         * lib/unistr/u8-move.c: New file.
60854         * lib/unistr/u16-move.c: New file.
60855         * lib/unistr/u32-move.c: New file.
60856         * lib/unistr/u-move.h: New file.
60857
60858         * modules/unistr/u8-next: New file.
60859         * modules/unistr/u16-next: New file.
60860         * modules/unistr/u32-next: New file.
60861         * lib/unistr/u8-next.c: New file.
60862         * lib/unistr/u16-next.c: New file.
60863         * lib/unistr/u32-next.c: New file.
60864
60865         * modules/unistr/u8-prev: New file.
60866         * modules/unistr/u16-prev: New file.
60867         * modules/unistr/u32-prev: New file.
60868         * lib/unistr/u8-prev.c: New file.
60869         * lib/unistr/u16-prev.c: New file.
60870         * lib/unistr/u32-prev.c: New file.
60871
60872         * modules/unistr/u8-set: New file.
60873         * modules/unistr/u16-set: New file.
60874         * modules/unistr/u32-set: New file.
60875         * lib/unistr/u8-set.c: New file.
60876         * lib/unistr/u16-set.c: New file.
60877         * lib/unistr/u32-set.c: New file.
60878         * lib/unistr/u-set.h: New file.
60879
60880         * modules/unistr/u8-startswith: New file.
60881         * modules/unistr/u16-startswith: New file.
60882         * modules/unistr/u32-startswith: New file.
60883         * lib/unistr/u8-startswith.c: New file.
60884         * lib/unistr/u16-startswith.c: New file.
60885         * lib/unistr/u32-startswith.c: New file.
60886         * lib/unistr/u-startswith.h: New file.
60887
60888         * modules/unistr/u8-stpcpy: New file.
60889         * modules/unistr/u16-stpcpy: New file.
60890         * modules/unistr/u32-stpcpy: New file.
60891         * lib/unistr/u8-stpcpy.c: New file.
60892         * lib/unistr/u16-stpcpy.c: New file.
60893         * lib/unistr/u32-stpcpy.c: New file.
60894         * lib/unistr/u-stpcpy.h: New file.
60895
60896         * modules/unistr/u8-stpncpy: New file.
60897         * modules/unistr/u16-stpncpy: New file.
60898         * modules/unistr/u32-stpncpy: New file.
60899         * lib/unistr/u8-stpncpy.c: New file.
60900         * lib/unistr/u16-stpncpy.c: New file.
60901         * lib/unistr/u32-stpncpy.c: New file.
60902         * lib/unistr/u-stpncpy.h: New file.
60903
60904         * modules/unistr/u8-strcat: New file.
60905         * modules/unistr/u16-strcat: New file.
60906         * modules/unistr/u32-strcat: New file.
60907         * lib/unistr/u8-strcat.c: New file.
60908         * lib/unistr/u16-strcat.c: New file.
60909         * lib/unistr/u32-strcat.c: New file.
60910         * lib/unistr/u-strcat.h: New file.
60911
60912         * modules/unistr/u8-strchr: New file.
60913         * modules/unistr/u16-strchr: New file.
60914         * modules/unistr/u32-strchr: New file.
60915         * lib/unistr/u8-strchr.c: New file.
60916         * lib/unistr/u16-strchr.c: New file.
60917         * lib/unistr/u32-strchr.c: New file.
60918
60919         * modules/unistr/u8-strcmp: New file.
60920         * modules/unistr/u16-strcmp: New file.
60921         * modules/unistr/u32-strcmp: New file.
60922         * lib/unistr/u8-strcmp.c: New file.
60923         * lib/unistr/u16-strcmp.c: New file.
60924         * lib/unistr/u32-strcmp.c: New file.
60925
60926         * modules/unistr/u8-strcpy: New file.
60927         * modules/unistr/u16-strcpy: New file.
60928         * modules/unistr/u32-strcpy: New file.
60929         * lib/unistr/u8-strcpy.c: New file.
60930         * lib/unistr/u16-strcpy.c: New file.
60931         * lib/unistr/u32-strcpy.c: New file.
60932         * lib/unistr/u-strcpy.h: New file.
60933
60934         * modules/unistr/u8-strcspn: New file.
60935         * modules/unistr/u16-strcspn: New file.
60936         * modules/unistr/u32-strcspn: New file.
60937         * lib/unistr/u8-strcspn.c: New file.
60938         * lib/unistr/u16-strcspn.c: New file.
60939         * lib/unistr/u32-strcspn.c: New file.
60940         * lib/unistr/u-strcspn.h: New file.
60941
60942         * modules/unistr/u8-strdup: New file.
60943         * modules/unistr/u16-strdup: New file.
60944         * modules/unistr/u32-strdup: New file.
60945         * lib/unistr/u8-strdup.c: New file.
60946         * lib/unistr/u16-strdup.c: New file.
60947         * lib/unistr/u32-strdup.c: New file.
60948         * lib/unistr/u-strdup.h: New file.
60949
60950         * modules/unistr/u8-strlen: New file.
60951         * modules/unistr/u16-strlen: New file.
60952         * modules/unistr/u32-strlen: New file.
60953         * lib/unistr/u8-strlen.c: New file.
60954         * lib/unistr/u16-strlen.c: New file.
60955         * lib/unistr/u32-strlen.c: New file.
60956         * lib/unistr/u-strlen.h: New file.
60957
60958         * modules/unistr/u8-strmblen: New file.
60959         * modules/unistr/u16-strmblen: New file.
60960         * modules/unistr/u32-strmblen: New file.
60961         * lib/unistr/u8-strmblen.c: New file.
60962         * lib/unistr/u16-strmblen.c: New file.
60963         * lib/unistr/u32-strmblen.c: New file.
60964
60965         * modules/unistr/u8-strmbtouc: New file.
60966         * modules/unistr/u16-strmbtouc: New file.
60967         * modules/unistr/u32-strmbtouc: New file.
60968         * lib/unistr/u8-strmbtouc.c: New file.
60969         * lib/unistr/u16-strmbtouc.c: New file.
60970         * lib/unistr/u32-strmbtouc.c: New file.
60971
60972         * modules/unistr/u8-strncat: New file.
60973         * modules/unistr/u16-strncat: New file.
60974         * modules/unistr/u32-strncat: New file.
60975         * lib/unistr/u8-strncat.c: New file.
60976         * lib/unistr/u16-strncat.c: New file.
60977         * lib/unistr/u32-strncat.c: New file.
60978         * lib/unistr/u-strncat.h: New file.
60979
60980         * modules/unistr/u8-strncmp: New file.
60981         * modules/unistr/u16-strncmp: New file.
60982         * modules/unistr/u32-strncmp: New file.
60983         * lib/unistr/u8-strncmp.c: New file.
60984         * lib/unistr/u16-strncmp.c: New file.
60985         * lib/unistr/u32-strncmp.c: New file.
60986
60987         * modules/unistr/u8-strncpy: New file.
60988         * modules/unistr/u16-strncpy: New file.
60989         * modules/unistr/u32-strncpy: New file.
60990         * lib/unistr/u8-strncpy.c: New file.
60991         * lib/unistr/u16-strncpy.c: New file.
60992         * lib/unistr/u32-strncpy.c: New file.
60993         * lib/unistr/u-strncpy.h: New file.
60994
60995         * modules/unistr/u8-strnlen: New file.
60996         * modules/unistr/u16-strnlen: New file.
60997         * modules/unistr/u32-strnlen: New file.
60998         * lib/unistr/u8-strnlen.c: New file.
60999         * lib/unistr/u16-strnlen.c: New file.
61000         * lib/unistr/u32-strnlen.c: New file.
61001         * lib/unistr/u-strnlen.h: New file.
61002
61003         * modules/unistr/u8-strpbrk: New file.
61004         * modules/unistr/u16-strpbrk: New file.
61005         * modules/unistr/u32-strpbrk: New file.
61006         * lib/unistr/u8-strpbrk.c: New file.
61007         * lib/unistr/u16-strpbrk.c: New file.
61008         * lib/unistr/u32-strpbrk.c: New file.
61009         * lib/unistr/u-strpbrk.h: New file.
61010
61011         * modules/unistr/u8-strrchr: New file.
61012         * modules/unistr/u16-strrchr: New file.
61013         * modules/unistr/u32-strrchr: New file.
61014         * lib/unistr/u8-strrchr.c: New file.
61015         * lib/unistr/u16-strrchr.c: New file.
61016         * lib/unistr/u32-strrchr.c: New file.
61017
61018         * modules/unistr/u8-strspn: New file.
61019         * modules/unistr/u16-strspn: New file.
61020         * modules/unistr/u32-strspn: New file.
61021         * lib/unistr/u8-strspn.c: New file.
61022         * lib/unistr/u16-strspn.c: New file.
61023         * lib/unistr/u32-strspn.c: New file.
61024         * lib/unistr/u-strspn.h: New file.
61025
61026         * modules/unistr/u8-strstr: New file.
61027         * modules/unistr/u16-strstr: New file.
61028         * modules/unistr/u32-strstr: New file.
61029         * lib/unistr/u8-strstr.c: New file.
61030         * lib/unistr/u16-strstr.c: New file.
61031         * lib/unistr/u32-strstr.c: New file.
61032         * lib/unistr/u-strstr.h: New file.
61033
61034         * modules/unistr/u8-strtok: New file.
61035         * modules/unistr/u16-strtok: New file.
61036         * modules/unistr/u32-strtok: New file.
61037         * lib/unistr/u8-strtok.c: New file.
61038         * lib/unistr/u16-strtok.c: New file.
61039         * lib/unistr/u32-strtok.c: New file.
61040         * lib/unistr/u-strtok.h: New file.
61041
61042         * modules/unistr/u8-uctomb: New file.
61043         * modules/unistr/u16-uctomb: New file.
61044         * modules/unistr/u32-uctomb: New file.
61045         * lib/unistr/u8-uctomb.c: New file.
61046         * lib/unistr/u16-uctomb.c: New file.
61047         * lib/unistr/u32-uctomb.c: New file.
61048
61049         * MODULES.html.sh (Unicode string functions): Add the new modules.
61050
61051 2007-01-08  Bruno Haible  <bruno@clisp.org>
61052
61053         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61054         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61055         subdirectories.
61056
61057 2007-01-08  Karl Berry  <karl@gnu.org>
61058
61059         * doc/error.texi: mention that main() fns must set program_name
61060         when progname is used.
61061
61062 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61063
61064         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61065         WCTYPE_H is empty, for the benefit of builds from non-distclean
61066         directories.  Problem reported by Eric Blake in
61067         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61068
61069 2007-01-08  Bruno Haible  <bruno@clisp.org>
61070
61071         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61072         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61073         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61074         PROVIDE_CANONICALIZE_FILENAME_MODE.
61075         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61076
61077 2007-01-08  Bruno Haible  <bruno@clisp.org>
61078
61079         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61080         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61081         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61082         * lib/fts.c: Likewise.
61083         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61084
61085 2006-12-25  Bruno Haible  <bruno@clisp.org>
61086
61087         * modules/utf8-ucs4-safe: New file.
61088         * lib/utf8-ucs4-safe.h: New file.
61089         * lib/unistr/utf8-ucs4-safe.c: New file.
61090
61091         * modules/utf16-ucs4-safe: New file.
61092         * lib/utf16-ucs4-safe.h: New file.
61093         * lib/unistr/utf16-ucs4-safe.c: New file.
61094
61095         * MODULES.html.sh (Unicode string functions): Add the new modules.
61096
61097 2007-01-08  Bruno Haible  <bruno@clisp.org>
61098
61099         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61100         (Depends-on): Add unitypes.
61101         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61102         (u8_mbtouc_aux): Move out to separate file.
61103         (u8_mbtouc): Use ucs4_t, uint8_t types.
61104         * lib/unistr/utf8-ucs4.c: New file.
61105
61106         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61107         (Depends-on): Add unitypes.
61108         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61109         (u16_mbtouc_aux): Move out to separate file.
61110         (u16_mbtouc): Use ucs4_t, uint16_t types.
61111         * lib/unistr/utf16-ucs4.c: New file.
61112
61113         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61114         (Depends-on): Add unitypes.
61115         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61116         (u8_uctomb_aux): Move out to separate file.
61117         (u8_uctomb): Use ucs4_t, uint8_t types.
61118         * lib/unistr/ucs4-utf8.c: New file.
61119
61120         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61121         (Depends-on): Add unitypes.
61122         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61123         (u16_uctomb_aux): Move out to separate file.
61124         (u16_uctomb): Use ucs4_t, uint16_t types.
61125         * lib/unistr/ucs4-utf16.c: New file.
61126
61127 2006-12-25  Bruno Haible  <bruno@clisp.org>
61128
61129         * modules/unitypes: New file.
61130         * lib/unitypes.h: New file.
61131         * MODULES.html.sh (func_all_modules): New section "Unicode string
61132         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61133         this section. Add unitypes.
61134
61135 2007-01-08  Bruno Haible  <bruno@clisp.org>
61136
61137         Avoid variable names that conflict with those from libtool.
61138         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61139         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61140         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61141         library_names_spec to acl_library_names_spec, hardcode_* to
61142         acl_hardcode_*.
61143         Reported by Ralf Wildenhues.
61144
61145 2007-01-08  Bruno Haible  <bruno@clisp.org>
61146
61147         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
61148         definition.
61149         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
61150         definition.
61151         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
61152         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
61153         definition.
61154         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61155         definition.
61156         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
61157         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
61158         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
61159         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
61160         definition.
61161         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
61162         definition.
61163         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
61164         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
61165         GC_USE_<algorithm>.
61166         * lib/gc-libgcrypt.c: Likewise.
61167         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
61168         * modules/gc-arctwo (configure.ac): Likewise.
61169         * modules/gc-des (configure.ac): Likewise.
61170         * modules/gc-hmac-md5 (configure.ac): Likewise.
61171         * modules/gc-hmac-sha1 (configure.ac): Likewise.
61172         * modules/gc-md2 (configure.ac): Likewise.
61173         * modules/gc-md4 (configure.ac): Likewise.
61174         * modules/gc-md5 (configure.ac): Likewise.
61175         * modules/gc-random (configure.ac): Likewise.
61176         * modules/gc-rijndael (configure.ac): Likewise.
61177         * modules/gc-sha1 (configure.ac): Likewise.
61178
61179 2007-01-08  Bruno Haible  <bruno@clisp.org>
61180
61181         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
61182         macro definition.
61183         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
61184         definition.
61185         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
61186         definition.
61187         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
61188         * modules/fcntl-safer (configure.ac): Likewise.
61189         * modules/fopen-safer (configure.ac): Likewise.
61190         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
61191         GNULIB_FWRITEERROR macro definition.
61192
61193 2007-01-08  Bruno Haible  <bruno@clisp.org>
61194
61195         * m4/gnulib-common.m4: New file.
61196         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
61197         (func_get_filelist): Add m4/gnulib-common.m4.
61198
61199 2007-01-08  Bruno Haible  <bruno@clisp.org>
61200
61201         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
61202         command.
61203
61204 2007-01-08  Jim Meyering  <jim@meyering.net>
61205
61206         Use a more robust test for a "can't happen" condition.
61207         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
61208         narrowed the st_size value.  Presuming the "can't happen" condition
61209         is true, that narrowing could conceivably convert an invalid st_size
61210         value into a valid one.  Instead, use a change based on Matthew
61211         Woehlke's original patch.
61212
61213         Slight readability improvement: use an assert-like macro
61214         in place of literal "abort ()" uses.
61215         * lib/fts.c (fts_assert): Define.
61216         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
61217         Use this macro instead of a bare 'abort'.
61218
61219 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
61220
61221         Don't worry about using IRIX 5.3's wctype.h broken definitions;
61222         simply work around them.
61223         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
61224         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
61225         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
61226         declaring.
61227         Don't bother to define as macros, since the standard doesn't require it.
61228         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
61229         longer worry about IRIX 5.3.
61230         (HAVE_WCTYPE_CTMP_BUG): Remove.
61231
61232 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61233
61234         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
61235         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
61236         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61237         Problems reported by Georg Schwarz for IRIX 5.3.
61238
61239         * gnulib-tool (autoconf_minversion): Take the maximum version number
61240         found, not the minimum.  Problem reported by James Youngman.
61241
61242 2007-01-03  Karl Berry  <karl@gnu.org>
61243
61244         * doc/error.texi: new file, explaining interaction with progname.
61245         * doc/gnulib.texi: include it.  Update copyright.
61246
61247 2007-01-03  Simon Josefsson  <simon@josefsson.org>
61248
61249         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
61250         AC_CANONICAL_HOST, to improve autobuild outputs.
61251
61252 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
61253             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61254
61255         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
61256         sockets, server sockets, and other file descriptors.  Count errors
61257         to compute the return value.  Reorder the code a bit to be easier
61258         to follow.  Don't set event bits that were not requested (except
61259         POLLERR and POLLHUP).
61260
61261 2007-01-01  Bruno Haible  <bruno@clisp.org>
61262
61263         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
61264
61265 2007-01-03  Jim Meyering  <jim@meyering.net>
61266
61267         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
61268
61269 2007-01-02  Bruno Haible  <bruno@clisp.org>
61270
61271         * modules/settime (Include): Require timespec.h.
61272         * modules/nanosleep (Include): Likewise.
61273
61274 2007-01-01  Bruno Haible  <bruno@clisp.org>
61275
61276         * gnulib-tool (func_emit_copyright_notice): Bump year.
61277         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61278
61279 2007-01-01  Bruno Haible  <bruno@clisp.org>
61280
61281         Improve support for OpenBSD.
61282         * build-aux/config.rpath (libname_spec): Export.
61283         (library_names_spec): New variable. Export.
61284         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61285         library_names_spec from the config.rpath output. Locate shared library
61286         through the name pattern in library_names_spec.
61287
61288 2007-01-01  Eric Blake  <ebb9@byu.net>
61289
61290         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61291
61292 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61293
61294         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61295         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61296         assume the C locale, and avoid an "eval" that could cause trouble.
61297         Problem with SORT reported by Bob Proulx.
61298
61299         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61300         Define.  Trivial patch from Henning Nielsen Lund, originally
61301         sent to bug-grep@gnu.org today.
61302
61303 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61304
61305         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61306         struct stat.  Problem reported by Henning Nielsen Lund.
61307         * lib/acl.c: Include acl.h first, to check interface.  Don't
61308         bother to include sys/types.h and sys/stat.h again.
61309
61310 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61311
61312         Import the following change from libc; problem reported by
61313         Sven Verdoolaege.
61314
61315         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
61316
61317         [BZ #1373]
61318         * lib/argp.h: Remove __NTH for __argp_usage inline function.
61319
61320 2006-12-28  Jim Meyering  <jim@meyering.net>
61321
61322         * build-aux/announce-gen: Do not assume that the package
61323         builds any of tar.gz, tar.bz2, and .xdelta files.
61324         Suggestion from Simon Josefsson.
61325
61326 2006-12-28  Simon Josefsson  <simon@josefsson.org>
61327
61328         * modules/announce-gen: New file.
61329
61330 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61331
61332         * lib/mbchar.h: Just include <wctype.h>; the wctype module
61333         handles its gotchas now.
61334         * lib/mbswidth.c: Likewise.
61335         * lib/wcwidth.h: Likewise.
61336         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
61337         and iswcntrl; the wctype module does this stuff now.
61338         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61339         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61340         * modules/mbchar (Depends-on): Add wctype.
61341         * modules/mbswidth (Depends-on): Likewise.
61342         * modules/wcwidth (Depends-on): Likewise.
61343
61344 2006-12-27  Eric Blake  <ebb9@byu.net>
61345
61346         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
61347         module uses more than what <wctype.h> is required to provide.
61348
61349 2006-12-26  Eric Blake  <ebb9@byu.net>
61350
61351         * gnulib-tool (sed_extract_prog): Avoid space-tab.
61352
61353 2006-12-26  Eric Blake  <ebb9@byu.net>
61354
61355         * modules/absolute-header: New module.
61356         * modules/fcntl (Depends-on): Depend on it.
61357         * modules/inttypes (Depends-on): Likewise.
61358         * modules/stdint (Depends-on): Likewise.
61359         * modules/sys_stat (Depends-on): Likewise.
61360         * modules/wctype (Depends-on): Likewise.
61361         * MODULES.html.sh (Support for building libraries and
61362         executables): Document it.
61363
61364 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61365
61366         * gnulib-tool (SED): Remove, undoing previous change.
61367         The problem was that it broke coreutils on Solaris, because
61368         "sed --posix" leaked into a makefile.
61369         (sed): New alias, if 'alias' and GNU sed.
61370
61371 2006-12-24  Jim Meyering  <jim@meyering.net>
61372
61373         Work around an fchownat bug in glibc-2.4:
61374         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
61375         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
61376         in spite of the -P option.
61377         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
61378         New macros.
61379         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
61380         * modules/openat (Files): Add lib/fchownat.c.
61381         * lib/openat.c (fchownat): Don't define here.  Move to...
61382         * lib/fchownat.c: ...this new file.
61383
61384 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61385
61386         Fix bug reported by Bruno Haible in
61387         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
61388         where quotearg.c didn't compile on Mac OS X 10.2 because it
61389         lacks <wchar.h> and wint_t.
61390         * lib/wctype_.h (__wctype_wint_t): New type.
61391         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
61392         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
61393         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
61394         Arg is now of type __wctype_wint_t, not wint_t.
61395         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
61396         substitute HAVE_WINT_T.
61397         * modules/wctype (Files): Add m4/wint_t.m4.
61398         (wctype.h): Substitute HAVE_WINT_T.
61399
61400 2006-12-23  Bruno Haible  <bruno@clisp.org>
61401
61402         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
61403
61404 2006-12-23  Bruno Haible  <bruno@clisp.org>
61405
61406         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
61407         S_ISLNK.
61408         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
61409         mingw.
61410
61411 2006-12-22  Bruno Haible  <bruno@clisp.org>
61412
61413         * lib/copy-file.c: Include acl.h.
61414         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
61415         Close the file descriptors only after being done with copy_acl.
61416         * modules/copy-file (Depends-on): Add acl.
61417
61418 2006-12-22  Bruno Haible  <bruno@clisp.org>
61419
61420         * gnulib-tool (SED): New variable.
61421         Use $SED instead of sed everywhere.
61422
61423 2006-12-22  Bruno Haible  <bruno@clisp.org>
61424
61425         * modules/no-c++: New file.
61426         * m4/no-c++.m4: New file.
61427         * MODULES.html.sh (Support for building libraries and executables):
61428         Add no-c++.
61429
61430 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61431
61432         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61433         Include <limits.h>, and use its INT_MAX to rewrite the
61434         j loop so that it does not overflow 'int'.  Problem reported by
61435         Ralf Wildenhues in
61436         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
61437         Play it safe by shifting left by 1 rather than multiplying by 2,
61438         as GCC is less likely to optimize this away when the value
61439         is signed (when it assumes overflow leads to undefined behavior).
61440         Also, don't assume time_t uses two's complement.
61441
61442 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61443
61444         * MODULES.html.sh: New module wctype.
61445         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
61446         * lib/fnmatch.c: Don't bother to include <wchar.h> before
61447         <wctype.h>, since the new wctype module should fix this.
61448         * lib/quotearg.c: Include <wctype.h> unconditionally, since
61449         the wctype module should arrange for it.
61450         * lib/regex_internal.h: Likewise.
61451         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
61452         since the wctype module should handle this now.
61453         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
61454         * modules/fnmatch (Depends-on): Add wctype.
61455         * modules/quotearg (Depends-on): Likewise.
61456         * modules/regex (Depends-on): Likewise.
61457
61458 2006-12-19  Bruno Haible  <bruno@clisp.org>
61459
61460         * lib/strdup.h [C++]: Wrap definitions in extern "C".
61461         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
61462
61463 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61464
61465         * modules/savewd (Depends-on): Fix dependency on fcntl.
61466
61467 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61468
61469         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
61470         conforms to C99, rather than relying on the user's environment
61471         setting of STDINT_H.
61472
61473 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61474         and Eric Blake  <ebb9@byu.net>
61475
61476         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
61477         This is more consistent with the other defines here.
61478         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
61479         Port to z/OS.  Problem reported by Paul Gilmartin.
61480         Change local vars to use gl_ prefix rather than ac_.
61481         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
61482         with other defines.
61483         * modules/double-slash-root: New module.
61484         * modules/dirname (Files): Remove m4/double-slash-root.m4.
61485         (Depends-on): Add double-slash-root.
61486         * MODULES.html.sh (File system functions): Mention new module.
61487
61488 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
61489
61490         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
61491         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
61492         This is for the benefit of gzip, which doesn't do i18n.
61493
61494 2006-12-12  Jim Meyering  <jim@meyering.net>
61495
61496         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
61497         Reported by Andreas Schwab <schwab@suse.de>.
61498
61499 2006-12-12  Bruno Haible  <bruno@clisp.org>
61500
61501         Merge these changes.
61502         2006-09-05  Bruno Haible  <bruno@clisp.org>
61503         * lib/iconvme.c (iconv_string): No need to save and restore errno when
61504         iconv_alloc succeeded.
61505         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
61506         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
61507         test for " && dest " at the end - dest is always != NULL there. Call
61508         iconv with 4xNULL arguments initially, to reset the state. Call iconv
61509         with 2xNULL arguments, also to flush the state storage. Handle the
61510         IRIX iconv behaviour. Realloc the final result, to throw away unused
61511         memory.
61512
61513 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
61514
61515         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
61516         and fchmodat unconditionally, since glibc 2.4 has them.
61517         Problem reported by Arkadiusz Miskiewicz.
61518
61519 2006-12-10  Bruno Haible  <bruno@clisp.org>
61520
61521         * gnulib-tool (func_import): Show the include files only for those
61522         modules that are copied and specified.
61523         Reported by Karl Berry.
61524
61525 2006-12-08  Jim Meyering  <jim@meyering.net>
61526
61527         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
61528         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
61529
61530         * build-aux/announce-gen: Add two new options, both optional:
61531         --bootstrap-tools=TOOL_LIST
61532               a comma-separated list of tools, e.g.,
61533               autoconf,automake,bison,gnulib
61534         --gnulib-snapshot-date=DATE
61535               if gnulib is in the bootstrap tool list,
61536               then report this as the snapshot date.
61537               If not specified, use the current date/time.
61538               If you specify a date here, be sure it's UTC.
61539
61540 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61541
61542         * tests/test-argp-2.sh: Fix test to match actual output.
61543         (func_compare): Fix sed script to be portable.
61544
61545 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
61546
61547         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
61548         workaround for this case.  It is not autoconfigured now; offhand
61549         it's hard to see how to autoconfigure it.
61550
61551 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61552
61553         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
61554         a directory that is about to be chowned.  Such a directory's
61555         initial file permissions should permit the owner only and this
61556         should not be changed until after the chown, since the group and
61557         other bits would be incorrect if they granted permission before
61558         the chown.
61559
61560         Fix porting problem for iswctype reported by Georg Schwarz in:
61561         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
61562         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
61563         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
61564         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
61565         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61566
61567 2006-12-03  Jim Meyering  <jim@meyering.net>
61568
61569         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
61570         p->fts_statp may not yet be defined.
61571         (fts_read): Instead, set it in the caller, once p->fts_statp is
61572         sure to be defined, and corresponds to a top-level directory.
61573         This bug made du -x fail.  Here's the coreutils test case:
61574         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
61575         Reported by Mike Frysinger.
61576
61577 2006-12-01  Jim Meyering  <jim@meyering.net>
61578
61579         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
61580         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
61581         Reported by Simon Josefsson.
61582
61583 2006-11-30  Jim Meyering  <jim@meyering.net>
61584
61585         * m4/warning.m4: Use the all-permissive copyright notice
61586         recommended by RMS (rather than LGPL).
61587         * m4/vararrays.m4: Likewise.
61588         * m4/flexmember.m4: Likewise.
61589
61590 2006-11-29  Bruno Haible  <bruno@clisp.org>
61591
61592         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61593         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
61594         using +=.
61595         Reported by Simon Josefsson <simon@josefsson.org>.
61596
61597 2006-11-28  James Youngman <jay@gnu.org>
61598
61599         * README: Advise users that they might find the bug-gnulib@gnu.org
61600         and autotools-announce@gnu.org mailing lists useful.
61601
61602 2006-11-28  Bruno Haible  <bruno@clisp.org>
61603
61604         * m4/ptrdiff_max.m4: Remove file.
61605
61606 2006-11-21  Bruno Haible  <bruno@clisp.org>
61607
61608         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
61609         _AC_COMPUTE_INT.
61610         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61611         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
61612         _AC_COMPUTE_INT.
61613         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61614         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
61615         _AC_COMPUTE_INT.
61616         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61617
61618 2006-11-28  Jim Meyering  <jim@meyering.net>
61619
61620         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
61621         warning from "gcc -Wshadow" about shadowing the builtin.
61622
61623 2006-11-27  Bruno Haible  <bruno@clisp.org>
61624
61625         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
61626         _AC_COMPUTE_INT.
61627         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61628
61629 2006-11-27  Bruno Haible  <bruno@clisp.org>
61630             Paul Eggert  <eggert@cs.ucla.edu>
61631
61632         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
61633
61634 2006-11-26  Bruno Haible  <bruno@clisp.org>
61635
61636         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61637         noinst_LTLIBRARIES.
61638
61639 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61640             Bruno Haible  <bruno@clisp.org>
61641
61642         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
61643         if compiling with "gcc -ansi".
61644
61645 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61646
61647         Fix some incompatibilities with gcc -ansi -pedantic.
61648         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
61649         if compiling pedantically with GCC, unless it's C99 or later.
61650         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
61651         it mishandles gcc -ansi -pedantic as well.
61652         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
61653         if gcc -pedantic.
61654         * lib/regexec.c (check_node_accept_bytes): Don't use auto
61655         initializers for struct if -pedantic, unless it's C99 or later.
61656
61657 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
61658
61659         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
61660         Don't close an fd more than once. Identical atimes indicate
61661         success, not failure.
61662
61663 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
61664
61665         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
61666
61667 2006-11-23  Jim Meyering  <jim@meyering.net>
61668
61669         * build-aux/announce-gen: New file.  From coreutils.
61670
61671 2006-11-22  Jim Meyering  <jim@meyering.net>
61672
61673         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
61674         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
61675         (fts_read): Use a temporary to narrow the overused st_size member
61676         before using it in a switch statement.  Reported by Matthew Woehlke.
61677
61678         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
61679         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
61680
61681 2006-11-20  Bruno Haible  <bruno@clisp.org>
61682
61683         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
61684         changequote instead of pairs of brackets.
61685         Reported by Andreas Schwab <schwab@suse.de>.
61686
61687 2006-11-21  Jim Meyering  <jim@meyering.net>
61688
61689         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
61690         so as to remain compatible with older compilers.
61691         Patch from Michael Deutschmann.
61692
61693 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61694
61695         * MODULES.html.sh (File system functions): Add openat.
61696
61697         * lib/openat.h (rpl_fstatat): New macro, if
61698         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
61699         (fstatat): Define to rpl_fstatat under the same conditions,
61700         unless COMPILING_FSTATAT.
61701         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
61702         seems to have the bug.
61703         * lib/fstatat.c: New file.
61704         * modules/openat (Files): Add it.
61705
61706 2006-11-20  Bruno Haible  <bruno@clisp.org>
61707
61708         * Makefile: New file.
61709
61710 2006-11-20  Jim Meyering  <jim@meyering.net>
61711
61712         The beginnings of syntax-related checks for gnulib.
61713         * lib/Makefile: New file.
61714         * lib/t-idcache: New script.  Ensure that the two halves of
61715         idcache.c stay in sync.
61716
61717         * lib/idcache.c: Adjust comments in user- and group- portions to
61718         be more accurate, and to be consistent with one another.
61719
61720 2006-11-20  Jim Meyering  <jim@meyering.net>
61721
61722         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
61723         continue using the flexible array member (thus, this module performs
61724         half as many malloc calls), with the addition that...
61725         (getgroup, getuser): Consistently record a non-match via an empty
61726         "name" string, and map an empty string match to a NULL return value.
61727         * modules/idcache (Depends-on): Re-add flexmember.
61728
61729         * lib/idcache.c (getuser): Remove all uses of the register keyword.
61730         (getuidbyname, getgroup, getgidbyname): Likewise.
61731
61732         Use cleaner syntax: NULL rather than 0.
61733         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
61734
61735 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61736
61737         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
61738         It mishandled the case where the group was missing.
61739         Problem reported by Greg Schafer.
61740         * modules/idcache: Likewise.
61741
61742 2006-11-18  Jim Meyering  <jim@meyering.net>
61743
61744         * check-module (%exempt_header): Add exception for some
61745         conditionally-included headers.
61746
61747         * modules/i-ring (Depends-on): Add verify.
61748         (License): Change to LGPL.
61749
61750 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61751
61752         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
61753         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
61754         and inttostr.h.  Use snprintf rather than uinttostr, so that
61755         LGPLed code doesn't depend on GPLed.
61756
61757 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61758
61759         * modules/inline (License): Change from GPL to LGPL.
61760
61761 2006-11-17  Jim Meyering  <jim@meyering.net>
61762
61763         * modules/d-type (License): Switch to LGPL.
61764
61765 2006-11-15  Bruno Haible  <bruno@clisp.org>
61766
61767         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
61768
61769 2006-11-15  Eric Blake  <ebb9@byu.net>
61770
61771         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
61772         the module dependency.
61773
61774 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61775             Bruno Haible  <bruno@clisp.org>
61776
61777         * gnulib-tool (func_create_testdir): Add license consistency check.
61778
61779 2006-11-15  Eric Blake  <ebb9@byu.net>
61780
61781         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
61782         random "(cached)" in configure output.
61783
61784 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61785
61786         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
61787         test for conforming inttypes.h is both announced and cached.
61788
61789         * MODULES.html.sh (seen_modules, seen_files): New variables.
61790         (func_module): Rewrite to use a few less gnulib-tool and sed
61791         invocations.  Avoid a couple of quadratic algorithms for ...
61792         (missed_modules, missed_files): ... these, with ...
61793         (func_append, func_tmpdir): ... these new functions, from
61794         gnulib-tool.  Analogously, install traps for cleanup.
61795
61796         * tests/test-gc.c (main): Remove unused variables.
61797         * tests/test-read-file.c: Include stdlib.h, for 'free'.
61798
61799 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
61800
61801         * modules/inttostr (License): Change to LGPL.
61802
61803 2006-11-14  Eric Blake  <ebb9@byu.net>
61804
61805         * modules/tempname (License): Change to LGPL.
61806
61807 2006-11-14  Eric Blake  <ebb9@byu.net>
61808
61809         * doc/functions.texi (Function Portability): *printf functions on
61810         Cygwin now understand all POSIX size specifiers.
61811
61812 2006-11-14  Bruno Haible  <bruno@clisp.org>
61813
61814         * modules/c-ctype (License): Change to LGPL.
61815
61816 2006-11-12  Bruno Haible  <bruno@clisp.org>
61817
61818         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61819         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
61820         for GNOME libraries, for which the include files are installed in
61821         subdirectories of $prefix/include.
61822
61823 2006-11-12  Bruno Haible  <bruno@clisp.org>
61824
61825         * m4/lib-link.m4: Require at least autoconf-2.54.
61826         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
61827         name to underscores for the --with option.
61828
61829 2006-11-13  Bruno Haible  <bruno@clisp.org>
61830
61831         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
61832         the tests directory.
61833         Reported by Ralf Wildenhues.
61834
61835 2006-11-13  Bruno Haible  <bruno@clisp.org>
61836
61837         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
61838         (func_emit_initmacro_end): Undo the override here.
61839         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
61840         Works around the famous automake error in coreutils.
61841
61842 2006-11-13  Eric Blake  <ebb9@byu.net>
61843
61844         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
61845         element, not its node.
61846
61847 2006-11-12  Bruno Haible  <bruno@clisp.org>
61848
61849         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
61850         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
61851
61852 2006-11-12  Bruno Haible  <bruno@clisp.org>
61853
61854         * gnulib-tool: New option --local-symlink.
61855         (func_usage): Document it.
61856         (lsymbolic): New variable.
61857         (func_import, func_create_testdir): If --symlink was not specified,
61858         test whether --local-symlink was specified and the file comes from
61859         the local_gnulib_dir.
61860
61861 2006-11-12  Bruno Haible  <bruno@clisp.org>
61862
61863         * gnulib-tool (func_ln): New function.
61864         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
61865
61866 2006-11-12  Bruno Haible  <bruno@clisp.org>
61867
61868         Finish support for source files in subdirectories.
61869         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
61870         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
61871         AUTOMAKE_OPTIONS.
61872         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
61873
61874 2006-11-12  Bruno Haible  <bruno@clisp.org>
61875
61876         * gnulib-tool (func_get_automake_snippet): Synthesize also an
61877         EXTRA_lib_SOURCES augmentation.
61878         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
61879
61880 2006-11-12  Jim Meyering  <jim@meyering.net>
61881
61882         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
61883         file descriptors.  This also averts a failure on systems with
61884         native openat support when a traversed directory lacks "x" access.
61885         * lib/fts_.h: Include "i-ring.h"
61886         (struct FTS) [fts_fd_ring]: New member.
61887         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
61888         (FCHDIR): Add parentheses.
61889         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
61890         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
61891         When descending, rather than simply closing the previous
61892         fts_cwd_fd value, push that file descriptor onto the ring.
61893         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
61894         (fts_open): Initialize the new fd_ring member.
61895         (fts_close): Clear the ring.
61896         (fts_safe_changedir): When possible, use our new fd_ring to skip
61897         the diropen and fstat and dev/ino comparison that would normally
61898         accompany a virtual `chdir ("..")'.
61899
61900         * modules/fts (Depends-on): Add i-ring.
61901         * modules/i-ring: New module.
61902         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
61903         * m4/i-ring.m4: New file.
61904
61905 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61906
61907         * gnulib-tool (func_create_testdir): Fix replacement of
61908         `build-aux' in configure.ac.  Run autotools in gltests
61909         subdirectory.
61910         (func_create_testdir, func_create_megatestdir, test): There is
61911         no need for '--force' in most autotool invocations in a new
61912         tree.  Actually fail the whole test if any of the tools, or the
61913         configure or make stages fail.
61914
61915         Sync from Automake.
61916         * build-aux/gnupload: Revert last change.  Add pointer to upload
61917         instructions of the GNU Maintenance Instructions.
61918         Suggestion by Karl Berry.
61919
61920 2006-11-10  Jim Meyering  <jim@meyering.net>
61921
61922         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
61923
61924 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61925
61926         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
61927         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
61928         (bind_textdomain_codeset) [! ENABLE_NLS]:
61929         Evaluate all the arguments.  That way, callers get compatible behavior
61930         if the arguments have side effects.  Also, it avoids some GCC
61931         diagnostics in some cases; Joel E. Denny reported problems when Bison
61932         was configured with --enable-gcc-warnigs.
61933
61934 2006-11-10  Jim Meyering  <jim@meyering.net>
61935
61936         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
61937         relevant options in CFLAGS (like -O, -fno-inline) are taken into
61938         account.
61939
61940 2006-11-10  Jim Meyering  <jim@meyering.net>
61941
61942         * modules/inline: New file/module.
61943         * modules/xalloc (Files): Remove m4/inline.m4.
61944         (Depends-on): Add inline, instead.
61945         * modules/oset: Likewise.
61946         * modules/list: Likewise.
61947
61948 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61949
61950         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
61951         Problem reported by Matthew Woehlke.
61952
61953 2006-11-09  Bruno Haible  <bruno@clisp.org>
61954
61955         * lib/tempname.c (gen_tempname): Remove variant that invokes
61956         __gen_tempname.
61957         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
61958         __gen_tempname.
61959
61960 2006-11-08  Bruno Haible  <bruno@clisp.org>
61961
61962         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
61963         to 'yes' instead of 'cross-compiling'.
61964
61965 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
61966
61967         * lib/quotearg.h (quotearg_free): New decl.
61968         * lib/quotearg.c (quotearg_free): New function.
61969         (slot0, nslots, slotvec0, slotvec):
61970         Now file-scope so that quotearg_free can get at them.
61971
61972 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61973
61974         Sync from Automake.
61975         * build-aux/gnupload: Add missing 'gnu' to example URL.
61976         Report by Karl Berry.
61977
61978 2006-11-08  Bruno Haible  <bruno@clisp.org>
61979
61980         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
61981         Suggested by Paul Eggert.
61982
61983 2006-11-08  Jim Meyering  <jim@meyering.net>
61984
61985         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
61986         It's already included if !_LIBC.
61987         (fts_safe_changedir): Add a comment.
61988
61989 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61990
61991         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
61992         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
61993         Matthew Woehlke.
61994
61995         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
61996         definitions up, to avoid colliding with change below.
61997         (static_inline) [HAVE_INLINE]: New macro.
61998         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
61999         Provide extern decls when !HAVE_INLINE.  Do not define unless
62000         static_inline is defined, either by us or by xmalloc.c.  Use
62001         static_inline rather than static inline.
62002         (XCALLOC): Optimize sizeof(T) = 1 case.
62003         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62004
62005 2006-11-07  Bruno Haible  <bruno@clisp.org>
62006
62007         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62008         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62009         AC_C_INLINE.
62010         * modules/xalloc (Files): Add m4/inline.m4.
62011
62012 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62013
62014         * README: Fix typo.
62015         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62016         (Miscellanous Notes): ...from this.
62017
62018 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62019
62020         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62021         Mention that offsetof should be used instead of sizeof.
62022         From Bruno Haible.
62023
62024 2006-11-07  Bruno Haible  <bruno@clisp.org>
62025
62026         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62027
62028 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62029
62030         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62031         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62032         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62033         (gl_tree_add_before, gl_tree_add_after):
62034         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62035         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62036         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62037         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62038         (gl_linked_add_after, gl_linked_add_at): Likewise.
62039         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62040         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62041         (gl_tree_add_before, gl_tree_add_after): Likewise.
62042         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62043         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62044         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62045
62046 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62047
62048         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62049
62050 2006-11-06  Bruno Haible  <bruno@clisp.org>
62051
62052         * m4/inline.m4: New file.
62053         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62054         * modules/list (Files): Add m4/inline.m4.
62055         * modules/oset (Files): Likewise.
62056
62057 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62058
62059         * lib/idcache.c: Include <stddef.h>, for offsetof.
62060         (struct userid.name): Change from char * to a flexible array member.
62061         All uses changed.
62062         * modules/idcache (Depends-on): Add flexmember.
62063
62064         * MODULES.html.sh (Core language properties): New module flexmember.
62065         * modules/flexmember, m4/flexmember.m4: New files.
62066
62067         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62068         inline functions that are identical with the old xnmalloc_inline,
62069         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62070         that we can avoid some unnecessary integer multiplications and
62071         divisions in the common case where the element size is known at
62072         compile time.
62073         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62074         needed.
62075         (xnboundedmalloc): Remove.
62076         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62077         arguments, for consistency with rest of this header.
62078         (xcharalloc): Rewrite using XNMALLOC.
62079         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62080         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62081         versions have been moved to lib/xalloc.h and renamed to be the
62082         non-*_inline versions.
62083         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62084         and xnrealloc functions, since those functions are now inline and
62085         now call us.
62086         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62087         renaming described above.
62088         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62089         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62090         captures the dependency in AC_C_INLINE.
62091
62092         New module canonicalize-lgpl, proposed by Charles Wilson in
62093         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62094         with a few small changes afterwards.
62095         * MODULES.html.sh (File system functions): New module
62096         canonicalize-lgpl.
62097         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62098         and canonicalize_file_name.
62099         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62100         * modules/canonicalize-lgpl: New files.
62101
62102 2006-11-05  Bruno Haible  <bruno@clisp.org>
62103
62104         * gnulib-tool (func_import, func_create_testdir): Create directories
62105         also for files in subdirectories of lib/.
62106
62107 2006-11-05  Bruno Haible  <bruno@clisp.org>
62108
62109         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62110         ANSI C compliant.
62111
62112 2006-11-03  Bruno Haible  <bruno@clisp.org>
62113
62114         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62115         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62116         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62117         (xnboundedmalloc): New inline function.
62118         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62119         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62120         xmalloc.
62121         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62122         xmalloc.
62123         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62124         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62125         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62126         xmalloc.
62127         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62128         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62129         xmalloc.
62130         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62131         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62132         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62133         xmalloc.
62134         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62135         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62136         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62137         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62138         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62139         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62140         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62141
62142 2006-11-03  Bruno Haible  <bruno@clisp.org>
62143
62144         * lib/c-ctype.h [C++]: Define functions without name mangling.
62145         * lib/fwriteerror.h [C++]: Likewise.
62146         * lib/gcd.h [C++]: Likewise.
62147         * lib/linebreak.h [C++]: Likewise.
62148
62149 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62150
62151         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
62152         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
62153         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
62154         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62155         Check for functions and headers just once.
62156         Check for declaration of canonicalize_file_name.
62157         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
62158
62159 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62160
62161         * gnulib-tool (func_import): Fix typo in actioncmd.
62162
62163 2006-11-02  Bruno Haible  <bruno@clisp.org>
62164
62165         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
62166         newline sequence in the Makefile.am snippet as a space, like "make"
62167         does.
62168         Reported by Roger Persson <perrog@gmail.com>.
62169
62170 2006-11-01  Bruno Haible  <bruno@clisp.org>
62171
62172         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
62173         already declared in <string.h>.
62174         * lib/strcase.h (strncasecmp): Don't declare it if yes.
62175
62176 2006-11-01  Bruno Haible  <bruno@clisp.org>
62177
62178         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
62179         * lib/strcase.h: Include <string.h>.
62180         (strcasecmp): Define to rpl_strcasecmp here.
62181
62182 2006-11-01  Bruno Haible  <bruno@clisp.org>
62183
62184         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
62185
62186 2006-11-01  Eric Blake  <ebb9@byu.net>
62187
62188         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
62189
62190         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
62191
62192 2006-10-29  Bruno Haible  <bruno@clisp.org>
62193
62194         Make it compile in C++ mode.
62195         * lib/full-write.c (full_rw): Add a cast.
62196
62197 2006-11-01  Bruno Haible  <bruno@clisp.org>
62198
62199         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
62200         be POSIX compliant.
62201         Reported by Roger Persson <perrog@gmail.com>.
62202
62203 2006-11-01  Eric Blake  <ebb9@byu.net>
62204
62205         * lib/getopt_.h: Fix comments.
62206
62207 2006-10-31  Eric Blake  <ebb9@byu.net>
62208
62209         * modules/tmpdir (Depends-on): Add sys_stat.
62210         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
62211         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
62212         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
62213         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
62214         tempname.
62215
62216 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
62217
62218         Avoid some C++ diagnostics reported by Bruno Haible.
62219         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
62220         xmalloc.
62221         (quotearg_alloc): Use xcharalloc rather than xmalloc.
62222         (struct slotvec): Move to top level.
62223         (quotearg_n_options): Rewrite to avoid xmalloc.
62224         * lib/xalloc.h (xcharalloc): New function.
62225         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
62226         [defined __cplusplus]: Add function template that provides result
62227         type propagation.  This part of the change is from Bruno Haible.
62228
62229 2006-10-29  Bruno Haible  <bruno@clisp.org>
62230
62231         Make it compile in C++ mode.
62232         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
62233         * lib/strnlen1.c (strnlen1): Cast memchr result.
62234         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
62235         * lib/clean-temp.c (string_equals, string_hash): Add casts.
62236         (create_temp_dir): Rename local variable 'template'.
62237         (compile_csharp_using_sscli): Add cast.
62238         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
62239         * lib/findprog.c (find_in_path): Likewise.
62240         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
62241         * lib/wait-process.c (register_slave_subprocess): Likewise.
62242
62243 2006-10-22  Bruno Haible  <bruno@clisp.org>
62244
62245         * modules/tsearch: New file.
62246         * lib/tsearch.h: New file.
62247         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
62248         * m4/tsearch.m4: New file.
62249         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
62250
62251 2006-10-29  Eric Blake  <ebb9@byu.net>
62252
62253         * lib/arcfour.c: Assume config.h.
62254         * lib/arctwo.c: Likewise.
62255         * lib/base64.c: Likewise.
62256         * lib/check-version.c: Likewise.
62257         * lib/crc.c: Likewise.
62258         * lib/des.c: Likewise.
62259         * lib/gc-gnulib.c: Likewise.
62260         * lib/gc-libgcrypt.c: Likewise.
62261         * lib/gc-pbkdf2-sha1.c: Likewise.
62262         * lib/getaddrinfo.c: Likewise.
62263         * lib/getdelim.c: Likewise.
62264         * lib/getline.c: Likewise.
62265         * lib/hmac-md5.c: Likewise.
62266         * lib/hmac-sha1.c: Likewise.
62267         * lib/iconvme.c: Likewise.
62268         * lib/md2.c: Likewise.
62269         * lib/md4.c: Likewise.
62270         * lib/memxor.c: Likewise.
62271         * lib/read-file.c: Likewise.
62272         * lib/readline.c: Likewise.
62273         * lib/rijndael-alg-fst.c: Likewise.
62274         * lib/rijndael-api-fst.c: Likewise.
62275         * lib/xgetdomainname.c: Likewise.
62276
62277 2006-10-28  Eric Blake  <ebb9@byu.net>
62278
62279         * lib/xstrndup.c: Assume config.h.
62280
62281 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62282
62283         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62284         stat-macros.h is now for our own macros, whereas stat_h is for
62285         macros in the <sys/stat.h> name space.
62286         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62287         (STAT_MACROS_H): Remove.
62288         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62289         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62290         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62291         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62292         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62293         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62294         Move these macros to ...
62295         * lib/stat_.h: here.  Don't include stat-macros.h.
62296         * lib/canonicalize.c: Don't include stat-macros.h.
62297         * lib/chown.c: Likewise.
62298         * lib/euidaccess.c: Likewise.
62299         * lib/file-type.c: Likewise.
62300         * lib/filemode.c: Likewise.
62301         * lib/glob.c: Likewise.
62302         * lib/isapipe.c: Likewise.
62303         * lib/lchown.c: Likewise.
62304         * lib/lstat.c: Likewise.
62305         * lib/mkdir-p.c: Likewise.
62306         * lib/rmdir.c: Likewise.
62307         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62308         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
62309         unless mkdir isn't declared, to speed up 'configure'.
62310         Always create sys/stat.h, since it's unlikely any real sys/stat.h
62311         would define all the S_* symbols.
62312         * modules/canonicalize (Depends-on):
62313         Depend on sys_stat, not stat-macros.
62314         * modules/chown: Likewise.
62315         * modules/euidaccess: Likewise.
62316         * modules/filemode: Likewise.
62317         * modules/file-type: Likewise.
62318         * modules/glob: Likewise.
62319         * modules/isapipe: Likewise.
62320         * modules/lchown: Likewise.
62321         * modules/lstat: Likewise.
62322         * modules/mkancesdirs: Likewise.
62323         * modules/rmdir: Likewise.
62324         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
62325         * modules/modechange: Likewise.
62326         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
62327         (configure.ac): Remove gl_STAT_MACROS.
62328         * modules/sys_stat (Depends-on): Remove stat-macros.
62329
62330 2006-10-27  Bruno Haible  <bruno@clisp.org>
62331
62332         * m4/signed.m4: Remove file.
62333         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
62334         invocation.
62335         * modules/vasnprintf (Files): Remove m4/signed.m4.
62336
62337 2006-10-27  Bruno Haible  <bruno@clisp.org>
62338
62339         Update to GNU gettext 0.16.
62340         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
62341         m4/inttypes-h.m4, m4/signed.m4.
62342         * m4/gettext.m4: Update to GNU gettext 0.16.
62343         * m4/intl.m4: New file, from GNU gettext.
62344         * m4/intldir.m4: New file, from GNU gettext.
62345         * config/srclist.txt: Update
62346
62347 2006-10-27  Eric Blake  <ebb9@byu.net>
62348
62349         * MODULES.html.sh: Document tempname.
62350         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
62351         dependencies.
62352         (Files): Move lib/tempname.c...
62353         * modules/tempname: ...to this new module.
62354         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
62355         (gl_PREREQ_TEMPNAME): Move...
62356         * m4/tempname.m4: ...to this new file.
62357         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
62358         * modules/sys_stat (Depends-on): Add stat-macros.
62359         * lib/stat_.h (includes): Pick up stat macros.
62360         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
62361         if stat macros are broken.
62362         * lib/tempname.c (includes): No need to include "stat-macros.h".
62363         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
62364         (direxists, __path_search) [!_LIBC]: Don't compile these in
62365         gnulib; the tmpdir module covers that.
62366         * lib/tempname.h: New file.
62367
62368 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62369
62370         * COPYING: Explain how gnulib-tool converts licence headers.
62371         Almost all wording by Eric Blake.
62372
62373 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
62374
62375         * lib/mbchar.h (is_basic_table): Make read-only.
62376         * lib/mbchar.c (is_basic_table): Likewise.
62377         Reported by John Darrington.
62378
62379 2006-10-25  Bruno Haible  <bruno@clisp.org>
62380
62381         * lib/progname.h (set_program_name): Undefine before defining.
62382
62383 2006-10-25  Bruno Haible  <bruno@clisp.org>
62384
62385         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
62386         false for non-gcc C++ compilers.
62387         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
62388
62389 2006-10-24  Bruno Haible  <bruno@clisp.org>
62390
62391         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
62392         iconv implementations like Irix iconv.
62393
62394 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62395
62396         * modules/vararrays: New file.
62397         * m4/vararrays.m4: New file, taken from diffutils.
62398         * MODULES.html.sh: New module vararrays.
62399
62400 2006-10-24  Karl Berry  <karl@gnu.org>
62401
62402         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
62403         Don't call GNU Unix.
62404
62405 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62406
62407         * users.txt: Add Libtool.
62408
62409         Sync from Libtool:
62410
62411         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62412
62413         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
62414         to gnulib's policy of including config.h unconditionally.
62415
62416 2006-10-24  Bruno Haible  <bruno@clisp.org>
62417
62418         * modules/wcwidth (Files): Add m4/wint_t.m4.
62419         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
62420         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
62421
62422 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62423
62424         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
62425         to pacify GCC with some -W flags enabled.  Problem reported by
62426         Bruno Haible.
62427
62428 2006-10-24  Jim Meyering  <jim@meyering.net>
62429
62430         * MODULES.html.sh: Remove uinttostr.  It's not a module.
62431         Reported by Karl Berry.
62432
62433 2006-10-23  Bruno Haible  <bruno@clisp.org>
62434
62435         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
62436
62437 2006-10-24  Bruno Haible  <bruno@clisp.org>
62438
62439         * lib/gl_list.h: Use C comment style, not C++ comment style.
62440
62441 2006-10-23  Eric Blake  <ebb9@byu.net>
62442
62443         * lib/getaddrinfo.c (includes): Add missing include.
62444
62445 2006-10-23  Bruno Haible  <bruno@clisp.org>
62446             Paul Eggert  <eggert@cs.ucla.edu>
62447
62448         Ability to rename obstack_free.
62449         * lib/obstack.h (__obstack_free): New macro. Declare instead of
62450         obstack_free.
62451         (obstack_free): Invoke the __obstack_free macro.
62452         * lib/obstack.c (obstack_free): Use __obstack_free macro.
62453
62454 2006-10-23  Bruno Haible  <bruno@clisp.org>
62455             Paul Eggert  <eggert@cs.ucla.edu>
62456
62457         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
62458         __argc, __argv from the declaration. (They are defined as macros on
62459         mingw.)
62460
62461 2006-10-22  Bruno Haible  <bruno@clisp.org>
62462
62463         * doc/gnulib-intro.texi: New file.
62464         * doc/gnulib.texi: Include it.
62465
62466 2006-10-21  Bruno Haible  <bruno@clisp.org>
62467
62468         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
62469         "Introduction", "Miscellanous Notes", "Particular Modules".
62470
62471 2006-10-21  Bruno Haible  <bruno@clisp.org>
62472
62473         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62474         Change mostlyclean-local rule to avoid sh syntax error from bash
62475         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
62476
62477 2006-10-23  Jim Meyering  <jim@meyering.net>
62478
62479         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
62480         in place of snprintf.
62481
62482         * modules/inttostr (Files): Add lib/uinttostr.c.
62483         * lib/uinttostr.c (inttostr): New file/function.
62484         * lib/inttostr.h (uinttostr): Declare.
62485         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
62486         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62487         Add uinttostr.
62488         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
62489
62490 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62491
62492         * lib/canonicalize.c (ELOOP): Define if not already defined.
62493         Problem reported by Bruno Haible in
62494         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
62495
62496 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62497
62498         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
62499         Problem reported by Perry Smith and Ville Laurikari.
62500
62501         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
62502         uses.
62503
62504 2006-10-19  Bruno Haible  <bruno@clisp.org>
62505
62506         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
62507         for mingw.
62508
62509 2006-10-19  Bruno Haible  <bruno@clisp.org>
62510
62511         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
62512         Needed for mingw.
62513
62514 2006-10-19  Bruno Haible  <bruno@clisp.org>
62515
62516         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
62517
62518 2006-10-19  Bruno Haible  <bruno@clisp.org>
62519
62520         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
62521         it.
62522
62523 2006-10-19  Bruno Haible  <bruno@clisp.org>
62524
62525         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
62526         invocation.
62527
62528 2006-10-19  Bruno Haible  <bruno@clisp.org>
62529
62530         * gnulib-tool (func_create_testdir): Don't include ftruncate and
62531         mountlist by default.
62532
62533 2006-10-16  Bruno Haible  <bruno@clisp.org>
62534
62535         * lib/c-strstr.c: Include c-strstr.h.
62536
62537 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62538
62539         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
62540         in a slash.
62541
62542 2006-10-18  Bruno Haible  <bruno@clisp.org>
62543
62544         * lib/lock.h [C++]: Wrap definitions in extern "C".
62545
62546 2006-10-18  Bruno Haible  <bruno@clisp.org>
62547
62548         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
62549         gl_LIBOBJS list.
62550
62551 2006-10-18  Bruno Haible  <bruno@clisp.org>
62552
62553         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
62554
62555 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
62556
62557         * lib/xstrtol.h: Include gettext.h.
62558         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
62559         Problem reported by Eric Blake.
62560         * modules/xstrtol (Depends-on): Add gettext-h.
62561
62562 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
62563
62564         * lib/strftime.c (advance): New macro.
62565         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
62566         incomplete type, so you can't add 0 to it.  Problem and patch
62567         reported by Eelco Dolstra for dietlibc.
62568
62569 2006-10-18  Jim Meyering  <jim@meyering.net>
62570
62571         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
62572         type for a local, and rename it: s/up/user_proc/.
62573
62574 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62575
62576         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
62577         READ_UTMP_USER_PROCESS.
62578         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
62579
62580 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62581
62582         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
62583         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
62584
62585 2006-10-17  Eric Blake  <ebb9@byu.net>
62586
62587         * lib/sigprocmask.c (sigprocmask): Fix typo.
62588
62589         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
62590
62591         * modules/clean-temp (Makefile.am): Don't add to make output...
62592         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
62593         config.h.
62594
62595 2006-10-17  Bruno Haible  <bruno@clisp.org>
62596
62597         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
62598         differently if DEFAULT_TEXT_DOMAIN is set.
62599
62600 2006-10-16  Bruno Haible  <bruno@clisp.org>
62601
62602         * lib/clean-temp.c: Include fwriteerror.h.
62603
62604 2006-10-16  Bruno Haible  <bruno@clisp.org>
62605
62606         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
62607
62608 2006-10-16  Bruno Haible  <bruno@clisp.org>
62609
62610         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
62611         * lib/sigprocmask.h: Include <sys/types.h>.
62612         (sigset_t): Use the system's definition if present.
62613
62614 2006-10-17  Eric Blake  <ebb9@byu.net>
62615
62616         * lib/xvasprintf.c (includes): Assume config.h.
62617         * lib/xasprintf.c (includes): Likewise.
62618
62619 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62620
62621         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
62622         at least as wide as intmax_t.
62623
62624 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
62625
62626         (Imported from Automake.)
62627         * build-aux/gnupload: Update to version 1.1 of directive file.
62628
62629 2006-10-16  Eric Blake  <ebb9@byu.net>
62630
62631         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
62632         match Automake 1.10a.
62633
62634 2006-10-14  Bruno Haible  <bruno@clisp.org>
62635
62636         * modules/sigprocmask: New file.
62637         * lib/sigprocmask.h: New file.
62638         * lib/sigprocmask.c: New file.
62639         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
62640         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
62641         request sigprocmask.o.
62642         (gl_PREREQ_SIGPROCMASK): New macro.
62643         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
62644         (Depends-on): Add sigprocmask.
62645         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
62646         gt_SIGNALBLOCKING. Test for 'raise' only once.
62647         * lib/fatal-signal.c: Include sigprocmask.h.
62648         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
62649         unblock_fatal_signals): Define always.
62650         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62651         sigprocmask.
62652
62653 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62654
62655         Sync from Automake.
62656         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
62657         which incorrectly sets the mode of an existing destination
62658         directory.  In some cases the unpatched install-sh could do the
62659         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
62660         system.  We hope this is rare in practice, but it's clearly worth
62661         fixing.  Problem reported by Alex Unleashed in
62662         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
62663         Also, don't bother to check for -m bugs unless we're using -m;
62664         suggested by Stepan Kasal.
62665
62666 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62667
62668         Sync from Automake.
62669         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
62670         `-c' flag, so they appear at the same position as in %FASTDEP%
62671         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
62672         which ignores unknown options only after the first non-option.
62673         Bug report against M4 by Nelson H. F. Beebe.
62674
62675 2006-10-13  Jim Meyering  <jim@meyering.net>
62676
62677         Fix a bug in yesterday's change.
62678         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
62679         p->fts_statp->st_dev would be used uninitialized.
62680         Ensures that we always call fts_stat on the very first entry.
62681         Miklos Szeredi reported that find -xdev stopped working.
62682
62683 2006-10-12  Bruno Haible  <bruno@clisp.org>
62684
62685         * gnulib-tool (func_get_automake_snippet): Append an automatically
62686         computed EXTRA_DIST augmentation.
62687         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
62688         * modules/alloca-opt (Makefile.am): Likewise.
62689         * modules/allocsa (Makefile.am): Likewise.
62690         * modules/arcfour (Makefile.am): Likewise.
62691         * modules/arctwo (Makefile.am): Likewise.
62692         * modules/argmatch (Makefile.am): Likewise.
62693         * modules/argz (Makefile.am): Likewise.
62694         * modules/atexit (Makefile.am): Likewise.
62695         * modules/backupfile (Makefile.am): Likewise.
62696         * modules/byteswap (Makefile.am): Likewise.
62697         * modules/c-strtod (Makefile.am): Likewise.
62698         * modules/c-strtold (Makefile.am): Likewise.
62699         * modules/calloc (Makefile.am): Likewise.
62700         * modules/canon-host (Makefile.am): Likewise.
62701         * modules/canonicalize (Makefile.am): Likewise.
62702         * modules/chdir-long (Makefile.am): Likewise.
62703         * modules/chdir-safer (Makefile.am): Likewise.
62704         * modules/check-version (Makefile.am): Likewise.
62705         * modules/chown (Makefile.am): Likewise.
62706         * modules/cloexec (Makefile.am): Likewise.
62707         * modules/close-stream (Makefile.am): Likewise.
62708         * modules/closeout (Makefile.am): Likewise.
62709         * modules/crc (Makefile.am): Likewise.
62710         * modules/csharpexec (Makefile.am): Likewise.
62711         * modules/cycle-check (Makefile.am): Likewise.
62712         * modules/des (Makefile.am): Likewise.
62713         * modules/dev-ino (Makefile.am): Likewise.
62714         * modules/dirfd (Makefile.am): Likewise.
62715         * modules/dirname (Makefile.am): Likewise.
62716         * modules/dup2 (Makefile.am): Likewise.
62717         * modules/eealloc (Makefile.am): Likewise.
62718         * modules/error (Makefile.am): Likewise.
62719         * modules/euidaccess (Makefile.am): Likewise.
62720         * modules/exclude (Makefile.am): Likewise.
62721         * modules/exitfail (Makefile.am): Likewise.
62722         * modules/fcntl-safer (Makefile.am): Likewise.
62723         * modules/fcntl (Makefile.am): Likewise.
62724         * modules/file-type (Makefile.am): Likewise.
62725         * modules/fileblocks (Makefile.am): Likewise.
62726         * modules/filemode (Makefile.am): Likewise.
62727         * modules/filenamecat (Makefile.am): Likewise.
62728         * modules/fnmatch (Makefile.am): Likewise.
62729         * modules/fopen-safer (Makefile.am): Likewise.
62730         * modules/fpending (Makefile.am): Likewise.
62731         * modules/fprintftime (Makefile.am): Likewise.
62732         * modules/free (Makefile.am): Likewise.
62733         * modules/fsusage (Makefile.am): Likewise.
62734         * modules/ftruncate (Makefile.am): Likewise.
62735         * modules/fts (Makefile.am): Likewise.
62736         * modules/gc-arcfour (Makefile.am): Likewise.
62737         * modules/gc-des (Makefile.am): Likewise.
62738         * modules/gc-hmac-md5 (Makefile.am): Likewise.
62739         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
62740         * modules/gc-md4 (Makefile.am): Likewise.
62741         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62742         * modules/gc-sha1 (Makefile.am): Likewise.
62743         * modules/gc (Makefile.am): Likewise.
62744         * modules/getaddrinfo (Makefile.am): Likewise.
62745         * modules/getcwd (Makefile.am): Likewise.
62746         * modules/getdelim (Makefile.am): Likewise.
62747         * modules/getdomainname (Makefile.am): Likewise.
62748         * modules/getgroups (Makefile.am): Likewise.
62749         * modules/gethostname (Makefile.am): Likewise.
62750         * modules/gethrxtime (Makefile.am): Likewise.
62751         * modules/getline (Makefile.am): Likewise.
62752         * modules/getloadavg (Makefile.am): Likewise.
62753         * modules/getlogin_r (Makefile.am): Likewise.
62754         * modules/getndelim2 (Makefile.am): Likewise.
62755         * modules/getopt (Makefile.am): Likewise.
62756         * modules/getpagesize (Makefile.am): Likewise.
62757         * modules/getpass-gnu (Makefile.am): Likewise.
62758         * modules/getpass (Makefile.am): Likewise.
62759         * modules/getsubopt (Makefile.am): Likewise.
62760         * modules/gettime (Makefile.am): Likewise.
62761         * modules/gettimeofday (Makefile.am): Likewise.
62762         * modules/getugroups (Makefile.am): Likewise.
62763         * modules/getusershell (Makefile.am): Likewise.
62764         * modules/glob (Makefile.am): Likewise.
62765         * modules/group-member (Makefile.am): Likewise.
62766         * modules/hard-locale (Makefile.am): Likewise.
62767         * modules/hash (Makefile.am): Likewise.
62768         * modules/hmac-md5 (Makefile.am): Likewise.
62769         * modules/hmac-sha1 (Makefile.am): Likewise.
62770         * modules/human (Makefile.am): Likewise.
62771         * modules/idcache (Makefile.am): Likewise.
62772         * modules/imaxabs (Makefile.am): Likewise.
62773         * modules/imaxdiv (Makefile.am): Likewise.
62774         * modules/inet_ntop (Makefile.am): Likewise.
62775         * modules/inet_pton (Makefile.am): Likewise.
62776         * modules/intprops (Makefile.am): Likewise.
62777         * modules/inttostr (Makefile.am): Likewise.
62778         * modules/inttypes (Makefile.am): Likewise.
62779         * modules/isapipe (Makefile.am): Likewise.
62780         * modules/javaversion (Makefile.am): Likewise.
62781         * modules/lchmod (Makefile.am): Likewise.
62782         * modules/lchown (Makefile.am): Likewise.
62783         * modules/localcharset (Makefile.am): Likewise.
62784         * modules/long-options (Makefile.am): Likewise.
62785         * modules/lstat (Makefile.am): Likewise.
62786         * modules/malloc (Makefile.am): Likewise.
62787         * modules/mathl (Makefile.am): Likewise.
62788         * modules/mbchar (Makefile.am): Likewise.
62789         * modules/md2 (Makefile.am): Likewise.
62790         * modules/md4 (Makefile.am): Likewise.
62791         * modules/md5 (Makefile.am): Likewise.
62792         * modules/memcasecmp (Makefile.am): Likewise.
62793         * modules/memchr (Makefile.am): Likewise.
62794         * modules/memcmp (Makefile.am): Likewise.
62795         * modules/memcoll (Makefile.am): Likewise.
62796         * modules/memcpy (Makefile.am): Likewise.
62797         * modules/memmem (Makefile.am): Likewise.
62798         * modules/memmove (Makefile.am): Likewise.
62799         * modules/mempcpy (Makefile.am): Likewise.
62800         * modules/memrchr (Makefile.am): Likewise.
62801         * modules/memset (Makefile.am): Likewise.
62802         * modules/memxor (Makefile.am): Likewise.
62803         * modules/mkancesdirs (Makefile.am): Likewise.
62804         * modules/mkdir-p (Makefile.am): Likewise.
62805         * modules/mkdir (Makefile.am): Likewise.
62806         * modules/mkdtemp (Makefile.am): Likewise.
62807         * modules/mkstemp (Makefile.am): Likewise.
62808         * modules/mktime (Makefile.am): Likewise.
62809         * modules/modechange (Makefile.am): Likewise.
62810         * modules/mountlist (Makefile.am): Likewise.
62811         * modules/nanosleep (Makefile.am): Likewise.
62812         * modules/obstack (Makefile.am): Likewise.
62813         * modules/openat (Makefile.am): Likewise.
62814         * modules/pagealign_alloc (Makefile.am): Likewise.
62815         * modules/pathmax (Makefile.am): Likewise.
62816         * modules/physmem (Makefile.am): Likewise.
62817         * modules/poll (Makefile.am): Likewise.
62818         * modules/posixtm (Makefile.am): Likewise.
62819         * modules/posixver (Makefile.am): Likewise.
62820         * modules/putenv (Makefile.am): Likewise.
62821         * modules/quote (Makefile.am): Likewise.
62822         * modules/quotearg (Makefile.am): Likewise.
62823         * modules/raise (Makefile.am): Likewise.
62824         * modules/read-file (Makefile.am): Likewise.
62825         * modules/readline (Makefile.am): Likewise.
62826         * modules/readlink (Makefile.am): Likewise.
62827         * modules/readtokens (Makefile.am): Likewise.
62828         * modules/readutmp (Makefile.am): Likewise.
62829         * modules/realloc (Makefile.am): Likewise.
62830         * modules/regex (Makefile.am): Likewise.
62831         * modules/rename-dest-slash (Makefile.am): Likewise.
62832         * modules/rename (Makefile.am): Likewise.
62833         * modules/rijndael (Makefile.am): Likewise.
62834         * modules/rmdir (Makefile.am): Likewise.
62835         * modules/rpmatch (Makefile.am): Likewise.
62836         * modules/safe-read (Makefile.am): Likewise.
62837         * modules/safe-write (Makefile.am): Likewise.
62838         * modules/same-inode (Makefile.am): Likewise.
62839         * modules/same (Makefile.am): Likewise.
62840         * modules/save-cwd (Makefile.am): Likewise.
62841         * modules/savedir (Makefile.am): Likewise.
62842         * modules/setenv (Makefile.am): Likewise.
62843         * modules/settime (Makefile.am): Likewise.
62844         * modules/sha1 (Makefile.am): Likewise.
62845         * modules/sig2str (Makefile.am): Likewise.
62846         * modules/snprintf (Makefile.am): Likewise.
62847         * modules/stat-macros (Makefile.am): Likewise.
62848         * modules/stat-time (Makefile.am): Likewise.
62849         * modules/stdbool (Makefile.am): Likewise.
62850         * modules/stdint (Makefile.am): Likewise.
62851         * modules/stdlib-safer (Makefile.am): Likewise.
62852         * modules/stpcpy (Makefile.am): Likewise.
62853         * modules/stpncpy (Makefile.am): Likewise.
62854         * modules/strcase (Makefile.am): Likewise.
62855         * modules/strcasestr (Makefile.am): Likewise.
62856         * modules/strchrnul (Makefile.am): Likewise.
62857         * modules/strcspn (Makefile.am): Likewise.
62858         * modules/strdup (Makefile.am): Likewise.
62859         * modules/strerror (Makefile.am): Likewise.
62860         * modules/strftime (Makefile.am): Likewise.
62861         * modules/strndup (Makefile.am): Likewise.
62862         * modules/strnlen (Makefile.am): Likewise.
62863         * modules/strpbrk (Makefile.am): Likewise.
62864         * modules/strsep (Makefile.am): Likewise.
62865         * modules/strstr (Makefile.am): Likewise.
62866         * modules/strtod (Makefile.am): Likewise.
62867         * modules/strtoimax (Makefile.am): Likewise.
62868         * modules/strtok_r (Makefile.am): Likewise.
62869         * modules/strtol (Makefile.am): Likewise.
62870         * modules/strtoll (Makefile.am): Likewise.
62871         * modules/strtoul (Makefile.am): Likewise.
62872         * modules/strtoull (Makefile.am): Likewise.
62873         * modules/strtoumax (Makefile.am): Likewise.
62874         * modules/strverscmp (Makefile.am): Likewise.
62875         * modules/sys_socket (Makefile.am): Likewise.
62876         * modules/sys_stat (Makefile.am): Likewise.
62877         * modules/sysexits (Makefile.am): Likewise.
62878         * modules/time_r (Makefile.am): Likewise.
62879         * modules/timegm (Makefile.am): Likewise.
62880         * modules/timespec (Makefile.am): Likewise.
62881         * modules/tmpfile-safer (Makefile.am): Likewise.
62882         * modules/trim (Makefile.am): Likewise.
62883         * modules/unistd-safer (Makefile.am): Likewise.
62884         * modules/unlinkdir (Makefile.am): Likewise.
62885         * modules/unlocked-io (Makefile.am): Likewise.
62886         * modules/userspec (Makefile.am): Likewise.
62887         * modules/utime (Makefile.am): Likewise.
62888         * modules/utimecmp (Makefile.am): Likewise.
62889         * modules/utimens (Makefile.am): Likewise.
62890         * modules/vasnprintf (Makefile.am): Likewise.
62891         * modules/vasprintf (Makefile.am): Likewise.
62892         * modules/vsnprintf (Makefile.am): Likewise.
62893         * modules/xalloc (Makefile.am): Likewise.
62894         * modules/xgetcwd (Makefile.am): Likewise.
62895         * modules/xnanosleep (Makefile.am): Likewise.
62896         * modules/xreadlink (Makefile.am): Likewise.
62897         * modules/xstrtod (Makefile.am): Likewise.
62898         * modules/xstrtol (Makefile.am): Likewise.
62899         * modules/xstrtold (Makefile.am): Likewise.
62900         * modules/yesno (Makefile.am): Likewise.
62901         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
62902
62903 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62904
62905         * modules/error (Makefile.am): Distribute files through
62906         EXTRA_DIST, not lib_SOURCES.
62907
62908 2006-10-12  Eric Blake  <ebb9@byu.net>
62909
62910         * modules/error (Makefile.am): Distribute files in /lib.
62911         * modules/obstack (Makefile.am): Likewise.
62912
62913 2006-10-12  Bruno Haible  <bruno@clisp.org>
62914
62915         * modules/acl (Makefile.am): Distribute all files in lib/ through
62916         EXTRA_DIST.
62917         * modules/arcfour (Makefile.am): Likewise.
62918         * modules/arctwo (Makefile.am): Likewise.
62919         * modules/argmatch (Makefile.am): Likewise.
62920         * modules/argz (Makefile.am): Likewise.
62921         * modules/atexit (Makefile.am): Likewise.
62922         * modules/backupfile (Makefile.am): Likewise.
62923         * modules/c-strtod (Makefile.am): Likewise.
62924         * modules/c-strtold (Makefile.am): Likewise.
62925         * modules/calloc (Makefile.am): Likewise.
62926         * modules/canon-host (Makefile.am): Likewise.
62927         * modules/canonicalize (Makefile.am): Likewise.
62928         * modules/chdir-long (Makefile.am): Likewise.
62929         * modules/chdir-safer (Makefile.am): Likewise.
62930         * modules/check-version (Makefile.am): Likewise.
62931         * modules/chown (Makefile.am): Likewise.
62932         * modules/cloexec (Makefile.am): Likewise.
62933         * modules/close-stream (Makefile.am): Likewise.
62934         * modules/closeout (Makefile.am): Likewise.
62935         * modules/crc (Makefile.am): Likewise.
62936         * modules/cycle-check (Makefile.am): Likewise.
62937         * modules/des (Makefile.am): Likewise.
62938         * modules/dirfd (Makefile.am): Likewise.
62939         * modules/dirname (Makefile.am): Likewise.
62940         * modules/dup2 (Makefile.am): Likewise.
62941         * modules/euidaccess (Makefile.am): Likewise.
62942         * modules/exclude (Makefile.am): Likewise.
62943         * modules/exitfail (Makefile.am): Likewise.
62944         * modules/fcntl-safer (Makefile.am): Likewise.
62945         * modules/file-type (Makefile.am): Likewise.
62946         * modules/fileblocks (Makefile.am): Likewise.
62947         * modules/filemode (Makefile.am): Likewise.
62948         * modules/filenamecat (Makefile.am): Likewise.
62949         * modules/fnmatch (Makefile.am): Likewise.
62950         * modules/fopen-safer (Makefile.am): Likewise.
62951         * modules/fpending (Makefile.am): Likewise.
62952         * modules/fprintftime (Makefile.am): Likewise.
62953         * modules/free (Makefile.am): Likewise.
62954         * modules/fsusage (Makefile.am): Likewise.
62955         * modules/ftruncate (Makefile.am): Likewise.
62956         * modules/fts (Makefile.am): Likewise.
62957         * modules/gc (Makefile.am): Likewise.
62958         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62959         * modules/getaddrinfo (Makefile.am): Likewise.
62960         * modules/getcwd (Makefile.am): Likewise.
62961         * modules/getdelim (Makefile.am): Likewise.
62962         * modules/getdomainname (Makefile.am): Likewise.
62963         * modules/getgroups (Makefile.am): Likewise.
62964         * modules/gethostname (Makefile.am): Likewise.
62965         * modules/gethrxtime (Makefile.am): Likewise.
62966         * modules/getline (Makefile.am): Likewise.
62967         * modules/getloadavg (Makefile.am): Likewise.
62968         * modules/getlogin_r (Makefile.am): Likewise.
62969         * modules/getopt (Makefile.am): Likewise.
62970         * modules/getpass (Makefile.am): Likewise.
62971         * modules/getpass-gnu (Makefile.am): Likewise.
62972         * modules/getsubopt (Makefile.am): Likewise.
62973         * modules/gettime (Makefile.am): Likewise.
62974         * modules/gettimeofday (Makefile.am): Likewise.
62975         * modules/getugroups (Makefile.am): Likewise.
62976         * modules/getusershell (Makefile.am): Likewise.
62977         * modules/glob (Makefile.am): Likewise.
62978         * modules/group-member (Makefile.am): Likewise.
62979         * modules/hard-locale (Makefile.am): Likewise.
62980         * modules/hash (Makefile.am): Likewise.
62981         * modules/hmac-md5 (Makefile.am): Likewise.
62982         * modules/hmac-sha1 (Makefile.am): Likewise.
62983         * modules/human (Makefile.am): Likewise.
62984         * modules/idcache (Makefile.am): Likewise.
62985         * modules/imaxabs (Makefile.am): Likewise.
62986         * modules/imaxdiv (Makefile.am): Likewise.
62987         * modules/inet_ntop (Makefile.am): Likewise.
62988         * modules/inet_pton (Makefile.am): Likewise.
62989         * modules/inttostr (Makefile.am): Likewise.
62990         * modules/isapipe (Makefile.am): Likewise.
62991         * modules/lchown (Makefile.am): Likewise.
62992         * modules/long-options (Makefile.am): Likewise.
62993         * modules/lstat (Makefile.am): Likewise.
62994         * modules/malloc (Makefile.am): Likewise.
62995         * modules/mathl (Makefile.am): Likewise.
62996         * modules/mbchar (Makefile.am): Likewise.
62997         * modules/md2 (Makefile.am): Likewise.
62998         * modules/md4 (Makefile.am): Likewise.
62999         * modules/md5 (Makefile.am): Likewise.
63000         * modules/memcasecmp (Makefile.am): Likewise.
63001         * modules/memchr (Makefile.am): Likewise.
63002         * modules/memcmp (Makefile.am): Likewise.
63003         * modules/memcoll (Makefile.am): Likewise.
63004         * modules/memcpy (Makefile.am): Likewise.
63005         * modules/memmem (Makefile.am): Likewise.
63006         * modules/memmove (Makefile.am): Likewise.
63007         * modules/mempcpy (Makefile.am): Likewise.
63008         * modules/memrchr (Makefile.am): Likewise.
63009         * modules/memset (Makefile.am): Likewise.
63010         * modules/memxor (Makefile.am): Likewise.
63011         * modules/mkancesdirs (Makefile.am): Likewise.
63012         * modules/mkdir (Makefile.am): Likewise.
63013         * modules/mkdir-p (Makefile.am): Likewise.
63014         * modules/mkdtemp (Makefile.am): Likewise.
63015         * modules/mkstemp (Makefile.am): Likewise.
63016         * modules/mktime (Makefile.am): Likewise.
63017         * modules/modechange (Makefile.am): Likewise.
63018         * modules/mountlist (Makefile.am): Likewise.
63019         * modules/nanosleep (Makefile.am): Likewise.
63020         * modules/openat (Makefile.am): Likewise.
63021         * modules/pagealign_alloc (Makefile.am): Likewise.
63022         * modules/physmem (Makefile.am): Likewise.
63023         * modules/poll (Makefile.am): Likewise.
63024         * modules/posixtm (Makefile.am): Likewise.
63025         * modules/posixver (Makefile.am): Likewise.
63026         * modules/putenv (Makefile.am): Likewise.
63027         * modules/quote (Makefile.am): Likewise.
63028         * modules/quotearg (Makefile.am): Likewise.
63029         * modules/raise (Makefile.am): Likewise.
63030         * modules/read-file (Makefile.am): Likewise.
63031         * modules/readline (Makefile.am): Likewise.
63032         * modules/readlink (Makefile.am): Likewise.
63033         * modules/readtokens (Makefile.am): Likewise.
63034         * modules/readutmp (Makefile.am): Likewise.
63035         * modules/realloc (Makefile.am): Likewise.
63036         * modules/regex (Makefile.am): Likewise.
63037         * modules/rename (Makefile.am): Likewise.
63038         * modules/rename-dest-slash (Makefile.am): Likewise.
63039         * modules/rijndael (Makefile.am): Likewise.
63040         * modules/rmdir (Makefile.am): Likewise.
63041         * modules/rpmatch (Makefile.am): Likewise.
63042         * modules/safe-read (Makefile.am): Likewise.
63043         * modules/safe-write (Makefile.am): Likewise.
63044         * modules/same (Makefile.am): Likewise.
63045         * modules/save-cwd (Makefile.am): Likewise.
63046         * modules/savedir (Makefile.am): Likewise.
63047         * modules/setenv (Makefile.am): Likewise.
63048         * modules/settime (Makefile.am): Likewise.
63049         * modules/sha1 (Makefile.am): Likewise.
63050         * modules/sig2str (Makefile.am): Likewise.
63051         * modules/snprintf (Makefile.am): Likewise.
63052         * modules/stdlib-safer (Makefile.am): Likewise.
63053         * modules/stpcpy (Makefile.am): Likewise.
63054         * modules/stpncpy (Makefile.am): Likewise.
63055         * modules/strcase (Makefile.am): Likewise.
63056         * modules/strcasestr (Makefile.am): Likewise.
63057         * modules/strchrnul (Makefile.am): Likewise.
63058         * modules/strcspn (Makefile.am): Likewise.
63059         * modules/strdup (Makefile.am): Likewise.
63060         * modules/strerror (Makefile.am): Likewise.
63061         * modules/strftime (Makefile.am): Likewise.
63062         * modules/strndup (Makefile.am): Likewise.
63063         * modules/strnlen (Makefile.am): Likewise.
63064         * modules/strpbrk (Makefile.am): Likewise.
63065         * modules/strsep (Makefile.am): Likewise.
63066         * modules/strstr (Makefile.am): Likewise.
63067         * modules/strtod (Makefile.am): Likewise.
63068         * modules/strtoimax (Makefile.am): Likewise.
63069         * modules/strtok_r (Makefile.am): Likewise.
63070         * modules/strtol (Makefile.am): Likewise.
63071         * modules/strtoll (Makefile.am): Likewise.
63072         * modules/strtoul (Makefile.am): Likewise.
63073         * modules/strtoull (Makefile.am): Likewise.
63074         * modules/strtoumax (Makefile.am): Likewise.
63075         * modules/strverscmp (Makefile.am): Likewise.
63076         * modules/time_r (Makefile.am): Likewise.
63077         * modules/timegm (Makefile.am): Likewise.
63078         * modules/tmpfile-safer (Makefile.am): Likewise.
63079         * modules/unistd-safer (Makefile.am): Likewise.
63080         * modules/unlinkdir (Makefile.am): Likewise.
63081         * modules/userspec (Makefile.am): Likewise.
63082         * modules/utime (Makefile.am): Likewise.
63083         * modules/utimecmp (Makefile.am): Likewise.
63084         * modules/utimens (Makefile.am): Likewise.
63085         * modules/vasnprintf (Makefile.am): Likewise.
63086         * modules/vasprintf (Makefile.am): Likewise.
63087         * modules/vsnprintf (Makefile.am): Likewise.
63088         * modules/xalloc (Makefile.am): Likewise.
63089         * modules/xgetcwd (Makefile.am): Likewise.
63090         * modules/xnanosleep (Makefile.am): Likewise.
63091         * modules/xreadlink (Makefile.am): Likewise.
63092         * modules/xstrtod (Makefile.am): Likewise.
63093         * modules/xstrtol (Makefile.am): Likewise.
63094         * modules/xstrtold (Makefile.am): Likewise.
63095         * modules/yesno (Makefile.am): Likewise.
63096
63097 2006-10-12  Jim Meyering  <jim@meyering.net>
63098
63099         * m4/getloadavg.m4: Revert the change below.
63100
63101         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63102         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63103         fail with a symlink, which is what coreutils' ./bootstrap now
63104         creates by default.
63105
63106 2006-10-12  Bruno Haible  <bruno@clisp.org>
63107
63108         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63109         mingw.
63110         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63111         MSVC and mingw explicitly.
63112
63113 2006-10-11  Simon Josefsson  <jas@extundo.com>
63114             Bruno Haible  <bruno@clisp.org>
63115
63116         Add support for multiple gnulib-tool invocations in the scope of a
63117         single configure.ac file.
63118         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63119         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63120         with the same contents as the _LIBADD variable.
63121         (func_emit_initmacro_start, func_emit_initmacro_end,
63122         func_emit_initmacro_done): New functions.
63123         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63124         gl_LIBOBJS and gl_LTLIBOBJS.
63125
63126 2006-10-11  Bruno Haible  <bruno@clisp.org>
63127
63128         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63129         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63130         autoreconf. Instead, invoke autopoint explicitly but move back the
63131         *.m4 files from gnulib.
63132
63133 2006-10-11  Bruno Haible  <bruno@clisp.org>
63134
63135         * gnulib-tool (func_usage): Make module names after --create-testdir
63136         optional.
63137         (func_create_testdir): If no module was specified, use nearly all
63138         modules.
63139
63140 2006-10-12  Jim Meyering  <jim@meyering.net>
63141
63142         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63143         Avoid spurious inode-mismatch problems on non-POSIX file systems.
63144         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
63145         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
63146         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
63147         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
63148         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
63149         (fts_set_stat_required): New function.
63150         (fts_open): Defer the calls to fts_stat, if possible or requested.
63151         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
63152         into fts_stat itself.
63153         (fts_read): Perform any required (deferred) fts_stat call.
63154         (fts_build): Likewise, for the directory we're about to open and read.
63155         In the readdir loop, carefully decide whether each entry will require
63156         an eventual call to fts_stat, using dirent.d_type info if available.
63157         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
63158         a command line argument into this function.  Update all callers.
63159         Map a return value of FTS_DOT to FTS_D for a command line argument.
63160         * modules/fts (Depends-on): Add d-type.  Alphabetize.
63161         Thanks to Miklos Szeredi for his tenacity and for the initial
63162         bug report about "find" failing on a FUSE-based file system.
63163
63164         * lib/fts.c (fts_open): Use consistent indentation.
63165
63166 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63167
63168         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
63169         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
63170         reported by Jim Meyering.  All uses of cache variables renamed
63171         to match Autoconf's.
63172         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
63173         the other one.
63174
63175         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63176         Fix misspelling in diagnostic.
63177
63178 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63179
63180         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
63181         defined.  Problem reported by Matthew Woehlke.
63182
63183         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
63184         Add support for Tandem NonStop R series.
63185         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
63186         Use new macro.
63187
63188         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
63189         (has_trailing_slash): Omit size arg; all callers changed.
63190         Omit 'inline', since it doesn't help performance and we'd
63191         need to configure it.
63192         Don't count //, ///, etc. as having a trailing slash.
63193         As a side effect, this removes a C99ism reported by Matthew Woehlke.
63194         (rpl_rename_dest_slash): On failure, use rename's errno rather
63195         than (in some cases) an incorrect or junk errno.
63196         Simplify code by removing need to compute length; this does
63197         cause it to make two passes instead of one over the file name,
63198         but it's worth it.
63199
63200         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
63201         change, since Autoconf's version may no longer be appropriate now
63202         that we are using CVS Autoconf's version.  Add support for Tandem.
63203
63204 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63205             Bruno Haible  <bruno@clisp.org>
63206
63207         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
63208         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
63209         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
63210         gl_AC_TYPE_LONG_LONG.
63211
63212         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
63213         instead of HAVE_LONG_LONG.
63214         * lib/printf-args.c (printf_fetchargs): Likewise.
63215         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63216         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63217         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
63218         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
63219         gl_AC_TYPE_LONG_LONG.
63220
63221 2006-10-11  Bruno Haible  <bruno@clisp.org>
63222
63223         * m4/longlong.m4: Add comments.
63224         * m4/ulonglong.m4: Likewise.
63225
63226 2006-10-10  Bruno Haible  <bruno@clisp.org>
63227
63228         Make it possible to #define stpcpy, strdup to aliases.
63229         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
63230         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
63231
63232 2006-10-10  Bruno Haible  <bruno@clisp.org>
63233
63234         Make it possible to #define gcd to an alias.
63235         * lib/gcd.c: Include config.h.
63236
63237 2006-10-10  Bruno Haible  <bruno@clisp.org>
63238
63239         Make it possible to #define c_isascii to an alias.
63240         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
63241         defined. Undefine the macros before defining them, to avoid gcc
63242         warnings.
63243         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
63244         define NO_C_CTYPE_MACROS early.
63245
63246 2006-10-10  Bruno Haible  <bruno@clisp.org>
63247
63248         Make it possible to #define set_program_name to an alias.
63249         * lib/progname.c: Don't undefine set_program_name; instead, undefine
63250         ENABLE_RELOCATABLE early.
63251
63252 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63253
63254         Port to Tandem NSK OSS, which has 64-bit signed int but at most
63255         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
63256         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
63257         More generally, don't assume that 64-bit signed int is available
63258         if unsigned int is, and vice versa.
63259         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
63260         unsigned symbols, not on their signed counterparts.
63261         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
63262         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
63263         (UINT64_C, UINTMAX_C):
63264         Likewise.
63265         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
63266         unsigned counterparts.
63267         (Have_long_long, Unsigned): New macros.
63268         (Int): Renamed from INT.
63269         (strtoimax): Use the new macros.
63270         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
63271         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
63272         * modules/inttypes (inttypes.h): Substitute
63273         HAVE_UNSIGNED_LONG_LONG_INT.
63274         * modules/stdint (stdint.h): Likewise.
63275         (Files): Add m4/ulonglong.m4.
63276
63277 2006-10-10  Bruno Haible  <bruno@clisp.org>
63278
63279         Fix a gcc -Wshadow warning.
63280         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63281         to 'bucket'.
63282         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63283         gl_linked_indexof_from_to): Likewise.
63284         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63285         Likewise.
63286         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63287         Likewise.
63288         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63289         Reported by Eric Blake.
63290
63291 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63292
63293         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63294         for NetBSD.  Problem reported by Bruno Haible.
63295
63296 2006-10-09  Jim Meyering  <jim@meyering.net>
63297
63298         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63299         Patch from Bruno Haible.
63300
63301 2006-10-09  Jim Meyering  <jim@meyering.net>
63302
63303         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63304         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63305         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63306
63307 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63308
63309         Don't include <config.h> twice; this doesn't work in some cases,
63310         e.g., when config.h has "#define intmax_t long long int" and
63311         we include <config.h>, <inttypes.h>, <config.h> in that order.
63312         Problem reported by Matthew Woehlke in:
63313         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
63314         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
63315         * lib/fts-cycle.c: Don't include config.h.
63316         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
63317         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
63318         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
63319         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
63320         inttypes.h.
63321         * lib/xstrtoumax.c: Likewise.
63322         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
63323         __strtol and the like, so that this module is more like its siblings.
63324         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
63325         Remove; no longer needed now that we assume gnulib inttypes.h.
63326
63327 2006-10-08  Bruno Haible  <bruno@clisp.org>
63328
63329         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
63330         option.
63331
63332 2006-10-07  Jim Meyering  <jim@meyering.net>
63333
63334         * modules/inttypes (inttypes.h): Revert what seems to have been
63335         an inadvertent part of today's change: use "|", not "/" in the
63336         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
63337
63338 2006-10-07  Bruno Haible  <bruno@clisp.org>
63339
63340         * modules/sublist: New file.
63341
63342 2006-10-07  Bruno Haible  <bruno@clisp.org>
63343
63344         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
63345         * modules/argz (argz.h): Likewise.
63346         * modules/arpa_inet (arpa/inet.h): Likewise.
63347         * modules/byteswap (byteswap.h): Likewise.
63348         * modules/configmake (configmake.h): Likewise.
63349         * modules/fcntl (fcntl.h): Likewise.
63350         * modules/fnmatch (fnmatch.h): Likewise.
63351         * modules/getopt (getopt.h): Likewise.
63352         * modules/glob (glob.h): Likewise.
63353         * modules/inttypes (inttypes.h): Likewise.
63354         * modules/netinet_in (netinet/in.h): Likewise.
63355         * modules/poll (poll.h): Likewise.
63356         * modules/stdbool (stdbool.h): Likewise.
63357         * modules/stdint (stdint.h): Likewise.
63358         * modules/sys_select (sys/select.h): Likewise.
63359         * modules/sys_socket (sys/socket.h): Likewise.
63360         * modules/sys_stat (sys/stat.h): Likewise.
63361         * modules/sysexits (sysexits.h): Likewise.
63362         * modules/unistd (unistd.h): Likewise.
63363         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63364         Add a "DO NOT EDIT" comment to the generated file.
63365         (func_import): Likewise for gnulib-comp.m4.
63366
63367 2006-10-07  Bruno Haible  <bruno@clisp.org>
63368
63369         * lib/gl_sublist.h: New file.
63370         * lib/gl_sublist.c: New file.
63371
63372 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63373
63374         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
63375         name (relative to the original working directory) and the file
63376         name component (relative to the temporary working directory).  All
63377         callers changed.
63378         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
63379         * lib/mkdir-p.c (make_dir_parents): Likewise.
63380         * lib/mkdir-p.h (make_dir_parents): Likewise.
63381
63382 2006-10-06  Eric Blake  <ebb9@byu.net>
63383
63384         Define several macros for use by the clean-temp module.
63385         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
63386         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
63387         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
63388
63389         * lib/clean-temp.h (close_stream_temp): New declaration.
63390         * lib/clean-temp.c (includes): Pull in headers according to what
63391         other modules are in use.
63392         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
63393
63394 2006-10-06  Bruno Haible  <bruno@clisp.org>
63395
63396         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
63397         instead of fopen, fwriteerror.
63398
63399 2006-10-06  Bruno Haible  <bruno@clisp.org>
63400
63401         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
63402         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
63403         int.
63404         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
63405         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
63406         Return an error indicator.
63407         Suggested by Eric Blake.
63408
63409 2006-10-06  Bruno Haible  <bruno@clisp.org>
63410
63411         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
63412         Reported by Eric Blake.
63413
63414 2006-10-06  Bruno Haible  <bruno@clisp.org>
63415
63416         * modules/closeout (Description): Mention stderr too.
63417
63418 2006-10-06  Bruno Haible  <bruno@clisp.org>
63419         and Paul Eggert  <eggert@cs.ucla.edu>
63420
63421         * lib/closeout.c (close_stdout): Also close stderr.
63422         * lib/closeout.h: Update comment.
63423
63424 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63425
63426         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
63427         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
63428         * lib/dirchownmod.c: Include lchown.h.
63429         * lib/lchown.c: Don't include files that lchown.h now includes.
63430         Don't declare chown, since lchown.h now does that.
63431         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
63432         (lchown): Define to rpl_chown if lchown is declared but
63433         does not exist.  Declare using a prototype if lchown is not
63434         declared.  Add a copyright notice.
63435         * lib/mkstemp.h: Include <unistd.h>.
63436         * lib/openat.c: Include lchown.h.
63437
63438         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
63439         we now test for that separately.
63440         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
63441         rather than O_NOFOLLOW, when testing whether it's possible to
63442         avoid a race condition reliably.
63443         * lib/savewd.c (savewd_chdir): Likewise.
63444
63445         Remove macros that are no longer needed now that stdint.h is
63446         reliable.
63447         * lib/fsusage.c (UINTMAX_MAX): Remove.
63448         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
63449         * lib/utimecmp.c (SIZE_MAX): Remove.
63450
63451         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
63452
63453         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
63454         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
63455         O_NOATIME works.
63456
63457 2006-10-05  Bruno Haible  <bruno@clisp.org>
63458
63459         * lib/gl_list.h (gl_sortedlist_search_from_to,
63460         gl_sortedlist_indexof_from_to): New declarations.
63461         (gl_list_implementation): New fields sortedlist_search_from_to,
63462         sortedlist_indexof_from_to.
63463         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
63464         inline functions.
63465         * lib/gl_list.c (gl_sortedlist_search_from_to,
63466         gl_sortedlist_indexof_from_to): New functions.
63467         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
63468         function.
63469         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
63470         (gl_array_sortedlist_search_from_to): New function.
63471         (gl_array_list_implementation): Update.
63472         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
63473         function.
63474         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
63475         (gl_carray_sortedlist_search_from_to): New function.
63476         (gl_carray_list_implementation): Update.
63477         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
63478         gl_linked_sortedlist_indexof_from_to): New functions.
63479         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63480         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63481         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
63482         gl_tree_sortedlist_indexof_from_to): New functions.
63483         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63484         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63485         Update.
63486         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63487         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
63488         Update.
63489
63490 2006-10-05  Bruno Haible  <bruno@clisp.org>
63491
63492         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
63493         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
63494         (struct gl_list_implementation): Add fields search_from_to,
63495         indexof_from_to. Remove fields search, indexof.
63496         (gl_list_search): Use the search_from_to method.
63497         (gl_list_search_from, gl_list_search_from_to): New functions.
63498         (gl_list_indexof): Use the indexof_from_to method.
63499         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63500         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
63501         (gl_list_search_from, gl_list_search_from_to): New functions.
63502         (gl_list_indexof): Use the indexof_from_to method.
63503         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63504         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
63505         gl_array_indexof. Add start_index, end_index arguments.
63506         (gl_array_search_from_to): Renamed from gl_array_search. Add
63507         start_index, end_index arguments.
63508         (gl_array_remove, gl_array_list_implementation): Update.
63509         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
63510         gl_carray_indexof. Add start_index, end_index arguments.
63511         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
63512         start_index, end_index arguments.
63513         (gl_carray_remove, gl_carray_list_implementation): Update.
63514         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
63515         gl_linked_search. Add start_index, end_index arguments.
63516         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
63517         start_index, end_index arguments.
63518         (gl_linked_remove): Update.
63519         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63520         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63521         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
63522         field to 'size_t'.
63523         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
63524         gl_tree_search. Add start_index, end_index arguments.
63525         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63526         start_index, end_index arguments.
63527         (gl_tree_remove): Update.
63528         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63529         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63530         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
63531         function.
63532         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
63533         gl_tree_search. Add start_index, end_index arguments.
63534         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63535         start_index, end_index arguments.
63536         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63537         Update.
63538         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63539
63540 2006-10-05  Bruno Haible  <bruno@clisp.org>
63541
63542         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
63543
63544         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
63545         fwriteerror_temp): New declarations.
63546         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
63547         (descriptors): New variable.
63548         (cleanup): First, close the descriptors.
63549         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
63550         fclose_temp, fwriteerror_temp): New functions.
63551
63552 2006-10-04  Jim Meyering  <jim@meyering.net>
63553
63554         * lib/fts.c (fts_open): Tiny comment change.
63555
63556 2006-10-04  Bruno Haible  <bruno@clisp.org>
63557
63558         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
63559         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
63560         gl_LOCK_BODY.
63561         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
63562         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
63563         gl_LOCK_EARLY_BODY.
63564         (gl_LOCK): Require gl_LOCK_BODY.
63565
63566 2006-10-04  Bruno Haible  <bruno@clisp.org>
63567
63568         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
63569         (gl_oset_search_atleast): New declaration.
63570         (struct gl_oset_implementation): Add field 'search_atleast'.
63571         (gl_oset_search_atleast): New inline function.
63572         * lib/gl_oset.c (gl_oset_search_atleast): New function.
63573         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
63574         (gl_array_oset_implementation): Update.
63575         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
63576         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
63577         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
63578
63579 2006-10-04  Bruno Haible  <bruno@clisp.org>
63580
63581         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
63582
63583 2006-10-03  Bruno Haible  <bruno@clisp.org>
63584
63585         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
63586         from gl_avltreehash_list_implementation.
63587
63588 2006-10-03  Bruno Haible  <bruno@clisp.org>
63589
63590         * lib/gl_oset.c (gl_oset_add): Fix return type.
63591
63592 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
63593
63594         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
63595
63596 2006-10-02  Eric Blake  <ebb9@byu.net>
63597
63598         * modules/strnlen (Depends-on): Add extensions.
63599
63600 2006-10-02  Eric Blake  <ebb9@byu.net>
63601
63602         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
63603         definition in 2.60+.
63604
63605 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63606
63607         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
63608         checks.
63609
63610 2006-10-02  Bruno Haible  <bruno@clisp.org>
63611
63612         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
63613         to the AUTOMAKE_OPTIONS.
63614         Reported by Jim Meyering.
63615
63616 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63617
63618         Work around bug in Solaris 10 /proc file system:
63619         /proc/self/fd/NNN/.. isn't the parent directory of
63620         the directory whose file descriptor is NNN.  This needs to
63621         be worked around at run time, not compile time, since a
63622         program might be built on Solaris 8, where things work, and
63623         run on Solaris 10.
63624         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
63625         to use the following interface instead:
63626         (OPENAT_BUFFER_SIZE): New macro.
63627         (openat_proc_name): New function.
63628         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
63629         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
63630         Likewise.
63631         * lib/openat-proc.c: New file.
63632         * modules/openat (Files): Add lib/openat-proc.c.
63633         (Depends-on): Add same-inode, stdbool.
63634         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
63635
63636 2006-09-29  Bruno Haible  <bruno@clisp.org>
63637
63638         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
63639         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
63640         argument. Set stdout_closed before testing for ferror, not after.
63641         (fwriteerror, fwriteerror_no_ebadf): New functions.
63642
63643 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63644
63645         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
63646
63647 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
63648
63649         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
63650         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
63651
63652 2006-09-28  Jim Meyering  <jim@meyering.net>
63653
63654         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
63655         Include <unistd.h>.
63656
63657 2006-09-28  Bruno Haible  <bruno@clisp.org>
63658
63659         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
63660         * modules/linkedhash-list (Depends-on): Likewise.
63661         * modules/rbtreehash-list (Depends-on): Likewise.
63662
63663 2006-09-28  Bruno Haible  <bruno@clisp.org>
63664
63665         * lib/strndup.h: Simplify the redefinition of strndup.
63666         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
63667         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
63668
63669 2006-09-28  Bruno Haible  <bruno@clisp.org>
63670
63671         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
63672         * lib/gl_linkedhash_list.c: Likewise.
63673         * lib/gl_rbtreehash_list.c: Likewise.
63674
63675 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63676
63677         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
63678         getaddrinfo.
63679
63680         * lib/__fpending.h: Don't include <stdio_ext.h> unless
63681         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
63682         it causes <stdio_ext.h> to cause a compile-time error.
63683         Problem reported by Nelson H. F. Beebe.
63684         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
63685         of HAVE_DECL___PENDING.
63686
63687         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
63688         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
63689         declaration.
63690
63691 2006-09-27  Jim Meyering  <jim@meyering.net>
63692
63693         This file could end up with a definition for a function
63694         named __strndup, rather than rpl_strndup on a system with
63695         incomplete weak_alias support.
63696         * lib/strndup.c (strndup): Rename from __strndup.
63697         Remove #defines that used to map __strndup to strndup.
63698         Don't use K&R prototypes.
63699         Remove LIBC-related code, since this file is not sync'd with glibc.
63700         * lib/strndup.h: Revamp, accordingly.
63701         * m4/strndup.m4: Modernize.
63702
63703 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63704
63705         * modules/savewd (Depends-on): Add 'raise'.
63706         * lib/savewd.c: Include <signal.h>, for 'raise'.
63707
63708 2006-09-26  Jim Meyering  <jim@meyering.net>
63709
63710         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
63711         when we detect Darwin 8.7.0's acl_get_file bug.
63712         Rearrange to perform the new (below) run-test while $LIBS
63713         contains any acl-related library.  Set USE_ACL at the end.
63714         (gl_ACL_GET_FILE): New function.
63715
63716 2006-09-26  Eric Blake  <ebb9@byu.net>
63717
63718         * lib/verror.c: Include <config.h> unconditionally.
63719
63720 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
63721
63722         * modules/clock-time (Maintainer): Add self.
63723         * modules/getlogin_r (Depends-on): Add extensions.
63724
63725 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63726
63727         * modules/clock-time: New module.
63728         * modules/nanosleep (Depends-on): Add clock-time.
63729         * modules/gethrxtime (Depends-on): Likewise.
63730         * modules/gettime (Depends-on): Likewise.
63731         * modules/settime (Depends-on): Likewise.
63732
63733         * modules/fts-lgpl: Depend on openat.
63734         * modules/mkancesdirs: Depend on savewd.
63735         * modules/mkdir-p: Likewise.
63736
63737 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63738
63739         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
63740
63741         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
63742         `gl_have_arbitrary_file_name_length_limit' to
63743         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
63744         actually works between configure runs.
63745
63746 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63747             Bruno Haible  <bruno@clisp.org>
63748
63749         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
63750
63751 2006-09-25  Jim Meyering  <jim@meyering.net>
63752
63753         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
63754         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
63755
63756 2006-09-25  Eric Blake  <ebb9@byu.net>
63757
63758         * gnulib-tool (func_import, func_create_testdir): Fix typos in
63759         exec's in 2006-09-18 patch when shuffling fds.
63760
63761 2006-09-25  Bruno Haible  <bruno@clisp.org>
63762
63763         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
63764         Reported by Jim Meyering.
63765
63766 2006-09-24  Jim Meyering  <jim@meyering.net>
63767
63768         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
63769         compare a pointer against a literal "0".  That caused failures with
63770         at least HP-UX's hpcc.
63771
63772 2006-09-22  Simon Josefsson  <jas@extundo.com>
63773
63774         * modules/gc-sha1:
63775         * modules/gc-md4:
63776         * modules/gc-hmac-sha1:
63777         * modules/gc-hmac-md5:
63778         * modules/gc-des:
63779         * modules/gc-arcfour: Distribute more files.
63780
63781 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63782
63783         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
63784         (gl_linked_iterator_from_to): Initialize struct completely.
63785         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
63786         (gl_tree_iterator_from_to): Likewise
63787         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
63788         * lib/gl_array_list.c [lint] (gl_array_iterator)
63789         (gl_array_iterator_from_to): Likewise.
63790         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
63791         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
63792         (gl_carray_iterator_from_to): Likewise.
63793
63794         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
63795         * lib/md4.c (md4_process_block): Remove unused variable.
63796         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
63797         parentheses for clarity.
63798
63799 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63800
63801         * modules/bison-i18n (Depends-on): Add gettext.
63802
63803 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63804
63805         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
63806         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
63807         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
63808         also add missing comma that caused broken test.
63809         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
63810         stdlib.h, for `abort'.
63811         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
63812         variables.
63813         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
63814         include unistd.h if present, for `rmdir'.
63815         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
63816         variables.
63817         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
63818         in the process include standard headers for prototypes.
63819         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
63820         gets declared on GNU/Linux.
63821         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
63822         unistd.h, for `rmdir'.
63823         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
63824
63825         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
63826         always true.
63827         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
63828
63829         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
63830
63831 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63832
63833         * gnulib-tool (func_version): Create output all at once.  This
63834         may help avoid triggering unnecessary SIGPIPEs, and at any
63835         rate it doesn't hurt.
63836
63837 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63838             Bruno Haible  <bruno@clisp.org>
63839
63840         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
63841         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
63842         * m4/signed.m4 (bh_C_SIGNED): Likewise.
63843
63844         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
63845         (gl_FUNC_VASPRINTF): Invoke it.
63846
63847 2006-09-22  Bruno Haible  <bruno@clisp.org>
63848
63849         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
63850         getloadavg.c as first argument.
63851
63852 2006-09-22  Bruno Haible  <bruno@clisp.org>
63853
63854         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
63855         at the beginning of the gl_INIT macro.
63856         * modules/getloadavg (configure.ac): Pass $gl_source_base to
63857         gl_GETLOADAVG.
63858
63859 2006-09-22  Bruno Haible  <bruno@clisp.org>
63860
63861         * gnulib-tool (func_create_megatestdir): Don't include the config-h
63862         module.
63863         Suggested by Ralf Wildenhues.
63864
63865 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63866
63867         Import this patch from libc:
63868
63869         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
63870
63871         * lib/regex_internal.c (re_string_reconstruct): Handle
63872         offset < pstr->valid_raw_len && pstr->offsets_needed case.
63873         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
63874         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
63875         re_string_context_at.
63876
63877         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
63878         now requires it.
63879         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
63880         gl_REGEX now does it for us.
63881         (gl_REGEX): Add test taken from
63882         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
63883
63884         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
63885         Check that large offsets work.  Modernize Autoconf usages.
63886         Prefer "yes" to mean a good thing rather than a bad.
63887         Don't put "#define mkstemp" in config.h, as this might interfere
63888         with standard system headers that "#define mkstemp mkstemp64".
63889
63890         * modules/mkstemp (Depends-on): Add extensions, so that
63891         mkstemp is visible on some platforms.
63892         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
63893         (Include): Change to "mkstemp.h" from <stdlib.h>.
63894         (Files): Add mkstemp.h.
63895
63896         * lib/mkstemp.h: New file, since some standard headers
63897         #define mkstemp.
63898         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
63899         Include "mkstemp.h".
63900         Make the _LIBC code resemble glibc original more,
63901         e.g., use K&R style.
63902         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
63903         (mkstemp): Remove, since mkstemp.h does this for us.
63904         * lib/stdlib--.h: Include mkstemp.h.
63905
63906         Import this patch from libc:
63907
63908         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63909
63910         * lib/tempname.c (__gen_tempname): Change attempts_min
63911         into a macro.  Use preprocessor to decide how to initialize
63912         attempts [Coverity CID 67].
63913
63914 2006-09-20  Bruno Haible  <bruno@clisp.org>
63915
63916         * lib/mkdtemp.c: Import from libc.
63917         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63918                 * sysdeps/posix/tempname.c (__gen_tempname): Change
63919                 attempts_min into a macro.  Use preprocessor to decide how to
63920                 initialize attempts [Coverity CID 67].
63921         2001-11-27  Paul Eggert  <eggert@twinsun.com>
63922                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
63923                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
63924
63925 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63926
63927         * gnulib-tool (func_exit): New function, to allow to pass the
63928         exit status portably through the trap.  Use everywhere.
63929         (--help, --version): Signal a write error.
63930         (trap): catch SIGPIPE, for write errors.
63931         Exit at the end of the trap, with the correct exit status.
63932
63933 2006-09-19  Karl Berry  <karl@gnu.org>
63934
63935         * doc/gnulib.texi: note about the license texinfo files.
63936
63937 2006-09-19  Eric Blake  <ebb9@byu.net>
63938
63939         * gnulib-tool: Avoid space-tab.
63940
63941 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
63942
63943         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
63944         that prevented coreutils 6.1 from building.  Problem reported
63945         by Petter Reinholdtsen.
63946
63947 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
63948
63949         * gnulib-tool (avoidlist): Fix typo that broke options like
63950         --avoid=lock that are used by coreutils bootstrap.
63951
63952 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
63953
63954         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
63955         more systematically.
63956
63957 2006-09-18  Jim Meyering  <jim@meyering.net>
63958
63959         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
63960
63961 2006-09-18  Bruno Haible  <bruno@clisp.org>
63962
63963         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
63964
63965 2006-09-18  Bruno Haible  <bruno@clisp.org>
63966
63967         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
63968         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
63969         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
63970         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
63971         * m4/gettext.m4: Require autoconf >= 2.52.
63972         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
63973         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
63974         of gl_cv_header_inttypes_h.
63975
63976 2006-09-18  Bruno Haible  <bruno@clisp.org>
63977
63978         * lib/javaversion.c: Include configmake.h.
63979
63980 2006-09-18  Bruno Haible  <bruno@clisp.org>
63981
63982         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
63983         avoid that the while loops be executed in a subshell.
63984
63985 2006-09-18  Bruno Haible  <bruno@clisp.org>
63986
63987         * MODULES.html.sh (func_module): Break long lines.
63988         Suggested by Bruce Korb <bkorb@gnu.org>.
63989
63990 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63991
63992         Speed up by a factor of 1.12.
63993         * gnulib-tool (nl): New variable.
63994         (func_import): Rewrite include directive extraction to only read each
63995         directive once.
63996
63997 2006-09-17  Bruno Haible  <bruno@clisp.org>
63998
63999         * modules/javaversion (Makefile.am): Remove DEFS setting.
64000         (Depends-on): Add configmake, for PKGDATADIR definition.
64001
64002 2006-09-17  Bruno Haible  <bruno@clisp.org>
64003
64004         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64005
64006 2006-09-17  Bruno Haible  <bruno@clisp.org>
64007
64008         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64009         (func_modules_transitive_closure, func_modules_add_dummy,
64010         func_modules_to_filelist, func_import, func_create_testdir,
64011         func_create_megatestdir, ...): Use it wherever possible.
64012         Suggested by Ralf Wildenhues.
64013
64014 2006-09-16  Karl Berry  <karl@gnu.org>
64015
64016         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64017         to avoid sectioning errors.
64018         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64019         [ifinfo]: blank line after @center-ed titles.
64020         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64021         Spell FSF address consistently with others.
64022         (These changes approved by rms.)
64023
64024 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64025
64026         Speed up by a factor of 1.61.
64027         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64028         already checked module names again.
64029
64030 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64031
64032         Speed up by a factor of 1.13.
64033         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64034         for new_files, and the input to func_add_or_update.
64035
64036 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64037
64038         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64039         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64040
64041 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64042
64043         * modules/mkancesdirs (Depends-on): Add fcntl.
64044         * modules/savewd: New file.
64045         * MODULES.html.sh (File system functions): Add savewd.
64046
64047         * modules/configmake (Makefile.am): Add support for the
64048         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64049
64050 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64051
64052         * m4/savewd.m4: New file.
64053
64054 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64055
64056         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64057         (dirchownmod): New arg FD.  All callers changed.
64058         Use FD rather than opening the directory ourself, as opening is
64059         now the caller's responsibility.
64060         * lib/dirchownmod.h: Likewise.
64061         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64062         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64063         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64064         (test_dir): Remove.
64065         (mkancesdirs): Return length of prefix of FILE that has already
64066         been made, or -2 if there is a child doing the work.  Redo
64067         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64068         ".", and treat ".." specially since it might stray back into
64069         already-created areas.  Use a subprocess if necessary.  New arg
64070         WD; all users changed.  MAKE_DIR function should now return 1
64071         if it creates a directory that is not readable.  Return -2 if
64072         a child process is spun off.
64073         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64074         Adjust signature to match code.
64075         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64076         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64077         all users changed.
64078         * lib/savewd.c, lib/savewd.h: New files.
64079
64080 2006-09-15  Jim Meyering  <jim@meyering.net>
64081
64082         * modules/rename-dest-slash: New module.
64083         * MODULES.html.sh (posix_compat): Add it here.
64084
64085         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64086
64087 2006-09-15  Jim Meyering  <jim@meyering.net>
64088
64089         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64090         file.
64091
64092         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64093
64094 2006-09-15  Jim Meyering  <jim@meyering.net>
64095
64096         * lib/rename-dest-slash.c (has_trailing_slash): Use
64097         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64098         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64099         test before testing whether SRC is a directory.
64100         Suggestions from Bruno Haible.
64101
64102         Avoid a warning about an unused variable.
64103         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64104         into the #ifdef block where it's used.
64105
64106         * lib/rename-dest-slash.c: New file.
64107
64108 2006-09-14  Bruno Haible  <bruno@clisp.org>
64109
64110         * lib/allocsa.c: Include <config.h> unconditionally.
64111         * lib/asnprintf.c: Likewise.
64112         * lib/asprintf.c: Likewise.
64113         * lib/c-strcasecmp.c: Likewise.
64114         * lib/c-strcasestr.c: Likewise.
64115         * lib/c-strncasecmp.c: Likewise.
64116         * lib/c-strstr.c: Likewise.
64117         * lib/classpath.c: Likewise.
64118         * lib/clean-temp.c: Likewise.
64119         * lib/concatpath.c: Likewise.
64120         * lib/copy-file.c: Likewise.
64121         * lib/csharpcomp.c: Likewise.
64122         * lib/csharpexec.c: Likewise.
64123         * lib/execute.c: Likewise.
64124         * lib/fatal-signal.c: Likewise.
64125         * lib/findprog.c: Likewise.
64126         * lib/fwriteerror.c: Likewise.
64127         * lib/gl_array_list.c: Likewise.
64128         * lib/gl_array_oset.c: Likewise.
64129         * lib/gl_avltree_list.c: Likewise.
64130         * lib/gl_avltree_oset.c: Likewise.
64131         * lib/gl_avltreehash_list.c: Likewise.
64132         * lib/gl_carray_list.c: Likewise.
64133         * lib/gl_linked_list.c: Likewise.
64134         * lib/gl_linkedhash_list.c: Likewise.
64135         * lib/gl_list.c: Likewise.
64136         * lib/gl_oset.c: Likewise.
64137         * lib/gl_rbtree_list.c: Likewise.
64138         * lib/gl_rbtree_oset.c: Likewise.
64139         * lib/gl_rbtreehash_list.c: Likewise.
64140         * lib/imaxabs.c: Likewise.
64141         * lib/imaxdiv.c: Likewise.
64142         * lib/javacomp.c: Likewise.
64143         * lib/javaexec.c: Likewise.
64144         * lib/javaversion.c: Likewise.
64145         * lib/linebreak.c: Likewise.
64146         * lib/localcharset.c: Likewise.
64147         * lib/lock.c: Likewise.
64148         * lib/mbchar.c: Likewise.
64149         * lib/mbswidth.c: Likewise.
64150         * lib/mkdtemp.c: Likewise.
64151         * lib/pipe.c: Likewise.
64152         * lib/printf-args.c: Likewise.
64153         * lib/printf-parse.c: Likewise.
64154         * lib/progname.c: Likewise.
64155         * lib/progreloc.c: Likewise.
64156         * lib/readlink.c: Likewise.
64157         * lib/sh-quote.c: Likewise.
64158         * lib/stpcpy.c: Likewise.
64159         * lib/stpncpy.c: Likewise.
64160         * lib/strcasecmp.c: Likewise.
64161         * lib/strcasestr.c: Likewise.
64162         * lib/strcspn.c: Likewise.
64163         * lib/striconv.c: Likewise.
64164         * lib/strncasecmp.c: Likewise.
64165         * lib/strnlen1.c: Likewise.
64166         * lib/strstr.c: Likewise.
64167         * lib/strtok_r.c: Likewise.
64168         * lib/tls.c: Likewise.
64169         * lib/tmpdir.c: Likewise.
64170         * lib/unicodeio.c: Likewise.
64171         * lib/unsetenv.c: Likewise.
64172         * lib/vasnprintf.c: Likewise.
64173         * lib/vasprintf.c: Likewise.
64174         * lib/wait-process.c: Likewise.
64175         * lib/xallocsa.c: Likewise.
64176         * lib/xsetenv.c: Likewise.
64177         * lib/xstriconv.c: Likewise.
64178
64179 2006-09-13  Simon Josefsson  <jas@extundo.com>
64180
64181         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
64182         that internally, suggested by Ralf Wildenhues
64183         <Ralf.Wildenhues@gmx.de>.
64184
64185 2006-09-13  Simon Josefsson  <jas@extundo.com>
64186
64187         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
64188         @LIBOBJS@.
64189         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64190
64191 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64192
64193         * lib/_fpending.c: Include <config.h> unconditionally, since we no
64194         longer worry about uses that don't define HAVE_CONFIG_H.
64195         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
64196         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
64197         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
64198         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
64199         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
64200         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
64201         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
64202         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
64203         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
64204         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
64205         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
64206         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
64207         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
64208         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
64209         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
64210         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
64211         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
64212         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
64213         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
64214         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
64215         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
64216         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
64217         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
64218         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
64219         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
64220         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
64221         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
64222         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
64223         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
64224         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
64225         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
64226         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
64227         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
64228         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
64229         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
64230         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
64231         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
64232         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
64233         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
64234         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
64235         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
64236         Likewise.
64237
64238 2006-09-13  Eric Blake  <ebb9@byu.net>
64239
64240         * lib/getopt.c: Fix typo in last commit.
64241
64242 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64243
64244         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
64245         dgettext.
64246
64247 2006-09-12  Jim Meyering  <jim@meyering.net>
64248
64249         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
64250         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
64251         Reported by Nelson H. F. Beebe.
64252
64253 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64254
64255         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
64256         program_invocation_name and program_invocation_short_name are
64257         initialized.
64258         * lib/argp-namefrob.h: Move declarations of program_invocation_name
64259         and program_invocation_short_name to argp.h, so they are visible
64260         to user programs.
64261         * lib/argp.h: Likewise
64262
64263 2006-09-10  Bruno Haible  <bruno@clisp.org>
64264
64265         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64266         m4/inttypes_h.m4, m4/uintmax_t.m4.
64267
64268 2006-09-10  Bruno Haible  <bruno@clisp.org>
64269
64270         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
64271         gl_AC_TYPE_UINTMAX_T.
64272
64273 2006-09-10  Bruno Haible  <bruno@clisp.org>
64274
64275         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64276
64277 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64278
64279         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64280         convention.  Text proposed by Bruno Haible.
64281         (struct argp_option): Document the use of N_() wrappers.
64282
64283         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64284         '\v', and translate the two parts separately, instead of feeding
64285         the whole string to gettext.  This allows to exclude
64286         '\v' from the strings visible to the translator by writing doc
64287         strings as N_("..") "\v" N_("..").
64288
64289 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64290
64291         * config/srclist.txt: Undo latest change; the bug was fixed.
64292
64293 2006-09-09  Bruno Haible  <bruno@clisp.org>
64294
64295         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64296         assignments if building a library without libtool.
64297         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64298         in func_emit_lib_Makefile_am.
64299         (func_import): When building a static library libfoo.a, arrange to
64300         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64301         (func_create_testdir): Likewise.
64302         * modules/gc (configure.ac, Makefile.am): If building statically,
64303         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64304         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64305         * modules/striconv (configure.ac, Makefile.am): Likewise.
64306         Based on a suggestion by Ralf Wildenhues.
64307
64308 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64309
64310         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64311         Check for unistd.h too, since Autoconf doesn't assume POSIX.
64312         Also:
64313
64314         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64315         Add year_2050_test to catch glibc bug 2821
64316         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64317
64318         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64319         Prefer #ifdef to #if.
64320
64321         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
64322         Return from 'main' instead of calling 'exit'.
64323
64324 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64325
64326         * lib/mktime.c (guess_time_tm): Fix bug where mktime
64327         returned the maximum time_t value rather than (time_t) -1.
64328         Problem originally reported by William Bardwell
64329         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64330
64331         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64332         Moved to here ...
64333         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64334         ... from here.
64335
64336 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64337
64338         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
64339         2821 is fixed.
64340
64341 2006-09-08  Jim Meyering  <jim@meyering.net>
64342
64343         Don't make generated files read-only.  That would bother too many
64344         people.  However, do retain the ability to work when targets are
64345         read-only: remove the destination and temporary files before writing
64346         them (when generated via sed or echo), or by using the -f option for
64347         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
64348         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64349         * modules/byteswap, modules/configmake, modules/fcntl:
64350         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64351         * modules/localcharset, modules/netinet_in, modules/poll:
64352         * modules/stdbool, modules/stdint, modules/sys_select:
64353         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64354
64355 2006-09-08  Jim Meyering  <jim@meyering.net>
64356
64357         Avoid new build failure on FreeBSD 6.0.
64358         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
64359         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
64360         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
64361
64362 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64363
64364         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
64365
64366 2006-09-07  Jim Meyering  <jim@meyering.net>
64367
64368         Fix global typo in last change: use chmod u-w, not chmod u-x.
64369         Spotted by Paul Eggert and Bruce Korb.
64370         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64371         * modules/byteswap, modules/configmake, modules/fcntl:
64372         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64373         * modules/localcharset, modules/netinet_in, modules/poll:
64374         * modules/stdbool, modules/stdint, modules/sys_select:
64375         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64376
64377 2006-09-06  Jim Meyering  <jim@meyering.net>
64378
64379         Make generated files be read-only.
64380         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
64381         Ensure that each generated file is now read-only.
64382         * modules/argz: Likewise.
64383         * modules/arpa_inet: Likewise.
64384         * modules/byteswap: Likewise.
64385         * modules/configmake: Likewise.
64386         * modules/fcntl: Likewise.
64387         * modules/fnmatch: Likewise.
64388         * modules/getopt: Likewise.
64389         * modules/glob: Likewise.
64390         * modules/inttypes: Likewise.
64391         * modules/netinet_in: Likewise.
64392         * modules/poll: Likewise.
64393         * modules/stdbool: Likewise.
64394         * modules/stdint: Likewise.
64395         * modules/sys_select: Likewise.
64396         * modules/sys_socket: Likewise.
64397         * modules/sys_stat: Likewise.
64398         * modules/sysexits: Likewise.
64399         * modules/localcharset: Same as above, but continue using temporary
64400         file named "t-$@" (why different?) rather than the "$@-t" used
64401         everywhere else.
64402
64403         * modules/sysexits (Makefile.am): Replace literal occurrences
64404         of "sysexit.h" more readable, and more consistent, "$@".
64405
64406 2006-09-06  Bruno Haible  <bruno@clisp.org>
64407
64408         * modules/striconv: New file.
64409         * modules/xstriconv: New file.
64410         * MODULES.html.sh (Internationalization functions): Add striconv,
64411         xstriconv.
64412
64413 2006-09-06  Bruno Haible  <bruno@clisp.org>
64414
64415         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
64416         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
64417         not using libtool correctly.
64418
64419 2006-09-06  Bruno Haible  <bruno@clisp.org>
64420
64421         * lib/striconv.h: New file.
64422         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
64423         iconvstring.c.
64424         * lib/xstriconv.h: New file.
64425         * lib/xstriconv.c: New file.
64426
64427 2006-09-06  Bruno Haible  <bruno@clisp.org>
64428
64429         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64430         lib_..._LDFLAGS.
64431
64432 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64433
64434         * lib/argz_.h: Sync from Libtool.
64435
64436         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
64437                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64438
64439         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
64440
64441 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64442
64443         * modules/trim: New file.
64444
64445 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64446
64447         * lib/trim.h: New file.
64448         * lib/trim.c: New file.
64449
64450 2006-09-05  Bruno Haible  <bruno@clisp.org>
64451
64452         * MODULES.html.sh (String handling): Add trim.
64453
64454 2006-09-04  Karl Berry  <karl@gnu.org>
64455
64456         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
64457         until next release.
64458
64459 2006-09-03  Bruno Haible  <bruno@clisp.org>
64460
64461         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
64462         correctly.
64463
64464 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64465
64466         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
64467         not gl_GETLOADAVG.  Omit unneeded semicolons.
64468         Problems reported by Ralf Wildenhues in
64469         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64470         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
64471         at the end, which is the usual gnulib style.
64472
64473         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
64474         of doing all the work ourselves.
64475         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
64476         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
64477
64478 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64479
64480         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
64481         Problem reported by Ralf Wildenhues in
64482         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64483
64484         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
64485         HAVE_STRUCT_STATFS_F_FSTYPENAME.
64486
64487 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64488
64489         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
64490         yesterday's patch by changing test -n to test -z.
64491
64492 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64493
64494         * modules/getloadavg (Files): Add m4/getloadavg.m4.
64495         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
64496         the former is now obsolescent.
64497
64498         * modules/chdir-long (Depends-on): Add fcntl.
64499
64500 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64501
64502         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
64503         obsolescent, and programs should use gnulib instead.
64504         * m4/getloadavg.m4: New file, with contents taken from Autoconf
64505         but with prefixes changed.
64506
64507 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64508
64509         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
64510         or stdbool.h, because they might not exist while configuring.
64511
64512         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
64513         Don't include unistd.h or limits.h; not needed, since chdir-long.h
64514         does that for us.
64515         (O_DIRECTORY): Remove.
64516
64517 2006-08-31  Eric Blake  <ebb9@byu.net>
64518
64519         * gnulib-tool: Don't let emacs change spaces to TAB.
64520
64521 2006-08-31  Bruno Haible  <bruno@clisp.org>
64522
64523         * gnulib-tool: When calling func_import more than once, do it in a
64524         subshell.
64525         Reported by Eric Blake <ebb9@byu.net>.
64526
64527 2006-08-31  Bruno Haible  <bruno@clisp.org>
64528
64529         * gnulib-tool (nl): Remove variable.
64530         (sed_transform_lib_file): Use more robust test for config-h module.
64531         (func_import): Fix typo in 2006-08-25 patch.
64532
64533 2006-08-31  Bruno Haible  <bruno@clisp.org>
64534
64535         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
64536         specified, augment Makefile.am variables instead of assigning them.
64537
64538 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64539
64540         Work around a bug in both the Linux and SunOS 64-bit kernels:
64541         nanosleep mishandles sleeps for longer than 2**31 seconds.
64542         Problem reported by Frank v Waveren in
64543         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64544         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
64545         Check for nanosleep bug.
64546         (LIB_NANOSLEEP): Append clock_gettime library if needed.
64547
64548 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64549
64550         Work around a bug in both the Linux and SunOS 64-bit kernels:
64551         nanosleep mishandles sleeps for longer than 2**31 seconds.
64552         Problem reported by Frank v Waveren in
64553         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64554         * lib/nanosleep.c (BILLION): New constant.
64555         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
64556         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
64557         implementation.
64558
64559 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64560
64561         * modules/nanosleep (Depends-on): Add gettime.
64562
64563 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64564         and Simon Josefsson  <jas@extundo.com>
64565         and Oskar Liljeblad  <oskar@osk.mine.nu>
64566
64567         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
64568         * gnulib-tool (func_import): New license type 'unmodifiable license
64569         text'.
64570         * modules/fdl: Use it.  Longer description.
64571         * module/gpl, module/lgpl: New files.
64572
64573 2006-08-30  Jim Meyering  <jim@meyering.net>
64574
64575         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
64576         shadowing the parameter.
64577
64578 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64579
64580         Sync from Libtool:
64581
64582         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64583
64584         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
64585         sharing with gnulib.  Report by Eric Blake.
64586
64587 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64588
64589         * modules/isapipe: New file.
64590         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
64591
64592 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64593
64594         * modules/configmake (Makefile.am): Add a comment, and omit
64595         the CONFIGMAKE_ prefix from generated macro names.  Suggested
64596         by Bruno Haible.
64597
64598 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64599
64600         * m4/isapipe.m4: New file.
64601
64602 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64603
64604         * lib/isapipe.c, lib/isapipe.h: New files.
64605
64606 2006-08-29  Jim Meyering  <jim@meyering.net>
64607
64608         * modules/configmake (Makefile.am): Make configmake.h depend on
64609         Makefile.  Otherwise, a stale configmake.h could hang around.
64610
64611 2006-08-29  Eric Blake  <ebb9@byu.net>
64612
64613         * lib/error.c (error_at_line, print_errno_message): Match libc, after
64614         resolution of upstream bug 3044.
64615
64616 2006-08-29  Bruno Haible  <bruno@clisp.org>
64617
64618         * modules/localcharset (Depends-on): Add configmake.
64619         (Makefile.am): Remove setting of LIBDIR through DEFS.
64620
64621 2006-08-29  Bruno Haible  <bruno@clisp.org>
64622
64623         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
64624         defined.
64625
64626 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64627
64628         * modules/fcntl: New file.
64629         * modules/chdir-safer (Depends-on): Add fcntl.
64630         * modules/fts: Likewise.
64631         * modules/mkdir-p: Likewise.
64632
64633         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
64634         This undoes the most recent change, since we're now addressing the
64635         problem in a different way.
64636
64637         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
64638         into output, since the output might be called Makefile.am even
64639         if $makefile_name is something different.
64640         (func_import): Use $makefile_am rather than
64641         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
64642         empty.
64643
64644         * modules/inttypes (Files): Add m4/inttypes-h.m4.
64645
64646 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64647
64648         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
64649         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
64650         recent change to stdint.m4, since we're now addressing the problem in a
64651         different way.
64652
64653 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64654
64655         * m4/fcntl_h.m4: New file.
64656
64657 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64658
64659         * lib/fcntl_.h: New file.
64660         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
64661         the fcntl module.
64662         * lib/dirchownmod.c: Likewise.
64663         * lib/fts.c: Likewise.
64664
64665         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
64666         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
64667         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
64668         just before including <inttypes.h>, to avoid circular inclusion.
64669
64670 2006-08-28  Jim Meyering  <jim@meyering.net>
64671
64672         * doc/visibility.texi: Actually read and correct the grammar of the
64673         sentence affected by yesterday's change.
64674
64675 2006-08-28  Eric Blake  <ebb9@byu.net>
64676
64677         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
64678         needs wrapper.
64679
64680 2006-08-28  Eric Blake  <ebb9@byu.net>
64681
64682         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
64683
64684 2006-08-28  Eric Blake  <ebb9@byu.net>
64685
64686         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
64687
64688 2006-08-28  Bruno Haible  <bruno@clisp.org>
64689
64690         * modules/c-strstr: New file, from GNU gettext.
64691         * MODULES.html.sh (String handling): Add c-strstr.
64692
64693 2006-08-28  Bruno Haible  <bruno@clisp.org>
64694
64695         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
64696         macros.
64697         Reported by Eric Blake.
64698
64699 2006-08-28  Bruno Haible  <bruno@clisp.org>
64700
64701         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
64702         (VASNPRINTF): Return a string of length > INT_MAX without failing.
64703         * lib/vasprintf.c: Include errno.h, limits.h.
64704         (EOVERFLOW): New fallback definition.
64705         (vasprintf): Test here whether the string length is > INT_MAX.
64706         * lib/vsnprintf.c: Include errno.h, limits.h.
64707         (EOVERFLOW): New fallback definition.
64708         (vsnprintf): Fix bug when generated string was too long for the buffer.
64709         Test here whether the string length is > INT_MAX.
64710
64711 2006-08-28  Bruno Haible  <bruno@clisp.org>
64712
64713         * lib/inttypes_.h (SCNX*): Remove definitions.
64714         Reported by Eric Blake.
64715
64716 2006-08-28  Bruno Haible  <bruno@clisp.org>
64717
64718         * lib/c-strstr.h: New file, from GNU gettext.
64719         * lib/c-strstr.c: New file, from GNU gettext.
64720
64721 2006-08-28  Bruno Haible  <bruno@clisp.org>
64722
64723         * gnulib-tool: Reorder some statements.
64724
64725 2006-08-28  Bruno Haible  <bruno@clisp.org>
64726
64727         * gnulib-tool: New option --makefile-name.
64728         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
64729         $makefile_name.
64730         (func_import): Write $makefile_name to the cache file, and read it from
64731         there unless explicitly specified. Use $makefile_name as file name
64732         instead of Makefile.am. Adjust the recommendations accordingly.
64733
64734 2006-08-28  Bruno Haible  <bruno@clisp.org>
64735
64736         * gnulib-tool (func_verify_module): Check against misapplying patch.
64737
64738 2006-08-28  Bruno Haible  <bruno@clisp.org>
64739
64740         * gnulib-tool (func_relativize, func_relconcat): New functions.
64741         Give an error if --local-dir is given with --update.
64742         Remove trailing slashes from $local_gnulib_dir.
64743         (func_import): Store the relativized $local_gnulib_dir in
64744         gnulib-cache.m4, and read it from there if not specified explicitly.
64745
64746 2006-08-28  Bruno Haible  <bruno@clisp.org>
64747
64748         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
64749         is the current directory. Respect also $local_gnulib_dir.
64750
64751 2006-08-28  Bruno Haible  <bruno@clisp.org>
64752             Simon Josefsson  <jas@extundo.com>
64753
64754         BeOS portability.
64755         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
64756
64757 2006-08-27  Jim Meyering  <jim@meyering.net>
64758
64759         * doc/visibility.texi: Remove duplicate word: "pointer".
64760
64761 2006-08-26  Bruno Haible  <bruno@clisp.org>
64762
64763         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
64764         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
64765         (Makefile.am): Create inttypes.h from inttypes_.h.
64766         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
64767
64768         * modules/imaxabs: New file.
64769
64770         * modules/imaxdiv: New file.
64771
64772 2006-08-26  Bruno Haible  <bruno@clisp.org>
64773
64774         * m4/inttypes.m4: New file.
64775         * m4/_inttypes_h.m4: Remove file.
64776         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
64777         PRI_MACROS_BROKEN.
64778         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
64779
64780         * m4/imaxabs.m4: New file.
64781
64782         * m4/imaxdiv.m4: New file.
64783
64784 2006-08-26  Bruno Haible  <bruno@clisp.org>
64785
64786         * lib/inttypes_.h: New file.
64787         * lib/inttypes.h: Remove file.
64788         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
64789
64790         * lib/imaxabs.c: New file.
64791
64792         * lib/imaxdiv.c: New file.
64793
64794 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64795
64796         New config-h module, so that "make" output needn't be cluttered
64797         by -DHAVE_CONFIG_H.
64798         * MODULES.html.sh (Support for building libraries and executables):
64799         Add config-h.
64800         * modules/config-h: New file.
64801         * gnulib-tool (nl, sed_transform_lib_file): New vars.
64802         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
64803         the config-h module is used.
64804
64805         New configmake module, so that "make" output needn't be cluttered
64806         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
64807         * MODULES.html.sh (Support for building libraries and executables):
64808         Add configmake.
64809         * modules/configmake: New file.
64810
64811 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64812
64813         * m4/config-h.m4: New file.
64814
64815 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64816
64817         * config/srclist.txt: Add elisp-comp.
64818
64819 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64820
64821         * MODULES.html.sh (Support for building libraries and executables):
64822         Add elisp-comp.
64823         * build-aux/elisp-comp: New file.
64824         * modules/elisp-comp: New file.
64825
64826 2006-08-24  Bruno Haible  <bruno@clisp.org>
64827
64828         * gnulib-tool (func_create_testdir): Use non-default values of
64829         sourcebase and m4base.
64830
64831 2006-08-24  Bruno Haible  <bruno@clisp.org>
64832
64833         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
64834         HTML structure.
64835
64836 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64837
64838         * modules/openat (Depends-on): Add lchown.
64839
64840 2006-08-23  Bruno Haible  <bruno@clisp.org>
64841
64842         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
64843         of gl_LOCK_EARLY instead of gl_LOCK.
64844
64845 2006-08-23  Bruno Haible  <bruno@clisp.org>
64846
64847         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
64848         on OSF/1 to no.
64849         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
64850
64851 2006-08-23  Bruno Haible  <bruno@clisp.org>
64852
64853         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
64854         as unusable.
64855
64856         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
64857         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
64858         (gl_LOCK): New macro.
64859
64860 2006-08-22  Simon Josefsson  <jas@extundo.com>
64861
64862         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
64863         to md5 module.
64864
64865 2006-08-22  Simon Josefsson  <jas@extundo.com>
64866
64867         * MODULES.html.sh: Add "Support for maintaining and release
64868         projects".
64869
64870         * build-aux/gnupload: New file, from coreutils.
64871
64872 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64873
64874         Avoid the need for AC_LIBSOURCES in m4 macros.
64875         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
64876         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
64877         * modules/check-version (EXTRA_DIST): Add check-version.h.
64878         * modules/crc (EXTRA_DIST): Add crc.h.
64879         * modules/des (EXTRA_DIST): Add des.h.
64880         * modules/gc (EXTRA_DIST): Add gc.h.
64881         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
64882         * modules/getline (EXTRA_DIST): Add getline.h.
64883         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
64884         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
64885         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
64886         * modules/md2 (EXTRA_DIST): Add md2.h.
64887         * modules/md4 (EXTRA_DIST): Add md4.h.
64888         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
64889         * modules/read-file (EXTRA_DIST): Add read-file.h.
64890         * modules/readline (EXTRA_DIST): Add readline.h.
64891         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
64892         rijndael-api-fst.h.
64893
64894 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64895
64896         * m4/rijndael.m4 (gl_ARCFOUR):
64897         * m4/arctwo.m4 (gl_ARCTWO):
64898         * m4/check-version.m4 (gl_CHECK_VERSION):
64899         * m4/crc.m4 (gl_CRC):
64900         * m4/des.m4 (gl_DES):
64901         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
64902         * m4/gc.m4 (gl_GC):
64903         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
64904         * m4/getline.m4 (gl_FUNC_GETLINE):
64905         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
64906         * m4/hmac-md5.m4 (gl_HMAC_MD5):
64907         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
64908         * m4/md2.m4 (gl_MD2):
64909         * m4/md4.m4 (gl_MD4):
64910         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
64911         * m4/read-file.m4 (gl_FUNC_READ_FILE):
64912         * m4/readline.m4 (gl_FUNC_READLINE):
64913         * m4/rijndael.m4 (gl_RIJNDAEL):
64914         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
64915         to get the necessary .h files and whatnot.
64916
64917 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64918
64919         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
64920         gnulib rather than the other way around.
64921         * config/srclistvars.sh (COREUTILS): Remove.
64922
64923 2006-08-22  Jim Meyering  <jim@meyering.net>
64924
64925         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
64926
64927         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
64928
64929 2006-08-22  Eric Blake  <ebb9@byu.net>
64930
64931         * modules/regexprops-generic: New file.
64932         * MODULES.html.sh (Support for building documentation): List it.
64933
64934 2006-08-22  Eric Blake  <ebb9@byu.net>
64935
64936         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
64937         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
64938         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
64939         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
64940
64941 2006-08-22  Bruno Haible  <bruno@clisp.org>
64942
64943         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
64944         and lib_LTLIBRARIES like the other lib_* variables.
64945
64946 2006-08-22  Bruno Haible  <bruno@clisp.org>
64947
64948         * build-aux/x-to-1.in: New file, from GNU gettext.
64949
64950 2006-08-22  Bruno Haible  <bruno@clisp.org>
64951
64952         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
64953         <utmpx.h> exists.
64954
64955 2006-08-22  Bruno Haible  <bruno@clisp.org>
64956
64957         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
64958         <utmpx.h> exists.
64959
64960 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64961
64962         BeOS portability.
64963         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
64964         exist.
64965         Problem reported by Bruno Haible.
64966
64967 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64968
64969         Avoid the need for AC_LIBSOURCES in m4 macros.
64970         * modules/acl (EXTRA_DIST): Add acl.h.
64971         * modules/argmatch (Files): Add m4/argmatch.m4.
64972         (configure.ac): Add gl_ARGMATCH.
64973         (EXTRA_DIST): Renamed from lib_SOURCES, for
64974         consistency with the other modules.  Remove argmatch.c.
64975         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
64976         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
64977         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
64978         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
64979         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
64980         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
64981         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
64982         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
64983         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
64984         * modules/closeout (EXTRA_DIST): Add closeout.h.
64985         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
64986         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
64987         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
64988         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
64989         dirname.h; remove basename.c and stripslash.c.
64990         * modules/exclude (EXTRA_DIST): Add exclude.h.
64991         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
64992         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
64993         * modules/file-type (EXTRA_DIST): Add file-type.h.
64994         * modules/filemode (EXTRA_DIST): Add filemode.h.
64995         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
64996         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
64997         * modules/fpending (EXTRA_DIST): Add __fpending.h.
64998         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
64999         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65000         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65001         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65002         * modules/getdate (EXTRA_DIST): Add getdate.c.
65003         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65004         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65005         * modules/getpass (EXTRA_DIST): Add getpass.h.
65006         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65007         * modules/group-member (EXTRA_DIST): Add group-member.h.
65008         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65009         * modules/hash (EXTRA_DIST): Add hash.h.
65010         * modules/human (EXTRA_DIST): Add human.h.
65011         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65012         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65013         * modules/lchown (EXTRA_DIST): Add lchown.h.
65014         * modules/long-options (EXTRA_DIST): Add long-options.h.
65015         * modules/lstat (EXTRA_DIST): Add lstat.h.
65016         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65017         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65018         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65019         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65020         * modules/memxor (EXTRA_DIST): Add memxor.h.
65021         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65022         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65023         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65024         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65025         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65026         * modules/physmem (EXTRA_DIST): Add physmem.h.
65027         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65028         * modules/posixver (EXTRA_DIST): Add posixver.h.
65029         * modules/quote (EXTRA_DIST): Add quote.h.
65030         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65031         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65032         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65033         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65034         regex_internal.h regexec.c.
65035         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65036         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65037         * modules/same (EXTRA_DIST): Add same.h.
65038         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65039         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65040         * modules/savedir (EXTRA_DIST): Add savedir.h.
65041         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65042         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65043         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65044         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65045         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65046         * modules/strdup (EXTRA_DIST): Add strdup.h.
65047         * modules/strftime (EXTRA_DIST): Add strftime.h.
65048         * modules/strndup (EXTRA_DIST): Add strndup.h.
65049         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65050         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65051         * modules/time_r (EXTRA_DIST): Add time_r.h.
65052         * modules/timespec (EXTRA_DIST): Add timespec.h.
65053         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65054         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65055         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65056         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65057         * modules/userspec (EXTRA_DIST): Add userspec.h.
65058         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65059         * modules/utimens (EXTRA_DIST): Add utimens.h.
65060         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65061         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65062         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65063         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65064         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65065         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65066         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65067         * modules/yesno (EXTRA_DIST): Add yesno.h.
65068
65069 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65070
65071         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65072
65073         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65074         * m4/dev-ino.m4, same-inode.m4: Remove.
65075
65076         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65077         * m4/acl.m4 (AC_FUNC_ACL):
65078         * m4/backupfile.m4 (gl_BACKUPFILE):
65079         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65080         * m4/canon-host.m4 (gl_CANON_HOST):
65081         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65082         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65083         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65084         * m4/cloexec.m4 (gl_CLOEXEC):
65085         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65086         * m4/closeout.m4 (gl_CLOSEOUT):
65087         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65088         * m4/dirname.m4 (gl_DIRNAME):
65089         * m4/exclude.m4 (gl_EXCLUDE):
65090         * m4/exitfail.m4 (gl_EXITFAIL):
65091         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65092         * m4/file-type.m4 (gl_FILE_TYPE):
65093         * m4/filemode.m4 (gl_FILEMODE):
65094         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65095         * m4/fpending.m4 (gl_FUNC_FPENDING):
65096         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65097         * m4/fts.m4 (gl_FUNC_FTS):
65098         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65099         * m4/getdate.m4 (gl_GETDATE):
65100         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65101         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65102         * m4/getpass.m4 (gl_FUNC_GETPASS):
65103         * m4/gettime.m4 (gl_GETTIME):
65104         * m4/getugroups.m4 (gl_GETUGROUPS):
65105         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65106         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65107         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65108         * m4/hash.m4 (gl_HASH):
65109         * m4/idcache.m4 (gl_IDCACHE):
65110         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65111         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65112         * m4/long-options.m4 (gl_LONG_OPTIONS):
65113         * m4/lstat.m4 (gl_FUNC_LSTAT):
65114         * m4/md5.m4 (gl_MD5):
65115         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65116         * m4/memcoll.m4 (gl_MEMCOLL):
65117         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65118         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65119         * m4/memxor.m4 (gl_MEMXOR):
65120         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65121         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65122         * m4/modechange.m4 (gl_MODECHANGE):
65123         * m4/mountlist.m4 (gl_MOUNTLIST):
65124         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65125         * m4/openat.m4 (gl_FUNC_OPENAT):
65126         * m4/pathmax.m4 (gl_PATHMAX):
65127         * m4/physmem.m4 (gl_PHYSMEM):
65128         * m4/posixtm.m4 (gl_POSIXTM):
65129         * m4/posixver.m4 (gl_POSIXVER):
65130         * m4/quote.m4 (gl_QUOTE):
65131         * m4/quotearg.m4 (gl_QUOTEARG):
65132         * m4/readtokens.m4 (gl_READTOKENS):
65133         * m4/readutmp.m4 (gl_READUTMP):
65134         * m4/regex.m4 (gl_REGEX):
65135         * m4/safe-read.m4 (gl_SAFE_READ):
65136         * m4/safe-write.m4 (gl_SAFE_WRITE):
65137         * m4/same.m4 (gl_SAME):
65138         * m4/save-cwd.m4 (gl_SAVE_CWD):
65139         * m4/savedir.m4 (gl_SAVEDIR):
65140         * m4/settime.m4 (gl_SETTIME):
65141         * m4/sha1.m4 (gl_SHA1):
65142         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65143         * m4/stat-macros.m4 (gl_STAT_MACROS):
65144         * m4/stat-time.m4 (gl_STAT_TIME):
65145         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
65146         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
65147         * m4/strdup.m4 (gl_FUNC_STRDUP):
65148         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
65149         * m4/strndup.m4 (gl_FUNC_STRNDUP):
65150         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
65151         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
65152         * m4/time_r.m4 (gl_TIME_R):
65153         * m4/timespec.m4 (gl_TIMESPEC):
65154         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
65155         * m4/unlinkdir.m4 (gl_UNLINKDIR):
65156         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
65157         * m4/userspec.m4 (gl_USERSPEC):
65158         * m4/utimecmp.m4 (gl_UTIMECMP):
65159         * m4/utimens.m4 (gl_UTIMENS):
65160         * m4/xalloc.m4 (gl_XALLOC):
65161         * m4/xgetcwd.m4 (gl_XGETCWD):
65162         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
65163         * m4/xreadlink.m4 (gl_XREADLINK):
65164         * m4/xstrtod.m4 (gl_XSTRTOD):
65165         * m4/yesno.m4 (gl_YESNO):
65166         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65167         to get the necessary .h files and whatnot.
65168
65169 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
65170             Bruno Haible  <bruno@clisp.org>
65171
65172         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
65173         /bin/sh understanding of '!' conditional negation.
65174
65175 2006-08-21  Jim Meyering  <jim@meyering.net>
65176
65177         * modules/openat (Depends-on): Really alphabetize.
65178
65179         * modules/acl (Depends-on): Add error and quote.
65180
65181         * check-module (find_included_lib_files): Add at-func.c to the
65182         ok-to-include-more-than-once white list.
65183
65184         * modules/openat (Depends-on): Add lstat.  Alphabetize.
65185
65186 2006-08-21  Bruno Haible  <bruno@clisp.org>
65187
65188         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65189         Emit a pkgdata_DATA variable only if some snippets add contents to it.
65190         Reported by Martin Lambers <marlam@marlam.de>.
65191
65192 2006-08-21  Bruno Haible  <bruno@clisp.org>
65193
65194         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
65195         specify an installation location, don't emit a noinst_LIBRARIES or
65196         noinst_LTLIBRARIES assignment.
65197
65198 2006-08-21  Bruno Haible  <bruno@clisp.org>
65199
65200         BeOS portability.
65201         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
65202         BeOS has mbrtowc() but no <wctype.h>.
65203
65204 2006-08-21  Bruno Haible  <bruno@clisp.org>
65205
65206         BeOS portability.
65207         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
65208         exist.
65209
65210 2006-08-21  Bruno Haible  <bruno@clisp.org>
65211
65212         BeOS portability.
65213         * lib/mbchar.h: Include <wctype.h> only if it exists.
65214
65215 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65216
65217         Remove files that are no longer needed by their respective modules.
65218         * m4/obstack.m4: Remove.
65219         * m4/strerror_r.m4: Remove.
65220         * m4/uint32_t.m4: Remove.
65221         * m4/uintptr_t.m4: Remove.
65222         * m4/ullong_max.m4: Remove.
65223         * m4/xstrtoimax.m4: Remove.
65224         * m4/xstrtoumax.m4: Remove.
65225
65226         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
65227         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
65228         dependencies now capture this.
65229
65230         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
65231         Do not use AC_LIBSOURCES, since gnulib modules now do this.
65232         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
65233         * m4/human.m4 (gl_HUMAN): Likewise.
65234         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
65235         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
65236
65237         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
65238
65239         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
65240         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
65241         stdint.
65242         * m4/human.m4 (gl_HUMAN): Likewise.
65243         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
65244         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
65245         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65246         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65247         * m4/xstrtol (gl_XSTRTOL): Likewise.
65248
65249         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
65250         AC_TYPE_LONG_LONG_INT.
65251         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65252         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
65253         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
65254         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65255
65256         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
65257         on stdbool.
65258
65259         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
65260         (gl_PREREQ_XSTRTOUL): Remove.
65261
65262         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
65263
65264         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
65265         mode.
65266
65267 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65268
65269         Add and change modules to make it easier for coreutils to use
65270         gnulib-tool.
65271         * modules/backupfile (Files): Remove m4/d-ino.m4.
65272         (Depends-on): Add d-ino.
65273         * modules/cycle-check (Depends-on): Add stdint.
65274         (lib_SOURCES): Add cycle-check.h.
65275         * modules/d-ino: New module.
65276         * modules/d-type: New module.
65277         * modules/error (Files): Remove m4/strerror_r.m4.
65278         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65279         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65280         m4/inttypes_h.m4, m4/uintmax_t.m4.
65281         (Depends-on): Add stdint.
65282         (lib_SOURCES): Add fsusage.h.
65283         * modules/getcwd (Files): Remove d-ino.m4.
65284         (Depends-on): Add d-ino.
65285         * modules/getndelim2 (Depends-on): Add stdint.
65286         * modules/glob (Files): Remove m4/d-type.m4.
65287         (Depends-on): Add d-type.
65288         * modules/host-os: New module.
65289         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65290         m4/inttypes_h.m4, m4/uintmax_t.m4.
65291         * Depends-on: Add stdint.
65292         (lib_SOURCES): Add human.h.
65293         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65294         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65295         m4/uintmax_t.m4, m4/ulonglong.m4.
65296         (Depends-on): Add stdint.
65297         (EXTRA_DIST): Add inttostr.h.
65298         * modules/lchmod: New module.
65299         * modules/link-follow: New module.
65300         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65301         (Depends-on): Add lchmod.
65302         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65303         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65304         (Depends-on): Add stdint.
65305         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65306         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65307         (Depends-on): Add stdint.
65308         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
65309         * modules/perl: New module.
65310         * modules/regex (Depends-on): Add stdint.
65311         * modules/rmdir-errno: New module.
65312         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65313         m4/intmax_t.m4.
65314         (Depends-on): Add stdint.
65315         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65316         m4/uintmax_t.m4.
65317         (Depends-on): Add stdint.
65318         * modules/unlink-busy: New module.
65319         * modules/utimecmp (Depends-on): Add stdint.
65320         * modules/uptime: New module.
65321         * modules/winsz-ioctl: New module.
65322         * modules/winsz-termios: New module.
65323         * modules/xnanosleep (Depends-on): Add nanosleep.
65324         * modules/ullong_max: Remove.
65325         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
65326         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
65327         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
65328         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
65329         (Depends-on): Add inttypes.
65330         (lib_SOURCES): Add xstrtol.h.
65331         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
65332         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
65333         * MODULES.html.sh: Move 'assert' into the assert section.
65334         Move 'dummy' into the linking section.
65335         Remove ullong_max.
65336         Add section for compatibility checks for POSIX:2001 functions,
65337         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
65338         winsz-ioctl, and winsz-termios into it.
65339         Add lchmod.
65340         Add top-level Misc section and put host-os, perl, and uptime
65341         into it.
65342
65343 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65344
65345         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
65346         now assume the stdint module.  Do not include inttypes.h.
65347         * lib/fsusage.h: Likewise.
65348         * lib/getndelim2.c: Likewise.
65349         * lib/human.h: Likewise.
65350         * lib/inttostr.h: Likewise.
65351         * lib/obstack.c: Likewise.
65352         * lib/regex_internal.h: Likewise.
65353         * lib/tempname.c: Likewise.
65354         * lib/utimecmp.c: Likewise.
65355         * lib/xstrtol.h: Likewise.
65356
65357         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
65358
65359         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
65360         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
65361         * lib/xtime.h: Likewise.
65362
65363 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65364
65365         * modules/openat (Files): Add lib/fchmodat.c.
65366         Fixes problem reported by Jay Youngman.
65367
65368 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65369
65370         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
65371         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
65372
65373 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
65374             Bruno Haible  <bruno@clisp.org>
65375
65376         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
65377         and is a script that invokes bison. Tighten the code. Add comments.
65378
65379 2006-08-18  Jim Meyering  <jim@meyering.net>
65380
65381         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
65382         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
65383         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
65384         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
65385
65386 2006-08-18  Bruno Haible  <bruno@clisp.org>
65387
65388         * modules/bison-i18n: New file.
65389         * MODULES.html.sh (Internationalization functions): Add it.
65390
65391 2006-08-18  Bruno Haible  <bruno@clisp.org>
65392
65393         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
65394         sys/statvfs.h. When getmntinfo was found, check its declaration and
65395         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
65396
65397 2006-08-18  Bruno Haible  <bruno@clisp.org>
65398
65399         * m4/bison-i18n.m4: New file, from bison.
65400
65401 2006-08-18  Bruno Haible  <bruno@clisp.org>
65402
65403         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
65404         (ME_DUMMY): Treat "kernfs" as a dummy.
65405         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
65406
65407 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65408
65409         Update from coreutils.
65410
65411         2006-08-15  Jim Meyering  <jim@meyering.net>
65412
65413         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
65414
65415         2006-01-17  Jim Meyering  <jim@meyering.net>
65416
65417         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
65418
65419         2006-01-11  Jim Meyering  <jim@meyering.net>
65420
65421         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
65422         Check for the lchmod function.
65423
65424 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65425
65426         Update from coreutils.
65427
65428         * lib/__fpending.h: Add copyright notice.
65429         * lib/fprintftime.h: Likewise.
65430         * lib/savedir.c: Use (C) in copyright notice.
65431         * lib/savedir.h: Likewise.
65432
65433         2006-08-15  Jim Meyering  <jim@meyering.net>
65434
65435         * lib/at-func.c: New file, with the logic of all emulated at-functions.
65436         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
65437         in support of the EXPECTED_ERRNO macro.
65438         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
65439         definitions.  Instead, define the appropriate symbols and include
65440         "at-func.c".
65441         * lib/mkdirat.c (mkdirat): Likewise.
65442         * lib/fchmodat.c (fchmodat): Likewise.
65443         (ENOSYS): Remove definition.
65444         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
65445         it.  Don't include "unistd--.h" -- it wasn't ever used.
65446
65447         2006-01-17  Jim Meyering  <jim@meyering.net>
65448
65449         Rewrite fts.c not to change the current working directory,
65450         by using openat, fstatat, fdopendir, etc..
65451
65452         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
65453         (HAVE_OPENAT_SUPPORT): Define.
65454         [_LIBC] (fchdir): Don't undef or define; no longer used.
65455         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
65456         Now, this `function' always succeeds, and consumes its file descriptor
65457         parameter -- so callers must not close such FDs.  Update callers.
65458         (diropen_fd, opendirat, cwd_advance_fd): New functions.
65459         (diropen): Add parameter, SP.  Adjust all callers.
65460         Implement using diropen_fd, rather than open.
65461         (fts_open): Initialize new member, fts_cwd_fd.
65462         Remove fts_rft-setting code.
65463         (fts_close): Close fts_cwd_fd, if necessary.
65464         (__opendir2): Define in terms of opendir or opendirat,
65465         depending on whether the FST_NOCHDIR flag is set.
65466         (fts_build): Since fts_safe_changedir consumes its FD, and since
65467         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
65468         and close the dup'd file descriptor upon failure.
65469         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
65470         (fts_safe_changedir): Tweak semantics to reflect that this function
65471         now calls cwd_advance_fd and hence consumes its FD argument.
65472         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
65473         [struct FTS] (fts_rft): Remove now-unused member.
65474         [struct FTS] (fts_cycle.state): Improve comment.
65475
65476         * lib/openat.c (openat_needs_fchdir): New function.
65477         * lib/openat.h (openat_needs_fchdir): Declare it.
65478
65479 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65480
65481         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
65482         Problem and fix reported by Pádraig Brady in
65483         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
65484
65485 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65486
65487         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
65488
65489 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65490
65491         * lib/memcoll.c (memcoll): Optimize for the common case where the
65492         arguments are bytewise equal.
65493
65494 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65495
65496         * doc/regexprops-generic.texi: Add a copyright notice.
65497
65498 2006-08-15  Bruno Haible  <bruno@clisp.org>
65499
65500         * modules/tmpdir (License): Change to LGPL.
65501
65502 2006-08-15  Bruno Haible  <bruno@clisp.org>
65503
65504         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
65505         module.
65506
65507 2006-08-14  Simon Josefsson  <jas@extundo.com>
65508
65509         * config/srclist.txt: Add gnupload.
65510
65511 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65512
65513         Change copyright notice from LGPL 2 to GPL 2, since that's the
65514         standard form used in the gnulib repository.
65515         * tests/test-lock.c: Likewise.
65516         * tests/test-stdint.c: Likewise.
65517         * tests/test-tls.c: Likewise.
65518
65519         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
65520         prelude-manager.  User shorter URLs for GNU projects, without '?'.
65521         Add copyright notice.
65522
65523         * check-module: Add copyright notice.  Output a copyright
65524         notice if "--version" is specified.
65525         * modules/COPYING: New file.
65526         * tests/test-getaddrinfo.c: Add copyright notice.
65527         * tests/test-verify.c: Likewise.
65528
65529 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65530
65531         Change copyright notice from LGPL 2 to GPL 2, since that's the
65532         standard form used in the gnulib repository.
65533         * lib/lock.c: LGPL -> GPL.
65534         * lib/lock.h: Likewise.
65535         * lib/strnlen1.c: Likewise.
65536         * lib/strnlen1.h: Likewise.
65537         * lib/tls.c: Likewise.
65538         * lib/tls.h: Likewise.
65539         * lib/tmpdir.c: Likewise.
65540
65541         * lib/TODO: Remove; this belongs only in coreutils.
65542
65543 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65544
65545         Add copyright notices to long-enough files that lack them, since
65546         otherwise the files aren't clearly free.  Use the same notice that
65547         getdate.texi already uses.
65548         * doc/alloca-opt.texi: Add copyright notice.
65549         * doc/alloca.texi: Likewise.
65550         * doc/ctime.texi: Likewise.
65551         * doc/functions.texi: Likewise.
65552         * doc/gcd.texi: Likewise.
65553         * doc/gnulib-tool.texi: Likewise.
65554         * doc/inet_ntoa.texi: Likewise.
65555         * doc/visibility.texi: Likewise.
65556
65557         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
65558         * doc/quote.texi: Add copyright notice.
65559
65560         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
65561         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
65562         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
65563         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
65564         is now obsolete, and give a pointer to the Sun list.
65565         Add copyright notice.
65566
65567 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65568
65569         * config/srclistvars.sh: Add copyright notice.
65570
65571 2006-08-14  Eric Blake  <ebb9@byu.net>
65572
65573         Import the following change from libc:
65574
65575         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
65576
65577         Upstream bug 2997.
65578         * lib/misc/error.c: Add space between program name and message if file
65579         name is missing.
65580
65581 2006-08-12  Karl Berry  <karl@gnu.org>
65582
65583         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
65584         remove, these originate in gnulib now.
65585
65586 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65587
65588         * doc/Makefile (standards.info standards.html standards.dvi):
65589         Also depend on make-stds.texi.
65590
65591 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65592
65593         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
65594         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
65595
65596         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
65597         in wchar_t.  Problem reported by Eric Blake.
65598
65599         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
65600         LEN is smaller than SIZE.  Suggested by Bruno Haible.
65601         Also, help the compiler to keep LEN in a register.
65602
65603 2006-08-11  Eric Blake  <ebb9@byu.net>
65604
65605         * users.txt: Sort.  Add tar.
65606
65607 2006-08-11  Bruno Haible  <bruno@clisp.org>
65608
65609         * users.txt: New file.
65610
65611 2006-08-11  Bruno Haible  <bruno@clisp.org>
65612
65613         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
65614         before <wchar.h>. Needed for OSF/1 and BSD/OS.
65615
65616 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65617
65618         * modules/snprintf (Depends-on): Remove minmax.
65619         (Maintainer): Add self and Bruno.
65620
65621 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65622
65623         * lib/.cppi-disable: Add snprintf.h, socket_.h.
65624         * lib/snprintf.c: Include <errno.h> and <limits.h>.
65625         (EOVERFLOW): Define if the system does not.
65626         Do not include "minmax.h"; it wasn't used.
65627         (snprintf): Don't assume size_t promotes to an unsigned type.
65628         Fix bug when generated string was too long for the buffer: the
65629         buffer's contents are supposed to be the initial prefix of the
65630         output.  Don't assume vasnprintf returns EOVERFLOW if the size
65631         exceeds INT_MAX; do the check ourselves.
65632
65633         Import the following changes from libc:
65634
65635         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
65636
65637         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
65638         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
65639         set wc to the byte which couldn't be converted.
65640         (re_string_reconstruct): Don't clear valid_raw_len before calling
65641         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
65642         tip_context using re_string_context_at.
65643
65644         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
65645
65646         * lib/posix/regex.h: g++ still cannot handled [restrict].
65647
65648         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
65649
65650         * lib/posix/regex.h: Remove special handling for VMS.
65651
65652 2006-08-10  Jim Meyering  <jim@meyering.net>
65653
65654         * modules/same-inode: New module.
65655         * modules/dev-ino: New module.
65656         * modules/cycle-check: Depend on these modules, rather than simply
65657         including their .h files.
65658         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
65659         required via m4/cycle-check.m4.
65660         * modules/same: Depend on new same-inode module, rather than
65661         including same-inode.h.
65662         * modules/chdir-safer: New file.
65663
65664         * modules/chown (Depends-on): Add stat-macros.
65665
65666 2006-08-10  Jim Meyering  <jim@meyering.net>
65667
65668         * m4/cycle-check.m4: New file.
65669         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
65670         * m4/dev-ino.m4, m4/same-inode.m4: New files.
65671
65672 2006-08-10  Eric Blake  <ebb9@byu.net>
65673
65674         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
65675         in from original proposal.
65676
65677 2006-08-10  Eric Blake  <ebb9@byu.net>
65678         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65679
65680         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
65681         namespace.
65682
65683 2006-08-10  Bruno Haible  <bruno@clisp.org>
65684
65685         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
65686         as well.
65687
65688 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65689
65690         Sync from coreutils.
65691
65692         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
65693
65694         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
65695         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
65696
65697 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65698
65699         * modules/restrict: Remove; no longer needed now that we assume
65700         Autoconf 2.59 or later.
65701         * MODULES.html.sh: Remove 'restrict'.
65702         * modules/argp (Depends-on): Remove 'restrict'.
65703         * modules/base64 (Depends-on): Likewise.
65704         * modules/gc (Depends-on): Likewise.
65705         * modules/getaddrinfo (Depends-on): Likewise.
65706         * modules/glob (Depends-on): Likewise.
65707         * modules/inet_ntop (Depends-on): Likewise.
65708         * modules/inet_pton (Depends-on): Likewise.
65709         * modules/memxor (Depends-on): Likewise.
65710         * modules/regex (Depends-on): Likewise.
65711         * modules/strtok_r (Depends-on): Likewise.
65712         * modules/time_r (Depends-on): Likewise.
65713
65714 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65715
65716         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
65717         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
65718         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65719         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
65720         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
65721         * m4/memxor.m4 (gl_MEMXOR): Likewise.
65722         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
65723         gl_C_RESTRICT replaced by AC_C_RESTRICT.
65724
65725         Merge from coreutils.
65726         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
65727         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
65728         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65729         * m4/time_r.m4 (gl_TIME_R): Likewise.
65730
65731 2006-08-09  Karl Berry  <karl@gnu.org>
65732
65733         * config/srclist.txt: no more gettext-tools, per Bruno.
65734
65735 2006-08-08  Eric Blake  <ebb9@byu.net>
65736
65737         * modules/verror: New module.
65738         * MODULES.html.sh: Document it.
65739
65740 2006-08-08  Eric Blake  <ebb9@byu.net>
65741
65742         * lib/verror.h, lib/verror.c: New files.
65743
65744 2006-08-08  Eric Blake  <ebb9@byu.net>
65745
65746         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
65747         verror_at_line output complies with GNU Coding Standards even when
65748         file is NULL.
65749
65750 2006-08-07  Bruno Haible  <bruno@clisp.org>
65751
65752         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
65753         versions of AIX.
65754         Reported by Ralf Wildenhues.
65755
65756 2006-08-07  Bruno Haible  <bruno@clisp.org>
65757
65758         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
65759         in an AC_DEFUN. Needed so that the autoconf snippets can use
65760         AC_REQUIRE.
65761
65762 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65763
65764         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65765         Initialize pkgdata_DATA.
65766         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
65767         overriding it.
65768
65769 2006-08-06  Eric Blake  <ebb9@byu.net>
65770
65771         * lib/error.h: Fold in some upstream changes from glibc.
65772         * lib/error.c: Likewise.
65773
65774 2006-08-04  Bruno Haible  <bruno@clisp.org>
65775
65776         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65777         Make the mostlyclean-local rule depend on mostlyclean-generic.
65778         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
65779
65780 2006-07-31  Bruno Haible  <bruno@clisp.org>
65781
65782         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
65783         <stdlib.h>, <string.h>.
65784
65785 2006-07-30  Bruno Haible  <bruno@clisp.org>
65786
65787         * modules/readlink (License): Change to LGPL.
65788
65789 2006-07-30  Bruno Haible  <bruno@clisp.org>
65790
65791         * modules/javaversion (Makefile.am): Distribute javaversion.java and
65792         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
65793         set PKGDATADIR to point to it.
65794
65795 2006-07-30  Bruno Haible  <bruno@clisp.org>
65796
65797         * modules/csharpexec (configure.ac): Comment out macro invocation.
65798         * modules/javaexec (configure.ac): Likewise.
65799         * modules/javacomp-script (configure.ac): Likewise.
65800
65801         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
65802
65803 2006-07-30  Bruno Haible  <bruno@clisp.org>
65804
65805         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
65806         linked-list.
65807
65808 2006-07-30  Bruno Haible  <bruno@clisp.org>
65809
65810         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
65811
65812 2006-07-30  Bruno Haible  <bruno@clisp.org>
65813
65814         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65815         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
65816         get removed.
65817
65818 2006-07-29  Bruno Haible  <bruno@clisp.org>
65819
65820         Make it possible for gnulib-tool to work with locally modified or
65821         augmented gnulib repositories.
65822         * gnulib-tool (func_usage): Document --local-dir option.
65823         (local_gnulib_dir): New variable.
65824         Handle --local-dir option.
65825         (func_lookup_file): New function.
65826         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
65827         (func_get_description, func_get_filelist, func_get_description,
65828         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
65829         func_get_automake_snippet, func_get_include_directive,
65830         func_get_license, func_get_maintainer): Use func_lookup_file.
65831         (func_import, func_create_testdir): Use func_lookup_file.
65832
65833 2006-07-29  Bruno Haible  <bruno@clisp.org>
65834
65835         * modules/setenv (Depends-on): Add unistd.
65836
65837 2006-07-29  Bruno Haible  <bruno@clisp.org>
65838
65839         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
65840
65841 2006-07-29  Bruno Haible  <bruno@clisp.org>
65842
65843         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
65844
65845 2006-07-29  Bruno Haible  <bruno@clisp.org>
65846
65847         * gnulib-tool (import, update): If there is no Makefile.am, look at
65848         aclocal.m4, instead of bailing out.
65849
65850 2006-07-29  Bruno Haible  <bruno@clisp.org>
65851
65852         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
65853         Categorize the options by when they are useful.
65854
65855 2006-07-29  Bruno Haible  <bruno@clisp.org>
65856
65857         * gnulib-tool (func_usage): Document option --no-libtool.
65858         Handle option --no-libtool.
65859         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
65860         for changed semantics of $libtool variable.
65861         (func_import): Likewise. If libtool is not used, show this through
65862         an option --no-libtool.
65863         (func_create_testdir): Update.
65864
65865 2006-07-29  Bruno Haible  <bruno@clisp.org>
65866
65867         * gnulib-tool (func_import): Extend error message about missing
65868         --doc-base.
65869
65870 2006-07-29  Bruno Haible  <bruno@clisp.org>
65871
65872         * gnulib-tool (func_import): Don't create the $docbase directory if
65873         there is no file to store there.
65874
65875 2006-07-29  Bruno Haible  <bruno@clisp.org>
65876
65877         * gnulib-tool (autoconf_minversion): If a --dir option is given and
65878         relevant, look for configure.ac there, not in the current directory.
65879         Also use a simple search for AC_PREREQ, not "autoconf --trace".
65880
65881 2006-07-29  Bruno Haible  <bruno@clisp.org>
65882
65883         * gnulib-tool (SORT): New variable.
65884         (func_usage): Undocument --assume-autoconf option.
65885         Remove --assume-autoconf option handling.
65886         (autoconf_minversion): Determine from the contents of configure.ac.
65887         (func_import): Remove autoconf_minversion handling.
65888         Suggested by Eric Blake.
65889
65890 2006-07-29  Bruno Haible  <bruno@clisp.org>
65891
65892         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
65893
65894 2006-07-29  Bruno Haible  <bruno@clisp.org>
65895
65896         * config/srclist.txt (*setenv.[ch]): Remove rules.
65897
65898 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65899
65900         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
65901
65902 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65903
65904         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
65905         arpa/inet.h.
65906
65907 2006-07-28  Simon Josefsson  <jas@extundo.com>
65908
65909         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
65910         * modules/inet_pton (Depends-on): Likewise.
65911
65912 2006-07-28  Simon Josefsson  <jas@extundo.com>
65913
65914         * m4/netinet_in_h.m4: New file.
65915
65916 2006-07-28  Simon Josefsson  <jas@extundo.com>
65917
65918         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
65919         #include's.
65920
65921 2006-07-28  Simon Josefsson  <jas@extundo.com>
65922
65923         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
65924         #include's.
65925
65926 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
65927
65928         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
65929         setgid on directories only if they set these bits.
65930         * lib/modechange.h: Remove obsolete comment about masks.
65931
65932 2006-07-28  Eric Blake  <ebb9@byu.net>
65933
65934         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
65935         macro expansion.
65936
65937 2006-07-28  Bruno Haible  <bruno@clisp.org>
65938
65939         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
65940
65941 2006-07-28  Bruno Haible  <bruno@clisp.org>
65942
65943         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
65944
65945 2006-07-28  Bruno Haible  <bruno@clisp.org>
65946
65947         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
65948         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
65949         Define fallbacks.
65950         Avoids link error on FreeBSD 4.x.
65951         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65952
65953         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
65954         encoding.
65955         * lib/mbswidth.c (iswcntrl): Likewise.
65956
65957 2006-07-27  Bruno Haible  <bruno@clisp.org>
65958
65959         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
65960         test.
65961
65962 2006-07-27  Bruno Haible  <bruno@clisp.org>
65963
65964         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
65965         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
65966         defined.
65967
65968 2006-07-26  Eric Blake  <ebb9@byu.net>
65969
65970         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
65971
65972 2006-07-26  Eric Blake  <ebb9@byu.net>
65973
65974         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
65975         like mingw that lack mkstemp.
65976         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
65977         avoid compilation warning on mingw.
65978
65979 2006-07-26  Bruno Haible  <bruno@clisp.org>
65980
65981         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
65982         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
65983         INT_FAST*_MIN, INTPTR_MIN.
65984
65985 2006-07-25  Bruno Haible  <bruno@clisp.org>
65986
65987         * modules/version-etc (Depends-on): Add stdarg.
65988
65989 2006-07-25  Bruno Haible  <bruno@clisp.org>
65990
65991         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
65992         complex commands.
65993
65994 2006-07-25  Bruno Haible  <bruno@clisp.org>
65995
65996         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
65997         defined in <stdarg.h> or config.h.
65998
65999 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66000
66001         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66002         (gl_STDIO_SAFER): Remove.
66003
66004 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66005
66006         * MODULES.html.sh (File stream based Input/Output):
66007         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66008         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66009         * modules/fopen-safer, modules/tmpfile-safer: New files.
66010         * modules/stdio-safer: Remove.
66011
66012 2006-07-24  Bruno Haible  <bruno@clisp.org>
66013
66014         * modules/tmpdir: New file.
66015         * MODULES.html.sh (File system functions): Add it.
66016
66017 2006-07-24  Bruno Haible  <bruno@clisp.org>
66018
66019         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66020         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66021
66022 2006-07-24  Bruno Haible  <bruno@clisp.org>
66023
66024         * modules/clean-temp: New file.
66025
66026 2006-07-24  Bruno Haible  <bruno@clisp.org>
66027
66028         * m4/tmpdir.m4: New file, from GNU gettext.
66029
66030 2006-07-24  Bruno Haible  <bruno@clisp.org>
66031
66032         * lib/tmpdir.h: New file, from GNU gettext.
66033         * lib/tmpdir.c: New file, from GNU gettext.
66034
66035 2006-07-24  Bruno Haible  <bruno@clisp.org>
66036
66037         * lib/clean-temp.h: New file, from GNU gettext.
66038         * lib/clean-temp.c: New file, from GNU gettext.
66039
66040 2006-07-23  Eric Blake  <ebb9@byu.net>
66041
66042         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66043         (Depends-on): Add binary-io.
66044
66045 2006-07-23  Eric Blake  <ebb9@byu.net>
66046
66047         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66048
66049 2006-07-23  Eric Blake  <ebb9@byu.net>
66050
66051         * lib/tmpfile-safer.c: New file.
66052         * lib/stdio-safer.h (fopen_safer): Add prototype.
66053         * lib/stdio--.h (tmpfile): Make safer.
66054
66055 2006-07-23  Bruno Haible  <bruno@clisp.org>
66056
66057         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66058         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66059         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66060         gl_linked_remove_at): Use it.
66061
66062 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66063         and Simon Josefsson <jas@extundo.com>
66064
66065         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66066
66067         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66068
66069 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66070
66071         * modules/close-stream: New file.
66072         * modules/closeout (Description): Make it clear that it exits
66073         with a diagnostic on error.
66074         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66075         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66076
66077 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66078
66079         * m4/close-stream.m4: New file.
66080
66081 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66082
66083         * lib/close-stream.c, lib/close-stream.h: New files.
66084
66085 2006-07-22  Bruno Haible  <bruno@clisp.org>
66086
66087         Merge from GNU gettext 0.15.
66088
66089         2006-05-01  Bruno Haible  <bruno@clisp.org>
66090
66091                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66092
66093         2006-07-22  Bruno Haible  <bruno@clisp.org>
66094
66095                 * modules/javaversion: New file.
66096                 * MODULES.html.sh (Java): Add javaversion.
66097
66098         2006-03-12  Bruno Haible  <bruno@clisp.org>
66099
66100                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66101
66102         2005-12-04  Bruno Haible  <bruno@clisp.org>
66103
66104                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66105                 (untested).
66106
66107         2006-06-21  Bruno Haible  <bruno@clisp.org>
66108
66109                 Avoid warnings from recent versions of mcs.
66110                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66111                 -o, -L, -r any more. Use options documented since mcs-1.0
66112                 instead. Similarly for -g.
66113
66114         2005-12-04  Bruno Haible  <bruno@clisp.org>
66115
66116                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66117                 .resources, not .resource.
66118
66119         2005-07-09  Bruno Haible  <bruno@clisp.org>
66120
66121                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66122                 add a .dll suffix.
66123                 Reported by Mark Junker <mjscod@gmx.de>.
66124
66125         2006-07-22  Bruno Haible  <bruno@clisp.org>
66126
66127                 * modules/gettext: Upgrade to gettext-0.15.
66128                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66129                 m4/visibility.m4.
66130                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66131
66132 2006-07-22  Bruno Haible  <bruno@clisp.org>
66133
66134         Merge from GNU gettext 0.15.
66135
66136         2006-03-25  Bruno Haible  <bruno@clisp.org>
66137
66138                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66139
66140         2006-07-21  Bruno Haible  <bruno@clisp.org>
66141
66142                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66143                 "1.1".
66144
66145         2006-05-09  Bruno Haible  <bruno@clisp.org>
66146
66147                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
66148                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
66149                 for the conftestver execution.
66150
66151         2006-05-01  Bruno Haible  <bruno@clisp.org>
66152
66153                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
66154                 optional target-version argument. Verify that the compiler
66155                 groks source of the specified source-version, or add -source
66156                 option as necessary. Verify that the compiler produces
66157                 bytecode in the specified target-version, or add -target and
66158                 -source options as necessary. Make the result of the test
66159                 available as variable CONF_JAVAC. Also log error output in
66160                 config.log.
66161
66162         2006-03-11  Bruno Haible  <bruno@clisp.org>
66163
66164                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
66165
66166         2006-05-09  Bruno Haible  <bruno@clisp.org>
66167
66168                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
66169                 CLASSPATH_SEPARATOR to a semicolon.
66170
66171         2006-03-12  Bruno Haible  <bruno@clisp.org>
66172
66173                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
66174                 available as variable CONF_JAVA, for subsequent autoconf
66175                 tests. Also log error output in config.log.
66176
66177         2006-07-19  Bruno Haible  <bruno@clisp.org>
66178
66179                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
66180                 that getline works on glibc2 systems. Needed to avoid trouble
66181                 in relocatable.c.
66182                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
66183
66184         2005-12-04  Bruno Haible  <bruno@clisp.org>
66185
66186                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
66187                 launcher (untested).
66188
66189         2005-12-04  Bruno Haible  <bruno@clisp.org>
66190
66191                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
66192
66193         2006-07-22  Bruno Haible  <bruno@clisp.org>
66194
66195                 * gettext.m4: Update from GNU gettext-0.15.
66196                 * nls.m4: Likewise.
66197                 * po.m4: Likewise.
66198                 * inttypes-pri.m4: Likewise.
66199                 * inttypes-h.m4: Renamed from inttypes.m4.
66200                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
66201
66202 2006-07-22  Bruno Haible  <bruno@clisp.org>
66203
66204         Merge from GNU gettext 0.15.
66205
66206         2005-07-05  Bruno Haible  <bruno@clisp.org>
66207
66208                 * printf-args.c (printf_fetchargs): Work around broken
66209                 definition of wint_t on mingw.
66210
66211         2005-02-12  Bruno Haible  <bruno@clisp.org>
66212
66213                 * xallocsa.h: Add extern "C" for C++.
66214
66215         2006-05-17  Bruno Haible  <bruno@clisp.org>
66216
66217                 Cygwin portability.
66218                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
66219
66220         2006-04-30  Bruno Haible  <bruno@clisp.org>
66221
66222                 * progreloc.c: Include <mach-o/dyld.h> if available.
66223                 (find_executable): Use _NSGetExecutablePath when possible.
66224
66225         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66226
66227                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
66228                 function.
66229
66230         2005-12-29  Bruno Haible  <bruno@clisp.org>
66231
66232                 * progreloc.c (set_program_name_and_installdir): Fix
66233                 compilation error.
66234
66235         2005-12-04  Bruno Haible  <bruno@clisp.org>
66236
66237                 Cygwin portability.
66238                 * progreloc.c: Include <windows.h> also on Cygwin.
66239                 (find_executable): Add support for Cygwin.
66240                 (set_program_name_and_installdir): Handle also platforms with
66241                 nonempty EXEEXT.
66242
66243         2006-07-11  Bruno Haible  <bruno@clisp.org>
66244
66245                 * javacomp.c: Fix a comment.
66246                 Reported by Jim Meyering.
66247
66248         2006-04-30  Bruno Haible  <bruno@clisp.org>
66249
66250                 * javacomp.h (compile_java_class): Add source_version,
66251                 target_version arguments.
66252                 * javacomp.c: Rewritten to choose only a compiler that
66253                 respects the specified source_version and target_version.
66254
66255         2006-06-27  Bruno Haible  <bruno@clisp.org>
66256
66257                 Assume correct S_ISDIR macro.
66258                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
66259
66260         2006-07-22  Bruno Haible  <bruno@clisp.org>
66261
66262                 * javaversion.h: New file, from GNU gettext.
66263                 * javaversion.c: New file, from GNU gettext.
66264                 * javaversion.java: New file, from GNU gettext.
66265                 * javaversion.class: New file, from GNU gettext.
66266
66267         2006-05-17  Bruno Haible  <bruno@clisp.org>
66268
66269                 Cygwin portability.
66270                 * javaexec.c (execute_java_class): Test for jview program
66271                 also on Cygwin.
66272
66273         2006-04-09  Bruno Haible  <bruno@clisp.org>
66274
66275                 * fatal-signal.c: Don't include string.h.
66276                 (at_fatal_signal): Use a copying loop instead of memcpy.
66277
66278         2005-12-04  Bruno Haible  <bruno@clisp.org>
66279
66280                 * csharpexec.c: Add support for 'clix' launcher (untested).
66281                 (execute_csharp_using_sscli): New function.
66282                 (execute_csharp_program): Call it.
66283
66284         2006-06-21  Bruno Haible  <bruno@clisp.org>
66285
66286                 Avoid warnings from recent versions of mcs.
66287                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66288                 -o, -L, -r any more. Use options documented since mcs-1.0
66289                 instead. Similarly for -g.
66290
66291         2005-07-09  Bruno Haible  <bruno@clisp.org>
66292
66293                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66294                 add a .dll suffix.
66295                 Reported by Mark Junker <mjscod@gmx.de>.
66296
66297         2006-06-17  Bruno Haible  <bruno@clisp.org>
66298
66299                 * config.charset: Update for NetBSD 3.0.
66300
66301         2006-05-17  Bruno Haible  <bruno@clisp.org>
66302
66303                 Cygwin portability.
66304                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66305
66306         2006-05-16  Bruno Haible  <bruno@clisp.org>
66307
66308                 * localcharset.c [CYGWIN]: Include <windows.h>.
66309                 (get_charset_aliases): For Cygwin, return the same CPxxx
66310                 aliases list as under WIN32.
66311                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
66312                 the environment variables. Fall back to GetACP().
66313
66314         2006-04-05  Bruno Haible  <bruno@clisp.org>
66315
66316                 * config.charset: Update Juan Manuel Guerrero's address.
66317
66318         2005-02-12  Bruno Haible  <bruno@clisp.org>
66319
66320                 * allocsa.h: Add extern "C" for C++.
66321
66322         2005-02-10  Bruno Haible  <bruno@clisp.org>
66323
66324                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
66325                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
66326
66327         2006-07-22  Bruno Haible  <bruno@clisp.org>
66328
66329                 * gettext.h: Update to GNU gettext-0.15.
66330
66331 2006-07-22  Bruno Haible  <bruno@clisp.org>
66332
66333         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
66334         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
66335         lib-prefix.m4, longdouble.m4, ssize_t.m4.
66336
66337 2006-07-21  Eric Blake  <ebb9@byu.net>
66338
66339         * modules/stdlib-safer: New file.
66340         * MODULES.html.sh (File stream based Input/Output): Add
66341         stdlib-safer.
66342
66343 2006-07-21  Eric Blake  <ebb9@byu.net>
66344
66345         * lib/stdlib-safer.h: New file from coreutils, required by
66346         stdlib--.h.
66347
66348 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
66349
66350         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
66351
66352 2006-07-20  Bruno Haible  <bruno@clisp.org>
66353
66354         * gnulib-tool: Recognize new option --assume-autoconf.
66355         (autoconf_minversion): New variable.
66356         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
66357
66358 2006-07-20  Bruno Haible  <bruno@clisp.org>
66359
66360         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
66361
66362 2006-07-19  Derek R. Price  <derek@ximbiot.com>
66363
66364         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
66365         Reindent and repaginate.
66366
66367 2006-07-19  Derek Price  <derek@ximbiot.com>
66368
66369         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
66370         Correct grammar.
66371
66372 2006-07-17  Bruno Haible  <bruno@clisp.org>
66373
66374         * modules/list: New file.
66375         * modules/array-list: New file.
66376         * modules/carray-list, modules/carray-list-tests: New files.
66377         * modules/linked-list, modules/linked-list-tests: New files.
66378         * modules/avltree-list, modules/avltree-list-tests: New files.
66379         * modules/rbtree-list, modules/rbtree-list-tests: New files.
66380         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
66381         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
66382         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
66383         * modules/oset: New file.
66384         * modules/array-oset: New file.
66385         * modules/avltree-oset, modules/avltree-oset-tests: New files.
66386         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
66387         * tests/test-carray_list.c: New file.
66388         * tests/test-linked_list.c: New file.
66389         * tests/test-avltree_list.c: New file.
66390         * tests/test-rbtree_list.c: New file.
66391         * tests/test-linkedhash_list.c: New file.
66392         * tests/test-avltreehash_list.c: New file.
66393         * tests/test-rbtreehash_list.c: New file.
66394         * tests/test-avltree_oset.c: New file.
66395         * tests/test-rbtree_oset.c: New file.
66396         * MODULES.html.sh (Container data structures): New section.
66397
66398 2006-07-17  Bruno Haible  <bruno@clisp.org>
66399
66400         * m4/gl_list.m4: New file.
66401
66402 2006-07-17  Bruno Haible  <bruno@clisp.org>
66403
66404         * lib/gl_list.h: New file.
66405         * lib/gl_list.c: New file.
66406         * lib/gl_array_list.h: New file.
66407         * lib/gl_array_list.c: New file.
66408         * lib/gl_carray_list.h: New file.
66409         * lib/gl_carray_list.c: New file.
66410         * lib/gl_linked_list.h: New file.
66411         * lib/gl_linked_list.c: New file.
66412         * lib/gl_anylinked_list1.h: New file.
66413         * lib/gl_anylinked_list2.h: New file.
66414         * lib/gl_avltree_list.h: New file.
66415         * lib/gl_avltree_list.c: New file.
66416         * lib/gl_anyavltree_list1.h: New file.
66417         * lib/gl_anyavltree_list2.h: New file.
66418         * lib/gl_rbtree_list.h: New file.
66419         * lib/gl_rbtree_list.c: New file.
66420         * lib/gl_anyrbtree_list1.h: New file.
66421         * lib/gl_anyrbtree_list2.h: New file.
66422         * lib/gl_anytree_list1.h: New file.
66423         * lib/gl_anytree_list2.h: New file.
66424         * lib/gl_linkedhash_list.h: New file.
66425         * lib/gl_linkedhash_list.c: New file.
66426         * lib/gl_anyhash_list1.h: New file.
66427         * lib/gl_anyhash_list2.h: New file.
66428         * lib/gl_avltreehash_list.h: New file.
66429         * lib/gl_avltreehash_list.c: New file.
66430         * lib/gl_rbtreehash_list.h: New file.
66431         * lib/gl_rbtreehash_list.c: New file.
66432         * lib/gl_anytreehash_list1.h: New file.
66433         * lib/gl_anytreehash_list2.h: New file.
66434
66435         * lib/gl_oset.h: New file.
66436         * lib/gl_oset.c: New file.
66437         * lib/gl_array_oset.h: New file.
66438         * lib/gl_array_oset.c: New file.
66439         * lib/gl_avltree_oset.h: New file.
66440         * lib/gl_avltree_oset.c: New file.
66441         * lib/gl_rbtree_oset.h: New file.
66442         * lib/gl_rbtree_oset.c: New file.
66443         * lib/gl_anytree_oset.h: New file.
66444
66445 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66446
66447         * m4/mkancesdirs.m4: New file.
66448         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
66449         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
66450         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
66451         it.
66452
66453 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66454
66455         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
66456         * lib/mkancesdirs.h: New files.
66457         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
66458         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
66459         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
66460         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
66461         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
66462         callers changed.  Revamp internals significantly, by not
66463         attempting to create directories that are temporarily more
66464         permissive than the final results.  Do not attempt to use
66465         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
66466         This removes some race conditions, fixes some bugs, and simplifies
66467         things.  Use new dirchownmod function to do owner and mode changes.
66468         * lib/mkdir-p.h: Likewise.
66469         * lib/modechange.c (octal_to_mode): New function.
66470         (struct mode_change): New member mentioned.
66471         (make_node_op_equals): New arg mentioned.  All callers changed.
66472         (mode_compile): Keep track of which mode bits the user has explicitly
66473         mentioned.
66474         (mode_adjust): New arg DIR, so that we implement the X op correctly.
66475         New arg PMODE_BITS, to keep track of which mode bits the user
66476         mentioned; it treats S_ISUID and S_ISGID speciall.
66477         All callers changed.
66478         * lib/modechange.h: Likewise.
66479
66480 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66481
66482         * MODULES.html.sh: Add mkancestors.
66483         * modules/mkancesdirs: New module.
66484         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
66485         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
66486         The chdir-safer and afs files are now orphans; I'll remove them
66487         unless someone speaks up.
66488         Add lib/dirchownmod.c, lib/dirchownmod.h.
66489         (Depends-on): Remove alloca, chown, save-cwd, dirname.
66490         Add lchown, mkancesdirs.
66491         (Maintainer): Add self.
66492
66493 2006-07-15  Karl Berry  <karl@gnu.org>
66494
66495         * gnulib-tool: help message wording/arrangement.
66496
66497 2006-07-14  Simon Josefsson  <jas@extundo.com>
66498
66499         * doc/gnulib.texi (Libtool and Windows): New section.
66500
66501 2006-07-12  Simon Josefsson  <jas@extundo.com>
66502
66503         * modules/gendocs (License): Fix license, approved by Karl.
66504
66505 2006-07-12  Eric Blake  <ebb9@byu.net>
66506
66507         * MODULES.html.sh: Add gendocs.
66508
66509 2006-07-11  Eric Blake  <ebb9@byu.net>
66510
66511         * modules/fdl: New module, to install doc/fdl.texi.
66512         * MODULES.html.sh: Add new section for documentation modules.
66513         * gnulib-tool: Avoid space-tab.
66514         (--doc-base): New option, to manage files from doc.
66515
66516 2006-07-11  Eric Blake  <ebb9@byu.net>
66517
66518         * m4/absolute-header.m4: Fix comments to match recent change.
66519
66520 2006-07-11  Eric Blake  <ebb9@byu.net>
66521
66522         * gnulib-tool: List --doc-base before --tests-base.
66523
66524 2006-07-11  Derek R. Price  <derek@ximbiot.com>
66525
66526         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
66527
66528 2006-07-11  Bruno Haible  <bruno@clisp.org>
66529
66530         * README: Mention where to put documentation.
66531
66532 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66533
66534         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
66535
66536 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66537
66538         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
66539         to stdint.m4.
66540
66541 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66542
66543         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
66544         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
66545         "no/such/file/stdint.h" when there is no such file, so that
66546         the resulting C code can be parsed by dodgy compilers.
66547         Problems reported by Bob Proulx.
66548
66549 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66550
66551         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
66552         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66553         macros into the GNU _D_EXACT_NAMLEN.
66554         * lib/savedir.c:  Likewise.
66555         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
66556
66557 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66558         and Paul Eggert  <eggert@cs.ucla.edu>
66559
66560         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
66561         * m4/savedir.m4:
66562         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66563         macros into the GNU _D_EXACT_NAMLEN.
66564
66565 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66566
66567         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
66568         around the absolute name, to work around a problem with the HP-UX
66569         11.23 native C compiler, reported by Bob Proulx.
66570
66571 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66572
66573         * doc/maintain.texi, make-stds.texi: Sync from
66574         <http://savannah.gnu.org/projects/gnustandards>.
66575
66576 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66577
66578         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
66579
66580 2006-07-09  Jim Meyering  <jim@meyering.net>
66581
66582         * m4/glob.m4: Remove a doubled word in a comment.
66583
66584 2006-07-09  Jim Meyering  <jim@meyering.net>
66585
66586         * lib/argp-pv.c: Remove a doubled word in a comment.
66587         * lib/check-version.c (check_version): Likewise.
66588         * lib/javacomp.c (compile_java_class): Likewise.
66589
66590 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66591
66592         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
66593         for the benefit of people using Autoconf 2.60.  If you want to
66594         support older Autoconf versions you can copy m4/onceonly_2_57.m4
66595         (or m4/onceonly.m4, if pre-2.57) manually.
66596
66597 2006-07-08  Jim Meyering  <jim@meyering.net>
66598
66599         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
66600         comment.
66601         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
66602         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
66603         comment.
66604
66605 2006-07-08  Jim Meyering  <jim@meyering.net>
66606
66607         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
66608
66609 2006-07-07  Simon Josefsson  <jas@extundo.com>
66610
66611         * tests/test-crc.c: Change expected crc value, the test vector
66612         were probably computed using the old broken crc.c?
66613
66614 2006-07-06  Simon Josefsson  <jas@extundo.com>
66615
66616         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
66617         now the canonical place for the M4 file).
66618
66619         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
66620         from the sys_socket dependency now.
66621
66622         * modules/inet_pton (Files): Ditto.
66623
66624         * modules/inet_ntop (Files): Ditto.
66625
66626 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66627
66628         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
66629         not gl_PREREQ_GETUSERSHELL.
66630
66631 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66632
66633         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
66634         with only one argument, for Autoconf 2.60.
66635         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
66636         expand to nothing, so add a shell command to avoid syntax error.
66637         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66638
66639 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66640
66641         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
66642
66643 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66644
66645         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
66646         no longer needed.  Check for isblank decl.
66647         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
66648         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
66649         of existence.
66650
66651 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66652
66653         * lib/getloadavg.c: Use __VMS, not VMS.
66654         * lib/getopt.c: Likewise.
66655         * lib/getpagesize.h: Likewise.
66656         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
66657         and probably does not work.
66658
66659 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66660
66661         * lib/.cppi-disable: Add wcwidth.
66662         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
66663         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
66664         (ISGRAPH): Remove.  All uses changed to isgraph.
66665         (FOLD) [!defined _LIBC]: Remove special case.
66666         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
66667         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
66668         HAVE_ISBLANK.
66669         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
66670         case.
66671
66672 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66673
66674         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
66675         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
66676         brackets.  Other minor changes to suppress some compiler
66677         warnings.
66678
66679 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66680         and Paul Eggert  <eggert@cs.ucla.edu>
66681
66682         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
66683         of invoking obsolescent AC_HEADER_DIRENT macro.
66684         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
66685         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
66686         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
66687         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
66688         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
66689         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66690         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
66691         * m4/readdir.m4: Remove; no longer needed.
66692
66693 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66694         and Paul Eggert  <eggert@cs.ucla.edu>
66695
66696         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
66697         Don't worry about this obsolete case any more.
66698         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
66699         directories.
66700         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
66701         worry about this obsolete case any more.
66702         * lib/fts.c: Likewise.
66703         * lib/getcwd.c: Likewise.
66704         * lib/glob.h: Likewise.
66705         * lib/savedir.c: Likewise.
66706
66707 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66708
66709         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
66710         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
66711         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
66712         needed.
66713         All uses removed.
66714         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66715         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66716         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
66717         needed.
66718         * m4/getdate.m4 (gl_GETDATE): Likewise.
66719         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66720         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66721         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66722         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66723         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66724         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66725         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
66726         needed.
66727
66728 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66729
66730         * lib/memcasecmp.c: Include <limits.h>.
66731         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
66732         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
66733         Don't assume isdigit succeeds only on '0' through '9'.
66734
66735 2006-07-05  Eric Blake  <ebb9@byu.net>
66736
66737         * modules/getaddrinfo (Depends-on): Add snprintf.
66738
66739 2006-07-05  Eric Blake  <ebb9@byu.net>
66740
66741         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
66742         to avoid 'header present but could not be compiled' on cygwin.
66743
66744 2006-07-05  Eric Blake  <ebb9@byu.net>
66745
66746         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
66747         missing from netdb.h.
66748         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
66749
66750 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66751
66752         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
66753         no longer needed.
66754         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
66755         * m4/getdate.m4 (gl_GETDATE): Likewise.
66756         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66757         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66758         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66759         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66760         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66761
66762 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66763
66764         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
66765         All uses of is_space replaced by isspace.
66766         * lib/exit.h: Don't talk about STDC_HEADERS.
66767         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
66768         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
66769         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
66770         replaced by isprint etc.
66771         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
66772         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
66773         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
66774         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
66775         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
66776         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
66777
66778 2006-07-05  Bruno Haible  <bruno@clisp.org>
66779
66780         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
66781         the function exists, before testing against AIX.
66782         Reported by Martin Lambers <marlam@marlam.de>.
66783
66784 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
66785
66786         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
66787         From Mark D. Baushke.
66788
66789 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
66790
66791         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
66792         to the absolute name, not just one, to bypass Sun C 5.8's
66793         "warning: #include of /usr/include/... may be non-portable".
66794
66795 2006-07-04  Eric Blake  <ebb9@byu.net>
66796
66797         * modules/dirname-tests: New test module.
66798         * tests/test-dirname.c: New file, replacing dirname.c
66799         TEST_DIRNAME section that was recently deleted.
66800
66801 2006-07-04  Bruno Haible  <bruno@clisp.org>
66802
66803         Assume ANSI C header files and <ctype.h> functions.
66804         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
66805         (mbsnwidth): Use isprint, iscntrl instead.
66806
66807 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66808
66809         Merge from coreutils.
66810         * MODULES.html.sh: Add xstrtold.
66811         * modules/xstrtold: New file.
66812         * modules/cycle-check (Files): Add lib/same-inode.h.
66813         * modules/dirname (Files): Add m4/double-slash-root.m4.
66814         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
66815         * modules/mkdir-p (Files): Add lib/same-inode.h.
66816         * modules/same (Files): Add lib/same-inode.h.
66817
66818 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66819
66820         * m4/absolute-header.m4: Renamed from full-header-path.m4.
66821         This is to keep the terminology clean; POSIX talks about
66822         "absolute pathnames", not "full pathnames", but the GNU
66823         Coding Standards say to use "path" for something else;
66824         so use "absolute" to keep both sides happy.
66825         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
66826         Set gl_absolute_header, not gl_full_header_path.
66827         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
66828         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
66829         All uses changed.
66830
66831         Merge from coreutils.
66832
66833         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
66834
66835         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
66836         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
66837         want to require the building of c-strtod.o.
66838         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
66839         needs -lm directly.
66840         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
66841
66842         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66843
66844         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
66845         --as-needed option if available.  Problem reported by Albert Chin in
66846         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
66847         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
66848         cc merely issues a bunch of annoying warnings for --as-needed
66849         (this problem was reported by Bob Proulx).  Also, try linking with
66850         -lm to detect a bug in binutils 2.16 (this problem was reported
66851         by Ralf Wildenhues).
66852
66853         2006-06-18  Jim Meyering  <jim@meyering.net>
66854
66855         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
66856         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
66857         macro.
66858         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
66859         also check for glibc-2.4's abort-inducing bug.
66860
66861         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
66862         Low-probability clean-up should be to use rmdir to get rid of
66863         the just-created directory, not unlink.
66864
66865         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
66866         configure fail, and request a bug report to inform us about it.
66867         Add a comment that, barring reports to the contrary, in 2007 we'll
66868         assume ftruncate is universally available.
66869
66870         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
66871
66872         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
66873
66874         2006-03-12  Jim Meyering  <jim@meyering.net>
66875
66876         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
66877         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
66878         * m4/same.m4 (gl_SAME): Likewise.
66879         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
66880
66881         2006-03-11  Eric Blake  <ebb9@byu.net>
66882
66883         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
66884         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
66885         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
66886         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
66887
66888 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66889
66890         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
66891         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
66892         reported by Mark D. Baushke, one in
66893         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
66894
66895         Merge from coreutils.
66896
66897         * lib/.cppi-disable: Add stdint_.h.
66898         * lib/.cvsignore: Add stdint.h.
66899
66900         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
66901
66902         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
66903         both double and long double versions.
66904         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
66905         * lib/xstrtold.c: New file.
66906         * lib/xstrtod.h (xstrtold): New decl.
66907
66908         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66909
66910         * lib/filemode.c (setst): Remove.
66911         (strmode): Rewrite to avoid setst.  This makes the code shorter,
66912         (arguably) clearer, and the generated code is a bit smaller on my
66913         Debian GNU/Linux stable x86 host.
66914
66915         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
66916
66917         * lib/filemode.c: Include "filemode.h" first, to test the interface.
66918         Assume that filemode.h includes sys/types.h and sys/stat.h.
66919         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
66920         (ftypelet): Reorder to put common cases first, for efficiency.
66921         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
66922         to do 'M'.
66923         (strmode): Renamed from mode_string, and now stores 12 bytes instead
66924         of 10, for compatibility with FreeBSD.  All callers changed.
66925         (filemodestring): Now stores 12 bytes instead of 10, and sets file
66926         types that can't be deduced solely from st_mode.  First arg is now a
66927         const pointer.
66928         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
66929         (strmode): Renamed from mode_string.
66930         (filemodestring): New decl.
66931         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
66932         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
66933         needed.
66934         (S_ISPORT, S_ISWHT): New macros, if not already defined.
66935
66936         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66937
66938         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
66939         fsusage.h now does that.  Include fsusage.h first, to test interface.
66940         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
66941         at most one method (the old code could have generated decls that
66942         didn't conform to C89, not that this was ever exercised).
66943         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
66944
66945         2006-03-19  Jim Meyering  <jim@meyering.net>
66946
66947         Work even in a chroot where d_ino values for entries in "/"
66948         don't match the stat.st_ino values for the same names.
66949         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
66950         number, iterate through all entries again, using lstat instead.
66951         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
66952         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
66953
66954         * lib/getcwd.c (__getcwd): Clarify a comment.
66955         Use memcpy in place of a call to strcpy.
66956
66957         2006-03-12  Jim Meyering  <jim@meyering.net>
66958
66959         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
66960         matches that of the current directory (which we're about to chdir ".."
66961         out of), then save the dev-ino of the parent, instead.
66962
66963         * lib/same-inode.h (SAME_INODE): New file/macro.
66964         * lib/chdir-safer.c (SAME_INODE): Remove definition.
66965         Include "same-inode.h", instead.
66966         * lib/same.c: Likewise.
66967         * lib/cycle-check.h: Include "same-inode.h".
66968         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
66969         * lib/cycle-check.c (SAME_INODE): Remove definition.
66970         * lib/root-dev-ino.h: Include "same-inode.h".
66971
66972         2006-03-11  Eric Blake  <ebb9@byu.net>
66973
66974         * lib/same.c (same_name): s/base_name/last_component/
66975         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
66976         * lib/filenamecat.c (file_name_concat): Likewise.
66977
66978         2006-03-11  Eric Blake  <ebb9@byu.net>,
66979                     Paul Eggert  <eggert@cs.ucla.edu>
66980
66981         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
66982         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
66983         drive prefix.
66984         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
66985         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
66986         (last_component): New method.
66987         * lib/dirname.c (dir_len): Determine when drive letters need a
66988         subsequent slash.  Preserve // when it is special.
66989         (dir_name): Don't append dot when drive letter is absolute.
66990         [TEST_DIRNAME]: Move into a full-blown gnulib test.
66991         * lib/basename.c (base_name): New semantics - malloc the result.
66992         Preserve // when it is special.  Preserve relative files that look
66993         like drive letters.
66994         (base_len): Preserve // when it is special.
66995         (last_component): New method, similar to old base_name semantics.
66996         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
66997         base_name.  Strip redundant slashes from ///.
66998
66999 2006-07-03  Jim Meyering  <jim@meyering.net>
67000
67001         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67002         macro is used before the first cycle_check call.
67003
67004 2006-07-03  Eric Blake  <ebb9@byu.net>
67005
67006         * modules/dirname (Depends-on): Add xstrndup.
67007
67008 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67009
67010         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67011         test cases, so that config.log is a bit easier to follow.
67012
67013 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67014
67015         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67016         both are 64 bits, since this seems to be the tradition, and this
67017         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67018         we ever run into a host that prefers long long to long in this
67019         case, we'll need another configure-time test.  Problem reported by
67020         Jim Meyering.
67021
67022 2006-07-02  Eric Blake  <ebb9@byu.net>
67023
67024         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67025
67026 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67027
67028         * modules/inttypes (Depends-on): No longer depends on stdint.
67029         * modules/stdint (Description): Say more about assumptions.
67030         Say that the fast types might differ.  Say macros are used.
67031         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67032         (Makefile.am): Revise list of substituted symbols to match
67033         new stdint.m4.
67034         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67035         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67036         * tests/test-stdint.c (verify_same_types)
67037         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67038         the code conforms to C99/C89.
67039         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67040         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67041
67042 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67043
67044         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67045         but fix a bug, by requiring at least 64 bits.
67046         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67047         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67048         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67049         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67050
67051         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67052         changes.  Make 2.59 a prerequisite.  Check and substitute for
67053         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67054         inttypes.h.  Do not use special include files; just use the
67055         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67056         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67057         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67058         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67059         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67060         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67061         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67062         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67063         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67064         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67065         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67066         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67067         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67068         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67069         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67070         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67071         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67072         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67073         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67074         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67075         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67076         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67077         not check for things that C99 does not require, e.g., int8_t.  If
67078         a test isn't needed unless <stdint.h> isn't working, and is
67079         unlikely to be needed for any other reason, then don't do it
67080         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67081         size_t, since we assume C89 freestanding at least.  Do not check
67082         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67083         the right thing even if the types are not defined.  Instead use:
67084         (gl_STDINT_TYPE_PROPERTIES): New macro.
67085         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67086         testing whether <sys/types.h> clashes, as Autoconf does this for
67087         us now.  All uses removed.
67088         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67089         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67090         (gl_CHECK_TYPE_SAME):
67091         Remove; no longer needed.
67092         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67093         exists, since we'll return 0 anyway in that case.
67094         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67095
67096 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67097
67098         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67099         possible collision with system files.
67100         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67101         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67102         WCHAR_MIN and WCHAR_MAX in this case.
67103         (<stddef.h>): Do not include; no longer needed.
67104         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67105         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67106         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67107         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67108         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67109         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67110         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67111         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67112         !defined(__c99))]: Include in this case too, since it's harmless
67113         now.
67114         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67115         dangerous to do so.
67116         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67117         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67118         (_STDINT_MIN, _STDINT_MAX): New macros.
67119         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67120         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67121         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67122         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67123         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67124         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67125         macros, not typedefs; this simplifies things quite a bit.
67126         Use long int for all types narrower than int64_t.
67127         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67128         Define in terms of long long int or int64_t or long int,
67129         not int64_t or int32_t.  This saves some compile-time testing.
67130         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67131         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67132         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67133         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67134         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67135         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67136         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67137         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67138         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67139         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67140         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67141         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67142         undef any previous version and define our own version, for
67143         simplicity and consistency with the new macros for types.
67144         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67145         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67146         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
67147         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
67148         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
67149         @WINT_T_SUFFIX@ to keep things simple here.
67150         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
67151         Simplify by assuming typical 8/16/32/64 host, since we're
67152         already doing that elsewhere anyway.
67153         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
67154         and assume long long int is 64 bits if available.  This
67155         speeds up 'configure'.
67156
67157 2006-07-01  Eric Blake  <ebb9@byu.net>
67158
67159         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
67160         Reported by Andreas Buening.
67161
67162 2006-07-01  Eric Blake  <ebb9@byu.net>
67163
67164         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
67165
67166 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67167
67168         * lib/getaddrinfo.c: fixed typo
67169
67170 2006-06-29  Jim Meyering  <jim@meyering.net>
67171
67172         * modules/strftime (Maintainer): Add my name, since with the
67173         FPRINTFTIME changes strftime.c has forked from glibc.
67174
67175 2006-06-29  Eric Blake  <ebb9@byu.net>
67176
67177         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
67178
67179 2006-06-29  Eric Blake  <ebb9@byu.net>
67180
67181         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
67182
67183 2006-06-29  Eric Blake  <ebb9@byu.net>
67184
67185         * lib/stat_.h: New file.
67186
67187 2006-06-29  Eric Blake  <ebb9@byu.net>
67188
67189         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
67190         unused static function.
67191
67192 2006-06-29  Eric Blake  <ebb9@byu.net>
67193
67194         * doc/functions.texi (Function Portability): Document missing lstat
67195         on mingw.
67196
67197 2006-06-29  Eric Blake  <ebb9@byu.net>
67198
67199         * MODULES.html.sh: Add sys_stat.
67200         * modules/sys_stat: New module.
67201         * modules/mkstemp (Depends-on): Add sys_stat.
67202
67203 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67204
67205         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
67206
67207 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67208
67209         * m4/c-bs-a.m4: Removed.
67210
67211 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67212
67213         * lib/strftime.c: Assume strftime() exists.
67214
67215 2006-06-29  Derek Price  <derek@ximbiot.com>
67216
67217         * modules/c-bs-a: Removed - \a is C89.
67218         * MODULES.html.sh: Remove c-bs-a.
67219
67220 2006-06-29  Bruno Haible  <bruno@clisp.org>
67221
67222         * modules/wcwidth (License): Change to LGPL.
67223
67224 2006-06-28  Simon Josefsson  <jas@extundo.com>
67225
67226         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
67227         on _WIN32.
67228
67229         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
67230         getnameinfo.
67231
67232 2006-06-28  Simon Josefsson  <jas@extundo.com>
67233
67234         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
67235
67236 2006-06-28  Simon Josefsson  <jas@extundo.com>
67237
67238         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
67239         functions there.  It will succeed on Windows XP, but on Windows
67240         2000 and (presumably) earlier, it will fail, and use the internal
67241         re-implementation.
67242         (use_win32_p): New function.
67243         (getaddrinfo): Use strtoul on servname, to support numeric ports.
67244         Support AI_NUMERICSERV to disable getservbyname.
67245         (getnameinfo): New function, only supports
67246         NI_NUMERICHOST|NI_NUMERICSERV for now.
67247
67248         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
67249         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
67250         getnameinfo.
67251
67252 2006-06-28  Eric Blake  <ebb9@byu.net>
67253
67254         * modules/wcwidth: New file.
67255         * modules/mbchar (Depends-on): Add wcwidth.
67256         * modules/mbswidth (Depends-on): Add wcwidth.
67257         * MODULES.html.sh: Add wcwidth.
67258
67259 2006-06-28  Eric Blake  <ebb9@byu.net>
67260
67261         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
67262         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
67263
67264 2006-06-28  Eric Blake  <ebb9@byu.net>
67265
67266         * lib/xvasprintf.h: Fix comments.
67267
67268 2006-06-28  Eric Blake  <ebb9@byu.net>
67269
67270         * lib/mbchar.h (wcwidth): Include wcwidth.h.
67271         * lib/mbswidth.c (wcwidth): Move from here...
67272         * lib/wcwidth.h: ...to this new file.
67273
67274 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67275
67276         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67277
67278         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67279         it's obsolete.
67280         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67281
67282 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67283
67284         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67285         Autoconf 2.60 says this stuff was obsolete.
67286
67287 2006-06-28  Bruno Haible  <bruno@clisp.org>
67288
67289         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67290
67291 2006-06-28  Bruno Haible  <bruno@clisp.org>
67292
67293         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67294         gt_TYPE_WCHAR_T.
67295
67296 2006-06-28  Bruno Haible  <bruno@clisp.org>
67297
67298         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67299         declaration for wcwidth.
67300         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67301
67302 2006-06-28  Bruno Haible  <bruno@clisp.org>
67303
67304         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67305         (mkdir): Define using _mkdir.
67306
67307 2006-06-28  Bruno Haible  <bruno@clisp.org>
67308
67309         * lib/getaddrinfo.h: Fix POSIX URL.
67310         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
67311         _WIN32.
67312         (use_win32_p): Make static.
67313         (getaddrinfo): Reject service name if it is empty or does not consist
67314         solely of decimal digits, or if its value is > 65535.
67315         (getnameinfo): Remove useless casts.
67316
67317 2006-06-27  Simon Josefsson  <jas@extundo.com>
67318
67319         * modules/sys_select: New file, suggested by Bruno Haible, Paul
67320         Eggert and Martin Lambers.
67321
67322 2006-06-27  Simon Josefsson  <jas@extundo.com>
67323
67324         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
67325         Eggert and Martin Lambers.
67326
67327 2006-06-27  Bruno Haible  <bruno@clisp.org>
67328
67329         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
67330         result to 0, not to empty.
67331         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
67332
67333 2006-06-27  Bruno Haible  <bruno@clisp.org>
67334
67335         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
67336
67337 2006-06-26  Simon Josefsson  <jas@extundo.com>
67338
67339         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
67340         present.
67341
67342 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
67343
67344         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
67345         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
67346         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
67347
67348 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
67349
67350         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
67351
67352 2006-06-26  Bruno Haible  <bruno@clisp.org>
67353
67354         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
67355
67356 2006-06-26  Bruno Haible  <bruno@clisp.org>
67357
67358         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
67359
67360 2006-06-26  Bruno Haible  <bruno@clisp.org>
67361
67362         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
67363         SGI C compiler in pre-C99 mode.
67364         Suggested by Mark D. Baushke and Larry Jones.
67365
67366 2006-06-26  Bruno Haible  <bruno@clisp.org>
67367
67368         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
67369         WCHAR_MAX.
67370         Reported by Mark D. Baushke and Larry Jones.
67371
67372 2006-06-26  Bruno Haible  <bruno@clisp.org>
67373
67374         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
67375         in pre-C99 mode.
67376         Suggested by Mark D. Baushke and Larry Jones.
67377
67378 2006-06-23  Simon Josefsson  <jas@extundo.com>
67379             Bruno Haible  <bruno@clisp.org>
67380
67381         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
67382         Emit mostlyclean-local rule.
67383         (func_emit_tests_Makefile_am): Likewise.
67384         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
67385
67386 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
67387
67388         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
67389
67390 2006-06-23  Bruno Haible  <bruno@clisp.org>
67391
67392         * tests/test-stdint.c: Update to match ISO C 99 Technical
67393         Corrigendum 1.
67394
67395 2006-06-23  Bruno Haible  <bruno@clisp.org>
67396
67397         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
67398
67399 2006-06-23  Bruno Haible  <bruno@clisp.org>
67400
67401         * lib/stdint_.h: Treat IRIX like OpenBSD.
67402
67403 2006-06-23  Bruno Haible  <bruno@clisp.org>
67404
67405         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
67406         ISO C 99 Technical Corrigendum 1.
67407
67408 2006-06-22  Simon Josefsson  <jas@extundo.com>
67409
67410         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
67411         MinGW.
67412
67413 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67414
67415         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
67416         needed.  Some compiler complained about some of them.  Problem reported
67417         by Larry Jones in
67418         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
67419
67420 2006-06-21  Simon Josefsson  <jas@extundo.com>
67421
67422         * tests/test-getaddrinfo.c: New file.
67423
67424         * modules/getaddrinfo-tests: New file.
67425
67426         * MODULES.html.sh: Add inet_pton.
67427
67428         * modules/inet_pton: New file.
67429
67430 2006-06-21  Simon Josefsson  <jas@extundo.com>
67431
67432         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
67433         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
67434         of using the (limited) gnulib implementation on Windows XP.
67435
67436         * m4/inet_pton.m4: New file.
67437
67438 2006-06-21  Simon Josefsson  <jas@extundo.com>
67439
67440         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
67441         variable.
67442
67443         * lib/socket_.h: Don't define WINVER.
67444
67445         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
67446         slightly modified to work in gnulib.
67447
67448 2006-06-21  Simon Josefsson  <jas@extundo.com>
67449
67450         * doc/gnulib.texi (Windows sockets): Add.
67451
67452 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67453
67454         * lib/read-file.c (fread_file): Start with buffer allocation of
67455         0 bytes rather than 1 byte; this simplifies the code.
67456         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
67457         code to free buffer and save/restore errno.
67458         (internal_read_file): Remove unused local.
67459
67460 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67461
67462         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
67463         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
67464         Problem reported by Denis Excoffier in
67465         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
67466
67467 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67468
67469         * modules/sys_socket, modules/socklen: Include sys/types since
67470         FreeBSD 4.x's sys/socket.h needs it.
67471
67472 2006-06-19  Simon Josefsson  <jas@extundo.com>
67473
67474         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
67475
67476 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67477
67478         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
67479
67480 2006-06-19  Bruno Haible  <bruno@clisp.org>
67481
67482         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
67483         and FULL_PATH_INTTYPES_H in angle brackets.
67484         Reported by Mark D. Baushke <mdb@gnu.org>.
67485
67486 2006-06-17  Eric Blake  <ebb9@byu.net>
67487
67488         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
67489         errno.
67490
67491 2006-06-17  Bruno Haible  <bruno@clisp.org>
67492
67493         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
67494         <sys/inttypes.h>.
67495
67496 2006-06-17  Bruno Haible  <bruno@clisp.org>
67497
67498         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
67499         whether errno is declared. Assume <errno.h> declares errno.
67500
67501 2006-06-17  Bruno Haible  <bruno@clisp.org>
67502
67503         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
67504
67505 2006-06-17  Bruno Haible  <bruno@clisp.org>
67506
67507         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
67508         problem on Solaris 2.5.1.
67509
67510 2006-06-16  Eric Blake  <ebb9@byu.net>
67511
67512         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
67513         * lib/unicodeio.c [!defined errno]: Likewise.
67514         * lib/strtol.c [!defined errno]: Likewise.
67515         * lib/strtod.c [!defined errno]: Likewise.
67516
67517 2006-06-15  Eric Blake  <ebb9@byu.net>
67518
67519         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
67520
67521 2006-06-15  Eric Blake  <ebb9@byu.net>
67522
67523         * config/srclist.txt (ssize_t.m4): Lose sync.
67524
67525 2006-06-15  Bruno Haible  <bruno@clisp.org>
67526
67527         * modules/stdint (Files): Include m4/full-header-path.m4,
67528         m4/size_max.m4, m4/wchar_t.m4.
67529         (Makefile.am): Many more substitutions.
67530         * modules/stdint-tests: New file.
67531         * tests/test-stdint.c: New file.
67532
67533 2006-06-15  Bruno Haible  <bruno@clisp.org>
67534
67535         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
67536         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
67537         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
67538         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
67539         gl_CHECK_TYPE_SAME): New macros.
67540
67541 2006-06-15  Bruno Haible  <bruno@clisp.org>
67542
67543         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
67544
67545 2006-06-15  Bruno Haible  <bruno@clisp.org>
67546
67547         * lib/stdint_.h: Rewritten to be fully auto-configured.
67548         Fixes bug on HP-UX/IA64.
67549
67550 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
67551
67552         * lib/getdate.y (__attribute__): Don't define if already defined.
67553         Problem reported by Larry Jones.
67554         * lib/utimens.c (__attribute__): Likewise.
67555
67556 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
67557
67558         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
67559         reported by Andreas Schwab.
67560
67561 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67562             Bruno Haible  <bruno@clisp.org>
67563
67564         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
67565         check for the declaration of strnlen and a run test that exposes the
67566         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
67567         rpl_strndup.
67568
67569 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67570             Bruno Haible  <bruno@clisp.org>
67571
67572         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
67573
67574 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67575
67576         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
67577         compile test, for Tru64 4.0D.
67578
67579 2006-05-28  Karl Berry  <karl@gnu.org>
67580
67581         * config/srclist.txt (printf-args.c): lose sync.
67582
67583 2006-05-26  Martin Lambers  <marlam@marlam.de>
67584
67585         * lib/getpass.c: Updates the test for the native W32 API, and adds
67586         missing includes, thus fixing compilation warnings.
67587
67588 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67589
67590         * lib/exclude.c (exclude_fnmatch): New function.
67591         (excluded_file_name): Call exclude_fnmatch.
67592         * lib/exclude.h (excluded_file_name): New prototype
67593
67594 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
67595
67596         * lib/tempname.c (small_open, large_open): New macros.
67597         (__open, __open64) [!_LIBC]: Remove.
67598         (__gen_tempname): Use small_open and large_open instead of __open
67599         and __open64.  This fixes a portability bug on HP-UX 11.11i
67600         reported by Simon Wing-Tang in
67601         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
67602
67603 2006-05-24  Bruno Haible  <bruno@clisp.org>
67604
67605         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
67606         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
67607         Reported by Thorsten Maerz <torte@netztorte.de> via
67608         Aaron Stone <aaron@serendipity.cx>.
67609
67610 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67611
67612         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
67613         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
67614         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
67615         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
67616         not really conditional on the cache.
67617         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
67618
67619 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67620
67621         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
67622         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
67623         (my_usleep): Don't mishandle maximum value.
67624
67625 2006-05-19  Jim Meyering  <jim@meyering.net>
67626
67627         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
67628
67629 2006-05-17  Bruno Haible  <bruno@clisp.org>
67630
67631         Cygwin portability.
67632         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
67633
67634 2006-05-17  Bruno Haible  <bruno@clisp.org>
67635
67636         * lib/stdint_.h: Fix recognition of Cygwin.
67637
67638 2006-05-15  Bruno Haible  <bruno@clisp.org>
67639
67640         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
67641         on libtool patch by Ralf Wildenhues.
67642
67643 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67644
67645         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
67646         test for C99 conformance; (bool) 0.5 is an integer constant
67647         expression, but (bool) -0.5 is not.  Problem reported by Fedor
67648         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
67649
67650 2006-05-11  Simon Josefsson  <jas@extundo.com>
67651
67652         * m4/xvasprintf.m4: Fix obvious typo.
67653
67654 2006-05-11  Jim Meyering  <jim@meyering.net>
67655
67656         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
67657         James Lemley.
67658
67659 2006-05-10  Simon Josefsson  <jas@extundo.com>
67660
67661         * lib/md4.c: Typo fix, update copyright years.
67662         (K1, K2): Don't use L because it turn computations into 64-bit on
67663         64-bit platforms.
67664
67665 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
67666
67667         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
67668         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
67669         unwanted sign propagation, e.g., on hosts with 64-bit int.
67670         There still are some problems with reeelly weird theoretical hosts
67671         (e.g., 33-bit int) but it's not worth worrying about now.
67672         * lib/sha1.c (rol): Likewise.
67673         (K1, K2, K3, K4): Remove unnecessary L suffix.
67674
67675 2006-05-10  Bruno Haible  <bruno@clisp.org>
67676
67677         * lib/des.c: Cast to avoid warnings.
67678
67679 2006-05-09  Bruno Haible  <bruno@clisp.org>
67680
67681         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
67682         (Depends-on): Depend also on xsize, stdarg.
67683         (configure.ac): Add gl_XVASPRINTF.
67684
67685 2006-05-09  Bruno Haible  <bruno@clisp.org>
67686
67687         * m4/xvasprintf.m4: New file.
67688
67689 2006-05-09  Bruno Haible  <bruno@clisp.org>
67690
67691         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
67692         (EOVERFLOW): Define fallback value.
67693         (xstrcat): New function.
67694         (xvasprintf): Recognize the special case of a string concatenation.
67695
67696 2006-05-08  Eric Blake  <ebb9@byu.net>
67697
67698         * gnulib-tool (func_version): Base copyright year on CVS date.
67699         (func_emit_copyright_notice): New function.
67700         (func_emit_lib_Makefile_am): Use it.
67701         (func_emit_tests_Makefile_am): Likewise.
67702         (func_import): Likewise.
67703
67704 2006-05-08  Bruno Haible  <bruno@clisp.org>
67705
67706         * modules/stdarg: New file.
67707         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
67708
67709 2006-05-08  Bruno Haible  <bruno@clisp.org>
67710
67711         * m4/stdarg.m4: New file, from GNU gettext.
67712
67713 2006-05-08  Bruno Haible  <bruno@clisp.org>
67714
67715         * config/srclist.txt (build-aux/config.rpath): different from latest
67716         release.
67717
67718 2006-05-08  Bruno Haible  <bruno@clisp.org>
67719
67720         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
67721
67722 2006-05-05  Jim Meyering  <jim@meyering.net>
67723
67724         * m4/warning.m4: New file, derived from bison's file by the same name.
67725
67726 2006-05-03  Bruno Haible  <bruno@clisp.org>
67727
67728         * lib/stdint_.h: Shorter URL.
67729         * lib/inttypes.h: Likewise.
67730
67731 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67732
67733         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
67734
67735 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67736
67737         * lib/verify.h: Document the internals better.  Most of this change
67738         was written by Bruno Haible.
67739
67740 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67741
67742         * doc/verify.texi: New file, partly based on a proposal by
67743         Bruno Haible.
67744
67745 2006-05-02  Bruno Haible  <bruno@clisp.org>
67746
67747         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
67748         test from here...
67749         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
67750
67751 2006-04-29  Bruno Haible  <bruno@clisp.org>
67752
67753         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
67754         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
67755
67756 2006-04-29  Bruno Haible  <bruno@clisp.org>
67757
67758         * gnulib-tool: Make --update option actually work.
67759
67760 2006-04-29  Bruno Haible  <bruno@clisp.org>
67761
67762         * doc/gcd.texi: New file.
67763         * doc/gnulib.texi: Include it.
67764
67765 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
67766
67767         * lib/getdate.y (get_date): When adding relative date, start with the
67768         initial time, not with the result of the first mktime call.
67769
67770 2006-04-25  Bruno Haible  <bruno@clisp.org>
67771
67772         * gnulib-tool (func_import): Output the include directives in three
67773         blocks, sorted separately.
67774         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67775
67776 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
67777
67778         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
67779         to define main with arguments, for C++.  Reported by Eric Blake.
67780         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
67781         Prefer 'int main ()' to 'int main (void)', for C++.
67782         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
67783         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
67784         for 'main', for C99 and C++.
67785
67786 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
67787
67788         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
67789         Don't assume that exit status -1 is valid.
67790         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67791         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
67792         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
67793         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
67794         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
67795         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
67796         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
67797         functions can be used without declaring them, or that you can
67798         exit with status -1.
67799         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
67800
67801 2006-04-24  Karl Berry  <karl@gnu.org>
67802
67803         * config/srclist.txt (longdouble.m4): sync lost.
67804
67805 2006-04-24  Eric Blake  <ebb9@byu.net>
67806
67807         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
67808
67809 2006-04-24  Bruno Haible  <bruno@clisp.org>
67810
67811         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
67812         poll() implementation in AIX.
67813         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67814
67815 2006-04-24  Bruno Haible  <bruno@clisp.org>
67816
67817         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
67818         assigned exactly once.
67819
67820 2006-04-23  Claudio Fontana  <claudio@gnu.org>
67821             Bruno Haible  <bruno@clisp.org>
67822
67823         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
67824         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
67825         for AM_CPPFLAGS.
67826
67827 2006-04-23  Bruno Haible  <bruno@clisp.org>
67828
67829         * modules/copy-file: Depend on unistd.
67830         * modules/execute: Likewise.
67831         * modules/fatal-signal: Likewise.
67832         * modules/findprog: Likewise.
67833         * modules/mkdtemp : Likewise.
67834         * modules/pipe: Likewise.
67835         * modules/wait-process: Likewise.
67836
67837 2006-04-23  Bruno Haible  <bruno@clisp.org>
67838
67839         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
67840         condition was already detected.
67841         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67842
67843 2006-04-23  Bruno Haible  <bruno@clisp.org>
67844
67845         * lib/copy-file.c: Include <unistd.h> unconditionally.
67846         * lib/execute.c: Likewise.
67847         * lib/fatal-signal.c: Likewise.
67848         * lib/findprog.c: Likewise.
67849         * lib/mkdtemp.c: Likewise.
67850         * lib/pipe.h: Likewise.
67851         * lib/pipe.c: Likewise.
67852         * lib/wait-process.h: Likewise.
67853
67854 2006-04-23  Bruno Haible  <bruno@clisp.org>
67855
67856         * gnulib-tool (func_usage): Fix --import description. Document
67857         --update.
67858         (func_import): Create temporary file in a temporary directory, if
67859         --dry-run is specified. Silence errors from 'grep' when there are no
67860         m4 files in $m4dir.
67861         (func_create_testdir): Silence errors from 'grep' when there are no
67862         m4 files in $m4dir.
67863         Reported by Karl Berry <karl@freefriends.org>.
67864
67865 2006-04-20  Bruno Haible  <bruno@clisp.org>
67866
67867         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
67868         one argument, so that the code will be portable to Autoconf 2.60.
67869         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
67870         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67871         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
67872
67873 2006-04-19  Derek Price  <derek@ximbiot.com>
67874             Eric Blake  <ebb9@byu.net>
67875
67876         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
67877         rather than "/full/path.h".  Update comment to match.  Shorten &
67878         generalize m4_translit call via AS_TR_CPP.
67879
67880 2006-04-19  Derek Price  <derek@ximbiot.com>
67881             Eric Blake  <ebb9@byu.net>
67882
67883         * lib/inttypes.h: Correct grammar in comment.
67884
67885 2006-04-18  Derek Price  <derek@ximbiot.com>
67886             Paul Eggert  <eggert@cs.ucla.edu>
67887
67888         * modules/inttypes: New file.
67889         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
67890
67891 2006-04-18  Derek Price  <derek@ximbiot.com>
67892             Paul Eggert  <eggert@cs.ucla.edu>
67893
67894         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
67895         New files.
67896
67897 2006-04-18  Derek Price  <derek@ximbiot.com>
67898             Paul Eggert  <eggert@cs.ucla.edu>
67899
67900         * lib/inttypes.h: New file.
67901         * lib/strtoimax.c: Assume <inttypes.h>.
67902
67903 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
67904
67905         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
67906         isn't mounted.  Problem reported by Kir Kolyshkin.
67907
67908 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67909
67910         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
67911         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
67912         Derek R. Price.
67913         * lib/regex.h (RE_DUP_MAX): Update comment to match current
67914         implementation.
67915
67916 2006-04-12  Eric Blake  <ebb9@byu.net>
67917
67918         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
67919         is now done automatically by the corresponding Autoconf macro.
67920
67921 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
67922
67923         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
67924         time_r.h.
67925
67926 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67927
67928         Merge regex changes from libc, removing some of our
67929         POSIX-conformance changes that were rejected and redoing them in a
67930         less-intrusive way.
67931
67932         * lib/regcomp.c (re_compile_internal, init_dfa):
67933         Length arg is now size_t, not Idx.  All uses changed.
67934         (peek_token): Forward decl now says internal_function.
67935         (__re_error_msgid, __re_error_msgid_idx):
67936         Now static rather than extern with attribute_hidden.
67937         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
67938         For some reason libc prefers K&R style defns for external functions.
67939         (regerror) [!defined _LIBC]: Likewise.
67940         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
67941         (seek_collating_symbol_entry, lookup_collation_sequence_value):
67942         (build_range_exp, build_collating_symbol):
67943         Use K&R-style defn.
67944         (re_compile_fastmap): Use '\0' to memset, not 0.
67945         (utf8_sb_map): Make the calculations more obvious.
67946         (init_dfa, parse_bracket_exp, build_charclass_op):
67947         Call calloc and cast result, as glibc does.
67948         (init_word_char, fetch_token, peek_token, peek_token_bracket):
67949         (build_range_exp, build_collating_symbol):
67950         Now internal functions.
67951
67952         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
67953
67954         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
67955         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
67956         Don't depend on VMS; depend on __VMS instead, for POSIX
67957         namespace cleanness.
67958         (regoff_t): Define to ssize_t, not long int.
67959
67960         Remove the REG_ macros named below.  Instead, make the old names
67961         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
67962         __USE_GNU_REGEX.
67963         (REG_BACKSLASH_ESCAPE_IN_LISTS):
67964         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
67965         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
67966         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
67967         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
67968         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
67969         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
67970         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
67971         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
67972         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
67973         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
67974         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
67975         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
67976         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
67977         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
67978         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
67979         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
67980         (REG_NREGS):
67981         Remove.  All uses replaced by the old RE_* names.
67982         (RE_BACKSLASH_ESCAPE_IN_LISTS):
67983         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
67984         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
67985         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
67986         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
67987         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
67988         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
67989         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
67990         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
67991         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
67992         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
67993         Don't bother having these macros be independent of each others'
67994         values, since they no longer exist in the POSIX name space.
67995
67996         Rename the following member names back to their old names,
67997         unless !__USE_GNU_REGEX.  All uses changed back.
67998         (buffer): Renamed from re_buffer.
67999         (allocated): Renamed from re_allocated.
68000         (used): Renamed from re_used.
68001         (syntax): Renamed from re_syntax.
68002         (fastmap): Renamed from re_fastmap.
68003         (translate): Renamed from re_translate.
68004         (can_be_null): Renamed from re_can_be_null.
68005         (regs_allocated): Renamed from re_regs_allocated.
68006         (fastmap_accurate): Renamed from re_fastmap_accurate.
68007         (no_sub): Renamed from re_no_sub.
68008         (not_bol): Renamed from re_not_bol.
68009         (not_eol): Renamed from re_not_eol.
68010         (newline_anchor): Renamed from re_newline_anchor.
68011         (num_regs): Renamed from rm_num_regs.
68012         (start): Renamed from rm_start.
68013         (end): Renamed from rm_end.
68014
68015         (free_state): Move up a bit.
68016
68017         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68018         #define to be empty.
68019         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68020         when that is what is intended.
68021         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68022         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68023         (MAX): New macro.
68024         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68025         All uses changed back to re_malloc, etc.  It's now the caller's
68026         responsibility to check for overflow; all callers changed.
68027         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68028         (re_x2nrealloc): Remove.
68029         (free_state): Remove decl.
68030
68031         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68032         (re_set_registers, re_exec):
68033         Use K&R-style defn.
68034
68035         2006-01-31  Roland McGrath  <roland@redhat.com>
68036
68037         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68038         Reported by Mike Frysinger <vapier@gentoo.org>.
68039
68040         2006-01-15  Andreas Jaeger  <aj@suse.de>
68041
68042         [BZ #1950]
68043         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68044         build_wcs_upper_buffer change.
68045         (build_wcs_upper_buffer): Change return type.
68046
68047         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68048
68049         * lib/regex_internal.h: Include <stdint.h> if available.
68050
68051         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68052
68053         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68054
68055         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68056
68057         * lib/regcomp.c: Adjust for changed secondary hash function.
68058
68059         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68060
68061         * lib/regex.h: Pretty printing.
68062         Clean up namespace a bit.
68063
68064         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68065
68066         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68067         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68068
68069         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68070                     Ulrich Drepper  <drepper@redhat.com>
68071
68072         [BZ #1302]
68073         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68074         changed.
68075         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68076
68077         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68078
68079         [BZ #281]
68080         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68081         * lib/regcomp.c: Remove unnecessary uses of
68082         unsigned RE_TRANSLATE_TYPE.
68083         * lib/regex_internal.h: Likewise.
68084         * lib/regex_internal.c: Likewise.
68085         * lib/regexec.c: Likewise.
68086         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68087
68088         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68089
68090         * lib/regexec.c (find_recover_state): Remove unnecessary
68091         initialization.
68092         (transit_state_bkref): Make DFA a const pointer.
68093         (get_subexp): Likewise.
68094         (check_arrival): Likewise.
68095         (update_cur_sifted_state): Likewise.
68096         (re_search_internal): Likewise.
68097         (prune_impossible_nodes): Likewise.
68098         (acquire_init_state_context): Likewise.
68099         (proceed_next_node): Likewise.
68100         (set_regs): Likewise.
68101         (free_fail_stack_return): Likewise.
68102         (check_arrival_expand_ecl): Mark DFA parameter as const.
68103         (check_arrival_expand_ecl_sub): Likewise.
68104         (check_subexp_limits): Likewise.
68105         (sub_epsilon_src_nodes):  Likewise.
68106         (add_epsilon_src_nodes):  Likewise.
68107         (merge_state_array): Likewise.
68108         (update_regs): Likewise.
68109         (build_trtable): Likewise.
68110         (sift_states_backward): Mark MCTX parameter as const.
68111         (build_sifted_states): Likewise.
68112         (update_cur_sifted_state): Likewise.
68113         (sift_states_mkref): Likewise.
68114         (check_arrival_expand_ecl): Mark eclosure as const.
68115         (check_dst_limits_calc_pos_1): Likewise.
68116         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68117         pointer.
68118
68119         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68120
68121         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68122         (transit_state_sb): Likewise.
68123         (transit_state_mb): Likewise.
68124         (sift_states_iter_mb): Likewise.
68125         (check_arrival_add_next_nodes): Likewise.
68126         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68127         [_LIBC] (re_search_2_stub): Use mempcpy.
68128
68129         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68130         mbrtowc for very simple UTF-8 case.
68131
68132         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68133         a pointer-to-const.
68134         (re_acquire_state_context): Likewise.
68135         * lib/regex_internal.h: Adjust prototypes.
68136
68137         * lib/regex.c: Prevent using C++ compilers.
68138
68139         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68140         (re_acquire_state_context): Likewise.
68141
68142 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68143
68144         * modules/regex (Depends-on): Add ssize_t.
68145
68146 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68147
68148         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
68149         translation table.
68150
68151 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68152
68153         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
68154
68155 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
68156             Bruno Haible  <bruno@clisp.org>
68157
68158         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
68159         <sys/types.h> and <inttypes.h>.
68160
68161 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68162
68163         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
68164         `__error_t_defined', so argp.h will not typedef the former.
68165
68166 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68167
68168         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
68169         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
68170         glibc names.  Even if glibc is changed to conform to POSIX, the
68171         traditional names will be available anyway, since regex depends on
68172         the extensions module.  Also, fix a longstanding typo in the
68173         implementation of Spencer ERE test #75 from grep 2.3.  Problems
68174         reported by Emanuele Giaquinta.  Also, change sense of cached
68175         variable, so that the message makes sense.
68176
68177 2006-03-24  Simon Josefsson  <jas@extundo.com>
68178
68179         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
68180         including some doc fixes.
68181         (base64_encode_alloc): Fix +1 bug on allocation failures.
68182
68183 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68184
68185         * lib/base64.c (base64_encode): Do not read past end of array with
68186         unsanitized input on systems with CHAR_BIT > 8.
68187
68188 2006-03-24  Eric Blake  <ebb9@byu.net>
68189
68190         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
68191
68192 2006-03-22  Karl Berry  <karl@gnu.org>
68193
68194         * config/srclist.txt (*setenv.[ch]): get from coreutils.
68195         * config/srclistvars.sh (COREUTILS): new var.
68196
68197 2006-03-17  Jim Meyering  <jim@meyering.net>
68198
68199         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
68200         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
68201
68202 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68203
68204         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
68205         no longer needs it.  Instead, check that regoff_t is as least
68206         as wide as ptrdiff_t.
68207
68208         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
68209         so that our regex.h stays compatible with the installed regex.
68210         This is helpful for installers who configure --without-included-regex.
68211         Problem reported by Emanuele Giaquinta.
68212
68213 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68214
68215         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
68216         Typedef to long int, not to off_, as POSIX will likely change
68217         in that direction.
68218
68219 2006-03-15  Eric Blake  <ebb9@byu.net>
68220
68221         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
68222
68223 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68224
68225         * lib/argp-help.c (validate_uparams): Fix typo
68226         * lib/argp-parse.c (argp_default_options): Consistently begin help
68227         messages with a lowercase letter.
68228
68229 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
68230
68231         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
68232         overrun buffers and shouldn't be used (much as gets shouldn't be
68233         used).
68234         * lib/time_r.c (asctime_r, ctime_r): Likewise.
68235
68236 2006-03-08  Simon Josefsson  <jas@extundo.com>
68237
68238         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
68239         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68240
68241 2006-03-08  Simon Josefsson  <jas@extundo.com>
68242
68243         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
68244         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68245
68246 2006-03-08  Simon Josefsson  <jas@extundo.com>
68247
68248         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
68249         signal that configure disabled the device.
68250
68251 2006-03-08  Simon Josefsson  <jas@extundo.com>
68252
68253         * build-aux/maint.mk: Fix refresh-po, to handle no translated
68254         languages.
68255
68256 2006-03-07  Simon Josefsson  <jas@extundo.com>
68257
68258         * modules/getopt (Depends-on): Add unistd.
68259
68260         * modules/unistd: New file.
68261
68262 2006-03-07  Simon Josefsson  <jas@extundo.com>
68263
68264         * modules/gc-random: New file.
68265
68266 2006-03-07  Simon Josefsson  <jas@extundo.com>
68267
68268         * m4/unistd_h.m4: New file.
68269
68270 2006-03-07  Simon Josefsson  <jas@extundo.com>
68271
68272         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
68273         test to be side-effect free by storing the result in the cache
68274         variable gl_cv_lib_readline, and moving the assignment of
68275         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68276         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68277
68278 2006-03-07  Simon Josefsson  <jas@extundo.com>
68279
68280         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68281         error on missing devices (the functions will return an error).
68282
68283         * m4/gc.m4: Move random stuff to gc-random.m4
68284
68285 2006-03-07  Simon Josefsson  <jas@extundo.com>
68286
68287         * lib/unistd_.h: New file.
68288
68289 2006-03-07  Simon Josefsson  <jas@extundo.com>
68290
68291         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68292
68293 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68294
68295         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68296         Problem reported by Juan Manuel Guerrero.
68297
68298 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68299
68300         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68301         the unistd module.
68302         * lib/getlogin_r.c: Likewise.
68303         * lib/getlogin_r.h: Likewise.
68304         * lib/glob.c: Likewise.
68305         * lib/pagealign_alloc.c: Likewise.
68306         * lib/unistd_.h: Remove; no longer needed.
68307
68308 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68309
68310         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68311         Add unistd.
68312         * modules/c-stack (Depends-on): Add unistd.
68313         * modules/getlogin_r: Likewise.
68314         * modules/glob: Likewise.
68315         * modules/pagealign_alloc: Likewise.
68316         * modules/unistd (Files): Remove lib/unistd_.h.
68317         (EXTRA_DIST): Remove.
68318         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
68319         need unistd_.h.
68320         (MOSTLYCLEANFILES): Remove unistd.h-t.
68321
68322 2006-03-03  Simon Josefsson  <jas@extundo.com>
68323
68324         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
68325
68326 2006-03-03  Simon Josefsson  <jas@extundo.com>
68327
68328         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
68329         libidn and bison.
68330
68331 2006-03-03  Simon Josefsson  <jas@extundo.com>
68332
68333         * build-aux/maint.mk: Add indent target.
68334
68335 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
68336
68337         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
68338         our replacement poll.h in any case, to avoid a differing
68339         declaration from a system header.  Seen on AIX.
68340
68341 2006-03-01  Simon Josefsson  <jas@extundo.com>
68342
68343         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
68344         <kasal@ucw.cz>.
68345
68346 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68347
68348         * modules/gettime (Depends-on): Add extensions module.
68349         * modules/nanosleep (Depends-on): Likewise.
68350         * modules/settime (Depends-on): Likewise.
68351
68352 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68353
68354         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
68355         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
68356         pedantically.
68357         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68358         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
68359
68360         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
68361         not "==".  Reported by Ralf Wildenhues.
68362
68363 2006-03-01  Karl Berry  <karl@gnu.org>
68364
68365         * doc/Copyright/request-*: new files, synced from gnuorg.
68366
68367 2006-03-01  Karl Berry  <karl@gnu.org>
68368
68369         * config/srclist.txt (Copyright/*): new entries.
68370
68371 2006-02-28  Simon Josefsson  <jas@extundo.com>
68372
68373         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
68374
68375 2006-02-27  Simon Josefsson  <jas@extundo.com>
68376
68377         * lib/base64.h: Indent #define's.  From Jim Meyering
68378         <jim@meyering.net>.
68379
68380 2006-02-27  Jim Meyering  <jim@meyering.net>
68381
68382         Revert the change of 2006-02-24, so these files can continue
68383         to be sync'd from gettext.
68384         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
68385         of `config.h'.
68386
68387 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68388
68389         * modules/intprops: New file.
68390         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68391         Add intprops.
68392         * modules/getloadavg (Files): Remove lib/intprops.h.
68393         (Depends-on): Add intprops.
68394         * modules/human: Likewise.
68395         * modules/inttostr: Likewise.
68396         * modules/openat: Likewise.
68397         * modules/sig2str: Likewise.
68398         * modules/userspec: Likewise.
68399         * modules/utimecmp: Likewise.
68400         * modules/xnanosleep: Likewise.
68401         * modules/xstrtol: Likewise.
68402
68403 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
68404
68405         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
68406         * modules/lock-tests (TESTS): Use $(EXEEXT).
68407         * modules/tls-tests: Likewise.
68408         * modules/argp-tests: Likewise.
68409         (check_PROGRAMS): New var, replacing...
68410         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
68411
68412 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68413
68414         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
68415         `config.h'.
68416
68417 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68418
68419         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
68420
68421 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68422
68423         Sync from coreutils.
68424         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
68425         gl_CHDIR_SAFER.
68426
68427 2006-02-22  Jim Meyering  <jim@meyering.net>
68428
68429         Sync from coreutils.
68430         * m4/chdir-safer.m4: New file.
68431
68432 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68433
68434         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
68435         AT_FDCWD exceeds INT_MAX.
68436         * lib/openat.h (AT_FDCWD): Likewise.
68437
68438 2006-02-17  Eric Blake  <address@hidden>
68439
68440         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
68441
68442 2006-02-16  Simon Josefsson  <jas@extundo.com>
68443
68444         * modules/getaddrinfo (Depends-on): Add sys_socket.
68445
68446 2006-02-15  Simon Josefsson  <jas@extundo.com>
68447
68448         * build-aux/maint.mk: Add dsyntax-check rule.
68449
68450 2006-02-15  Eric Blake  <ebb9@byu.net>
68451
68452         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
68453         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
68454         'present but cannot compile' warnings on cygwin.
68455         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
68456         use ws2tcpip.h if sys/socket.h works.
68457         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
68458         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
68459
68460 2006-02-14  Simon Josefsson  <jas@extundo.com>
68461
68462         * modules/maintainer-makefile (Files): Rename.
68463
68464         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
68465         and (the local) Makefile.cfg to maint-cfg.mk.
68466
68467         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
68468         to the latter.
68469
68470         * modules/maintainer-makefile: New module.
68471
68472         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
68473         severaly stripped to make it possible to build it up from scratch
68474         with reliable tests.
68475
68476         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
68477         fixes to permit overriding the default actions when configure and
68478         makefile are not available.
68479
68480 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68481
68482         Sync from coreutils.
68483         * modules/lstat (Depends-on): Don't depend on xalloc.
68484         (License): Change from GPL to LGPL, since this is now simply a
68485         replacement for a libc function.
68486
68487 2006-02-14  Jim Meyering  <jim@meyering.net>
68488
68489         Sync from coreutils.
68490
68491         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
68492         failure on deficient systems, and simplify gnulib lgpl dependencies.
68493         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
68494         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
68495
68496         * lib/xalloc-die.c: Remove unused definition of N_.
68497
68498 2006-02-14  Jim Meyering  <jim@meyering.net>
68499
68500         Sync from coreutils.
68501         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
68502         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
68503         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
68504         double-quote uses of that variable, to accommodate the rare case in
68505         which getmntent is available in none of the libraries checked.  This
68506         happens at least on FreeBSD 5.0.
68507
68508 2006-02-13  Simon Josefsson  <jas@extundo.com>
68509
68510         * gnulib-tool (Usage): Fix --import, from
68511         karl@freefriends.org (Karl Berry).
68512
68513 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68514
68515         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
68516
68517 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
68518
68519         * lib/argp-namefrob.h: Restore changes accidentally lost during the
68520         "autoupdate" on 2005-12-12.
68521
68522 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68523
68524         * modules/closeout (Depends-on): Remove atexit.
68525
68526 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68527
68528         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
68529         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
68530
68531 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68532
68533         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
68534         __EXTENSIONS__ if this causes compilation to fail.  Problem
68535         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
68536         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
68537
68538 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
68539
68540         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
68541         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
68542         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
68543         All uses changed.
68544
68545 2006-01-26  Simon Josefsson  <jas@extundo.com>
68546
68547         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
68548         prototype is visible on mingw32.
68549
68550         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
68551         for mingw32.
68552
68553         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
68554         mingw32).
68555
68556 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68557
68558         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
68559         attempt to open for write; this always fails, at least on POSIX
68560         hosts.  This reinstates the 2006-01-09 change, which was
68561         inadvertently removed.
68562
68563 2006-01-26  Bruno Haible  <bruno@clisp.org>
68564
68565         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
68566         Reported by Paul Eggert.
68567
68568 2006-01-26  Bruno Haible  <bruno@clisp.org>
68569             Paul Eggert  <eggert@cs.ucla.edu>
68570
68571         * lib/stdbool_.h (_Bool)
68572         [(! (defined __cplusplus || defined __BEOS__)
68573           && !defined __GNUC__
68574           && !(defined __HP_cc || defined __xlc__
68575                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
68576                || defined __sgi))]:
68577         #define to signed char in these cases too; this simplifies
68578         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
68579         etc., separately) and makes it more conservative.
68580
68581 2006-01-25  Simon Josefsson  <jas@extundo.com>
68582
68583         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
68584         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
68585         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
68586
68587 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68588
68589         * lib/argp-namefrob.h: Bugfix. Remove stray #
68590
68591 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
68592
68593         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
68594         so that we test the test.
68595         Check for yet another HP-UX cc bug involving *bool |= bool.
68596
68597 2006-01-25  Karl Berry  <karl@gnu.org>
68598
68599         * config/srclist.txt (vasnprintf.c): sync lost.
68600
68601 2006-01-25  Jim Meyering  <jim@meyering.net>
68602
68603         Sync from the stable (b5) branch of coreutils:
68604
68605         * lib/fts.c (fts_children): Don't let close() clobber errno from
68606         failed fchdir().
68607
68608         * lib/fts.c (fts_stat): When following a symlink-to-directory,
68609         don't necessarily interpret stat-fails+lstat-succeeds as indicating
68610         a dangling symlink.  That can also happen at least for ELOOP.
68611         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
68612         FYI, this bug predates the inclusion of fts.c in coreutils.
68613
68614         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
68615         in their own block, so pre-c99 compilers don't object.
68616
68617         Avoid the double-free (first in fts_read, second in fts_close) that
68618         would occur when an `active' directory is made inaccessible (e.g.,
68619         via chmod a-x) during a traversal.
68620         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68621         before returning.  Reproduce this failure by
68622         mkdir -p a/b; cd a; chmod a-x . b
68623         Reported by Stavros Passas.
68624
68625 2006-01-25  Jim Meyering  <jim@meyering.net>
68626
68627         * lib/fileblocks.c: Remove more useless parentheses.
68628         * lib/readutmp.h: Likewise.
68629
68630 2006-01-25  Bruno Haible  <bruno@clisp.org>
68631
68632         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
68633         warnings.
68634         Reported by Paul Eggert.
68635
68636 2006-01-25  Bruno Haible  <bruno@clisp.org>
68637
68638         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
68639         rid of a trap command. For Solaris sh.
68640         Reported by Mark D. Baushke <mdb@gnu.org>.
68641
68642 2006-01-24  Simon Josefsson  <jas@extundo.com>
68643
68644         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
68645         Bruno.
68646
68647 2006-01-24  Karl Berry  <karl@gnu.org>
68648
68649         * config/srclist.txt (argp-namefrob.h): sync lost.
68650
68651 2006-01-24  Jim Meyering  <jim@meyering.net>
68652
68653         * modules/openat (Files): Add lib/intprops.h.
68654         From Mark D. Baushke.
68655
68656 2006-01-24  Jim Meyering  <jim@meyering.net>
68657
68658         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
68659         Reported by Mark D. Baushke.
68660
68661 2006-01-24  Jim Meyering  <jim@meyering.net>
68662
68663         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
68664
68665 2006-01-24  Bruno Haible  <bruno@clisp.org>
68666
68667         * modules/strnlen (Maintainer): Change from glibc to all.
68668
68669 2006-01-24  Bruno Haible  <bruno@clisp.org>
68670
68671         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
68672         Patch by Paul Eggert.
68673
68674 2006-01-24  Bruno Haible  <bruno@clisp.org>
68675
68676         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
68677         already has it.
68678         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
68679         2005-11-26.
68680
68681         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
68682         'signed char' to avoid problems with the built-in _Bool type.
68683         Reported by Paul Eggert on 2005-11-26.
68684
68685 2006-01-24  Bruno Haible  <bruno@clisp.org>
68686
68687         * gnulib-tool (func_import): Avoid constructing complicated sed
68688         expressions inside backquote.
68689         Report and solution by Mark D. Baushke <mdb@gnu.org>.
68690
68691 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
68692
68693         These changes imported from libc.
68694         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
68695         test and two separate function calls.
68696         * lib/strndup.c (__strndup): Add libc_hidden_def.
68697
68698 2006-01-23  Simon Josefsson  <jas@extundo.com>
68699
68700         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
68701         Remove the test_*_SOURCES variable: automake infers it by default.
68702         * modules/tls-tests: Likewise.
68703
68704 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68705
68706         Work around porting bugs reported by Dieter in
68707         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
68708         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
68709         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
68710         Include "getopt.h" first, to check interface.
68711         (getenv): Declare only if defined HAVE_DECL_GETENV &&
68712         !HAVE_DECL_GETENV.
68713         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
68714         (__strndup): Revert to K&R-style function dfns, the glibc style.
68715         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
68716         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
68717         Include strnlen.h first, to get prototype properly.
68718         (strnlen): Renamed from __strnlen.
68719         Remove weak alias.
68720
68721 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68722
68723         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
68724
68725 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68726
68727         * config/srclist.txt: Adjust to reflect glibc reorganization.
68728         This affects only comments.
68729
68730 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68731
68732          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
68733          Reported by Bruce Korb <bkorb@gnu.org>.
68734
68735 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
68736
68737         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
68738         to pacify gcc -Wswitch-default.
68739
68740 2006-01-22  Bruno Haible  <bruno@clisp.org>
68741
68742         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
68743         temporary buffer for sprintf, take into account the precision also
68744         for 'd', 'i', 'u', 'o', 'x', 'X'.
68745
68746 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68747
68748         * modules/argp-tests: New module
68749         * tests/test-argp.c: New file
68750         * tests/test-argp-2.sh: New file
68751
68752 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68753
68754         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
68755         (__argp_base_name): Removed
68756         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
68757         typo.
68758         (__argp_base_name): Provide macro definition or extern declaration
68759         depending on the configuration
68760
68761 2006-01-20  Simon Josefsson  <jas@extundo.com>
68762
68763         * modules/inet_ntop (Depends-on): Depend on sys_socket.
68764
68765 2006-01-20  Simon Josefsson  <jas@extundo.com>
68766
68767         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
68768
68769 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68770
68771         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
68772         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
68773         Suggested by Bruno Haible.
68774
68775 2006-01-20  Karl Berry  <karl@gnu.org>
68776
68777         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
68778         until changes propagate, I guess.
68779
68780 2006-01-19  Simon Josefsson  <jas@extundo.com>
68781
68782         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
68783
68784 2006-01-19  Simon Josefsson  <jas@extundo.com>
68785
68786         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
68787
68788 2006-01-19  Simon Josefsson  <jas@extundo.com>
68789
68790         * gnulib-tool: Set check_PROGRAMS.
68791
68792         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
68793         modules/des-tests, modules/gc-arcfour-tests,
68794         modules/gc-arctwo-tests, modules/gc-des-tests,
68795         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
68796         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
68797         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
68798         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
68799         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
68800         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
68801         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
68802         test_*_SOURCES.
68803
68804 2006-01-18  Simon Josefsson  <jas@extundo.com>
68805
68806         * modules/socklen (Depends-on): Depend on sys_socket.
68807
68808 2006-01-18  Simon Josefsson  <jas@extundo.com>
68809
68810         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
68811         modules/des-tests, modules/gc-arcfour-tests,
68812         modules/gc-arctwo-tests, modules/gc-des-tests,
68813         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
68814         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
68815         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
68816         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
68817         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
68818         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
68819         $(EXEEXT) to automake TESTS variable, for mingw32.
68820
68821 2006-01-17  Simon Josefsson  <jas@extundo.com>
68822
68823         * modules/socklen (Include): Need sys/socket.h.
68824
68825 2006-01-17  Bruno Haible  <bruno@clisp.org>
68826
68827         * modules/ssize_t (Include): Add <sys/types.h>.
68828
68829 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
68830
68831         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
68832         it's not portable and it doesn't work with cross-compiles.
68833         Problem reported by Bruno Haible.  Fix missing-$ typo in
68834         'test "gl_cv_ignore_unused_libraries" ...' that prevented
68835         -zignore from being used with Sun's C compiler.
68836
68837 2006-01-12  Simon Josefsson  <jas@extundo.com>
68838
68839         * lib/base64.c: Fix warning, reported by Bruno Haible
68840         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
68841
68842 2006-01-12  Bruno Haible  <bruno@clisp.org>
68843
68844         * modules/ldd: New file.
68845         * build-aux/ldd.sh.in: New file.
68846         * MODULES.html.sh (Support for building libraries and executables): Add
68847         ldd.
68848
68849 2006-01-12  Bruno Haible  <bruno@clisp.org>
68850
68851         * m4/ldd.m4: New file.
68852
68853 2006-01-12  Bruno Haible  <bruno@clisp.org>
68854
68855         * gnulib-tool (func_import, func_create_testdir): Don't go into an
68856         endless loop while replacing $auxdir with build-aux.
68857
68858 2006-01-11  Simon Josefsson  <jas@extundo.com>
68859
68860         * lib/stdint_.h (SIZE_MAX): Add missing (.
68861
68862 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
68863
68864         Sync from coreutils.
68865         * lib/md5.c: Fix commentary typos.
68866         (alignof, UNALIGNED_P): No need for a GCC-specific version.
68867         * lib/md5.h (__attribute__): Remove; unused.
68868         * lib/sha1.c: Fix commentary to match md5 better.
68869         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
68870         so that we don't need to worry about alignment.  All uses changed.
68871         This merges the 2005-10-28 md5 change into sha1.
68872
68873 2006-01-11  Jim Meyering  <jim@meyering.net>
68874
68875         Sync from coreutils.
68876         * lib/md5.c (OP): Fix spacing.
68877
68878 2006-01-11  Bruno Haible  <bruno@clisp.org>
68879
68880         Ensure automatic ordering between gl_LOCK and gl_ARGP.
68881         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
68882         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
68883
68884 2006-01-11  Bruno Haible  <bruno@clisp.org>
68885
68886         Ensure automatic ordering between gl_LOCK and gl_ARGP.
68887         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
68888         the "early" section as well.
68889
68890 2006-01-11  Bruno Haible  <bruno@clisp.org>
68891
68892         Avoid "ar: no archive members specified" error on MacOS X.
68893         * gnulib-tool (func_modules_add_dummy): New function.
68894         (func_import, func_create_testdir): Invoke it.
68895
68896 2006-01-11  Bruno Haible  <bruno@clisp.org>
68897
68898         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
68899         with $auxdir in AC_CONFIG_FILES statements.
68900
68901 2006-01-11  Bruno Haible  <bruno@clisp.org>
68902
68903         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68904         Initialize also noinst_HEADERS to empty.
68905
68906 2006-01-11  Bruno Haible  <bruno@clisp.org>
68907
68908         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
68909         variables.
68910         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
68911         autoreconf.
68912
68913 2006-01-11  Bruno Haible  <bruno@clisp.org>
68914
68915         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
68916         overridable by the user.
68917         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68918
68919 2006-01-10  Simon Josefsson  <jas@extundo.com>
68920
68921         * modules/sys_socket: New file.
68922
68923 2006-01-10  Simon Josefsson  <jas@extundo.com>
68924
68925         * m4/sys_socket_h.m4: New file.
68926
68927 2006-01-10  Simon Josefsson  <jas@extundo.com>
68928
68929         * lib/socket_.h: New file.
68930
68931 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68932
68933         * modules/readutmp (Maintainer): Add myself.
68934
68935 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68936
68937         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
68938         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
68939         People who are still concerned with buggy memcmp implementations
68940         can invoke gl_FUNC_MEMCMP themselves.
68941
68942 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68943
68944         * lib/regex_internal.h (BITSET_WORD_BITS):
68945         Work around a bug in 64-bit PGC (before version 6.1-2), where the
68946         preprocessor mishandles large unsigned values as if they were signed.
68947         Problem reported by Claudio Fontana in
68948         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
68949
68950 2006-01-10  Jim Meyering  <jim@meyering.net>
68951
68952         Avoid the double-free (first in fts_read, second in fts_close) that
68953         would occur when an `active' directory is made inaccessible (e.g.,
68954         via chmod a-x) during a traversal.
68955         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68956         before returning.  Reproduce this failure by
68957         mkdir -p a/b; cd a; chmod a-x . b
68958         Reported by Stavros Passas.
68959
68960         Sync from coreutils.
68961         * lib/sha1.c: Tweak grammar in a comment.
68962
68963 2006-01-10  Jim Meyering  <jim@meyering.net>
68964
68965         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
68966         Patch by Joerg Sonnenberger.
68967
68968 2006-01-10  Bruno Haible  <bruno@clisp.org>
68969
68970         * modules/readutmp: Depend on module free.
68971         * modules/strtok_r: Depend on module restrict.
68972
68973 2006-01-10  Bruno Haible  <bruno@clisp.org>
68974
68975         * modules/gettext (configure.ac): Add an invocation of
68976         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
68977
68978 2006-01-10  Bruno Haible  <bruno@clisp.org>
68979
68980         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
68981         Reported by Werner Lemberg <wl@gnu.org>.
68982
68983 2006-01-10  Bruno Haible  <bruno@clisp.org>
68984
68985         * lib/localcharset.c: Update from GNU gettext.
68986
68987 2006-01-10  Bruno Haible  <bruno@clisp.org>
68988
68989         * lib/argp.h (__const): Remove macro. Use const instead.
68990         * lib/argp-fmtstream.h (__const): Likewise.
68991         * lib/glob_.h (__const): Remove macro.
68992         * lib/glob-libc.h: Use const instead of __const.
68993
68994 2006-01-10  Bruno Haible  <bruno@clisp.org>
68995
68996         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
68997         variable.
68998         Needed to avoid an automake error regarding the 'gettext' module.
68999
69000 2006-01-09  Simon Josefsson  <jas@extundo.com>
69001
69002         * modules/inet_ntop (Depends-on): Add restrict.
69003
69004 2006-01-09  Simon Josefsson  <jas@extundo.com>
69005
69006         * modules/gc-rijndael-tests (License): Put under LGPL.
69007
69008         * modules/gc-des-tests (License): Likewise.
69009
69010         * modules/gc-arcfour-tests (License): Likewise.
69011
69012         * modules/gc-arctwo-tests (License): Likewise.
69013
69014         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69015
69016         * modules/gc-hmac-sha1-tests (Files): Likewise.
69017
69018         * modules/gc-hmac-md5-tests (License): Likewise.
69019
69020         * modules/gc-sha1-tests (License): Likewise.
69021
69022         * modules/gc-md5-tests (License): Likewise.
69023
69024         * modules/gc-md4-tests (License): Likewise.
69025
69026         * modules/gc-md2-tests (License): Likewise.
69027
69028         * modules/gc-tests (License): Likewise.
69029
69030         * modules/des-tests (License): Likewise.
69031
69032         * modules/md4-tests (License): Likewise.
69033
69034         * modules/md2-tests (License): Likewise.
69035
69036 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69037
69038         Sync from coreutils:
69039
69040         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69041         * modules/lib-ignore: New file.
69042         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69043         chdir-safer.m4, lchmod.m4.
69044         * modules/openat: Add mkdirat.c, openat-priv.h.
69045
69046 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69047
69048         Sync from coreutils.
69049         * m4/lib-ignore.m4: New file.
69050         * m4/lchmod.m4: New file.
69051
69052 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69053
69054         Sync from coreutils.
69055         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69056         for write access: POSIX says that must fail.
69057         * lib/fts.c (diropen): Likewise.
69058         * lib/save-cwd.c (save_cwd): Likewise.
69059         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69060         well, for minor improvements on hosts that lack O_DIRECTORY.
69061         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69062         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69063         Fall back on chown if open failed with EACCES.
69064
69065         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69066         Report an error at compile-time if only a 1-second nominal clock
69067         resolution is found.
69068
69069         * lib/lchmod.h: New file.
69070         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69071         (make_dir_parents): Use lchown rather than chown, and
69072         lchmod rather than chmod.
69073
69074         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69075         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69076         "proc" reported by n0dalus.
69077
69078         * lib/mountlist.c: Include <limits.h>.
69079         (dev_from_mount_options)
69080         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69081         New function.  It no longer assumes "dev=" has the System V meaning
69082         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69083         (read_file_system_list)
69084         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69085         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69086         dev= in that case.
69087
69088         * lib/posixtm.h (PDS_PRE_2000): New macro.
69089         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69090         allow_century.  All usages changed.  Reject dates outside the range
69091         1969-1999 if PDS_PRE_2000 is used.
69092
69093 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69094
69095         Sync from coreutils.
69096         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69097         (Time of day items): Mention the possibility of leap seconds.
69098         Problem reported by Dr. David Alan Gilbert.
69099
69100 2006-01-09  Jim Meyering  <jim@meyering.net>
69101
69102         Sync from coreutils.
69103
69104         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69105
69106         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69107
69108         * lib/modechange.c (mode_compile): Reject an invalid mode string
69109         that starts with an octal digit.  From Andreas Gruenbacher.
69110
69111         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69112         and dup to open_safer and dup_safer, respectively.
69113         (openat_permissive): Fix typo in comment.
69114
69115         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69116         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69117         (_): Remove; no longer needed.
69118         (openat): Renamed from rpl_openat; no need for rpl_openat
69119         since openat.h renames openat for us.
69120         Replace most of the body with a call to openat_permissive,
69121         to avoid duplicate code.
69122         Port to (probably hypothetical) environments were mode_t is
69123         wider than int.
69124         (openat_permissive): Require mode arg, so that we can check
69125         types better.  Put it just after flags.  Change cwd failure
69126         indicator from pointer-to-bool to pointer-to-errno-value.
69127         All callers changed.
69128         Invoke openat_save_fail and/or openat_restore_fail if
69129         cwd_errno is null, so that openat can call us.
69130         (openat_permissive, fdopendir, fstatat, unlinkat):
69131         Simplify errno handling to avoid some duplicate code,
69132         as it's OK to set errno on success.
69133         * lib/openat.h: Revamp code so that function macros depend on
69134         __OPENAT_PREFIX only, not also on AT_FDCWD.
69135         (openat_ro): Remove.  Caller changed to use openat_permissive.
69136         (openat_permissive): Now a macro, if not a function.
69137         (openat_restore_fail, openat_save_fail): Now always functions,
69138         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69139
69140         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69141         and openat.c.
69142         * lib/mkdirat.c: Include openat-priv.h.
69143         Remove definitions of macros defined therein.
69144         * lib/openat.c: Likewise.
69145
69146         * lib/mkdirat.c (mkdirat): New file and function.
69147         * lib/openat.h (mkdirat): Declare.
69148
69149         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
69150
69151         * lib/openat.h (openat_permissive): Declare.
69152         (openat_ro): Define.
69153
69154         * lib/openat.c (EXPECTED_ERRNO): New macro.
69155         (openat_permissive): New function -- used in remove.c rewrite.
69156         (all functions): Set errno just before returning, only if there
69157         was an actual failure.
69158         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
69159
69160         Emulate openat-family functions using Linux's procfs, if possible.
69161         Idea and some code based on Ulrich Drepper's glibc changes.
69162
69163         * lib/openat.c: (BUILD_PROC_NAME): New macro.
69164         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
69165         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
69166         before falling back on save_cwd and restore_cwd.
69167         (fdopendir, fstatat, unlinkat): Likewise.
69168
69169         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
69170         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
69171
69172         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
69173         as second argument to va_arg.  Otherwise, some versions of gcc
69174         warn that `if this code is reached, the program will abort'.
69175
69176 2006-01-09  Jim Meyering  <jim@meyering.net>
69177
69178         Sync from coreutils.
69179         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
69180         Require openat-priv.h.
69181
69182 2006-01-09  Bruno Haible  <bruno@clisp.org>
69183
69184         * modules/strnlen (Include): Use strnlen.h.
69185
69186 2006-01-09  Bruno Haible  <bruno@clisp.org>
69187
69188         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
69189
69190 2006-01-09  Bruno Haible  <bruno@clisp.org>
69191
69192         * lib/sysexit_.h (EX_OK): New macro.
69193         Suggested by Martin Lambers <marlam@marlam.de>.
69194
69195 2006-01-09  Bruno Haible  <bruno@clisp.org>
69196
69197         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
69198         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
69199
69200 2006-01-09  Bruno Haible  <bruno@clisp.org>
69201
69202         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
69203         numbers.
69204
69205 2006-01-09  Bruno Haible  <bruno@clisp.org>
69206
69207         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
69208         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
69209         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
69210         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
69211
69212 2006-01-09  Bruno Haible  <bruno@clisp.org>
69213
69214         * build-aux/javacomp.sh.in: New file, moved from lib/.
69215         * modules/javacomp-script (Files): Update.
69216         (configure.ac): Add AC_CONFIG_FILES invocation.
69217         (EXTRA_DIST): Remove variable.
69218
69219         * build-aux/javaexec.sh.in: New file, moved from lib/.
69220         * modules/javaexec (Files): Update.
69221         (configure.ac): Add AC_CONFIG_FILES invocation.
69222         (EXTRA_DIST): Remove javaexec.sh.in.
69223
69224         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
69225         * modules/csharpcomp-script (Files): Update.
69226         (configure.ac): Add AC_CONFIG_FILES invocation.
69227         (EXTRA_DIST): Remove variable.
69228
69229         * build-aux/csharpexec.sh.in: New file, moved from lib/.
69230         * modules/csharpexec (Files): Update.
69231         (configure.ac): Add AC_CONFIG_FILES invocation.
69232         (EXTRA_DIST): Remove csharpexec.sh.in.
69233
69234 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69235
69236         Sync from coreutils.
69237
69238         Add POSIX ACL support
69239         * lib/acl.h (copy_acl, set_acl): Add declarations.
69240         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
69241         systems other than Linux.
69242         (chmod_or_fchmod): New function: use fchmod when possible,
69243         and chmod otherwise.
69244         (file_has_acl): Add a POSIX ACL implementation, with a
69245         Linux-specific subcase.
69246         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
69247         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
69248         acls are unsupported.
69249         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
69250         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
69251         are unsupported.
69252
69253 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69254
69255         Sync from coreutils.
69256         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
69257
69258 2006-01-07  Bruno Haible  <bruno@clisp.org>
69259
69260         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
69261         gl_EARLY.
69262
69263 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69264
69265         * lib/strftime.c (tzname): Don't declare if it is already #defined.
69266         Problem reported for Mingw by Mark Junker.
69267
69268 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69269
69270         * README: Gnulib normally doesn't generate a tarball.
69271
69272 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
69273
69274         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69275         long int, not int, for nanosecond counts, so that people who are
69276         used to POSIX struct timespec won't be surprised.  Reported by Jim
69277         Meyering.
69278
69279 2005-12-28  Bruno Haible  <bruno@clisp.org>
69280
69281         * build-aux/config.rpath: Update from GNU gettext.
69282
69283 2005-12-16  Jim Meyering  <jim@meyering.net>
69284
69285         * modules/fprintftime: New module.
69286         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69287
69288 2005-12-16  Jim Meyering  <jim@meyering.net>
69289
69290         * m4/fprintftime.m4: New file.
69291
69292 2005-12-16  Jim Meyering  <jim@meyering.net>
69293
69294         * lib/fprintftime.c, lib/fprintftime.h: New files.
69295
69296 2005-12-15  Simon Josefsson  <jas@extundo.com>
69297
69298         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69299         new m4/socklen.m4.
69300
69301 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69302
69303         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69304         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69305
69306 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69307
69308         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
69309         * lib/argp-help.c (fill_in_uparams): Check if the constructed
69310         struct uparams is valid. Fall back to the default values if it is
69311         not.
69312
69313 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69314
69315         * modules/argp (Files): Add argp-pin.c
69316         (Depends-on): dirname
69317         (lib_SOURCES): Add argp-pin.c
69318
69319 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69320
69321         * m4/argp.m4:  Check if program_invocation_name and
69322         program_invocation_short_name are declared and define appropriate
69323         macros if they are not.
69324
69325 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69326
69327         * lib/argp-help.c (__argp_base_name): New function
69328         (__argp_short_program_name): Rewrite using __argp_base_name
69329         * lib/argp-namefrob.h: Define program_invocation_name and
69330         program_invocation_short_name if requested
69331         (__argp_base_name): Add prototype
69332         * lib/argp-parse.c (argp_def): Use gettext wrappers
69333         (argp_default_parser): Use __argp_base_name
69334         * lib/argp-pin.c: New file. Defines program_invocation_name and
69335         program_invocation_short_name on systems that lack them.
69336
69337 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69338
69339         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
69340         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69341         porting problem reported by Georg Schwarz in
69342         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69343
69344 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69345
69346         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
69347         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69348         porting problem reported by Georg Schwarz in
69349         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69350
69351 2005-12-05  Bruno Haible  <bruno@clisp.org>
69352
69353         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
69354         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
69355         Reported by Mark Junker <mjscod@gmx.de>.
69356
69357 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
69358
69359         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
69360         Use implementation from Albert Chin, with some
69361         comments/corrections by Stepan Kasal and myself.
69362
69363 2005-12-02  Bruno Haible  <bruno@clisp.org>
69364
69365         * gnulib-tool (func_import): Accept GPLed build tool modules when
69366         --lgpl is given.
69367         * modules/csharpcomp-script: New file.
69368         * modules/csharpcomp: Depend on it.
69369         * modules/javacomp-script: New file.
69370         * modules/javacomp: Depend on it.
69371         Suggested by Simon Josefsson.
69372
69373 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
69374
69375         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
69376         statement, to work around an HP-UX 10.20 compiler bug reported by
69377         Peter O'Gorman.
69378
69379 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69380
69381         * modules/savedir (Depends-on): Add openat.
69382
69383 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69384
69385         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
69386         (uintmax_t) [defined uintmax_t]: Do not declare.
69387         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
69388         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
69389         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
69390         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
69391         sake of portability to weird hosts that C allows (though we don't
69392         know of any practical examples).
69393
69394         * lib/savedir.h (fdsavedir): New decl.
69395         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
69396         contains most of the former guts of savedir.
69397         (savedir): Use savedirstream.
69398         Include "openat.h".
69399
69400 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69401
69402         * modules/obstack (Files): Add m4/ulonglong.m4.
69403         Problem reported by Davide Angelocola.
69404
69405 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
69406
69407         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
69408         coreutils no longer futzes with rounding modes.
69409
69410 2005-11-14  Jim Meyering  <jim@meyering.net>
69411
69412         * lib/mkstemp-safer.c: Include <config.h>, required for possible
69413         replacement of mkstemp.
69414
69415 2005-11-10  Simon Josefsson  <jas@extundo.com>
69416
69417         * lib/readline.c: Remove EOL.
69418
69419 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69420
69421         * modules/gethrxtime (Depends-on): Add gettime.
69422
69423 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69424
69425         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
69426         or gettimeofday; no longer needed.
69427
69428 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69429
69430         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
69431         time business.
69432         (gethrxtime) [! (HAVE_NANOUPTIME
69433         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
69434         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
69435         our own approximation.
69436
69437 2005-11-08  Eric Blake  <ebb9@byu.net>
69438
69439         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69440
69441 2005-11-08  Eric Blake  <ebb9@byu.net>
69442
69443         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69444
69445 2005-11-04  Bruno Haible  <bruno@clisp.org>
69446
69447         * gnulib-tool: Implement --update mode.
69448
69449 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69450
69451         Fix porting problem reported by Theodoros V. Kalamatianos.
69452         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
69453         Don't assume that futimes failing means we must fail.
69454
69455 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69456
69457         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
69458         variables to suggest the intended function of the PATH_MAX check.
69459
69460 2005-10-30  Kean Johnston  <jkj@sco.com>
69461
69462         Trivial changes to support SCO systems.
69463         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
69464         as PATH_MAX.
69465         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
69466         where __ptr is null when no I/O is pending.
69467
69468 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69469
69470         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
69471         leave errno alone.  Problem reported by Dmitry V. Levin.
69472
69473 2005-10-28  Simon Josefsson  <jas@extundo.com>
69474
69475         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
69476         Test more.
69477
69478         * tests/test-gc-md2.c, tests/test-md2.c: New files.
69479
69480         * modules/md2, modules/md2-tests: New files.
69481
69482 2005-10-28  Simon Josefsson  <jas@extundo.com>
69483
69484         * m4/inet_ntop.m4: More tests.
69485
69486         * m4/gc-md2.m4, md2.m4: New file.
69487
69488 2005-10-28  Simon Josefsson  <jas@extundo.com>
69489
69490         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
69491         "restrict" keywords, as per POSIX.  Protect the function
69492         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
69493         Don't use K&R prototypes.  Check the sprintf return values.
69494         Re-define EAFNOSUPPORT if not present.  Indent.
69495
69496         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
69497         suggested by Bruno Haible <bruno@clisp.org>.
69498
69499         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
69500
69501         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
69502
69503         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
69504         libgcrypt).
69505
69506         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
69507
69508         * lib/md2.h, lib/md2.c: New files.
69509
69510 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
69511
69512         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
69513         errno alone.  Problem reported by Frederic Jolliton.
69514
69515 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69516
69517         * modules/verify (License): Change from GPL to LGPL.  This is a
69518         tiny module and there are apparently near-equivalents that are
69519         under the BSD license.
69520
69521 2005-10-24  Simon Josefsson  <jas@extundo.com>
69522
69523         * modules/sha1: Relicense to LGPL.
69524
69525 2005-10-24  Simon Josefsson  <jas@extundo.com>
69526
69527         * lib/md4.h: Shrink buffer size, now that we changed the type.
69528
69529 2005-10-23  Simon Josefsson  <jas@extundo.com>
69530
69531         * gnulib-tool (func_import): Fix --tests-base.
69532
69533 2005-10-22  Simon Josefsson  <jas@extundo.com>
69534
69535         * modules/arcfour (Depends-on): Need stdint.
69536
69537 2005-10-22  Simon Josefsson  <jas@extundo.com>
69538
69539         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
69540         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
69541
69542 2005-10-22  Simon Josefsson  <jas@extundo.com>
69543
69544         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
69545         suggested by Bruno Haible <bruno@clisp.org>.
69546
69547 2005-10-22  Simon Josefsson  <jas@extundo.com>
69548
69549         * lib/crc.h: Include stddef.h, for size_t.
69550
69551 2005-10-22  Simon Josefsson  <jas@extundo.com>
69552
69553         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
69554         arcfour_context struct (simplify test vector testing in GNU
69555         Shishi).
69556
69557 2005-10-21  Simon Josefsson  <jas@extundo.com>
69558
69559         * modules/des, modules/des-tests: New files.
69560
69561         * modules/gc-des, modules/gc-des-tests: New files.
69562
69563         * tests/test-des.c, tests/test-gc-des.c: New file.
69564
69565 2005-10-21  Simon Josefsson  <jas@extundo.com>
69566
69567         * modules/arctwo, modules/arctwo-tests: New files.
69568
69569         * tests/test-arctwo.c: New file.
69570
69571         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
69572
69573         * tests/test-gc-arctwo.c: New file.
69574
69575 2005-10-21  Simon Josefsson  <jas@extundo.com>
69576
69577         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
69578         Bruno Haible <bruno@clisp.org>.
69579
69580         * m4/gc-des.m4: New file.
69581
69582 2005-10-21  Simon Josefsson  <jas@extundo.com>
69583
69584         * m4/arctwo.m4: New file.
69585
69586         * m4/gc-arctwo.m4: New file.
69587
69588 2005-10-21  Simon Josefsson  <jas@extundo.com>
69589
69590         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
69591         block.
69592
69593 2005-10-21  Simon Josefsson  <jas@extundo.com>
69594
69595         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
69596         <bruno@clisp.org>.
69597
69598         * lib/hmac-sha1.c (hmac_sha1): Likewise.
69599
69600         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
69601         Bruno Haible <bruno@clisp.org>.
69602
69603         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
69604         <bruno@clisp.org>.
69605
69606 2005-10-21  Simon Josefsson  <jas@extundo.com>
69607
69608         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
69609
69610 2005-10-21  Simon Josefsson  <jas@extundo.com>
69611
69612         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
69613
69614 2005-10-21  Simon Josefsson  <jas@extundo.com>
69615
69616         * lib/des.h, lib/des.c: New files.
69617
69618         * lib/gc-gnulib.c: Support DES.c
69619
69620 2005-10-21  Simon Josefsson  <jas@extundo.com>
69621
69622         * lib/arctwo.h, lib/arctwo.c: New files.
69623
69624         * lib/gc-gnulib.c: Support ARCTWO.
69625
69626 2005-10-21  Simon Josefsson  <jas@extundo.com>
69627
69628         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
69629         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69630
69631 2005-10-21  Simon Josefsson  <jas@extundo.com>
69632
69633         * gnulib-tool (func_import, func_create_testdir): Define automake
69634         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
69635         Makefile.am snippet),
69636         suggested by Bruno Haible <bruno@clisp.org>.
69637
69638         * modules/gc (Makefile.am): Use it.
69639
69640 2005-10-21  Bruno Haible  <bruno@clisp.org>
69641
69642         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
69643         patch.
69644
69645 2005-10-19  Simon Josefsson  <jas@extundo.com>
69646
69647         * tests/test-gc-rijndael.c: New file.
69648
69649         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
69650
69651 2005-10-19  Simon Josefsson  <jas@extundo.com>
69652
69653         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
69654         interface too.
69655
69656 2005-10-19  Simon Josefsson  <jas@extundo.com>
69657
69658         * tests/test-gc-arcfour.c: New file.
69659
69660         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
69661
69662 2005-10-19  Simon Josefsson  <jas@extundo.com>
69663
69664         * modules/gc-md4, modules/gc-md4-tests: New file.
69665
69666         * tests/test-gc-md4.c: New file.
69667
69668 2005-10-19  Simon Josefsson  <jas@extundo.com>
69669
69670         * m4/gc-md4.m4: New file.
69671
69672 2005-10-19  Simon Josefsson  <jas@extundo.com>
69673
69674         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
69675         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
69676         <kasal@ucw.cz>.
69677
69678 2005-10-19  Simon Josefsson  <jas@extundo.com>
69679
69680         * m4/gc-arcfour.m4: New file.
69681
69682         * m4/gc-rijndael.m4: New file.
69683
69684 2005-10-19  Simon Josefsson  <jas@extundo.com>
69685
69686         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
69687
69688 2005-10-19  Simon Josefsson  <jas@extundo.com>
69689
69690         * lib/gc-gnulib.c: Support ARCFOUR.
69691
69692 2005-10-19  Simon Josefsson  <jas@extundo.com>
69693
69694         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
69695         support.
69696
69697         * lib/gc.h: Add ECB enum type.
69698
69699         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
69700
69701 2005-10-18  Simon Josefsson  <jas@extundo.com>
69702
69703         * tests/test-md5.c: New file.
69704
69705         * modules/md5-tests: New file.
69706
69707 2005-10-18  Simon Josefsson  <jas@extundo.com>
69708
69709         * tests/test-md4.c: New file.
69710
69711         * modules/md4, modules/md4-tests: New files.
69712
69713 2005-10-18  Simon Josefsson  <jas@extundo.com>
69714
69715         * m4/md4.m4: New file.
69716
69717 2005-10-18  Simon Josefsson  <jas@extundo.com>
69718
69719         * lib/md4.h, lib/md4.c: New files, based on md5.?.
69720
69721 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
69722
69723         * gnulib-tool (func_create_testdir): Omit the second check whether
69724         BUILT_SOURCES in nonempty.
69725
69726 2005-10-17  Simon Josefsson  <jas@extundo.com>
69727
69728         * tests/test-rijndael.c: New file.
69729
69730 2005-10-17  Simon Josefsson  <jas@extundo.com>
69731
69732         * modules/sha1: Depend on stdint instead of md5.
69733
69734         * modules/md5: Depend on stdint, remove uint32_t.
69735
69736 2005-10-17  Simon Josefsson  <jas@extundo.com>
69737
69738         * modules/gc-sha1-tests: New file.
69739
69740         * tests/test-gc-sha1.c: New file.
69741
69742 2005-10-17  Simon Josefsson  <jas@extundo.com>
69743
69744         * m4/md5.m4: Remove call to uint32_t.m4.
69745
69746 2005-10-17  Simon Josefsson  <jas@extundo.com>
69747
69748         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
69749
69750         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
69751         md5.h.
69752
69753         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
69754
69755         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
69756
69757 2005-10-17  Simon Josefsson  <jas@extundo.com>
69758
69759         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
69760
69761 2005-10-17  Simon Josefsson  <jas@extundo.com>
69762
69763         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
69764
69765 2005-10-17  Simon Josefsson  <jas@extundo.com>
69766
69767         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
69768
69769         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
69770
69771 2005-10-17  Bruno Haible  <bruno@clisp.org>
69772
69773         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
69774         that it can also be used in a test.
69775
69776 2005-10-16  Bruno Haible  <bruno@clisp.org>
69777
69778         * gnulib-tool (func_emit_tests_Makefile_am): Also define
69779         TESTS_ENVIRONMENT, so that individual tests can augment it.
69780
69781         * gnulib-tool (func_create_testdir): Use an intermediate target for
69782         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
69783         macros, like $(ALLOCA_H), which cannot be passed through the command
69784         line.
69785
69786 2005-10-15  Simon Josefsson  <jas@extundo.com>
69787
69788         * modules/rijndael-tests: New file.
69789
69790         * modules/rijndael: New file.
69791
69792 2005-10-15  Simon Josefsson  <jas@extundo.com>
69793
69794         * m4/rijndael.m4: New file.
69795
69796 2005-10-15  Simon Josefsson  <jas@extundo.com>
69797
69798         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
69799
69800         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
69801
69802 2005-10-14  Simon Josefsson  <jas@extundo.com>
69803
69804         * tests/test-arcfour.c: New file.
69805
69806         * modules/arcfour, modules/arcfour-tests: New files.
69807
69808 2005-10-14  Simon Josefsson  <jas@extundo.com>
69809
69810         * m4/arcfour.m4: New file.
69811
69812 2005-10-14  Simon Josefsson  <jas@extundo.com>
69813
69814         * lib/arcfour.h, lib/arcfour.c: New files.
69815
69816 2005-10-14  Roland McGrath  <roland@redhat.com>
69817
69818         Import from libc.  [BZ #1331]
69819         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
69820         macro argument.
69821         Reported by Matej Vela <vela@debian.org>.
69822
69823 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69824
69825         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
69826         include <wchar.h>; no longer needed.
69827
69828 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69829
69830         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
69831
69832 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
69833         and  Ulrich Drepper  <drepper@redhat.com>
69834
69835         Import from libc.
69836         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
69837         instead of inline stream orientation test and two separate
69838         function calls.  Pay no attention to USE_IN_LIBIO.
69839
69840 2005-10-13  Simon Josefsson  <jas@extundo.com>
69841
69842         * modules/gc-hmac-md5-tests: New file.
69843
69844         * tests/test-gc-hmac-sha1.c: New file.
69845
69846         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
69847
69848         * modules/gc-hmac-md5-tests: New file.
69849
69850         * tests/test-gc-md5.c: New file.
69851
69852         * modules/gc-md5-tests: New file.
69853
69854 2005-10-13  Simon Josefsson  <jas@extundo.com>
69855
69856         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
69857         Move memory allocation outside of loop.
69858
69859 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
69860
69861         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
69862         intermediate directory is in a read-only file system.  Problem
69863         reported by Eric Blake.
69864
69865 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
69866
69867         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
69868
69869 2005-10-12  Simon Josefsson  <jas@extundo.com>
69870
69871         * tests/test-hmac-sha1.c: New file.
69872
69873         * modules/hmac-sha1-tests: New file.
69874
69875         * modules/hmac-sha1: New file.
69876
69877 2005-10-12  Simon Josefsson  <jas@extundo.com>
69878
69879         * modules/gc-sha1: New file.
69880
69881 2005-10-12  Simon Josefsson  <jas@extundo.com>
69882
69883         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
69884
69885         * tests/test-gc-pbkdf2-sha1.c: New file.
69886
69887 2005-10-12  Simon Josefsson  <jas@extundo.com>
69888
69889         * modules/gc-md5, modules/gc-hmac-md5: New files.
69890
69891         * modules/gc (Files): Remove md5, memxor and hmac files.
69892
69893 2005-10-12  Simon Josefsson  <jas@extundo.com>
69894
69895         * m4/gc-pbkdf2-sha1.m4: New file.
69896
69897         * m4/gc-hmac-sha1.m4: New file.
69898
69899         * m4/gc-sha1: New file.
69900
69901         * m4/hmac-sha1.m4: New file.
69902
69903 2005-10-12  Simon Josefsson  <jas@extundo.com>
69904
69905         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
69906
69907         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
69908
69909 2005-10-12  Simon Josefsson  <jas@extundo.com>
69910
69911         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
69912         suggested by Bruno Haible <bruno@clisp.org>.
69913
69914 2005-10-12  Simon Josefsson  <jas@extundo.com>
69915
69916         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
69917
69918 2005-10-12  Simon Josefsson  <jas@extundo.com>
69919
69920         * lib/gc-pbkdf2-sha1.c: New file.
69921
69922         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
69923
69924 2005-10-12  Simon Josefsson  <jas@extundo.com>
69925
69926         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
69927
69928         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
69929
69930 2005-10-12  Simon Josefsson  <jas@extundo.com>
69931
69932         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
69933         GC_USE_HMAC_MD5, respectively.
69934
69935         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
69936         (gc_md5): Fix typo.
69937
69938         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
69939
69940         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
69941
69942         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
69943
69944 2005-10-12  Bruno Haible  <bruno@clisp.org>
69945
69946         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
69947         Reported by Stepan Kasal <kasal@ucw.cz>.
69948
69949 2005-10-11  Simon Josefsson  <jas@extundo.com>
69950
69951         * tests/test-crc.c: New file.
69952
69953         * modules/crc, modules/crc-tests: New files.
69954
69955 2005-10-11  Simon Josefsson  <jas@extundo.com>
69956
69957         * m4/crc.m4: New file.
69958
69959 2005-10-11  Simon Josefsson  <jas@extundo.com>
69960
69961         * lib/gc.h: Add gc_hash and gc_hash_buffer.
69962
69963         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
69964
69965         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
69966
69967 2005-10-11  Simon Josefsson  <jas@extundo.com>
69968
69969         * lib/crc.h, lib/crc.c: New files.
69970
69971         * lib/gc.h (gc_hash_buffer): Add doc.
69972
69973 2005-10-11  Bruno Haible  <bruno@clisp.org>
69974
69975         * modules/c-strcasestr: New file.
69976         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
69977
69978 2005-10-11  Bruno Haible  <bruno@clisp.org>
69979
69980         * modules/c-strcase: New file.
69981         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
69982
69983 2005-10-11  Bruno Haible  <bruno@clisp.org>
69984
69985         * lib/strcasecmp.c: Include limits.h.
69986         (strcasecmp): Avoid integer overflow on exotic platforms.
69987         * lib/strncasecmp.c: Include limits.h.
69988         (strncasecmp): Avoid integer overflow on exotic platforms.
69989         Reported by Paul Eggert.
69990
69991 2005-10-11  Bruno Haible  <bruno@clisp.org>
69992
69993         * lib/c-strcasestr.h: New file, from GNU gettext.
69994         * lib/c-strcasestr.c: New file, from GNU gettext.
69995
69996 2005-10-11  Bruno Haible  <bruno@clisp.org>
69997
69998         * lib/c-strcase.h: New file, from GNU gettext.
69999         * lib/c-strcasecmp.c: New file, from GNU gettext.
70000         * lib/c-strncasecmp.c: New file, from GNU gettext.
70001
70002 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70003
70004         * modules/mempcpy (License): GPL -> LGPL.
70005         * modules/strchrnul (License): Likewise.
70006         * modules/sysexits (License): Likewise.
70007
70008 2005-10-08  Simon Josefsson  <jas@extundo.com>
70009
70010         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70011
70012 2005-10-07  Simon Josefsson  <jas@extundo.com>
70013
70014         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70015
70016 2005-10-06  Simon Josefsson  <jas@extundo.com>
70017
70018         * tests/test-hmac-md5.c: New file.
70019
70020         * modules/hmac-md5-tests: New file.
70021
70022         * modules/hmac-md5: New file.
70023
70024 2005-10-06  Simon Josefsson  <jas@extundo.com>
70025
70026         * m4/hmac-md5.m4: New file.
70027
70028         * m4/memxor.m4: Require gl_C_RESTRICT.
70029
70030 2005-10-06  Simon Josefsson  <jas@extundo.com>
70031
70032         * lib/memxor.c (memxor): Avoid casts and warnings.
70033
70034 2005-10-06  Simon Josefsson  <jas@extundo.com>
70035
70036         * lib/hmac-md5.c: New file.
70037
70038         * lib/hmac.h: New file.
70039
70040 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70041
70042         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70043         promotes to int, not unsigned int, to catch the AIX 5.3
70044         compiler bug.
70045
70046 2005-10-05  Simon Josefsson  <jas@extundo.com>
70047
70048         * modules/memxor: New file.
70049
70050         * modules/iconv (Files): Move config.rpath to havelib, it is used
70051         there.
70052
70053         * modules/havelib (Files): Add config.rpath.
70054
70055 2005-10-05  Simon Josefsson  <jas@extundo.com>
70056
70057         * m4/memxor.m4: New file.
70058
70059 2005-10-05  Simon Josefsson  <jas@extundo.com>
70060
70061         * lib/memxor.c (memxor): Fix compiler error.
70062
70063         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70064         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70065
70066         * lib/memxor.h, lib/memxor.c: New files.
70067
70068         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70069         we assume all systems have it, suggested by Jim Meyering
70070         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70071         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70072         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70073         same reasons.
70074
70075 2005-10-05  Simon Josefsson  <jas@extundo.com>
70076
70077         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70078
70079 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70080
70081         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70082         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70083         needed, since the source code now assumes these .h files.
70084
70085 2005-10-05  Derek Price  <derek@ximbiot.com>
70086
70087         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70088
70089 2005-10-05  Bruno Haible  <bruno@clisp.org>
70090
70091         * modules/stdint (License): Change to LGPL.
70092
70093 2005-10-04  Simon Josefsson  <jas@extundo.com>
70094
70095         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70096         D. Baushke" <mdb@gnu.org>.
70097
70098 2005-10-04  Bruno Haible  <bruno@clisp.org>
70099
70100         * lib/verify.h (verify_true): Provide alternative definition for C++.
70101
70102 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70103
70104         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70105         (SSIZE_MAX): New macro, if not already defined.
70106         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70107         than 2 GiB.
70108
70109 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70110
70111         Sync from coreutils.
70112         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70113         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70114         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70115         ULLONG_MAX doesn't work with 2.7.2.1.
70116
70117 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70118
70119         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70120         From Ben Pfaff.
70121
70122         * modules/exclude (Depends-on): Depend on verify.
70123         * modules/strtoimax (Depends-on): Likewise.
70124         * modules/utimecmp (Depends-on): Likewise.
70125
70126 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70127
70128         * lib/exclude.c: Include verify.h.
70129         (verify): Remove.  All callers changed to use verify.h's version.
70130         * lib/strtoimax.c: Likewise.
70131         * lib/utimecmp.c: Likewis.e
70132
70133         Sync from coreutils.
70134         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70135         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70136         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70137         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70138         bother returning ENOSYS if settimeofday or stime fails; just let
70139         them return whatever errno they want to return.
70140         * lib/utimens.c: Include unistd.h, for dup2.
70141         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70142         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70143
70144 2005-10-02  Jim Meyering  <jim@meyering.net>
70145
70146         Sync from coreutils.
70147         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
70148         from glibc-2.2.5 that fails for read-only files.
70149
70150 2005-10-02  Jim Meyering  <jim@meyering.net>
70151
70152         Sync from coreutils.
70153         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
70154         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
70155         `#if HAVE_CONFIG_H'.
70156         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
70157         Remove AT_FDCWD test.
70158         Do not consume the fd unless successful.
70159         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
70160         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
70161         block, so that we don't even try to compile it if settimeofday is
70162         available.  This works around a compilation failure on OSF1 V5.1,
70163         due to stime requiring a `long int*' while tv_sec is `int'.
70164
70165 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
70166
70167         Sync from coreutils.
70168         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
70169         against `yes', rather than just testing for nonempty.
70170
70171 2005-10-01  Simon Josefsson  <jas@extundo.com>
70172
70173         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
70174         and Darwin.
70175
70176         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
70177         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
70178         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
70179         freeaddrinfo and gai_strerror are declared by the POSIX headers.
70180         Check if struct addrinfo is declared.
70181
70182 2005-10-01  Simon Josefsson  <jas@extundo.com>
70183
70184         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
70185         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
70186         AI_* and EAI_* definitions.  Protect function declarations.
70187
70188 2005-10-01  Jim Meyering  <jim@meyering.net>
70189
70190         Sync from coreutils.
70191
70192         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
70193         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
70194         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
70195         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70196         in the inet and nsl libraries.  Required on Solaris 5.7.
70197
70198 2005-10-01  Jim Meyering  <jim@meyering.net>
70199
70200         Sync from coreutils.
70201         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70202         in the inet and nsl libraries.  Required on Solaris 5.7.
70203
70204 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
70205
70206         * lib/getdelim.c (getdelim): Remove unused variables.
70207
70208 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70209
70210         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
70211         so that the code works even with ancient cpp.  Portability problem
70212         with GCC 2.7.2.1 reported by Thomas M.Ott.
70213
70214 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70215
70216         * modules/regex (Depends-on): Add strcase.
70217
70218         * modules/gethostname (Licence): Change from GPL to LGPL, since
70219         gethostname.c is a trivial implementation of a standard library
70220         function.
70221         * modules/poll (License): Change from GPL to LGPL, since it's
70222         derived from LGPL code.
70223
70224 2005-09-27  Jim Meyering  <jim@meyering.net>
70225
70226         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
70227         HAVE_CONFIG_H.
70228
70229         * lib/intprops.h (signed_type_or_expr__): Define.
70230         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
70231         for unsigned types.
70232
70233 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70234
70235         * lib/verify.h (verify_expr): Remove, replacing with:
70236         (verify_true): New macro that returns true instead of void.
70237         (verify_type__): Remove.
70238         (verify): Use verify_true rather than verify_type__.
70239
70240 2005-09-26  Bruno Haible  <bruno@clisp.org>
70241
70242         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
70243         is necessary.
70244         (lib_SOURCES): Remove mbchar.c.
70245         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
70246         (Files): Add m4/mbrtowc.m4.
70247         * modules/mbiter: Likewise.
70248         * modules/mbuiter: Likewise.
70249
70250 2005-09-26  Bruno Haible  <bruno@clisp.org>
70251
70252         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
70253         compile mbchar.c if they are not both present.
70254         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
70255         * m4/mbiter.m4 (gl_MBITER): Likewise.
70256         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
70257         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
70258         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
70259
70260 2005-09-25  Jim Meyering  <jim@meyering.net>
70261
70262         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
70263         also uses socklen_t.
70264
70265 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
70266
70267         * lib/utimens.c (ENOSYS): Define if not already defined.
70268         (futimens): Support having a null PATH if the file descriptor
70269         is nonnegative.
70270
70271         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
70272         Remove.
70273         (__attribute): Define to empty unless GCC 3.1 or later.
70274         This works around a core dump on OpenBSD 3.4, which has GCC
70275         2.95.3, which dumps core when given __attribute__(()).  It also
70276         simplifies other tests, since we really don't want to bother with
70277         worrying about which ancient version of GCC supported what.
70278         Original problem reported by Yoann Vandoorselaere, with part of
70279         the fix suggested by Derek Price.
70280
70281 2005-09-24  Jim Meyering  <jim@meyering.net>
70282
70283         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70284         so we can once again use a positive bitfield width of 1 -- now we
70285         don't have to explain why we were using a bitfield width of 2.
70286
70287 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70288
70289         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70290         and similarly for the other external symbols.  Problem reported
70291         by James Gallager.
70292
70293         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70294         bug reported by Jim Meyering.
70295
70296         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70297         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70298         not needed, since socklen is a prerequisite module.
70299
70300 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70301
70302         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70303         Problem reported by Eric Blake.
70304         (getaddrinfo): Initialize se so that it's not garbage.
70305         Redo internal storage allocation so that it doesn't make unportable
70306         assumptions about alignment.
70307         Fix a memory leak.
70308
70309         * lib/utimens.c (futimens): Use futimesat if available.
70310         Prefer it to futimes since it doesn't have the futimes bug.
70311
70312         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
70313         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
70314         Instead, declare a function that returns a pointer to an array,
70315         and use verify_type__ to declare the size of the array.
70316         Problem and germ of a solution reported by Bruno Haible.
70317         (verify_type__): Use 2, not 1, for bitfield size, to avoid
70318         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
70319
70320 2005-09-23  Jim Meyering  <jim@meyering.net>
70321
70322         Sync from coreutils.
70323         Correct build failure (socklen_t not defined) on at least
70324         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
70325         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
70326
70327 2005-09-23  Jim Meyering  <jim@meyering.net>
70328
70329         * modules/getaddrinfo (Depends-on): Add socklen.
70330
70331 2005-09-23  Bruno Haible  <bruno@clisp.org>
70332
70333         * tests/test-verify.c: New file.
70334
70335 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70336
70337         Sync from coreutils.
70338
70339         * modules/argmatch (Depends-on): Add verify.
70340         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
70341         unistd-safer.
70342         * modules/save-cwd (Depends-on): Likewise.
70343
70344         * modules/openat (Files): Add lib/openat-die.c.
70345         (Depends-on): Remove error, exitfail.
70346         Add dirname.
70347
70348         * modules/verify: New file.
70349         * MODULES.html.sh (Diagnostics <assert.h>): New section,
70350         with "verify" module.
70351
70352 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70353
70354         Sync from coreutils.
70355
70356         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
70357         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
70358         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
70359         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
70360         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
70361         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
70362         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
70363         Don't bother checking for string.h, stdlib.h, unistd.h.
70364         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
70365         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
70366         module's job.
70367         * m4/jm-macros.m4 (gl_MACROS): Likewise.
70368         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
70369
70370         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
70371         (gl_GETDATE): Use it.
70372
70373         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
70374
70375 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70376
70377         Sync from coreutils.
70378
70379         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
70380         stat-time.h.
70381         * lib/argmatch.h: Include verify.h
70382         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
70383         (ARGMATCH_ASSERT): Remove; unused.
70384         * lib/canonicalize.c: Assume STDC_HEADERS.
70385         * lib/exclude.c: Include "strcase.h".
70386         * lib/regex_internal.h [!defined _LIBC]: Likewise.
70387         * lib/getusershell.c: Include stdio--.h rather than stdio.h
70388         and stdio-safer.h.
70389         (getusershell): Call fopen, not fopen_safer.
70390         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
70391         Do not include unistd-safer.h.
70392         (save_cwd): Don't call fd_safer; no longer needed
70393         now that we include fcntl--.h.
70394
70395         * lib/getdate.y (relative_time): New type.
70396         (RELATIVE_TIME_0): New constant.
70397         (parser_control): Use relative_time instead of doing it ourselves.
70398         (%union): Add new relative_time rel member.
70399         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
70400         Now typeless.
70401         (relunit, relunit_snumber): Now of type rel.
70402         (zone, rel, relunit, get_date): Adjust to above changes.
70403
70404         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
70405         Do not include unistd-safer.h.
70406         (getloadavg): Don't call fd_safer; no longer needed
70407         now that we include fcntl--.h.
70408
70409         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
70410         (make_dir_parents): Treat ENOSYS like EEXIST.
70411
70412         Improve quality of diagnostics on restore_cwd failure.
70413         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
70414         (make_dir_parents): Last arg is now int * (for errno), not bool *.
70415         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
70416         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
70417         each time through the loop.  Do not diagnose restore_cwd failure;
70418         that is the caller's job (and perhaps the caller does not care).
70419
70420         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
70421         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
70422         If the file already exists but is not a directory, don't bother
70423         to try to make its parents.
70424         Close potential file descriptor leak if we can't chdir("/") (!).
70425         Don't always return true if chdir($PWD) fails; return true only
70426         if the requested action was done successfully (except for the
70427         chdir($PWD)).
70428         Don't log final directory unless we actually made it.
70429         Refactor to avoid duplicate code to fix up permissions.
70430         Don't attempt to fix up parent permissions if chdir($PWD) fails.
70431
70432         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
70433         to make it a bit faster and (I hope) clearer.
70434         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
70435         Fix bug in formats like %2N.
70436
70437         * lib/verify.h: New file.
70438
70439 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70440
70441         Sync from coreutils.
70442         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
70443
70444 2005-09-22  Jim Meyering  <jim@meyering.net>
70445
70446         Sync from coreutils.
70447
70448         * m4/lstat.m4 (gl_FUNC_LSTAT):
70449         Use AC_LIBSOURCES to require lstat.c and lstat.h.
70450         Remove obsolete comment.
70451         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
70452         * m4/xstrtod.m4: Likewise.
70453
70454         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
70455
70456 2005-09-22  Jim Meyering  <jim@meyering.net>
70457
70458         Sync from coreutils.
70459
70460         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
70461
70462         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
70463         the .tm_year member, since otherwise gcc-4.0 would now warn about
70464         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
70465
70466         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
70467         order to avoid an unsuppressible warning from gcc on 64-bit systems.
70468
70469         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
70470         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
70471         when run in a time zone for which daylight savings time is in effect
70472         for the starting date.
70473
70474         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
70475         stop us from restricting permissions of just-created absolute-named
70476         directories.
70477         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
70478         to restore initial working directory.
70479         * lib/mkdir-p.c (make_dir_parents): New parameter:
70480         different_working_dir, to tell caller if/when we change the working
70481         directory and are unable to return to the initial one.
70482         * lib/mkdir-p.h (make_dir_parents): Update prototype.
70483         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
70484         `return false'.  This fixes a bug introduced on 2004-07-30.
70485
70486         * lib/openat.c (fdopendir): Be sure to close the supplied
70487         file descriptor before returning.  This makes our replacement
70488         implementation a little closer to Solaris's, where fdopendir
70489         ties the file descriptor to the returned DIR* pointer.
70490         * lib/openat.c (unlinkat): New function.
70491         * lib/openat.h (unlinkat): Add prototype.
70492         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
70493         (openat_restore_fail): Rename from openat_restore_die.
70494         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
70495
70496         Provide an alternative to exiting immediately upon save_cwd or
70497         restore_cwd failure.  Now, an application can arrange e.g.,
70498         to perform a longjump in that case.
70499         * lib/openat.c: Include dirname.h.
70500         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
70501         (rpl_openat, fdopendir, fstatat): Call openat_save_die
70502         and openat_restore_die rather than calling error directly.
70503         Don't include "error.h" or "exitfail.h"; they're no longer needed.
70504
70505         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
70506         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
70507         define.
70508
70509         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
70510         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
70511                             int utc, int nanoseconds);
70512         Background:
70513         date should not have to allocate a megabyte of virtual memory to
70514         handle a format argument like +%1048575T.  When implemented with
70515         strftime, it must allocate such a buffer, use strftime to fill it
70516         in, print it, then free it.
70517         With fprintftime, it simply prints everything and exits.
70518         With no need for memory allocation, that's one fewer way to fail.
70519         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
70520         optional field width, not before, so we accept %9:z, not %:9z.
70521         (my_strftime): Be sure to use L_('x') for literals.
70522
70523         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
70524         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
70525         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
70526         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
70527         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
70528         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
70529         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
70530         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
70531         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
70532         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
70533         * lib/xgethostname.c, lib/xreadlink.c:
70534         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
70535
70536         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
70537         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
70538         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
70539         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70540         and don't include <sys/file.h>).
70541
70542 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
70543
70544         Sync from coreutils.
70545
70546         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
70547         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
70548         [!LDAV_DONE]: Avoid unused variable warning.
70549
70550 2005-09-21  Bruno Haible  <bruno@clisp.org>
70551
70552         * lib/unicodeio.h (unicode_to_mb): New declaration.
70553
70554 2005-09-20  Derek Price  <derek@ximbiot.com>
70555
70556         * lib/getaddrinfo.c: Don't include <netdb.h> included from
70557         getaddrinfo.h.
70558
70559 2005-09-20  Bruno Haible  <bruno@clisp.org>
70560
70561         * gnulib-tool: Remove trailing slashes from the values specified for
70562         --source-base, --m4-base, --tests-base, --aux-dir.
70563         Suggested by Simon Josefsson <jas@extundo.com>.
70564
70565 2005-09-20  Bruno Haible  <bruno@clisp.org>
70566
70567         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
70568         func_modules_to_filelist, func_import, func_create_testdir): Make all
70569         sorting results locale-independent, so that gnulib-cache.m4 doesn't
70570         change when gnulib-tool is invoked in a different locale.
70571
70572 2005-09-19  Simon Josefsson  <jas@extundo.com>
70573
70574         * m4/socklen.m4: Fix typo.
70575
70576 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70577
70578         Use a consistent style for including <config.h>.
70579         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
70580         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
70581         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
70582         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
70583         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
70584         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
70585         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
70586         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
70587         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
70588         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
70589         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
70590         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
70591         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
70592         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
70593         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
70594         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
70595         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
70596         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
70597         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
70598         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
70599         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
70600         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
70601         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
70602         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
70603         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
70604         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
70605         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
70606         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
70607         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
70608         lib/xstrtoumax.c, lib/yesno.c:
70609         Standardize inclusion of config.h.
70610         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
70611         lib/inttostr.h:  Removed inclusion of config.h from header files.
70612         * lib/inttostr.c:  Adjusted in-tree users.
70613         * lib/timespec.h: Remove superfluous warning to include config.h.
70614         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
70615         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
70616         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
70617         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
70618         config.h with HAVE_CONFIG_H.
70619
70620 2005-09-19  Jim Meyering  <jim@meyering.net>
70621
70622         * modules/pathmax (License): Change to LGPL.
70623
70624 2005-09-19  Derek Price  <derek@ximbiot.com>
70625
70626         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
70627
70628 2005-09-19  Bruno Haible  <bruno@clisp.org>
70629
70630         * gnulib-tool (import): Provide default for --tests-base.
70631
70632 2005-09-19  Bruno Haible  <bruno@clisp.org>
70633
70634         * doc/quote.texi: New file, extracted from gnulib.texi.
70635         * doc/ctime.texi: New file, extracted from gnulib.texi.
70636         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
70637         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
70638         * doc/gnulib.texi: Include them.
70639
70640 2005-09-18  Bruno Haible  <bruno@clisp.org>
70641
70642         Portability fix.
70643         * gnulib-tool (func_readlink): New function.
70644         (func_ln_if_changed): Use it.
70645
70646 2005-09-18  Bruno Haible  <bruno@clisp.org>
70647
70648         * gnulib-tool: Support --with-tests also with --import.
70649         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
70650         (func_import): Use variables $testsbase and $inctests. Emit a
70651         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
70652         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
70653         SUBDIRS += $testsdir.
70654         (func_create_testdir): Update.
70655
70656 2005-09-18  Bruno Haible  <bruno@clisp.org>
70657
70658         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
70659         instead of $dry_run.
70660         (func_cp_if_changed, func_mv_if_changed): Remove functions.
70661         (func_ln_if_changed): Don't handle dry-run here.
70662         (func_import): In dry-run mode, detect more precisely which actions
70663         would be performed, and don't use "...ing" verbs.
70664
70665 2005-09-18  Bruno Haible  <bruno@clisp.org>
70666
70667         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
70668         (func_import): Use join on two temporary files instead of three nested
70669         loops, in order to determine which files are new or old.
70670
70671 2005-09-18  Bruno Haible  <bruno@clisp.org>
70672
70673         * gnulib-tool (func_import): Comment out code that spits out the
70674         new files with --dry-run.
70675
70676 2005-09-18  Bruno Haible  <bruno@clisp.org>
70677
70678         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
70679
70680 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70681
70682         * lib/stat-time.h: New file.
70683         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
70684         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
70685         in a different way.
70686         (timespec_cmp): New function.
70687         * lib/utimecmp.c: Include stat-time.h.
70688         (SYSCALL_RESOLUTION): Depend on whether various struct stat
70689         members exist, not on the obsolescent ST_MTIM_NSEC.
70690         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
70691
70692 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70693
70694         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
70695
70696 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70697
70698         * MODULES.html.sh (File system functions): Add stat-time.
70699         * modules/stat-time: New file.
70700         * modules/timespec (Files): Remove m4/st_mtim.m4; this
70701         is now done in a different way, by the stat-time module.
70702         * modules/utimecmp (Depends-on): Add stat-time.
70703
70704 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70705
70706         * m4/st_mtim.m4: Remove.  Superseded by...
70707         * m4/stat-time.m4: New file.
70708         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
70709         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
70710
70711 2005-09-15  Derek Price  <derek@ximbiot.com>
70712
70713         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
70714
70715 2005-09-15  Derek Price  <derek@ximbiot.com>
70716
70717         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
70718         * lib/regex_internal.c: Ditto, using this...
70719         (__GNUC_PREREQ): ...new macro.
70720         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
70721         using...
70722         (__GNUC_PREREQ): ...this new macro.
70723
70724         * lib/strstr.h: Include string.h. Define strstr as a macro here.
70725
70726 2005-09-15  Derek Price  <derek@ximbiot.com>
70727             Paul Eggert  <eggert@cs.ucla.edu>
70728
70729         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
70730         changes, consolidating in...
70731         * lib/regex_internal.h: ...this file.
70732
70733 2005-09-13  Jim Meyering  <jim@meyering.net>
70734
70735         * lib/canon-host.c: Filter through gnu indent and reword comments
70736         slightly.
70737         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
70738
70739 2005-09-13  Derek Price  <derek@ximbiot.com>
70740
70741         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
70742         failure.
70743         Reported by Jim Meyering  <jim@meyering.net>.
70744
70745 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70746
70747         * lib/base64.c: Typo.
70748         (base64_encode): Put b64str in initialized data section.
70749
70750 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
70751
70752         Merge glibc and coreutils changes into gnulib, plus a few
70753         extra fixes.
70754         * lib/md5.c: Use #error rather than a string.
70755         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
70756         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
70757         (__attribute__): Define to empty for non recent-GCC.
70758         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
70759         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
70760         Renamed from their non-__ counterparts, with new macros replacing
70761         them if not _LIBC.  Add __THROW attribute.
70762         (rol): Remove.
70763         (struct md5_ctx): Align buffer if using GCC.
70764         * lib/sha1.h (struct sha1_ctx): Likewise.
70765         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
70766         The old name was backwards.
70767         (NOTSWAP): Remove; not used.
70768         (rol): New macro, moved here from md5.h.
70769         (sha1_process_block): Remove a FIXME that doesn't make sense.
70770
70771 2005-09-12  Derek Price  <derek@ximbiot.com>
70772
70773         Return usable errors from canon-host.
70774         * lib/canon-host.h: New file.
70775         * lib/canon-host.c (canon_host): Wrap...
70776         (canon_host_r): ...this new function, which now relies exclusively on
70777         getaddrinfo.
70778         (ch_strerror): New function.
70779         (last_cherror): New global.
70780         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
70781         interface.
70782         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
70783         void *.
70784         (freeaddrinfo): Free ai->ai_canonname when set.
70785
70786 2005-09-12  Derek Price  <derek@ximbiot.com>
70787
70788         Make canon-host require getaddrinfo.
70789         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
70790         AC_LIBSOURCE canon-host.h.  Call...
70791         (gl_PREREQ_CANON_HOST): ...this new function, which requires
70792         gl_GETADDRINFO.
70793         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
70794
70795 2005-09-12  Derek Price  <derek@ximbiot.com>
70796
70797         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
70798         LGPL.
70799         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
70800
70801 2005-09-12  Derek Price  <derek@ximbiot.com>
70802
70803         * lib/gai_strerror.c: Include config.h when available.  Include
70804         getaddrinfo.h before other headers to test interface.
70805         Reported by Larry Jones <lawrence.jones@ugs.com>.
70806
70807 2005-09-12  Derek Price  <derek@ximbiot.com>
70808             Paul Eggert  <eggert@cs.ucla.edu>
70809
70810         * modules/glob (Files): Add glob-libc.h.
70811
70812 2005-09-12  Derek Price  <derek@ximbiot.com>
70813             Paul Eggert  <eggert@cs.ucla.edu>
70814
70815         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
70816         glob_.h, glob-libc.h.
70817         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
70818
70819 2005-09-12  Derek Price  <derek@ximbiot.com>
70820             Paul Eggert  <eggert@cs.ucla.edu>
70821
70822         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
70823         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
70824         protecting things that should be done only in gnulib contexts.
70825         * lib/glob_.h: New file, containing only the glob things needed for
70826         gnulib.
70827         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
70828         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
70829         (glob, globfree, glob_pattern_p): Now defined simply in terms of
70830         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
70831         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
70832         and to respect the namespace rules better.
70833
70834 2005-09-08  Simon Josefsson  <jas@extundo.com>
70835
70836         * modules/socklen: New file.
70837
70838 2005-09-08  Simon Josefsson  <jas@extundo.com>
70839
70840         * m4/socklen.m4: New file.
70841
70842 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70843
70844         * modules/utimens (Files): Add m4/utimbuf.m4, since
70845         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
70846         Reported by Sergey Poznyakoff.
70847
70848 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70849
70850         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
70851         definitions, since that's the preferred style in glibc.
70852         Fix a minor spacing issue, and update copyright notice to match
70853         glibc's.
70854
70855 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70856
70857         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
70858
70859 2005-09-06  Simon Josefsson  <jas@extundo.com>
70860
70861         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
70862         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
70863
70864 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70865
70866         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
70867         warning.
70868
70869 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70870
70871         * config/srclist.txt: Add glibc bug 1302.
70872
70873 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
70874
70875         Change bitset word type from unsigned int to unsigned long int,
70876         as this has better performance on typical 64-bit hosts.
70877         Port bitset code to hosts with unusual word sizes.
70878         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
70879         (build_collating_symbol):
70880         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
70881         argument is a bitset.  This is merely a style issue, but it makes
70882         it clearer that an entire array is expected.
70883         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
70884         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
70885         Port to the case where bitset_word is not the same as unsigned int.
70886         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
70887         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
70888         Likewise.
70889         * lib/regexec.c (check_dst_limits_calc_pos_1,
70890         check_subexp_matching_top):
70891         (build_trtable, group_nodes_into_DFAstates):
70892         Likewise.
70893         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
70894         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
70895         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
70896         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
70897         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
70898         * lib/regcomp.c (optimize_subexps, lower_subexp):
70899         Work even if bitset_word has holes in its bitwise representation.
70900         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
70901         * lib/regexec.c (check_dst_limits_calc_pos_1,
70902         check_subexp_matching_top):
70903         Likewise.
70904         * lib/regex_internal.c (re_string_reconstruct):
70905         Don't assume UCHAR_MAX == 255.
70906         * lib/regex_internal.h (bitset_set_all): Likewise.
70907         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
70908         All uses changed.
70909         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
70910         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
70911         All uses changed.
70912         (BITSET_WORD_MAX): New macro.
70913         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
70914         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
70915         (bitset_empty, bitset_copy):
70916         Prefer sizeof (bitset) to multiplying it out ourselves.
70917         (bitset_not_merge): Remove; unused.
70918         (bitset_contain): Return bool, not unsigned int with one bit on.
70919         All callers changed.
70920         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
70921         alignment than re_node_set; do this by defining a new internal
70922         type struct dests_alloc and using it to allocate memory.
70923
70924 2005-09-05  Bruno Haible  <bruno@clisp.org>
70925
70926         * gnulib-tool (func_import): Fix comparison in handling of symbolic
70927         links.
70928
70929 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
70930
70931         * modules/size_max (Makefile.am): Add size_max.h
70932
70933 2005-09-04  Derek Price  <derek@ximbiot.com>
70934
70935         * gnulib-tool (func_import): Fix reversed $symbolic logic.
70936
70937 2005-09-03  Simon Josefsson  <jas@extundo.com>
70938
70939         * gnulib-tool: Fix typo.
70940
70941 2005-09-03  Simon Josefsson  <jas@extundo.com>
70942
70943         * config/srclist.txt: Add glibc bug 1293.
70944
70945 2005-09-03  Derek Price  <derek@ximbiot.com>
70946
70947         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
70948         From Larry Jones <lawrence.jones@ugs.com>.
70949
70950 2005-09-02  Simon Josefsson  <jas@extundo.com>
70951
70952         * modules/socklen: New file.
70953
70954 2005-09-02  Simon Josefsson  <jas@extundo.com>
70955
70956         * modules/havelib: New module.
70957
70958         * modules/gettext, modules/iconv, modules/lock, modules/readline:
70959         Use havelib.
70960
70961 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70962
70963         Check for arithmetic overflow when calculating sizes, to prevent
70964         some buffer-overflow issues.  These patches are conservative, in the
70965         sense that when I couldn't determine whether an overflow was possible,
70966         I inserted a run-time check.
70967         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
70968         macros.
70969         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
70970         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
70971         (re_xnrealloc, re_x2nrealloc): New inline functions.
70972         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
70973         parse_bracket_exp):
70974         (build_equiv_class, build_charclass): Check for arithmetic overflow
70975         in size expression calculations.
70976         * lib/regex_internal.c (re_string_realloc_buffers):
70977         (build_wcs_upper_buffer, re_node_set_add_intersect):
70978         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
70979         (re_dfa_add_node, register_state): Likewise.
70980         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
70981         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
70982         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
70983         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
70984
70985 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70986
70987         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70988         m4/ulonglong.m4.  Problem reported by Martin Lambers.
70989
70990 2005-09-02  Bruno Haible  <bruno@clisp.org>
70991
70992         Support for lib vs. lib64 distinction on biarch platforms.
70993         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
70994         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
70995         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
70996
70997 2005-09-02  Bruno Haible  <bruno@clisp.org>
70998
70999         * gnulib-tool (import): In the other first-use case, provide defaults
71000         as well.
71001
71002 2005-09-02  Bruno Haible  <bruno@clisp.org>
71003
71004         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71005         patches not yet found in the latest gettext release.
71006
71007 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71008
71009         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71010         to avoid a collision with bits/local_lim.h in glibc.
71011         All uses changed.  Problem reported by Dmitry V. Levin in
71012         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71013
71014         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71015         bugs in int versus size_t comparisons.
71016         (re_string_context_at): Fix bug where the code assumed that
71017         Idx is signed.
71018
71019         Use bool where appropriate.
71020         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71021         All callers changed.
71022         (calc_eclosure_iter): Likewise, for ROOT arg.
71023         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71024         (build_charclass_op): Likewise, for NON_MATCH arg.
71025         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71026         (re_string_construct_common): Likewise, for ICASE arg.
71027         * lib/regexec.c (re_search_2_stub, re_search_stub):
71028         Likewise, for RET_LEN arg.
71029         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71030         (set_regs): Likewise, for FL_BACKTRACK arg.
71031         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71032         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71033         (calc_eclosure_iter, parse_bracket_exp):
71034         Use bool for internal variables that are booleans.
71035         * lib/regexec.c (re_search_internal, check_matching,
71036         proceed_next_node):
71037         (set_regs, build_sifted_states, sift_states_bkref):
71038         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71039         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71040         (find_collation_sequence_value):
71041         Likewise.
71042         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71043         (re_node_set_compare):
71044         Return bool, not int. All callers changed.
71045         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71046         (build_trtable, check_node_accept): Likewise.
71047         * lib/regex_internal.h: Include stdbool.h.
71048
71049         Fix bugs uncovered when converting to bool.
71050         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71051         failure instead of charging ahead blindly.
71052         * lib/regex_internal.c (register_state): Likewise.
71053         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71054         for freeing internal storage.
71055         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71056         bitset pieces used as boolean, to avoid undefined behavior
71057         on hosts that do int overflow checking.
71058
71059 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71060
71061         * config/srclist.txt: Add glibc bugs 1285-1287.
71062
71063 2005-09-01  Jim Meyering  <jim@meyering.net>
71064
71065         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71066         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71067         Require gl_STAT_MACROS, too.
71068
71069 2005-09-01  Bruno Haible  <bruno@clisp.org>
71070
71071         * gnulib-tool (import): In the first-use case, provide defaults.
71072
71073 2005-09-01  Bruno Haible  <bruno@clisp.org>
71074
71075         * gnulib-tool (func_import): Remove the .tmp files.
71076
71077 2005-09-01  Bruno Haible  <bruno@clisp.org>
71078
71079         * gnulib-tool (func_import): Fix handling of symbolic links.
71080
71081 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71082
71083         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71084         old glibc regex code mishandles strings longer than 2**31 bytes.
71085         This patch fixes this when the regex code is used in gnulib
71086         (i.e., outside glibc).
71087
71088         This patch should not affect the use of the regex code inside
71089         glibc.  No doubt this problem also needs to be handled for glibc
71090         as well, but the result will be an incompatible change to the
71091         glibc ABI, and the old ABI will have to be supported too.  That
71092         can be the the subject for another patch.
71093
71094         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71095         governing whether the rest of this patch is active.  By default,
71096         the macro is disabled and the patch has no effect.
71097         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71098         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71099         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71100         (re_match_2, re_set_registers): Use the new types.
71101         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71102         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71103         New macros.
71104         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71105         (re_string_context_at, bin_tree_t, re_dfastate_t):
71106         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71107         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71108         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71109         (re_string_char_size_at, re_string_wchar_at):
71110         (re_string_elem_size_at):
71111         Use the new types and macros to port to 64-bit hosts.
71112         Use unsigned types for internal values, so that the code
71113         mostly works even for arrays larger than SSIZE_MAX.
71114         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71115         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71116         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71117         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71118         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71119         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71120         (calc_inveclosure, parse_dup_op, build_range_exp):
71121         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71122         (fetch_number, create_token_tree, mark_opt_subexp):
71123         Likewise.
71124         * lib/regex_internal.c (re_string_construct_common,
71125         create_ci_newstate):
71126         (create_cd_newstate, re_string_allocate, re_string_construct):
71127         (re_string_realloc_buffers, build_wcs_upper_buffer):
71128         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71129         (re_string_reconstruct, re_string_peek_byte_case):
71130         (re_string_fetch_byte_case, re_string_context_at):
71131         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71132         (re_node_set_init_copy, re_node_set_add_intersect):
71133         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71134         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71135         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71136         (re_acquire_state, re_acquire_state_context, register_state):
71137         Likewise.
71138         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71139         search_cur_bkref_entry):
71140         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71141         (re_search_internal, re_search_2_stub, re_search_stub)
71142         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71143         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
71144         (update_cur_sifted_state, check_dst_limits):
71145         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71146         (check_subexp_limits, sift_states_bkref, merge_state_array):
71147         (check_subexp_matching_top, get_subexp, get_subexp_sub):
71148         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
71149         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71150         (expand_bkref_cache, check_node_accept_bytes):
71151         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
71152         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
71153         (acquire_init_state_context, check_halt_node_context):
71154         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
71155         (sift_states_backward, clean_state_log_if_needed):
71156         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
71157         (find_recover_state, transit_state_sb, transit_state_mb):
71158         (transit_state_bkref, build_trtable, match_ctx_clean):
71159         Likewise.
71160         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
71161         to work around an assumption that REG_MISSING is negative.
71162
71163         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
71164         (seek_collating_symbol_entry) [defined _LIBC]:
71165         (lookup_collation_sequence_value) [defined _LIBC]:
71166         (build_range_exp, build_collating_symbol) [defined _LIBC]:
71167         Use prototypes rather than old-style function definitions.
71168         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
71169         (transit_state_sb) [0]:
71170         (find_collation_sequence_value) [defined _LIBC]: Likewise.
71171
71172         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
71173         rm_eo.
71174
71175         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
71176         (optimize_subexps, lower_subexp):
71177         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
71178         since the signed shift might overflow.  Use 1u<<31 instead.
71179         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71180         Likewise.
71181         * lib/regexec.c (check_dst_limits_calc_pos_1,
71182         check_subexp_matching_top): Likewise.
71183
71184         * lib/regcomp.c (optimize_subexps, lower_subexp):
71185         Use CHAR_BIT rather than 8, for clarity.
71186         * lib/regexec.c (check_dst_limits_calc_pos_1):
71187         (check_subexp_matching_top): Likewise.
71188         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
71189         have to worry about portability issues when shifting it left.
71190         Remove no-longer-needed test for table_size > 0.
71191         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
71192         in a word, as the resulting behavior is undefined.
71193         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
71194         in one case, a <= should have been an <, and in another case the
71195         whole test was missing.
71196         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
71197         the standard name CHAR_BIT.
71198         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
71199         this is not true on one's complement and signed-magnitude hosts.
71200
71201         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
71202         next_last_offset.
71203         (struct re_dfa_t): Remove unused member states_alloc.
71204         * lib/regcomp.c (init_dfa): Don't initialize unused members.
71205
71206 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71207
71208         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
71209         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
71210         and large-file glibc and in 32-bit large-file Solaris.
71211
71212 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71213
71214         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
71215         lengths fit in regoff_t; this isn't true if regoff_t is the same
71216         width as size_t.
71217         * lib/regex.c (re_search_internal): 5th arg is LAST_START
71218         (= START + RANGE) instead of RANGE.  This avoids overflow
71219         problems when regoff_t is the same width as size_t.
71220         All callers changed.
71221         (re_search_2_stub): Check for overflow when adding the
71222         sizes of the two strings.
71223         (re_search_stub): Check for overflow when adding START
71224         to RANGE; if it occurs, substitute the extreme value.
71225
71226 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71227
71228         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
71229
71230 2005-08-31  Jim Meyering  <jim@meyering.net>
71231
71232         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
71233         a pointer-to-const.
71234         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
71235         (register_state): Likewise.
71236         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
71237         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71238         (group_nodes_into_DFAstates): Likewise.
71239
71240 2005-08-31  Jim Meyering  <jim@meyering.net>
71241
71242         * check-module: Add a FIXME comment.
71243
71244 2005-08-31  Eric Blake  <ebb9@byu.net>
71245
71246         * modules/unistd-safer (Files): Add unistd--.h.
71247         * modules/stdio-safer (Files): Add stdio--.h.
71248
71249 2005-08-31  Derek Price  <derek@ximbiot.com>
71250
71251         * lib/getdelim.c (getdelim): Return EOF on EOF.
71252         Reported by Larry Jones <lawrence.jones@ugs.com>.
71253
71254 2005-08-31  Bruno Haible  <bruno@clisp.org>
71255
71256         Avoid unnecessary diffs in the generated lib/Makefile.am.
71257         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
71258         the generated files.
71259         (func_import): Don't set cmd.
71260
71261 2005-08-31  Bruno Haible  <bruno@clisp.org>
71262
71263         * lib/strstr.c: Include <stddef.h>, for NULL.
71264         * lib/strcasestr.c: Likewise.
71265         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71266
71267 2005-08-31  Bruno Haible  <bruno@clisp.org>
71268
71269         * gnulib-tool: New option --macro-prefix.
71270         (func_import): Use macro_prefix.
71271         (import): Handle option --macro-prefix.
71272
71273 2005-08-31  Bruno Haible  <bruno@clisp.org>
71274
71275         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71276         Also use new variables cached_lgpl, cached_libtool.
71277
71278 2005-08-31  Bruno Haible  <bruno@clisp.org>
71279
71280         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71281         always instantiating them.
71282
71283 2005-08-31  Bruno Haible  <bruno@clisp.org>
71284
71285         * gnulib-tool (func_import): Read the previous cached settings
71286         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71287         earlier added by gnulib but are now dropped. Warn when a gnulib file
71288         overwrites a non-gnulib file.
71289
71290 2005-08-31  Bruno Haible  <bruno@clisp.org>
71291
71292         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71293         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71294         projects that don't keep autogenerated files in CVS. Put into
71295         actioncmd only the specified modules, not the transitive closure.
71296
71297 2005-08-31  Bruno Haible  <bruno@clisp.org>
71298
71299         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71300         Create directories that shall be filled.
71301         (import): Don't look for gl_* macros in configure.ac. Recurse across
71302         all directories containing a gnulib-cache.m4 files, if meaningful.
71303
71304 2005-08-31  Bruno Haible  <bruno@clisp.org>
71305
71306         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71307         (import): Set seen_libtool when we see gl_LIBTOOL.
71308
71309 2005-08-31  Bruno Haible  <bruno@clisp.org>
71310
71311         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
71312         declaration macro definitions from generated gnulib.m4.
71313
71314 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
71315
71316         * lib/iconvme.h: Add prototype for iconv_alloc.
71317
71318 2005-08-29  Simon Josefsson  <jas@extundo.com>
71319
71320         * lib/iconvme.c: Fix errno.
71321
71322 2005-08-29  Bruno Haible  <bruno@clisp.org>
71323
71324         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
71325         that it works when the directory contains spaces.
71326
71327 2005-08-29  Bruno Haible  <bruno@clisp.org>
71328
71329         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
71330
71331 2005-08-29  Bruno Haible  <bruno@clisp.org>
71332
71333         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
71334         Emit more advice.
71335
71336 2005-08-29  Bruno Haible  <bruno@clisp.org>
71337         and Stepan Kasal  <kasal@ucw.cz>
71338
71339         * check-module: If more parameters are given, check each of them
71340         separately; add more exceptions, as noted by Jim Meyering.
71341         (check_module): New procedure.
71342         (%exempt_header): Now contains all exceptions.
71343
71344 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
71345
71346         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
71347
71348 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71349
71350         * lib/iconvme.c: Split iconv_string into iconv_alloc.
71351
71352 2005-08-28  Bruno Haible  <bruno@clisp.org>
71353
71354         * m4/gnulib-tool.m4: New file.
71355
71356 2005-08-27  Jim Meyering  <jim@meyering.net>
71357
71358         * modules/unistd-safer (Files): Add pipe-safer.c.
71359         * modules/fcntl-safer (Files): Add creat-safer.c.
71360
71361 2005-08-27  Jim Meyering  <jim@meyering.net>
71362
71363         * m4/stdlib-safer.m4: New file.  From coreutils.
71364         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
71365         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
71366         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
71367         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
71368         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
71369
71370 2005-08-27  Jim Meyering  <jim@meyering.net>
71371
71372         * lib/fopen-safer.c: Merge minor changes from coreutils.
71373         * lib/dup-safer.c: Likewise.
71374         * lib/fd-safer.c: Likewise.
71375
71376         Merge from coreutils.
71377         * lib/stdio--.h: New file.
71378         * lib/stdlib--.h: New file.
71379         * lib/mkstemp-safer.c: New file.
71380
71381         GNU tar needs these.
71382         * lib/pipe-safer.c: New file.
71383         * lib/creat-safer.c: New file.
71384         * lib/fcntl--.h (creat): Define to creat_safer.
71385         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
71386         * lib/unistd--.h (pipe): Define to pipe_safer.
71387         * lib/unistd-safer.h: Declare pipe_safer.
71388
71389 2005-08-26  Simon Josefsson  <jas@extundo.com>
71390
71391         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
71392         Haible <bruno@clisp.org>.
71393
71394 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
71395
71396         * lib/regex_internal.h: Remove all references to
71397         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
71398         or better.
71399         (bitset_not, bitset_merge, bitset_not_merge):
71400         (bitset_mask, re_string_allocate, re_string_construct):
71401         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
71402         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
71403         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
71404         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
71405         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71406         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71407         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
71408         (re_acquire_state_context):
71409         Remove unnecessary forward decls.
71410         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
71411         Put __attribute at function definition,
71412         now that the function decl has been removed.
71413         * lib/regex_internal.c (re_string_peek_byte_case):
71414         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
71415         Likewise.
71416
71417 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
71418
71419         * m4/regex.m4: Add AC_PREREQ(2.50).
71420         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
71421
71422 2005-08-25  Simon Josefsson  <jas@extundo.com>
71423
71424         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
71425         __fsetlocking.
71426
71427 2005-08-25  Simon Josefsson  <jas@extundo.com>
71428
71429         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
71430         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
71431         GLIBC specific code.
71432
71433 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71434
71435         Make regex safe for g++.  This fixes one real bug (an "err"
71436         that should have been "*err").  g++ problem reported by
71437         Sam Steingold.
71438         * lib/regex_internal.h (re_calloc): New macro, consistent with
71439         re_malloc etc.  All callers of calloc changed to use re_calloc.
71440         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
71441         not int.  All callers changed.
71442         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
71443         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
71444         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
71445         (find_recover_state): Change "err" to "*err"; this fixes what
71446         appears to be a real bug.
71447         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
71448         versus int.
71449
71450 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71451
71452         * modules/regex (Depends-on): Add malloc, since the code
71453         assumes that !malloc(0) means failure.
71454
71455 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71456
71457         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
71458
71459         alloca modernization/simplification for regex.
71460         * lib/regex.c: Remove portability cruft for alloca.  This no longer
71461         needs to be at the start of the file, and can be moved into
71462         regex_internal.h and simplified.
71463         * lib/regex_internal.h: Include <alloca.h>.
71464         (__libc_use_alloca) [!defined _LIBC]: New macro.
71465         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
71466         now works outside glibc.
71467
71468 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71469
71470         * config/srclist.txt: Add glibc bugs 1241, 1245.
71471
71472 2005-08-25  Jim Meyering  <jim@meyering.net>
71473
71474         * lib/open-safer.c: Include <config.h>.
71475         Otherwise, we'd lose LARGEFILE support in any file using
71476         e.g. "fcntl--.h"
71477
71478 2005-08-25  Bruno Haible  <bruno@clisp.org>
71479
71480         * m4/minmax.m4: Require autoconf 2.52.
71481         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
71482         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
71483         alternatives of translit over the alphabet.
71484         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
71485
71486 2005-08-24  Simon Josefsson  <jas@extundo.com>
71487
71488         * tests/test-getpass.c: New file.
71489
71490 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71491
71492         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
71493         for GNU regex features.
71494
71495 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71496
71497         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
71498         * lib/regex.h (regerror): Likewise.
71499
71500         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
71501         requires this.  (The code never needed it.)
71502
71503         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
71504         All uses of recently-renamed identifiers changed to use the new,
71505         POSIX-compliant names.  The code will build and run just fine
71506         without these changes, but it's better to eat our own dog food
71507         and use the standard-conforming names.
71508
71509         * lib/regex.h: Fix a multitude of POSIX name space violations.
71510         These changes have an effect only for programs that define
71511         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
71512         do not change anything for programs compiled in the normal way.
71513         Also, there is no effect on the ABI.
71514
71515         (_REGEX_SOURCE): New macro.
71516         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
71517         defined and _GNU_SOURCE is not; this fixes a name space violation.
71518
71519         Rename the following macros to obey POSIX requirements.
71520         The old names are still visible as macros if _REGEX_SOURCE is defined.
71521         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
71522         RE_BACKSLASH_ESCAPE_IN_LISTS.
71523         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
71524         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
71525         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
71526         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
71527         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
71528         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
71529         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
71530         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
71531         (REG_INTERVALS): renamed from RE_INTERVALS.
71532         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
71533         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
71534         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
71535         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
71536         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
71537         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
71538         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
71539         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
71540         RE_UNMATCHED_RIGHT_PAREN_ORD.
71541         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
71542         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
71543         (REG_DEBUG): renamed from RE_DEBUG.
71544         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
71545         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
71546         unusual, since we can't clash with the POSIX REG_ICASE.
71547         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
71548         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
71549         (REG_NO_SUB): renamed from RE_NO_SUB.
71550         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
71551         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
71552         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
71553         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
71554         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
71555         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
71556         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
71557         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
71558         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
71559         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
71560         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
71561         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
71562         RE_SYNTAX_POSIX_MINIMAL_BASIC.
71563         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
71564         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
71565         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
71566         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
71567         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
71568         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
71569         (REG_FIXED): Renamed from REGS_FIXED.
71570         (REG_NREGS): Renamed from RE_NREGS.
71571
71572         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
71573         of other REG_* macros, since POSIX says the user is allowed to
71574         #undef these macros selectively.
71575
71576         (reg_errcode_t): Update comment stating what other tables need
71577         to be consistent.
71578
71579         Rename the following enum values to obey POSIX requirements.
71580         The old names are still visible as macros.
71581         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
71582         is not defined, since GNU is supposed to be a superset of POSIX as
71583         much as possible, and since we want reg_errcode_t to be a signed
71584         type for implementation consistency.
71585         (_REG_NOERROR): Renamed from REG_NOERROR.
71586         (_REG_NOMATCH): Renamed from REG_NOMATCH.
71587         (_REG_BADPAT): Renamed from REG_BADPAT.
71588         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
71589         (_REG_ECTYPE): Renamed from REG_ECTYPE.
71590         (_REG_EESCAPE): Renamed from REG_EESCAPE.
71591         (_REG_ESUBREG): Renamed from REG_ESUBREG.
71592         (_REG_EBRACK): Renamed from REG_EBRACK.
71593         (_REG_EPAREN): Renamed from REG_EPAREN.
71594         (_REG_EBRACE): Renamed from REG_EBRACE.
71595         (_REG_BADBR): Renamed from REG_BADBR.
71596         (_REG_ERANGE): Renamed from REG_ERANGE.
71597         (_REG_ESPACE): Renamed from REG_ESPACE.
71598         (_REG_BADRPT): Renamed from REG_BADRPT.
71599         (_REG_EEND): Renamed from REG_EEND.
71600         (_REG_ESIZE): Renamed from REG_ESIZE.
71601         (_REG_ERPAREN): Renamed from REG_ERPAREN.
71602         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
71603         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
71604         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
71605         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
71606
71607         (_REG_RE_NAME, _REG_RM_NAME): New macros.
71608         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
71609         changed.  But support the old name if the new one is not defined
71610         and if _REGEX_SOURCE.
71611
71612         Change the following member names in struct re_pattern_buffer.
71613         The old names are still supported if !_REGEX_SOURCE.
71614         The new names are always supported, regardless of _REGEX_SOURCE.
71615         (re_buffer): Renamed from buffer.
71616         (re_allocated): Renamed from allocated.
71617         (re_used): Renamed from used.
71618         (re_syntax): Renamed from syntax.
71619         (re_fastmap): Renamed from fastmap.
71620         (re_translate): Renamed from translate.
71621         (re_can_be_null): Renamed from can_be_null.
71622         (re_regs_allocated): Renamed from regs_allocated.
71623         (re_fastmap_accurate): Renamed from fastmap_accurate.
71624         (re_no_sub): Renamed from no_sub.
71625         (re_not_bol): Renamed from not_bol.
71626         (re_not_eol): Renamed from not_eol.
71627         (re_newline_anchor): Renamed from newline_anchor.
71628
71629         Change the following member names in struct re_registers.
71630         The old names are still supported if !_REGEX_SOURCE.
71631         The new names are always supported, regardless of _REGEX_SOURCE.
71632         (rm_num_regs): Renamed from num_regs.
71633         (rm_start): Renamed from start.
71634         (rm_end): Renamed from end.
71635
71636         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
71637         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
71638         Prepend __ to parameter names.
71639
71640         Undo yesterday's changes.
71641
71642 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71643
71644         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
71645         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
71646         lib/regex.c.
71647
71648 2005-08-24  Jim Meyering  <jim@meyering.net>
71649
71650         Sync from coreutils.
71651         * m4/fcntl-safer.m4: New file.
71652
71653         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
71654         and object files for this module.
71655
71656 2005-08-24  Jim Meyering  <jim@meyering.net>
71657
71658         Sync from coreutils.
71659         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
71660
71661 2005-08-24  Jim Meyering  <jim@meyering.net>
71662
71663         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
71664         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
71665
71666 2005-08-24  Jim Meyering  <jim@meyering.net>
71667
71668         * modules/fcntl-safer: New module.
71669         * modules/fts (Depends-on): Add fcntl-safer.
71670         * MODULES.html.sh (File descriptor based Input/Output):
71671         Add fcntl-safer.
71672
71673 2005-08-24  Bruno Haible  <bruno@clisp.org>
71674
71675         Support for unit test modules.
71676         * modules/README: Mention tests modules.
71677         * modules/TEMPLATE-TESTS: New file.
71678         * gnulib-tool: New options --extract-tests-module, --with-tests and
71679         --tests-base (unused for the moment).
71680         (testsbase, inctests): New variables.
71681         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
71682         (func_verify_module): Exclude TEMPLATE-TESTS.
71683         (func_verify_nontests_module, func_verify_tests_module): New functions.
71684         (func_get_dependencies): Add implicit dependency for tests modules.
71685         (func_get_tests_module): New function.
71686         (func_modules_transitive_closure): When --with-tests was specified,
71687         include the unit tests as well, unless explicitly avoided.
71688         (func_emit_lib_Makefile_am): Ignore the tests modules here.
71689         (func_emit_tests_Makefile_am): New function.
71690         (func_create_testdir): When --with-tests was specified, emit a
71691         tests/ directory.
71692         * MODULES.html.sh (Future developments): Update.
71693
71694 2005-08-24  Bruno Haible  <bruno@clisp.org>
71695
71696         * modules/tls-tests: New file.
71697         * tests/test-tls.c: New file, from GNU gettext.
71698
71699 2005-08-24  Bruno Haible  <bruno@clisp.org>
71700
71701         * modules/lock-tests: New file.
71702         * tests/test-lock.c: New file, from GNU gettext.
71703
71704 2005-08-24  Bruno Haible  <bruno@clisp.org>
71705
71706         * lib/lock.h: Add multiple inclusion guard.
71707         * lib/tls.h: Add multiple inclusion guard.
71708
71709 2005-08-24  Bruno Haible  <bruno@clisp.org>
71710
71711         * gnulib-tool: Add support for the --aux-dir option to
71712         --create-testdir, --create-megatestdir, --test, --megatest.
71713         (func_create_testdir, func_create_megatestdir): Optionally emit a
71714         AC_CONFIG_AUX_DIR directive.
71715         (create-testdir, create-megatestdir, test, megatest): Provide a
71716         default value for $auxdir.
71717
71718 2005-08-24  Bruno Haible  <bruno@clisp.org>
71719
71720         * gnulib-tool (import): Use compound statement instead of subshell
71721         where possible.
71722
71723 2005-08-24  Bruno Haible  <bruno@clisp.org>
71724
71725         * gnulib-tool (import): Change --aux-dir default to "build-aux".
71726
71727 2005-08-24  Bruno Haible  <bruno@clisp.org>
71728
71729         * gnulib-tool (func_version): Update.
71730
71731 2005-08-24  Bruno Haible  <bruno@clisp.org>
71732
71733         * gnulib-tool (func_import, func_create_testdir,
71734         func_create_megatestdir): Quote all autoconf macro arguments.
71735
71736 2005-08-24  Bruno Haible  <bruno@clisp.org>
71737
71738         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
71739         option --force, because --force causes the aclocal.m4 of each
71740         subdirectory to be newer than the corresponding config.h.in.
71741
71742 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71743
71744         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
71745         All contents moved to gl_REGEX.
71746         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
71747         assume that it does.
71748
71749 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71750
71751         * lib/regex.h (REG_NOSYS)
71752         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
71753         Define, since POSIX requires it as of 2001.
71754         (_REG_ENOSYS)
71755         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
71756         New private symbol, used to keep the enum signed in all cases.
71757         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
71758         Youngman in
71759         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
71760
71761         * lib/regex_internal.c (re_string_skip_chars, register_state):
71762         (calc_state_hash):
71763         Remove forward decls; no longer needed now that we use prototypes.
71764         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
71765         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
71766         (clean_state_log_if_needed): Likewise.
71767
71768 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71769
71770         * config/srclist.txt: Add glibc bugs 1231-1233.
71771
71772 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71773
71774         Fix problems reported by Sam Steingold in
71775         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
71776         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
71777         assumed that reg_errcode_t is a signed type, which is not
71778         necessarily true if _XOPEN_SOURCE is not defined.
71779         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
71780         since some compilers warn about it otherwise.
71781
71782 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71783
71784         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
71785         (init_word_char, create_initial_state, duplicate_node_closure):
71786         (fetch_token, peek_token_bracket, build_range_exp):
71787         (build_collating_symbol): Remove forward decls; no longer needed
71788         now that we use prototypes.
71789
71790         * lib/regcomp.c:
71791         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
71792         (re_compile_fastmap_iter, regcomp, regerror, regfree):
71793         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
71794         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
71795         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
71796         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
71797         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
71798         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
71799         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
71800         (build_range_exp, build_collating_symbol, parse_bracket_exp):
71801         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
71802         (build_charclass, build_charclass_op, fetch_number, create_tree):
71803         (create_token_tree, mark_opt_subexp, duplicate_tree):
71804         Use prototypes rather than old-style definitions.
71805
71806         * lib/regex_internal.c:
71807         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
71808         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
71809         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71810         (re_string_reconstruct, re_string_peek_byte_case):
71811         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
71812         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71813         (re_node_set_init_copy, re_node_set_add_intersect):
71814         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71815         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71816         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71817         (re_acquire_state, re_acquire_state_context, register_state):
71818         (create_ci_newstate, create_cd_newstate, free_state):
71819         Likewise.
71820         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
71821         re_search_2):
71822         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
71823         (re_search_internal, prune_impossible_nodes):
71824         (acquire_init_state_context, check_matching, static):
71825         (check_halt_node_context, check_halt_state_context, proceed_next_node):
71826         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
71827         (update_regs, sift_states_backward, build_sifted_states):
71828         (clean_state_log_if_needed, merge_state_array):
71829         (update_cur_sifted_state, add_epsilon_src_nodes):
71830         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
71831         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
71832         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
71833         (find_recover_state, check_subexp_matching_top, transit_state_mb):
71834         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
71835         (check_arrival, check_arrival_add_next_nodes):
71836         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71837         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71838         (check_node_accept_bytes, check_node_accept, extend_buffers):
71839         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
71840         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
71841         (sift_ctx_init):
71842         Likewise.
71843
71844         * lib/regex_internal.h:
71845         (re_string_allocate, re_string_construct, re_string_reconstruct):
71846         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
71847         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
71848         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
71849         (re_string_context_at, re_string_peek_byte_case):
71850         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
71851         is defined, since we now use prototypes always.
71852
71853         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
71854         C89 or better.  All uses removed.
71855
71856 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71857
71858         * config/srclist.txt: Add glibc bugs 1220-1227.
71859
71860 2005-08-20  Jim Meyering  <jim@meyering.net>
71861
71862         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
71863         of unused local, dfa.
71864
71865 2005-08-20  Bruno Haible  <bruno@clisp.org>
71866
71867         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
71868
71869 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71870
71871         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
71872         (re_node_set_insert_last, re_dfa_add_node):
71873         Rename local variables to avoid GCC shadowing warnings.
71874
71875 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71876
71877         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
71878         [defined lint]: Suppress bogus uninitialized-variable warnings.
71879
71880         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
71881         and let the caller return REG_ESPACE if out of space.  This
71882         removes an uninitialied-variable warning with GCC 4.0.1, and also
71883         avoids taking the address of a local variable.  All callers
71884         changed.
71885
71886 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71887
71888         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
71889         $LIBCSRC/posix/regexec.c.
71890         Add glibc bug 1217 for regcomp.c.
71891
71892 2005-08-19  Jim Meyering  <jim@meyering.net>
71893
71894         * lib/regexec.c (proceed_next_node): Redo local variables to
71895         avoid GCC shadowing warnings.
71896
71897 2005-08-18  Bruno Haible  <bruno@clisp.org>
71898
71899         * lib/strstr.c (strstr): Fix return value in multibyte case.
71900         * lib/strcasestr.c (strcasestr): Likewise.
71901
71902 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71903
71904         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
71905
71906 2005-08-17  Jim Meyering  <jim@meyering.net>
71907
71908         Make the %s format (seconds since the epoch) work for a negative
71909         number and when used with a zero-padded field width, e.g. %015s.
71910
71911         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
71912         label so that it precedes the code to set `digits'.  Otherwise,
71913         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
71914         print `00-22'.  Now, it prints `-0022', as it should.
71915
71916 2005-08-17  Bruno Haible  <bruno@clisp.org>
71917
71918         * modules/strstr (Files): Add m4/mbrtowc.m4.
71919         (Depends-on): Add mbuiter.
71920
71921 2005-08-17  Bruno Haible  <bruno@clisp.org>
71922
71923         * modules/strcasestr: New file.
71924         * MODULES.html.sh (String handling, based on ANSI C 89): Add
71925         strcasestr.
71926
71927 2005-08-17  Bruno Haible  <bruno@clisp.org>
71928
71929         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
71930
71931 2005-08-17  Bruno Haible  <bruno@clisp.org>
71932
71933         * modules/mbuiter: New file.
71934         * MODULES.html.sh (Extended multibyte and wide character utilities):
71935         Add mbuiter.
71936
71937 2005-08-17  Bruno Haible  <bruno@clisp.org>
71938
71939         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
71940         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
71941
71942 2005-08-17  Bruno Haible  <bruno@clisp.org>
71943
71944         * m4/strcasestr.m4: New file.
71945
71946 2005-08-17  Bruno Haible  <bruno@clisp.org>
71947
71948         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
71949         * lib/strstr.c: Completely rewritten, with multibyte locale support.
71950
71951 2005-08-17  Bruno Haible  <bruno@clisp.org>
71952
71953         * lib/strcasestr.h: New file.
71954         * lib/strcasestr.c: New file.
71955
71956 2005-08-17  Bruno Haible  <bruno@clisp.org>
71957
71958         * lib/strcasecmp.c: Use mbuiter.h.
71959
71960 2005-08-17  Bruno Haible  <bruno@clisp.org>
71961
71962         * lib/mbuiter.h: New file.
71963
71964 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71965
71966         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
71967         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
71968         and gl_GETOPT are both invoked via different paths (as happens
71969         with GNU tar CVS because it uses both argp and getopt), the former
71970         wins.
71971
71972 2005-08-16  Bruno Haible  <bruno@clisp.org>
71973
71974         * modules/tls: New file.
71975         * MODULES.html.sh (Multithreading): Add tls.
71976
71977 2005-08-16  Bruno Haible  <bruno@clisp.org>
71978
71979         * modules/strnlen1: New file.
71980         * MODULES.html.sh (String handling): Add strnlen1.
71981
71982 2005-08-16  Bruno Haible  <bruno@clisp.org>
71983
71984         * modules/strcase (Files): Add m4/mbrtowc.m4.
71985         (Depends-on): Add strnlen1, mbchar.
71986
71987 2005-08-16  Bruno Haible  <bruno@clisp.org>
71988
71989         * modules/mbiter: New file.
71990         * MODULES.html.sh (Extended multibyte and wide character utilities):
71991         Add mbiter.
71992
71993 2005-08-16  Bruno Haible  <bruno@clisp.org>
71994
71995         * modules/mbfile: New file.
71996         * MODULES.html.sh (Extended multibyte and wide character utilities):
71997         Add mbfile.
71998
71999 2005-08-16  Bruno Haible  <bruno@clisp.org>
72000
72001         * modules/mbchar: New file.
72002         * MODULES.html.sh (Extended multibyte and wide character utilities):
72003         New section.
72004
72005 2005-08-16  Bruno Haible  <bruno@clisp.org>
72006
72007         * m4/tls.m4: New file, from GNU gettext.
72008
72009 2005-08-16  Bruno Haible  <bruno@clisp.org>
72010
72011         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72012         always.
72013         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72014
72015 2005-08-16  Bruno Haible  <bruno@clisp.org>
72016
72017         * m4/mbiter.m4: New file.
72018
72019 2005-08-16  Bruno Haible  <bruno@clisp.org>
72020
72021         * m4/mbfile.m4: New file.
72022
72023 2005-08-16  Bruno Haible  <bruno@clisp.org>
72024
72025         * m4/mbchar.m4: New file.
72026
72027 2005-08-16  Bruno Haible  <bruno@clisp.org>
72028
72029         * lib/tls.h: New file, from GNU gettext.
72030         * lib/tls.c: New file, from GNU gettext.
72031
72032 2005-08-16  Bruno Haible  <bruno@clisp.org>
72033
72034         * lib/strnlen1.h: New file.
72035         * lib/strnlen1.c: New file.
72036
72037 2005-08-16  Bruno Haible  <bruno@clisp.org>
72038
72039         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72040         (mbi_init): Update.
72041         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72042         NUL byte, not after it.
72043
72044 2005-08-16  Bruno Haible  <bruno@clisp.org>
72045
72046         * lib/strcase.h (strcasecmp): Add note in comments.
72047         * lib/strncasecmp.c: Use code from strcasecmp.c.
72048         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72049         (strcasecmp): Work correctly in multibyte locales.
72050
72051 2005-08-16  Bruno Haible  <bruno@clisp.org>
72052
72053         * lib/mbiter.h: New file.
72054
72055 2005-08-16  Bruno Haible  <bruno@clisp.org>
72056
72057         * lib/mbfile.h: New file.
72058
72059 2005-08-16  Bruno Haible  <bruno@clisp.org>
72060
72061         * lib/mbchar.h: New file.
72062         * lib/mbchar.c: New file.
72063
72064 2005-08-16  Bruno Haible  <bruno@clisp.org>
72065
72066         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72067         the valid ones. Makes the comparison operations transitive:
72068         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72069         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72070
72071 2005-08-15  Simon Josefsson  <jas@extundo.com>
72072
72073         * modules/ssize_t (License): Change to 'unlimited'.
72074
72075         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72076
72077 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72078
72079         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72080         Add comments for each pending glibc patch.
72081
72082 2005-08-15  Bruno Haible  <bruno@clisp.org>
72083
72084         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72085         __cplusplus is defined.
72086
72087 2005-08-14  Jim Meyering  <jim@meyering.net>
72088
72089         Sync from coreutils.
72090
72091         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72092         Use the hash-table-based cycle-detection code not just when
72093         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72094         Reported by James Youngman in
72095         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72096         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72097         FTS_TIGHT_CYCLE_CHECK.
72098         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72099         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72100         once again.
72101         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72102         * lib/fts.c (fd_safer): Remove decl.
72103         Include fcntl--.h rather than unistd-safer.h
72104         (fts_safe_changedir): Don't call fd_safer; no longer needed
72105         now that we include fcntl--.h.
72106
72107 2005-08-12  Simon Josefsson  <jas@extundo.com>
72108
72109         * modules/getndelim2: Use ssize_t module.
72110         * modules/getnline: Likewise.
72111         * modules/safe-read: Likewise.
72112         * modules/xreadlink: Likewise.
72113
72114         * modules/ssize_t: New file.
72115
72116 2005-08-12  Simon Josefsson  <jas@extundo.com>
72117
72118         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72119
72120 2005-08-12  Simon Josefsson  <jas@extundo.com>
72121
72122         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72123         ssize_t.
72124
72125 2005-08-12  Simon Josefsson  <jas@extundo.com>
72126
72127         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72128         readline, getdelim and check_version.
72129         (Support for systems lacking ISO C 99: Sizes of integer types):
72130         Add size_max.
72131
72132 2005-08-12  Bruno Haible  <bruno@clisp.org>
72133
72134         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72135
72136 2005-08-11  Simon Josefsson  <jas@extundo.com>
72137
72138         * modules/readline: New file.
72139
72140         * modules/strnlen (Files): Add strnlen.h.
72141
72142 2005-08-11  Simon Josefsson  <jas@extundo.com>
72143
72144         * m4/readline.m4: New file.
72145
72146 2005-08-11  Simon Josefsson  <jas@extundo.com>
72147
72148         * lib/readline.h, readline.c: New file.
72149
72150 2005-08-11  Simon Josefsson  <jas@extundo.com>
72151
72152         * doc/gnulib.texi (Initial import, Finishing touches): Mention
72153         gl_AVOID.
72154
72155 2005-08-11  Bruno Haible  <bruno@clisp.org>
72156
72157         * lib/strnlen.h (strnlen): Change parameter name to match comment.
72158
72159 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
72160
72161         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
72162
72163 2005-08-10  Simon Josefsson  <jas@extundo.com>
72164
72165         * tests/test-iconvme.c: New file.
72166
72167 2005-08-10  Simon Josefsson  <jas@extundo.com>
72168
72169         * m4/strnlen.m4: New file.
72170
72171         * m4/strndup.m4: Don't check for strnlen declaration, done in
72172         strnlen.m4.
72173
72174 2005-08-10  Simon Josefsson  <jas@extundo.com>
72175
72176         * lib/strndup.c: Use strnlen.h.
72177
72178         * lib/strnlen.h: New file.
72179
72180 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72181
72182         * README: Typos.
72183
72184 2005-08-02  Simon Josefsson  <jas@extundo.com>
72185
72186         * modules/readline: New file.
72187
72188 2005-08-02  Simon Josefsson  <jas@extundo.com>
72189
72190         * modules/getdelim: New file.
72191
72192         * modules/getline: Rewrite, don't use getndelim2.
72193
72194 2005-08-02  Simon Josefsson  <jas@extundo.com>
72195
72196         * m4/getline.m4: Separate out getdelim stuff into separate module.
72197
72198         * m4/getdelim.m4: New file.
72199
72200 2005-08-02  Simon Josefsson  <jas@extundo.com>
72201
72202         * lib/getline.h, getline.c: Rewrite.
72203
72204         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
72205
72206 2005-07-31  Bruno Haible  <bruno@clisp.org>
72207
72208         * lib/lock.h (gl_lock_initializer): New macro.
72209         (gl_lock_define_initialized): Use it.
72210         (gl_rwlock_initializer): New macro.
72211         (gl_rwlock_define_initialized): Use it.
72212         (gl_recursive_lock_initializer): New macro.
72213         (gl_recursive_lock_define_initialized): Use it.
72214
72215 2005-07-30  Karl Berry  <karl@gnu.org>
72216
72217         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
72218         Report from Ben Pfaff, regarding getopt.
72219
72220 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
72221
72222         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
72223         normal way.
72224         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
72225         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
72226         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
72227         (gl_GETOPT): Use the new macros.  Most of the implementation
72228         is moved to the new macros.  This is for programs like Emacs
72229         that don't want all the functionality of gl_GETOPT.
72230
72231 2005-07-26  Bruno Haible  <bruno@clisp.org>
72232
72233         * m4/lock.m4: Update from GNU gettext.
72234
72235 2005-07-26  Bruno Haible  <bruno@clisp.org>
72236
72237         * lib/lock.h: Update from GNU gettext.
72238         * lib/lock.c: Update from GNU gettext.
72239
72240 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
72241
72242         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
72243         obsolescent AC_TRY_RUN.  Include the default includes files, for
72244         'exit'.
72245
72246 2005-07-24  Bruno Haible  <bruno@clisp.org>
72247
72248         * modules/visibility: New file.
72249         * MODULES.html.sh (Misc): Add visibility.
72250
72251 2005-07-24  Bruno Haible  <bruno@clisp.org>
72252
72253         * m4/visibility.m4: New file.
72254
72255 2005-07-24  Bruno Haible  <bruno@clisp.org>
72256
72257         * doc/visibility.texi: New file.
72258
72259 2005-07-22  Bruno Haible  <bruno@clisp.org>
72260
72261         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
72262         $(ALLOCA_H), redundant through BUILT_SOURCES.
72263         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
72264         redundant through BUILT_SOURCES.
72265         * modules/byteswap (Makefile.am): Remove explicit dependency on
72266         $(BYTESWAP_H), redundant through BUILT_SOURCES.
72267         * modules/fnmatch (Makefile.am): Remove explicit dependency on
72268         $(FNMATCH_H), redundant through BUILT_SOURCES.
72269         * modules/getopt (Makefile.am): Remove explicit dependency on
72270         $(GETOPT_H), redundant through BUILT_SOURCES.
72271         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
72272         redundant through BUILT_SOURCES.
72273         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72274         redundant through BUILT_SOURCES.
72275         * modules/stdbool (Makefile.am): Remove explicit dependency on
72276         $(STDBOOL_H), redundant through BUILT_SOURCES.
72277         * modules/stdint (Makefile.am): Remove explicit dependency on
72278         $(STDINT_H), redundant through BUILT_SOURCES.
72279         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72280         Remove explicit dependency on $(SYSEXITS_H).
72281         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72282
72283 2005-07-18  Simon Josefsson  <jas@extundo.com>
72284
72285         * lib/check-version.c (check_version): Accept identical versions too.
72286
72287 2005-07-18  Bruno Haible  <bruno@clisp.org>
72288
72289         * modules/lock: New file.
72290         * MODULES.html.sh (Multithreading): New section.
72291
72292 2005-07-18  Bruno Haible  <bruno@clisp.org>
72293
72294         * m4/lock.m4: New file, from GNU gettext.
72295
72296 2005-07-18  Bruno Haible  <bruno@clisp.org>
72297
72298         * lib/lock.h: New file, from GNU gettext.
72299         * lib/lock.c: New file, from GNU gettext.
72300
72301 2005-07-18  Bruno Haible  <bruno@clisp.org>
72302
72303         * lib/lock.h (gl_once_t): New type.
72304         (gl_once_define, gl_once): New macros.
72305         * lib/lock.c (fresh_once): New variable.
72306         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72307         functions.
72308
72309 2005-07-16  Simon Josefsson  <jas@extundo.com>
72310
72311         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
72312         workaround, suggested by Bruno.
72313
72314 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72315
72316         * modules/xalloc (Depends-on): Add xalloc-die.
72317         * modules/xvasprintf (Depends-on): Add xalloc-die.
72318
72319 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72320
72321         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
72322         with a minor change.
72323
72324 2005-07-15  Bruno Haible  <bruno@clisp.org>
72325
72326         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
72327         When using lib/poll.c, define poll as rpl_poll.
72328
72329 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
72330
72331         * modules/argp (Depends-on): Remove unlocked-io.
72332
72333 2005-07-14  Derek Price  <derek@ximbiot.com>
72334
72335         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
72336         for glob symlink bug.
72337
72338 2005-07-14  Bruno Haible  <bruno@clisp.org>
72339
72340         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
72341         Instead, test for *_unlocked function declarations directly.
72342
72343 2005-07-11  Simon Josefsson  <jas@extundo.com>
72344
72345         * modules/size_max: New file.
72346
72347         * modules/xsize: Depend on size_max module for size_max.m4.
72348
72349 2005-07-11  Simon Josefsson  <jas@extundo.com>
72350
72351         * lib/size_max.h: New file.
72352
72353 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
72354
72355         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
72356         copyright symbol and the year.
72357         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
72358         (version_etc_va): Use parameterized copyright notice.
72359         Reword to conform to the current GNU coding standards.
72360
72361 2005-07-11  Karl Berry  <karl@gnu.org>
72362
72363         * doc/gnulib.texi (Quoting): new node.
72364         (Initial import): more info, from Patrice.
72365
72366 2005-07-11  Bruno Haible  <bruno@clisp.org>
72367
72368         * gnulib-tool (func_usage): Document option --avoid.
72369         (Command line options): Handle --avoid.
72370         (func_acceptable): New function.
72371         (func_modules_transitive_closure): Use it.
72372
72373 2005-07-11  Bruno Haible  <bruno@clisp.org>
72374
72375         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
72376         Reported by Jim Meyering.
72377
72378 2005-07-10  Bruno Haible  <bruno@clisp.org>
72379
72380         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
72381         Needed when size_t is smaller than 'unsigned int'.
72382         Reported by Paul Eggert.
72383
72384 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72385
72386         * modules/argp (Depends-on): Add unlocked-io
72387
72388 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72389
72390         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
72391         block of defines.
72392
72393 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72394
72395         * config/srclist.txt: Comment out regcomp.c, since we have a porting
72396         fix now.
72397
72398 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
72399         and Paul Eggert  <eggert@cs.ucla.edu>
72400
72401         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
72402         in wint_t, not wchar_t.  Remove now-unnecessary cast.
72403
72404 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72405
72406         * modules/regex (Files): Add lib/regex_internal.c,
72407         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
72408         (Depends-on): Add extensions.
72409         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
72410
72411 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72412
72413         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
72414         pathconf.
72415         * m4/same.m4 (gl_SAME): Likewise.
72416         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
72417
72418         * m4/regex.m4: Adjust to new libc regex implementation.
72419         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
72420         all the .c and .h parts of (the new) regex.
72421         Quote the m4 stuff better.
72422         Check for RE_ICASE bug of old gnulib.
72423         Check for REG_STARTEND of recent libc.
72424         Rename local variables from jm_* to gl_*.
72425         Quote operand of "test -f".
72426         Say "recent enough" version of libc, not "version 2".
72427         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
72428         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
72429         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
72430         Remove check for btowc, isascii.
72431         Require AM_LANGINFO_CODESET.
72432
72433 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72434
72435         * lib/regex.c, regex.h: Sync from libc.
72436         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
72437         * lib/regexec.c:
72438         New files, synced from libc, except that regex_internal.h
72439         currently has a small porting fix.
72440
72441 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72442
72443         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
72444         regex_internal.c, regexec.c.
72445         Add regex_internal.h too, but as a comment, since the libc version
72446         is currently broken in gnulib mode.
72447
72448 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72449
72450         Support programs like Emacs that use gnulib but not gettext.
72451         * MODULES.html.sh (Internationalization functions): Add gettext-h.
72452         * modules/gettext-h: New file.
72453         * modules/gettext (Files): Remove lib/gettext.h.
72454         (Depends-on): Add gettext-h.
72455         (Makefile.am): Remove lib_SOURCES.
72456         * modules/argmatch, modules/c-stack, modules/closeout:
72457         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
72458         * modules/execute, modules/file-type, modules/getaddrinfo:
72459         * modules/getopt, modules/human, modules/javacomp:
72460         * modules/javaexec, modules/mkdir-p, modules/obstack:
72461         * modules/openat, modules/pagealign_alloc, modules/pipe:
72462         * modules/quotearg, modules/regex, modules/rpmatch:
72463         * modules/unicodeio, modules/userspec, modules/version-etc:
72464         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
72465         * modules/xsetenv:
72466         Depend on gettext-h, not gettext.
72467
72468 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72469
72470         * gnulib-tool (func_import): Add support for 'public domain' license.
72471         * modules/alloca, modules/atexit, modules/memmove:
72472         Now public domain, not GPL.
72473         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
72474         * modules/realloc, modules/strerror, modules/strtod:
72475         Now LGPL, not GPL.
72476
72477 2005-07-05  Bruno Haible  <bruno@clisp.org>
72478
72479         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
72480         autoconf CVS. Needed for mingw.
72481
72482 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72483
72484         Remove the dependency of the strftime module on the tzset module.
72485         * modules/strftime (Depends-on): Remove dependency on tzset.
72486
72487 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72488
72489         Remove the dependency of the strftime module on the tzset module.
72490         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
72491         gl_FUNC_TZSET_CLOBBER.
72492
72493 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72494
72495         Remove the dependency of the strftime module on the tzset module.
72496         * lib/strftime.c (my_strftime)
72497         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
72498         Copy the input structure, to work around some of the bug with
72499         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
72500         Solaris releases, you should also use the tzset module, but we won't
72501         require it as a dependency any more since we don't want LGPLed code
72502         to depend on GPLed code.
72503
72504 2005-07-02  Jim Meyering  <jim@meyering.net>
72505
72506         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
72507         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
72508         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
72509         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
72510
72511 2005-07-02  Jim Meyering  <jim@meyering.net>
72512
72513         * lib/backupfile.c (backup_args): Change a `0' to NULL.
72514
72515 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72516
72517         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
72518         declares only 'struct timespec;' (!).
72519
72520 2005-07-01  Jim Meyering  <jim@meyering.net>
72521
72522         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
72523         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
72524         * lib/save-cwd.c, tempname.c:
72525         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72526         and don't include <sys/file.h>).
72527
72528 2005-06-29  Jim Meyering  <jim@meyering.net>
72529
72530         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
72531         type name.  Use the variable name instead.
72532         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
72533         Likewise.
72534
72535 2005-06-28  Simon Josefsson  <jas@extundo.com>
72536
72537         * modules/check-version (Files): Add check-version.m4.
72538
72539 2005-06-28  Simon Josefsson  <jas@extundo.com>
72540
72541         * m4/check-version.m4: New file, suggested by Jim Meyering
72542         <jim@meyering.net>.
72543
72544 2005-06-28  Simon Josefsson  <jas@extundo.com>
72545
72546         * lib/check-version.h, lib/check-version.c: New files.
72547
72548 2005-06-28  Simon Josefsson  <jas@extundo.com>
72549
72550         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
72551         collision with global variable.  Better indentation.  Don't
72552         increment buffer pointer beyond buffer end.  Based on comments
72553         from Paul Eggert <eggert@cs.ucla.edu>.
72554
72555         * lib/base64.h: Indent.
72556
72557 2005-06-28  Simon Josefsson  <jas@extundo.com>
72558
72559         * doc/gnulib.texi (Library version handling): New section.
72560
72561 2005-06-28  Jim Meyering  <jim@meyering.net>
72562
72563         * check-module (find_included_lib_files): Hard-code another
72564         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
72565         but modules/fts-lgpl (correctly) does not list those files.
72566
72567         * modules/canonicalize (Files): Add lib/pathmax.h.
72568
72569 2005-06-25  Simon Josefsson  <jas@extundo.com>
72570
72571         * modules/check-version: New file.
72572
72573 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
72574
72575         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
72576         initializer of struct addrinfo, as an indication that we don't
72577         care how many members the structure has.
72578
72579 2005-06-24  Derek Price  <derek@ximbiot.com>
72580         and Bruno Haible  <bruno@clisp.org>
72581
72582         Remove stat module & update lstat.
72583         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
72584         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72585         * m4/stat.m4: Remove this file.
72586
72587 2005-06-24  Derek Price  <derek@ximbiot.com>
72588         and Bruno Haible  <bruno@clisp.org>
72589
72590         Remove stat module & update lstat.
72591         * lib/stat.c: Remove this file...
72592         (slash_aware_lstat): ...moving this content and its support...
72593         * lib/lstat.c (rpl_lstat): ...into here.
72594         * lib/lstat.h: New file.
72595
72596 2005-06-24  Derek Price  <derek@ximbiot.com>
72597         and Bruno Haible  <bruno@clisp.org>
72598
72599         Remove stat module & update lstat.
72600         * config/srclist.txt (libc sources): Remove stat.
72601
72602 2005-06-24  Derek Price  <derek@ximbiot.com>
72603         and Bruno Haible  <bruno@clisp.org>
72604
72605         Remove stat module & update lstat.
72606         * MODULES.html.sh (stat): Remove.
72607         * MODULES.html: Regenerated.
72608         * modules/lstat (Description): Correct function name.
72609         (Files): Add "lstat.h".
72610         (Depends-on): Remove stat, add xalloc, stat-macros.
72611         * modules/stat: Remove this file.
72612         (Include): Add "lstat.h", remove <sys/stat.h>.
72613
72614 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
72615
72616         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
72617         (ranged_convert): Don't save conversion in a temporary struct.
72618         This causes a warning with GCC 4.0.0, and anyway in the typical
72619         case it's not worth the extra 100 bytes or so of code.
72620         (ranged_convert, __mktime_internal): When calling a function via a
72621         pointer P, use P () rather than (*P) (), as we now assume C89 or
72622         better.
72623
72624 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72625
72626         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
72627         "who -r" failed to give output.  Problem reported by Tim Waugh.
72628
72629         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
72630         (xcalloc): Use it to avoid needless tests.
72631         Problem reported by Jim Meyering.
72632
72633 2005-06-20  Derek Price  <derek@ximbiot.com>
72634
72635         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
72636         unnecessary for Autoconfs > 2.59c.
72637
72638 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72639
72640         * lib/argp.h (__option_is_short): Check upper limit of
72641         __key. Isprint() requires its argument to have the value
72642         of an unsigned char or EOF.
72643
72644 2005-06-16  Jim Meyering  <jim@meyering.net>
72645
72646         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
72647         when either N or S is zero.
72648
72649 2005-06-16  Derek Price  <derek@ximbiot.com>
72650
72651         * m4/bison.m4: Declare YACC & YFLAGS precious.
72652
72653 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
72654
72655         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
72656         multibyte string or pattern, fall back on unibyte matching.
72657         Problem reported by James Youngman.
72658
72659 2005-06-08  Bruno Haible  <bruno@clisp.org>
72660
72661         * modules/csharpcomp: New file.
72662         * MODULES.html.sh (C#): Add csharpcomp.
72663
72664 2005-06-08  Bruno Haible  <bruno@clisp.org>
72665
72666         * m4/csharpcomp.m4: New file, from GNU gettext.
72667
72668 2005-06-08  Bruno Haible  <bruno@clisp.org>
72669
72670         * lib/csharpcomp.h: New file, from GNU gettext.
72671         * lib/csharpcomp.c: New file, from GNU gettext.
72672         * lib/csharpcomp.sh.in: New file, from GNU gettext.
72673
72674 2005-06-08  Bruno Haible  <bruno@clisp.org>
72675
72676         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
72677         warning on mingw.
72678
72679 2005-06-07  Derek Price  <derek@ximbiot.com>
72680
72681         Sync from CVS.
72682         * lib/glob_.h: Indent nested #ifdef.
72683
72684 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72685
72686         Sync from coreutils.
72687         Use "file name" when talking about file names, instead of "filename"
72688         or "path", as per the GNU coding standards.
72689         * lib/mkdir-p.c: Renamed from makepath.c.
72690         (make_dir_parents): Renamed from make_path.  All callers changed.
72691         * lib/mkdir-p.h: Likewise.  All includers changed.
72692         * lib/filenamecat.c: Renamed from path-concat.c.
72693         (file_name_concat): Renamed from path_concat.  All callers changed.
72694         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
72695         * lib/filenamecat.h: Likewise.  All includers changed.
72696         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
72697         in comments or local variable names.
72698         * lib/basename.c: Likewise.
72699         * lib/canonicalize.c, canonicalize.h: Likewise.
72700         * lib/dirname.c, dirname.h: Likewise.
72701         * lib/euidaccess.c: Likewise.
72702         * lib/exclude.c: Likewise
72703         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
72704         * lib/fsusage.c, fsuage.h: Likewise.
72705         * lib/fts.c, fts_.h: Likewise.
72706         * lib/getcwd.c: Likewise.
72707         * lib/getloadavg.c: Likewise.
72708         * lib/mkstemp.c: Likewise.
72709         * lib/mountlist.c, mountlist.h: Likewise.
72710         * lib/openat.c, openat.h: Likewise.
72711         * lib/readlink-stub.c: Likewise.
72712         * lib/readutmp.c, readutmp.h: Likewise.
72713         * lib/rename.c: Likewise.
72714         * lib/rmdir.c: Likewise.
72715         * lib/same.c: Likewise.
72716         * lib/savedir.c: Likewise.
72717         * lib/stripslash.c: Likewise.
72718         * lib/tempname.c: Likewise.
72719         * lib/xreadlink.c: Likewise.
72720         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
72721         All uses changed.
72722         * lib/exclude.h: Likewise.
72723
72724         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
72725         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72726         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
72727         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72728         * lib/pathmax.h: Include <limits.h> unconditionally, since other
72729         files have been getting away with it for years (MORE/BSD 4.3
72730         is extinct now).
72731         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
72732         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72733
72734         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
72735         Define to 256, not 255, as per modern POSIX.
72736
72737 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72738
72739         Sync from coreutils.
72740         Use "file name" when talking about file names, instead of "filename"
72741         or "path", as per the GNU coding standards.
72742         * MODULES.html.sh: mkdir-p renamed from makepath.
72743         filenamecat renamed from path-concat.
72744         * modules/filenamecat: Renamed from modules/path-concat.
72745         (Files): filenamecat.h and filenamecat.c renamed from
72746         path-concat.h and path-concat.c.
72747         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
72748         (Include): filenamecat.h, not path-concat.h.
72749         * modules/mkdir-p: Renamed from modules/makepath.
72750         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
72751         makepath.c.
72752         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
72753         (Include): mkdir-p.h, not makepath.h.
72754
72755 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72756
72757         Sync from coreutils.
72758         * m4/mkdir-p.m4: Renamed from makepath.m4.
72759         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
72760         Rename files from makepath.c to mkdir-p.c, and from
72761         makepath.h to mkdir-p.h.
72762         * m4/filenamecat.m4: Renamed from path-concat.m4.
72763         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
72764         Rename files from path-concat.c to filenamecat.c,
72765         and from path-concat.h to filenamecat.h.
72766         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
72767         "file name" in local variables or comments.
72768         * m4/rename.m4: Likewise.
72769
72770 2005-06-01  Bruno Haible  <bruno@clisp.org>
72771
72772         * modules/csharpexec: New file.
72773         * MODULES.html.sh (C#): New section.
72774
72775 2005-06-01  Bruno Haible  <bruno@clisp.org>
72776
72777         * m4/csharp.m4: New file, from GNU gettext.
72778         * m4/csharpexec.m4: New file, from GNU gettext.
72779
72780 2005-06-01  Bruno Haible  <bruno@clisp.org>
72781
72782         * lib/csharpexec.h: New file, from GNU gettext.
72783         * lib/csharpexec.c: New file, from GNU gettext.
72784         * lib/csharpexec.sh.in: New file, from GNU gettext.
72785
72786 2005-05-31  Derek Price  <derek@ximbiot.com>
72787             Paul Eggert  <eggert@cs.ucla.edu>
72788
72789         Sync from cvs.
72790         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
72791
72792 2005-05-31  Derek Price  <derek@ximbiot.com>
72793             Paul Eggert  <eggert@cs.ucla.edu>
72794
72795         Sync from cvs.
72796         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
72797
72798 2005-05-29  Derek Price  <derek@ximbiot.com>
72799
72800         * config/srclist.txt (glob_.h, glob.c): Add these files.
72801
72802 2005-05-29  Derek Price  <derek@ximbiot.com>
72803
72804         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
72805         * modules/glob: New file.
72806         * modules/getlogin_r: Add link to POSIX spec in description.
72807
72808 2005-05-29  Derek Price  <derek@ximbiot.com>
72809             Paul Eggert  <eggert@cs.ucla.edu>
72810
72811         * m4/glob.m4: New file.
72812
72813 2005-05-29  Derek Price  <derek@ximbiot.com>
72814             Paul Eggert  <eggert@cs.ucla.edu>
72815
72816         * lib/glob_.h, lib/glob.c: New files.
72817
72818 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72819
72820         * modules/fts (Files): Remove m4/inttypes-pri.m4.
72821         * modules/fts-lgpl (Depends-on): Remove gettext.
72822
72823 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72824
72825         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
72826         and don't require gt_INTTYPES_PRI.
72827
72828 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72829
72830         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
72831
72832         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
72833         the configuration hassle isn't worth it.
72834         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
72835         (LONGEST_MODIFIER, PRIuMAX): Remove.
72836
72837 2005-05-27  Bruno Haible  <bruno@clisp.org>
72838
72839         * lib/getlogin_r.h: Remove second include of <stddef.h>.
72840
72841 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
72842
72843         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
72844         _POSIX_PTHREAD_SEMANTICS for Solaris.
72845
72846 2005-05-25  Derek Price  <derek@ximbiot.com>
72847
72848         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
72849
72850 2005-05-25  Derek Price  <derek@ximbiot.com>
72851             Paul Eggert  <eggert@cs.ucla.edu>
72852
72853         * modules/getlogin_r, m4/getlogin_r.m4: New files.
72854         * lib/getlogin_r.c, getlogin_r.h: New files.
72855
72856 2005-05-25  Bruno Haible  <bruno@clisp.org>
72857             Derek Price  <derek@ximbiot.com>
72858
72859         * lib/getlogin_r.h: Simplify API documentation.
72860
72861 2005-05-23  Derek Price  <derek@ximbiot.com>
72862
72863         * modules/minmax (Files): Add m4/minmax.m4.
72864         (configure.ac): Add gl_MINMAX.
72865
72866 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72867
72868         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
72869         so that unistd-safer.h (GPL'ed code) need not be included.
72870
72871 2005-05-22  Bruno Haible  <bruno@clisp.org>
72872
72873         * m4/minmax.m4: New file.
72874         Based on a patch by Derek Price <derek@ximbiot.com>.
72875
72876 2005-05-22  Bruno Haible  <bruno@clisp.org>
72877
72878         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
72879         (INT64_MIN): Fix definition.
72880         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
72881
72882         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
72883         NEED_SIGNED_INT_TYPES.
72884
72885         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
72886         HAVE_SYSTEM_INTTYPES.
72887
72888 2005-05-22  Bruno Haible  <bruno@clisp.org>
72889
72890         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
72891         Also include <sys/param.h> if it defines MIN, MAX.
72892         Based on a patch by Derek Price <derek@ximbiot.com>.
72893
72894 2005-05-21  Jim Meyering  <jim@meyering.net>
72895
72896         * modules/fts (Files): Add m4/inttypes-pri.m4.
72897         (Depends-on): Add lstat and remove gettext.  Alphabetize.
72898
72899 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72900
72901         New fts module.
72902         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
72903         (setup_dir, free_dir): New functions.
72904         (enter_dir, leave_dir): Define trivial
72905         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
72906         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
72907         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
72908         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
72909         Move to fts-cycle.c.
72910         (fts_open): Use setup_dir.
72911         (fts_close): Use free_dir.
72912         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
72913         This adds a label and some gotos, but the alternatives were messier.
72914         Check for memory allocation failure when entering a dir.
72915         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
72916         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
72917         (FTS): New member fts_cycle, that is a union that contains the
72918         old active_dir_ht and cycle_state.  All uses changed to mention
72919         fts_cycle.ht and fts_cycle.state.
72920         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
72921         fts.c, with the following changes:
72922         (setup_dir, free_dir): New functions.
72923         (enter_dir): Now returns bool.  Return true if successful, false
72924         if memory exhausted.  All callers changed.
72925         Do not bother partly cleaning up on
72926         memory allocation failure; that is free_dir's job.
72927         However, free ad if hash_insert fails, to avoid memory leak.
72928         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
72929         fts->fts_options to see which union member to use.
72930
72931 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72932
72933         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
72934         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
72935
72936 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72937
72938         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
72939
72940 2005-05-20  Jim Meyering  <jim@meyering.net>
72941
72942         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
72943         Now a macro, to pacify GCC.
72944
72945 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
72946
72947         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
72948         of -1.
72949
72950 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
72951
72952         * lib/chown.c (rpl_chown): Return -1 on failure.
72953
72954 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72955
72956         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
72957         Don't check for stddef.h.
72958         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
72959         don't use its results.
72960         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
72961         since we include them unconditionally.  Don't require
72962         AM_STDBOOL_H, since stdbool is a prerequisite.
72963         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
72964         since we assume C89 or better.
72965         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
72966         as we don't use their results.
72967         Don't check for fchdir, memmove, memset, strrchr, as we use
72968         them unconditionally.
72969         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
72970         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
72971
72972 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72973
72974         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
72975         Include <stddef.h> unconditionally, since we assume C89 now.
72976         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
72977         * lib/fts.c: Include fts_.h first, to check interface.
72978         Do not include intprops.h; no longer needed.
72979         Include cycle-check.h and hash.h, since fts_.h no longer does.
72980         Remove unnecessary casts of closedir to void.
72981         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
72982         decide whether to decrement nlinks.
72983         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
72984         (FTS): Use struct hash_table * instead of Hash_table, so that
72985         we no longer need to include hash.h here.
72986
72987 2005-05-18  Jim Meyering  <jim@meyering.net>
72988
72989         * modules/dirfd (License): Change to LGPL.  Most of the code
72990         is already in the public domain.
72991
72992 2005-05-18  Jim Meyering  <jim@meyering.net>
72993
72994         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
72995         Reported by Yoann Vandoorselaere.
72996
72997 2005-05-17  Jim Meyering  <jim@meyering.net>
72998
72999         * m4/fts.m4: New file, from coreutils.
73000
73001 2005-05-17  Jim Meyering  <jim@meyering.net>
73002
73003         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73004
73005 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73006
73007         Sync from coreutils.
73008         * m4/unlinkdir.m4: New file.
73009
73010 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73011
73012         Sync from coreutils.
73013         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73014         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73015         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73016         White space changes only.
73017         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73018         special.
73019         * lib/yesno.c: Include getline.h, not ctype.h.
73020         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73021         Use getline to remove arbitrary restriction on response length.
73022
73023 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73024
73025         * config/srclist-update: Spell out "Street" in FSF postal
73026         mail address; this is the style the FSF seems to prefer.
73027
73028         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73029         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73030         this updates FSF postal mail address.
73031
73032         Sync from coreutils.
73033         * modules/unlinkdir: New file.
73034         * modules/yesno (Depends-on): Add getline.
73035         * MODULES.html.sh (File system functions): Add unlinkdir.
73036
73037 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73038
73039         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73040         lib/strsep.h:
73041         Change the initial comment to refer to GPL, not LGPL.
73042         gnulib-tool will change it to LGPL as needed.
73043
73044         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73045         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73046         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73047         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73048         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73049         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73050         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73051         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73052         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73053         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73054         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73055         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73056         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73057         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73058         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73059         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73060         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73061         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73062         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73063         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73064         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73065         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73066         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73067         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73068         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73069         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73070         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73071         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73072         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73073         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73074         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73075         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73076         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73077         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73078         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73079         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73080         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73081         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73082         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73083         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73084         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73085         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73086         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73087         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73088         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73089         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73090         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73091         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73092         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73093         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73094         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73095         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73096         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73097         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73098         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73099         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73100         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73101         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73102         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73103         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73104         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73105         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73106         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73107         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73108         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73109         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73110         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73111         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73112         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73113         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73114         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73115         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73116         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73117         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73118         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73119         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73120         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73121         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73122         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73123         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73124         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73125         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73126         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73127         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73128         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73129         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73130         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73131         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73132         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73133         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73134         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73135         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73136         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73137         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73138         lib/yesno.c, lib/yesno.h:
73139         Update FSF postal mail address.
73140
73141 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73142
73143         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
73144         tests/test-memmem.c, tests/test-stpncpy.c:
73145         Update FSF postal mail address.
73146
73147 2005-05-13  Bruno Haible  <bruno@clisp.org>
73148
73149         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
73150         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
73151         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
73152         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
73153         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
73154         Add support for 64-bit integers in the MSVC compiler.
73155
73156 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73157
73158         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
73159
73160 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
73161
73162         * gnulib-tool (func_import): Sort and uniquify recommended includes.
73163
73164 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
73165
73166         * doc/getdate.texi (General date syntax): Don't say that date
73167         date --iso-8601=ns generates acceptable dates; it doesn't yet.
73168         Problem reported by Nic Ferrier.
73169
73170 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73171
73172         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
73173         specified in ai_socktype. Fix invalid ai_protocol
73174         check. ai_protocol is usually set to 0 or depending on
73175         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
73176         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
73177         ai_socktype / ai_protocol in the returned addrinfo structure.
73178
73179 2005-05-10  Simon Josefsson  <jas@extundo.com>
73180
73181         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
73182         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73183
73184 2005-05-10  Karl Berry  <karl@gnu.org>
73185
73186         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
73187         (from http://www.gnu.org/licenses).
73188         * doc/COPYING.LIB: also rename to COPYING.LESSER.
73189         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
73190         fdl.texi suffices.
73191
73192 2005-05-10  Karl Berry  <karl@gnu.org>
73193
73194         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
73195         (COPYING.DOC): remove.
73196
73197         * config/srclist-update: new FSF address.
73198
73199 2005-05-10  Derek Price  <derek@ximbiot.com>
73200
73201         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
73202         possible.
73203
73204 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73205             Bruno Haible  <bruno@clisp.org>
73206
73207         * modules/inet_ntop: New file.
73208         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73209         inet_ntop.
73210
73211 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73212             Bruno Haible  <bruno@clisp.org>
73213
73214         * m4/inet_ntop.m4: New file.
73215
73216 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73217             Bruno Haible  <bruno@clisp.org>
73218
73219         * lib/inet_ntop.h: New file.
73220         * lib/inet_ntop.c: New file, from glibc with modifications.
73221
73222 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
73223
73224         * modules/time_r (License): Change to LGPL.
73225         * modules/extensions (License): Change to LGPL.  Actually,
73226         the license is more permissive than that, but currently gnulib-tool
73227         doesn't know how to handle more-permissive licenses.
73228
73229         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
73230         Problem reported by Dave Love.
73231
73232 2005-05-08  Jim Meyering  <jim@meyering.net>
73233
73234         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
73235         blank.
73236
73237 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73238
73239         * modules/argmatch (Depends-on): Add stdbool.
73240         * modules/backupfile (Depends-on): Likewise.
73241         * modules/chdir-long (Depends-on): Likewise.
73242         * modules/closeout (Depends-on): Likewise.
73243         * modules/cycle-check (Depends-on): Likewise.
73244         * modules/dirname (Depends-on): Likewise.
73245         * modules/fnmatch (Depends-on): Likewise.
73246         * modules/fsusage (Depends-on): Likewise.
73247         * modules/fwriteerror (Depends-on): Likewise.
73248         * modules/getcwd (Depends-on): Likewise.
73249         * modules/getloadavg (Depends-on): Likewise.
73250         * modules/hard-locale (Depends-on): Likewise.
73251         * modules/makepath (Depends-on): Likewise.
73252         * modules/mountlist (Depends-on): Likewise.
73253         * modules/nanosleep (Depends-on): Likewise.
73254         * modules/posixtm (Depends-on): Likewise.
73255         * modules/quotearg (Depends-on): Likewise.
73256         * modules/readtokens (Depends-on): Likewise.
73257         * modules/readtokens0 (Depends-on): Likewise.
73258         * modules/readutmp (Depends-on): Likewise.
73259         * modules/save-cwd (Depends-on): Likewise.
73260         * modules/strftime (Depends-on): Likewise.
73261         * modules/userspec (Depends-on): Likewise.
73262         * modules/utimecmp (Depends-on): Likewise.
73263         * modules/xgetcwd (Depends-on): Likewise.
73264         * modules/xnanosleep (Depends-on): Likewise.
73265         * modules/xstrtod (Depends-on): Likewise.
73266         * modules/yesno (Depends-on): Likewise.
73267
73268 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
73269
73270         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
73271         needless checks.
73272
73273 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73274
73275         Merge from coreutils.  Among other things,
73276         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73277         * lib/fd-safer.c: New file.
73278         * lib/fcntl-safer.h, open-safer.c: Remove.
73279         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73280         * lib/dup-safer.c: Include unistd-safer.h first.
73281         Don't include errno.h.
73282         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73283         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73284         * lib/file-type.c: Rely on file-type.h change.
73285         * lib/getloadavg.c: Include unistd-safer.h.
73286         (getloadavg): Use safer open.
73287         * lib/getusershell.c: Include "stdio-safer.h".
73288         (getusershell): Use safer fopen.
73289         * lib/long-options.c (long_options): Use NULL rather than 0.
73290         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73291         'free'.
73292         * lib/modechange.c: Likewise.
73293         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73294         (MODE_DONE): New constant.
73295         (struct mode_change): Remove 'next' member.
73296         (make_node_op_equals): New function; like the old one of the
73297         same name, except it allocates an array.
73298         (mode_compile, mode_create_from_ref): Use it.
73299         (mode_compile): Allocate result as an array, not a linked list.
73300         Parse octal string ourself, so that we catch mistakes like "+0".
73301         (mode_adjust): Arg is an array, not a linked list.
73302         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73303         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73304         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73305         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73306         Remove.  This is now stat-macros.h's job.
73307         (talloc): Remove.  All callers replaced by xalloc, so that
73308         our invokers don't have to worry about reporting memory failures.
73309         (make_node_op_equals): Remove.
73310         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73311         New constants.
73312         (struct mode_change): Moved here from modechange.h.
73313         (mode_append_entry): Remove.
73314         (mode_compile): Remove MASKED_OPS arg, since it encouraged
73315         apps to have incorrect behavior.  Use simpler algorithm for head
73316         and tail.  Don't futz with umask; that's now the job of mode_adjust.
73317         Detect more invalid usages rather than having somewhat-random behavior.
73318         Don't insert an "a=" action, as that leads to incorrect behavior.
73319         (mode_compile, mode_create_from_ref): Return NULL on error instead
73320         of an enum, since now there's only one way to have an error.  All
73321         callers changed.
73322         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
73323         at the correct time.  Simplify calculation of "+u" and its ilk.
73324         Don't mishandle "+X".
73325         (mode_free): Remove "register" and localize decls.
73326         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73327         (struct mode_change): Move to modechange.c; callers don't
73328         need to see this stuff.
73329         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
73330         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
73331         (mode_change, mode_adjust): Reflect the new signatures noted above.
73332         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
73333         that might redefine system include files.
73334         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
73335         (my_usleep): Use NULL rather than (void *) 0.
73336         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
73337         Use siginterrupt to specify that system calls should be interrupted.
73338         (rpl_nanosleep): Move initialization of suspended closer to call of
73339         my_usleep.
73340         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
73341         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
73342         (desirable_utmp_entry): New function.
73343         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
73344         using x2nrealloc, to simplify logic.
73345         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
73346         size calculation.  Do not assume utmp file is a regular file.
73347         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
73348         (READ_UTMP_CHECK_PIDS): New constant.
73349         * lib/save-cwd.c: Include unistd-safer.h.
73350         (save_cwd): Use fd_safer.
73351         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
73352         [!_LIBC] Include "stat-macros.h" instead.
73353         * lib/unistd-safer.h (fd_safer): New decl.
73354
73355 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73356
73357         * modules/getloadavg (Depends-on): Add unistd-safer.
73358         * modules/getusershell (Depends-on): Add stdio-safer.
73359         * modules/lstat (Depends-on): Remove xalloc.
73360         * modules/mkstemp (Depends-on): Add stat-macros.
73361         * modules/modechange (Depends-on): Remove xstrtol.
73362         Add stat-macros, xalloc.
73363         * modules/save-cwd (Depends-on): Add unistd-safer.
73364         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
73365         * modules/unistd-safer (Files): Add lib/fd-safer.c
73366         (Makefile.am): Remove lib_SOURCES.
73367
73368         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
73369         Remove fcntl-safer; unistd-safer supersedes it.
73370
73371 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73372
73373         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
73374         AC_HEADER_STAT.
73375         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
73376         (gl_PREREQ_CHOWN): Remove.
73377         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
73378         it.  Don't require AC_HEADER_STAT.
73379         (gl_PREREQ_LSTAT): Remove.
73380         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
73381         Don't require AC_HEADER_STAT.
73382         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
73383         (gl_PREREQ_RMDIR): Remove.
73384         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
73385         mention stat-macros.h or AC_HEADER_STAT, since we'll make
73386         the stat-macros module a prerequisite.
73387         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
73388         * m4/filemode.m4 (gl_FILEMODE): Likewise.
73389         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
73390         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
73391         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
73392         variable names.
73393         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
73394         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
73395         variable prefixes.
73396         * m4/fcntl-safer.m4: Remove.
73397         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
73398         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
73399         Invoke gl_PREREQ_FD_SAFER.
73400         (gl_PREREQ_FD_SAFER): New macro.
73401         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
73402         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
73403         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
73404         Remove duplicate call to AC_LIBOBJ(readutmp).
73405         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
73406
73407         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
73408         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
73409
73410 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73411
73412         * MODULES.html.sh (Misc): Add byteswap.
73413
73414 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73415
73416         * modules/getcwd (Depends-on): Add extensions.
73417         * modules/openat (Depends-on): Likewise.
73418
73419 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73420
73421         * modules/byteswap: New file.
73422
73423 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73424
73425         * m4/byteswap.m4: New file.
73426
73427 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73428
73429         * lib/byteswap_.h: New file.
73430
73431 2005-04-25  Karl Berry  <karl@gnu.org>
73432
73433         * m4/gettext.m4: Update from GNU gettext 0.14.4.
73434
73435 2005-04-25  Albert Chin  <china@thewrittenword.com>
73436
73437         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
73438         Toolkit C bug.
73439
73440 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
73441
73442         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
73443         (func_ln_if_changed): Remove forcibly for no error message
73444         in case file does not exist.
73445
73446 2005-04-19  Simon Josefsson  <jas@extundo.com>
73447
73448         * gnulib-tool (Options): Make --symlink mean --symbolic.
73449
73450 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
73451
73452         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
73453
73454 2005-04-16  Simon Josefsson  <jas@extundo.com>
73455
73456         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
73457
73458 2005-04-15  Simon Josefsson  <jas@extundo.com>
73459
73460         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
73461
73462 2005-04-15  Simon Josefsson  <jas@extundo.com>
73463
73464         * gnulib-tool: Rename --symlink to --symbolic.
73465
73466 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
73467
73468         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
73469         symbolic links to files instead of copying/moving.  Add --aux-dir,
73470         specifying directory relative --dir where auxiliary build tools
73471         are placed.
73472
73473 2005-04-14  Bruno Haible  <bruno@clisp.org>
73474
73475         * modules/allocsa (License): Change to LGPL.
73476         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73477
73478 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73479
73480         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
73481         that "UTC +1 second" continues to work.  Problem reported
73482         by Dmitry V. Levin.
73483         (relunit_snumber): New rule.
73484         (relunit): Use it.
73485
73486 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73487
73488         * lib/getdate.y (universal_time_zone_table): New constant.
73489         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
73490         universal_time_zone_table.
73491         (lookup_zone): Prefer universal_time_zone_table to
73492         local_time_zone_table, so that "GMT" time stamps are allowed in
73493         London during the summer.  Problem reported by Ian Abbott.
73494
73495 2005-04-12  Jim Meyering  <jim@meyering.net>
73496
73497         * lib/human.c (humblock): Set *options even when returning due to
73498         xstrtoumax conversion failure.  Thanks to a used-uninitialized
73499         warning from gcc-4.
73500
73501 2005-04-09  Jim Meyering  <jim@meyering.net>
73502
73503         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
73504         -Wuninitialized: initialize tm0.tm_year.
73505
73506 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
73507
73508         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
73509         count, since there's no maximum.  All uses changed.
73510         Add member dsts_seen.
73511         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
73512         not being INT_MAX.
73513         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
73514         Use pc_rels_seen to decide whther a date is absolute.
73515
73516         * lib/getdate.y (number): Don't overwrite year.
73517         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
73518         check.
73519
73520 2005-04-02  Simon Josefsson  <jas@extundo.com>
73521
73522         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
73523         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
73524
73525 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
73526
73527         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
73528         where no absolute path name can be longer than PATH_MAX.
73529
73530 2005-03-27  Jim Meyering  <jim@meyering.net>
73531
73532         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
73533
73534 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
73535
73536         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
73537         "one's complement" -> "ones' complement" in comment, as per Knuth.
73538         "value of type" -> "type or expression" in comment.
73539         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
73540
73541 2005-03-26  Jim Meyering  <jim@meyering.net>
73542
73543         Comment nits.
73544         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
73545         Correct typos: s/or/of/.
73546
73547 2005-03-26  Jim Meyering  <jim@meyering.net>
73548
73549         * modules/check-include-files: Move to ../ and rename to...
73550         * check-module: ...this.
73551
73552 2005-03-25  Jim Meyering  <jim@meyering.net>
73553
73554         * modules/xvasprintf (Files): Add xalloc.h.
73555
73556 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
73557
73558         * modules/gettext (Files): config/config.rpath ->
73559         build-aux/config.rpath
73560         * modules/iconv (Files): Likewise.
73561         Problem reported by Oskar Liljeblad.
73562
73563 2005-03-23  Jim Meyering  <jim@meyering.net>
73564
73565         * modules/check-include-files: New script to check for
73566         missing dependencies, multiple includes, etc.
73567
73568         * modules/c-strtold (Depends-on): Add xalloc.
73569         * modules/c-strtod (Depends-on): Add xalloc.
73570         * modules/hash (Depends-on): Add xalloc.
73571         (Files): Remove lib/xalloc.h.
73572
73573         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
73574         * modules/userspec (Files): Add lib/inttostr.h.
73575
73576 2005-03-23  Jim Meyering  <jim@meyering.net>
73577
73578         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
73579
73580 2005-03-22  Jim Meyering  <jim@meyering.net>
73581
73582         * modules/stat-macros: New module.
73583         * modules/canonicalize, modules/euidaccess, modules/file-type,
73584         * modules/filemode, modules/lchown, modules/makepath,
73585         * modules/rmdir, modules/stat: Depend on new stat-macros module
73586         rather than listing lib/stat-macros.h manually.
73587         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
73588
73589 2005-03-22  Jim Meyering  <jim@meyering.net>
73590
73591         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
73592
73593 2005-03-22  Bruno Haible  <bruno@clisp.org>
73594
73595         * config/srclist.txt: Replace target directory 'config' with
73596         'build-aux'.
73597         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
73598         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
73599         ../build-aux/.
73600
73601 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
73602
73603         * modules/chdir-long (Depends-on): Add mempcpy.
73604
73605         * modules/acl, modules/backupfile, modules/c-strtod,
73606         modules/c-strtold, modules/canon-host, modules/canonicalize,
73607         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
73608         modules/exclude, modules/exitfail, modules/file-type,
73609         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
73610         modules/getdate, modules/getline, modules/getpagesize,
73611         modules/getpass, modules/getugroups, modules/group-member,
73612         modules/hard-locale, modules/hash, modules/human, modules/idcache,
73613         modules/inttostr, modules/long-options, modules/makepath,
73614         modules/md5, modules/memcasecmp, modules/memcoll,
73615         modules/modechange, modules/mountlist, modules/path-concat,
73616         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
73617         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
73618         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
73619         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
73620         modules/strftime, modules/strndup, modules/strverscmp,
73621         modules/timespec, modules/unlocked-io, modules/userspec,
73622         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
73623         modules/yesno:
73624         Remove lib_SOURCES line from Makefile.am section, as this is now
73625         done automatically by the corresponding Autoconf macro.
73626
73627 2005-03-21  Jim Meyering  <jim@meyering.net>
73628
73629         Changes imported from coreutils.
73630
73631         * lib/cycle-check.c: Don't include xalloc.h.
73632
73633         * lib/path-concat.c: Don't include assert.h.
73634         (path_concat): Remove assertion that would have triggered
73635         for ABASE starting with more than one slash.
73636         Reported by Andreas Schwab.
73637
73638         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
73639         properly when ABASE is an absolute file name.
73640         Correct the description of this function.
73641         Include <assert.h>.
73642         Add an assertion and a test driver.
73643         This fixes a bug introduced on 2004-07-02.
73644         Andreas Schwab reported the resulting failure of cp --parents:
73645         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
73646
73647 2005-03-21  Jim Meyering  <jim@meyering.net>
73648
73649         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
73650         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
73651
73652 2005-03-21  Jim Meyering  <jim@meyering.net>
73653         and  Paul Eggert  <eggert@cs.ucla.edu>
73654
73655         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
73656         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
73657         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
73658         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
73659         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
73660         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
73661         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
73662         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
73663         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
73664         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
73665         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
73666         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
73667         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
73668         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
73669         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
73670         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
73671         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
73672         for these modules.
73673
73674 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
73675
73676         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
73677         (which shouldn't happen), generate nothing instead of returning 0
73678         immediately, so that nstrftime (NULL, ...) doesn't return 0.
73679
73680 2005-03-16  Bruno Haible  <bruno@clisp.org>
73681
73682         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
73683         HAVE_LONGLONG_64BIT.
73684
73685 2005-03-16  Bruno Haible  <bruno@clisp.org>
73686
73687         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
73688         HAVE_LONGLONG_64BIT.
73689
73690 2005-03-16  Bruno Haible  <bruno@clisp.org>
73691
73692         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
73693         HAVE_LONGLONG_64BIT.
73694
73695 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73696
73697         * lib/strftime.c (my_strftime): Prepend space to format so that we can
73698         reliably distinguish strftime failure from empty output on POSIX
73699         hosts.
73700
73701 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73702
73703         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
73704         (iconv_string): Don't guess a size-zero buffer, as that might cause
73705         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
73706         result would be 'too large', where 'too large' is (heuristically)
73707         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
73708         overflow concerns.  This will prevent some unwanted malloc failures
73709         when the inputs are very large.
73710
73711 2005-03-15  Karl Berry  <karl@gnu.org>
73712
73713         * config/srclist.txt (config.rpath): from gettext.
73714         * config/config.rpath: update.
73715
73716 2005-03-15  Bruno Haible  <bruno@clisp.org>
73717
73718         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
73719         to 'negate'.
73720
73721         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
73722         variable.
73723
73724         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
73725         results.
73726
73727 2005-03-14  Simon Josefsson  <jas@extundo.com>
73728
73729         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
73730         <fx@gnu.org>.
73731
73732 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
73733
73734         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
73735         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
73736         intprops.h.
73737         * lib/strtol.c: Likewise.
73738
73739 2005-03-14  Jim Meyering  <jim@meyering.net>
73740
73741         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
73742         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
73743         to be nonzero so that we (and caller) can detect the difference
73744         between a valid zero-length expansion and an error return, even
73745         when the underlying strftime fails before writing anything into
73746         that location.
73747
73748 2005-03-14  Bruno Haible  <bruno@clisp.org>
73749
73750         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
73751         Update from GNU gettext 0.14.3.
73752
73753 2005-03-10  Jim Meyering  <jim@meyering.net>
73754
73755         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
73756
73757 2005-03-10  Jim Meyering  <jim@meyering.net>
73758
73759         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
73760         so that this module works on systems without fchdir.
73761
73762 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
73763
73764         Factor int-properties macros into a single file, except for
73765         glibc-related files.
73766         * lib/intprops.h: New file.
73767         * lib/getloadavg.c: Include it instead of limits.h.
73768         (INT_STRLEN_BOUND): Remove.
73769         * lib/human.c: Include intprops.h.
73770         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
73771         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
73772         302/1000.
73773         * lib/inttostr.h: Include intprops.h instead of limits.h.
73774         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
73775         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
73776         for consistency with intprops.h.
73777         (time_t_is_integer, twos_complement_arithmetic): Use them.
73778         * lib/sig2str.h: Include <signal.h>, intprops.h.
73779         (INT_STRLEN_BOUND): Remove.
73780         * lib/strftime.c (TYPE_SIGNED): Remove.
73781         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
73782         * lib/strtol.c: Adjust comments to match intprops.h.
73783         * lib/userspec.c: Include intprops.h.
73784         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
73785         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
73786         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
73787         instead of rolling our own expressions.
73788         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
73789
73790         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
73791         instead of int.
73792         (my_strftime): Do not mishandle years close to INT_MAX, by doing
73793         the right thing even if adding 1900 would overflow.  Similarly
73794         for tm_mon + 1 and tm_yday + 1.
73795         Make %Y always equivalent to %C%y, and similarly for %G and %g.
73796         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
73797         (DO_SIGNED_NUMBER): New macro.
73798         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
73799
73800 2005-03-07  Bruno Haible  <bruno@clisp.org>
73801
73802         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
73803
73804 2005-03-07  Bruno Haible  <bruno@clisp.org>
73805
73806         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
73807
73808 2005-03-04  Derek R. Price  <derek@ximbiot.com>
73809
73810         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
73811         (func_import): Only replace files via --import when they have actually
73812         changed.
73813
73814 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73815
73816         * m4/mmap-anon.m4: New file.
73817         * m4/pagealign_alloc.m4: New file.
73818
73819 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73820             Bruno Haible  <bruno@clisp.org>
73821
73822         * modules/pagealign_alloc: New file.
73823         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
73824
73825 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73826             Bruno Haible  <bruno@clisp.org>
73827
73828         * lib/pagealign_alloc.h: New file.
73829         * lib/pagealign_alloc.c: New file.
73830
73831 2005-03-03  Bruno Haible  <bruno@clisp.org>
73832
73833         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
73834         Use an all-permissive copyright notice, recommended by RMS.
73835
73836 2005-03-02  Bruno Haible  <bruno@clisp.org>
73837
73838         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
73839         of AIX, the replacement has to be done only after <string.h> is
73840         included, therefore not in config.h. stpncpy.h does the replacement,
73841         and stpncpy.c uses it.
73842
73843 2005-03-02  Bruno Haible  <bruno@clisp.org>
73844
73845         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
73846         stpncpy.c uses it.
73847
73848 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73849
73850         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
73851         The workaround isn't strictly needed for POSIX conformance, and
73852         it's too much of a pain to configure and maintain.  We'll ask
73853         people to fix their kernels instead.
73854         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
73855         (NANOSLEEP_BUG_WORKAROUND): Remove.
73856         (xnanosleep): Remove the workaround.
73857
73858 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73859
73860         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
73861         Reported by Derek Price.
73862         (Include): Add "timespec.h".
73863
73864         * modules/xnanosleep (Depends-on): Remove gethrxtime.
73865
73866 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73867
73868         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
73869         to detect nanosleep bug.
73870
73871 2005-03-01  Bruno Haible  <bruno@clisp.org>
73872
73873         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
73874
73875 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73876
73877         * modules/gethrxtime: New file.
73878         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
73879         (Depends-on): Add gethrxtime.
73880         (configure.ac): Add gl_XNANOSLEEP.
73881         (Makefile.am): Remove lib_SOURCES line.
73882
73883 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73884
73885         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
73886         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
73887
73888 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73889
73890         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
73891         * lib/timespec.h (gettime): Return void, since it always
73892         succeeds now.  All uses changed.
73893         * lib/gettime.c (gettime): Likewise.
73894         [HAVE_NANOTIME]: Prefer nanotime.
73895         Assume gettimeofday succeeds, as POSIX requires.
73896         Assime time () succeeds, since other code already does.
73897         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
73898         (timespec_subtract): Remove.
73899         (NANOSLEEP_BUG_WORKAROUND): New constant.
73900         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
73901         things considerably.  Use it only on GNU/Linux hosts, since the
73902         workaround shouldn't be needed elsewhere.
73903
73904 2005-02-24  Bruno Haible  <bruno@clisp.org>
73905
73906         * modules/gettext (Files): Add m4/glibc2.m4.
73907
73908 2005-02-24  Bruno Haible  <bruno@clisp.org>
73909
73910         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
73911         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
73912         * m4/progtest.m4:
73913         Update from GNU gettext 0.14.2.
73914         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
73915
73916 2005-02-24  Bruno Haible  <bruno@clisp.org>
73917
73918         * lib/localcharset.c: Update from GNU gettext 0.14.2.
73919         * lib/config.charset: Update from GNU gettext 0.14.2.
73920
73921 2005-02-24  Bruno Haible  <bruno@clisp.org>
73922
73923         * lib/gettext.h: Update from GNU gettext 0.14.2.
73924
73925 2005-02-23  Simon Josefsson  <jas@extundo.com>
73926
73927         * m4/iconvme.m4: New file.
73928
73929 2005-02-23  Jim Meyering  <jim@meyering.net>
73930
73931         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
73932         change.
73933         Thanks to Bruno Haible for catching it.
73934
73935 2005-02-22  Simon Josefsson  <jas@extundo.com>
73936
73937         * modules/iconvme: New file.
73938
73939         * MODULES.html.sh: Add iconvme.
73940
73941 2005-02-22  Simon Josefsson  <jas@extundo.com>
73942
73943         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
73944
73945 2005-02-22  Simon Josefsson  <jas@extundo.com>
73946
73947         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
73948
73949 2005-02-22  Jim Meyering  <jim@meyering.net>
73950
73951         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
73952         s/ifndef/ifdef/.
73953
73954 2005-02-20  Neil Conway  <neilc@samurai.com>
73955
73956         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
73957         returned by OSX/Darwin if the specified buffer is not large
73958         enough for the hostname.
73959
73960 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73961
73962         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
73963         pass it to _help, otherwise the latter coredumps trying to
73964         dereference state.root_argp.
73965
73966 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73967
73968         * modules/chdir-long (Depends-on): Add memrchr.
73969         * modules/memrchr (Files): Add lib/memrchr.h.
73970         (Include): "memrchr.h".
73971
73972 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73973
73974         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
73975
73976 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73977
73978         * lib/memrchr.h: New file.
73979         * lib/chdir-long.c: Include it.
73980         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
73981         Don't bother including stddef.h.
73982
73983 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73984
73985         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
73986         inclusion.
73987         Include <sys/types.h>, for dev_t.
73988         (ME_DUMMY, ME_REMOTE): Move from here....
73989         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
73990         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
73991         Dmitry V. Levin.
73992         Include mountlist.h first, to test the interface.
73993
73994 2005-01-29  Bruno Haible  <bruno@clisp.org>
73995
73996         * lib/progname.c (program_name): Initialize.
73997         Needed when linking statically on MacOS X.
73998
73999 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74000
74001         Sync from coreutils.
74002         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74003         (Depends-on): Add c-strtod.
74004         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74005
74006 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74007
74008         Sync from coreutils.
74009         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74010
74011         Remove files that are specific to coreutils.
74012         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74013
74014 2005-01-28  Bruno Haible  <bruno@clisp.org>
74015
74016         * modules/javacomp: New file.
74017         * MODULES.html.sh (Java): Add javacomp.
74018
74019 2005-01-28  Bruno Haible  <bruno@clisp.org>
74020
74021         * m4/javacomp.m4: New file, from GNU gettext.
74022
74023 2005-01-28  Bruno Haible  <bruno@clisp.org>
74024
74025         * lib/javacomp.sh.in: New file, from GNU gettext.
74026         * lib/javacomp.h: New file, from GNU gettext.
74027         * lib/javacomp.c: New file, from GNU gettext.
74028
74029 2005-01-26  Simon Josefsson  <jas@extundo.com>
74030
74031         * lib/gai_strerror.c: Use GPL in header.
74032
74033 2005-01-26  Bruno Haible  <bruno@clisp.org>
74034
74035         * modules/javaexec: New file.
74036         * MODULES.html.sh (Java): Add javaexec.
74037
74038 2005-01-26  Bruno Haible  <bruno@clisp.org>
74039
74040         * m4/javaexec.m4: New file, from GNU gettext.
74041
74042 2005-01-26  Bruno Haible  <bruno@clisp.org>
74043
74044         * lib/javaexec.sh.in: New file, from GNU gettext.
74045         * lib/javaexec.h: New file, from GNU gettext.
74046         * lib/javaexec.c: New file, from GNU gettext.
74047
74048 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74049
74050         * modules/lchown (Depends-on): Remove lchown.h
74051
74052 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74053
74054         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74055         must be defined if the header file was not found, in order
74056         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74057
74058 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74059
74060         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74061         initializers for struct pentry_state.
74062         (__argp_error): Check return value of __asprintf
74063         (__argp_failure): Translate error message
74064
74065         * lib/argp-parse.c: Removed braces around the expansion of N_()
74066
74067 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74068
74069         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74070         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74071         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74072         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74073         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74074         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74075         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74076         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74077         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74078         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74079         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74080         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74081         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74082         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74083         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74084         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74085         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74086         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74087         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74088         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74089         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74090         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74091         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74092         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74093         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74094         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74095         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74096         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74097         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74098         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74099         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74100         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74101         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74102         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74103         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74104         Use an all-permissive copyright notice, recommended by RMS.
74105
74106 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74107
74108         * modules/chdir-long (Depends-on): Remove mempcpy.
74109
74110 2005-01-21  Jim Meyering  <jim@meyering.net>
74111
74112         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74113         same value as for Solaris 9.
74114
74115         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74116         component length.  This included changing the parameter to be
74117         of type `char *' rather than `char const *'.
74118         * lib/chdir-long.h (chdir_long): Update prototype.
74119
74120         * lib/openat.c (fdopendir, fstatat): New functions.
74121         * lib/openat.h: Include headers required for use of DIR and struct
74122         stat.
74123         [AT_SYMLINK_NOFOLLOW]: Define.
74124         (fdopendir, fstatat): Add prototypes.
74125
74126 2005-01-21  Bruno Haible  <bruno@clisp.org>
74127
74128         * modules/classpath: New file.
74129         * MODULES.html.sh (Java): Add classpath.
74130
74131 2005-01-21  Bruno Haible  <bruno@clisp.org>
74132
74133         * lib/classpath.h: New file, from GNU gettext.
74134         * lib/classpath.c: New file, from GNU gettext.
74135
74136 2005-01-20  Simon Josefsson  <jas@extundo.com>
74137
74138         * modules/version-etc-fsf: New file.
74139
74140 2005-01-20  Simon Josefsson  <jas@extundo.com>
74141
74142         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74143         * lib/version-etc.c: Remove version_etc_copyright.
74144         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
74145         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
74146
74147 2005-01-20  Simon Josefsson  <jas@extundo.com>
74148
74149         * lib/base64.h (isbase64): Add.
74150
74151         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
74152         using a unsigned prototype, don't inline.
74153         (base64_decode): Use it.
74154
74155 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74156
74157         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
74158         it.
74159
74160 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74161
74162         * lib/save-cwd.c (save_cwd): Remove code to support the case
74163         where fchdir is missing or flaky.
74164
74165 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74166
74167         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
74168
74169 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74170
74171         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
74172         AC_LIBSOURCES now does this.
74173         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
74174         with new ullong_max module.
74175
74176 2005-01-19  Bruno Haible  <bruno@clisp.org>
74177
74178         * modules/sh-quote: New file.
74179         * MODULES.html.sh (Executing programs): Add sh-quote.
74180
74181 2005-01-19  Bruno Haible  <bruno@clisp.org>
74182
74183         * lib/sh-quote.h: New file, from GNU gettext.
74184         * lib/sh-quote.c: New file, from GNU gettext.
74185
74186 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74187
74188         Merge from coreutils.
74189         * m4/ullong_max.m4: New file.
74190         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
74191         (gl_MACROS): Assume localeconv exists.
74192
74193 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74194
74195         Merge changes from coreutils, as described below in several
74196         changelogs dated today.
74197
74198         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
74199         (O_DIRECTORY): Remove; not needed here, since "." must be
74200         a directory.  All uses removed.
74201         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
74202         universal on Suns, and we also need to test for IRIX.
74203         Revamp code to use 'if' rather than '#if'.
74204         Avoid unnecessary comparison of cwd->desc to 0.
74205
74206         * lib/utimens.c (futimens): Robustify the previous patch, by checking
74207         for known valid error numbers rather than observed invalid ones.
74208
74209 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74210
74211         * modules/ullong_max: New file.
74212
74213         * modules/chdir-long, modules/openat: New files.
74214         * modules/save-cwd (Depends-on): Depend on chdir-long.
74215         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
74216
74217 2005-01-18  Jim Meyering  <jim@meyering.net>
74218
74219         Merge from coreutils.
74220         * m4/chdir-long.m4, m4/openat.m4: New files.
74221         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
74222         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
74223         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
74224         is sane and DOES follow symlinks.  Besides, testing 20 different
74225         systems found no broken chown implementations.
74226         Prompted by a change in rsync's copy of this macro.
74227         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
74228
74229         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
74230
74231         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
74232         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
74233         NULL-means-set-to-current-time semantics.
74234         Remove temporary file immediately, rather than waiting
74235         for configure's at-exit trap code to do it.
74236
74237 2005-01-18  Jim Meyering  <jim@meyering.net>
74238
74239         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74240
74241         * lib/utimens.c (futimens): Account for the fact that futimes
74242         can also fail with errno == ENOSYS or errno == ENOENT.
74243         Patch from Dmitry V. Levin.
74244
74245         Change the name of the robust chdir function from chdir to chdir_long.
74246         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
74247         (restore_cwd): Use chdir_long, not chdir.
74248         * lib/chdir-long.c: Renamed from chdir.c.
74249         * lib/chdir-long.h: Renamed from chdir.h.
74250         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
74251         Hurd.
74252
74253 2005-01-18  Bruno Haible  <bruno@clisp.org>
74254
74255         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
74256         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
74257         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
74258         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
74259         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
74260         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
74261         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
74262         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
74263         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
74264         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
74265         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
74266         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
74267         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
74268         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
74269         Use an all-permissive copyright notice, recommended by RMS.
74270
74271 2005-01-18  Bob Proulx  <bob@proulx.com>
74272
74273         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74274         simplify offsetof() macro construct to avoid compile failure with
74275         native HP-UX 11.0 ANSI C compiler.
74276
74277 2005-01-17  Bruno Haible  <bruno@clisp.org>
74278
74279         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74280         redundant because stpncpy.m4 takes care of it.
74281
74282 2005-01-17  Bruno Haible  <bruno@clisp.org>
74283
74284         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74285
74286 2005-01-17  Bruno Haible  <bruno@clisp.org>
74287
74288         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74289         used.
74290
74291 2005-01-17  Bruno Haible  <bruno@clisp.org>
74292
74293         * lib/fwriteerror.h (fwriteerror): Change specification to include
74294         fclose.
74295         * lib/fwriteerror.c: Include <stdbool.h>.
74296         (fwriteerror): At the end, close the file stream. Record whether
74297         stdout was already closed.
74298
74299 2005-01-17  Bruno Haible  <bruno@clisp.org>
74300
74301         * lib/execute.c (environ): Declare if needed.
74302         * lib/pipe.c (environ): Likewise.
74303         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74304
74305 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74306
74307         * modules/argp: Depend on vsnprintf
74308
74309 2005-01-10  Jim Meyering  <jim@meyering.net>
74310
74311         * modules/closeout (Depends-on): Add atexit.
74312
74313 2005-01-06  Bruno Haible  <bruno@clisp.org>
74314
74315         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
74316
74317 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74318
74319         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
74320         definitions to be after all include files, to avoid collisions.
74321         Problem reported by Bob Proulx.
74322
74323 2005-01-04  Jim Meyering  <jim@meyering.net>
74324
74325         Changes imported from coreutils.
74326         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
74327         as the mkstemp template, use a temporary directory and an
74328         8.3-friendly template to avoid trouble on systems like DJGPP.
74329         Reported by Juan M. Guerrero via Stepan Kasal.
74330         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
74331         close. Remove the temporary directory right away, rather than waiting
74332         for configure's at-exit trap code to do it.
74333         Suggestion from Stepan Kasal.
74334
74335 2005-01-01  Simon Josefsson  <jas@extundo.com>
74336
74337         * gnulib-tool: Print #include directives when --import'ing.
74338
74339 2004-12-28  Simon Josefsson  <jas@extundo.com>
74340
74341         * tests/test-base64.c: Include required header files.  Remove
74342         unused variables.
74343
74344 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74345
74346         * modules/error (Depends-on): Remove gettext.
74347
74348 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74349
74350         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
74351         not needed.  This removes a dependency on the gettext module.
74352         [defined _LIBC]: Do not include <libintl.h>; not needed.
74353
74354 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74355
74356         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
74357         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
74358
74359 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74360
74361         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
74362         HAVE_DECL_STRTOLD.
74363
74364 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74365
74366         * modules/getdate (Depends-on): Remove alloca-opt.
74367
74368 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74369
74370         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
74371
74372 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74373
74374         * lib/argp-parse.c: Include <stddef.h>.
74375         (alignof, alignto): New macros.
74376         (parser_init): Don't assume that void * is aligned sufficiently
74377         for struct option.
74378
74379         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
74380         need to extend the stack.
74381         (YYINITDEPTH): New macro, so that the initial stack isn't overly
74382         large.
74383
74384 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74385
74386         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
74387
74388 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74389
74390         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
74391         (2004-10-24) change.  Apparently this was a false alarm.
74392
74393         * modules/getdate: Depend on alloca-opt, not alloca.
74394
74395 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74396
74397         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
74398         Remove now-obsolete comment about AIX.
74399         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
74400         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
74401         (YYMAXDEPTH): New macro.
74402
74403 2004-12-18  Simon Josefsson  <jas@extundo.com>
74404
74405         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
74406
74407 2004-12-18  Bruno Haible  <bruno@clisp.org>
74408
74409         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
74410
74411 2004-12-18  Bruno Haible  <bruno@clisp.org>
74412
74413         * lib/fatal-signal.c (fatal_signals): Make non-const.
74414         (init_fatal_signals): New function.
74415         (uninstall_handlers, install_handlers): Ignore signals that were set to
74416         SIG_IGN.
74417         (at_fatal_signal): Call init_fatal_signals.
74418         (init_fatal_signal_set): Likewise. Ignore signals that were set to
74419         SIG_IGN.
74420         Reported by Paul Eggert.
74421
74422 2004-12-18  Bruno Haible  <bruno@clisp.org>
74423
74424         * doc/alloca.texi: New file.
74425         * doc/alloca-opt.texi: New file.
74426
74427 2004-12-17  Jim Meyering  <jim@meyering.net>
74428
74429         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
74430         Otherwise, install-sh could exit with improper exit status when
74431         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
74432
74433 2004-12-16  Simon Josefsson  <jas@extundo.com>
74434
74435         * tests/test-base64.c: Add license.
74436
74437 2004-12-15  Stepan Kasal  <address@hidden>
74438
74439         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
74440
74441 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
74442
74443         * modules/getcwd (Files): Add m4/d-ino.m4.
74444         Suggested by Mark D. Baushke.
74445
74446 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74447
74448         * lib/getdate.y (textint): New member "negative".
74449         (time_zone_hhmm): New function.
74450         Expect 14 shift-reduce conflicts, not 13.
74451         (o_colon_minutes): New rule.
74452         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
74453         (yylex): Set the "negative" member of signed numbers.
74454
74455 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74456
74457         * doc/getdate.texi (Time of day items, Time zone items):
74458         Describe new formats +00:00, UTC+00:00.
74459
74460 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74461
74462         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
74463         spurious "-l"s.  Problem reported by Stepan Kasal.
74464
74465 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
74466
74467         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
74468         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
74469
74470 2004-12-04  Simon Josefsson  <jas@extundo.com>
74471
74472         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
74473         Vandoorselaere <yoann@prelude-ids.org>.
74474
74475 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74476
74477         Changes imported from coreutils.
74478         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
74479         exist.
74480         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
74481
74482 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74483
74484         Changes imported from coreutils.
74485         * lib/hard-locale.c: Assume <locale.h> exists.
74486         Include "strdup.h".
74487         (GLIBC_VERSION): New macro.
74488         (hard_locale): Assume setlocale exists.
74489         Rewrite to avoid #ifdef.
74490         Use strdup rather than malloc + strcpy.
74491         * lib/human.c: Assume <locale.h> exists.
74492         (human_readable): Assume localeconv exists.
74493
74494 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74495
74496         * modules/hard-locale (Depends-on): Add strdup.
74497
74498 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74499
74500         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
74501         convert T2, not T.  (Imported from libc.)
74502
74503 2004-11-30  Simon Josefsson  <jas@extundo.com>
74504
74505         * modules/restrict (License): Change to LGPL.
74506
74507 2004-11-30  Simon Josefsson  <jas@extundo.com>
74508
74509         * m4/restrict.m4: Add copyright and copying conditions.
74510
74511 2004-11-30  Simon Josefsson  <jas@extundo.com>
74512
74513         * m4/base64.m4: New file.
74514
74515 2004-11-30  Simon Josefsson  <jas@extundo.com>
74516
74517         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
74518         base64.
74519
74520         * tests/test-base64.c: New file.
74521
74522         * modules/base64: New file.
74523
74524 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74525
74526         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
74527         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
74528
74529         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
74530
74531 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74532
74533         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
74534         (__getcwd.c): Don't restore errno; glibc doesn't.
74535         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
74536         first, falling back to our code only if its results look suspicious.
74537         Ensure that the resulting buffer is only as large as necessary.
74538
74539         * lib/readutmp.c: Include readutmp.h first.
74540         Include <errno.h>, since readutmp.h no longer does that.
74541         * lib/readutmp.h: Don't include <errno.h>,
74542         <sys/param.h>, <time.h>; not needed to establish interface.
74543         (errno): Remove decl.
74544         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
74545         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
74546         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
74547
74548 2004-11-28  Simon Josefsson  <jas@extundo.com>
74549
74550         * lib/base64.h, base64.c: New file.
74551
74552 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74553
74554         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
74555
74556 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74557
74558         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
74559         (Depends-on): Remove pathmax, same.  Add mempcpy.
74560         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
74561         (Makefile.am): Append getcwd.h to lib_SOURCES.
74562         (Include): Add getcwd.h.
74563         (Maintainer): Change from Jim Meyering to "all, glibc",
74564         since getdate now uses intended-for-glibc code.
74565         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
74566         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
74567
74568 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74569
74570         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
74571         HP's ANSI C compiler.
74572         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
74573         Declaring int functions causes warnings on some modern systems and
74574         shouldn't be needed to compile on ancient ones.
74575         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
74576         defined.
74577
74578         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
74579         with the following changes.
74580         (__set_errno): Parenthesize properly.
74581         Include <stdbool.h>.
74582         (MIN, MAX, MATCHING_INO): New macros.
74583         (__getcwd): Define with prototype, not K&R form.
74584         Use heuristics to allocate default buffer on stack if possible.
74585         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
74586         behavior, and to avoid the PATH_MAX limit when computing
74587         ../../../../...
74588         Use MATCHING_INO to compare inode number to file.
74589         Check for arithmetic overflow in size calculations.
74590         Fix bug in reallocation of dot array that caused getcwd to fail
74591         on directories nested deeper than 75.
74592         Be more careful about saving errno on error.
74593         Do not use realloc; use only free+malloc, as this is a bit
74594         more flexible and avoids a needless copy operation.
74595         Do not inspect st_dev and st_ino for symbolic links; POSIX
74596         doesn't specify the latter.
74597         Check for closedir errors.
74598         Avoid needless casts.
74599         Use "#ifdef weak_alias" around weak_alias, to be like other
74600         glibc code.
74601         The following changes to getcwd.c have effect only when used in
74602         gnulib; they have no effect inside glibc proper.
74603         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
74604         as alloca isn't used.
74605         (alloca, __alloca): Likewise.
74606         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
74607         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74608         unconditionally, as gnulib assumes C89 or better.
74609         Do not include <sys/param.h>.
74610         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
74611         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
74612         better.
74613         (NULL) [!defined NULL]: Remove; we assume C89 or better.
74614         Include <dirent.h> in a way that is compatible with modern Autoconf.
74615         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
74616         New macros, if not already defined.
74617         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
74618         Use "_LIBC", not "defined _LIBC", for consistency.
74619         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
74620         a mempcpy module.
74621         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
74622         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
74623         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
74624         credit only to Jim Meyering and adjust the copyright dates.
74625         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
74626         <stdlib.h>, <unistd.h>, "pathmax.h".
74627         Instead, include "xgetcwd.h" (first) and "getcwd.h".
74628         (INITIAL_BUFFER_SIZE): Remove.
74629         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
74630
74631 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74632
74633         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
74634         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
74635         Use the _ONCE methods, for efficiency.
74636         Check for fcntl.h.  In test program, include <errno.h>
74637         and <fcntl.h> if available.  Remove old K&R cruft from
74638         test program.  Check for common errors in GNU/Linux,
74639         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
74640         don't do AC_LIBOBJ, as that's getcwd.m4's job.
74641         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
74642         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
74643         name accordingly.
74644         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
74645         accommodate new getcwd.c.
74646         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
74647         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
74648         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
74649         that's all we need now.
74650
74651 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74652
74653         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
74654         argp-parse.c depends on getopt internals, that means we should
74655         always use our getopt, to be on the safe side.
74656         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
74657         order not to spoil the result of an eventual previous invocation
74658         of gl_GETOPT_SUBSTITUTE.
74659
74660 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74661
74662         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
74663         redefinition warnings. To avoid them, include the defines
74664         in `#if !defined __need_getopt ... #endif'. The only place
74665         where __getopt_argv_const is used is in definitions
74666         of getopt_long and getopt_long_only below, which are as well
74667         protected by `#ifndef __need_getopt'.
74668         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
74669         __need_getopt after including <stdio.h> and <unistd.h> These
74670         headers might have defined it.
74671
74672 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74673
74674         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
74675
74676 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74677
74678         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
74679         (futimens): New function, which uses futimes if available.
74680         (futimens, utimens): Support timespec==NULL, with same semantics
74681         as utime and utimens.
74682         * lib/utimens.h (futimens): New decl.
74683
74684 2004-11-23  Jim Meyering  <jim@meyering.net>
74685
74686         * lib/getopt_.h: Remove trailing blanks.
74687
74688 2004-11-23  Jim Meyering  <jim@meyering.net>
74689
74690         * lib/__fpending.c: Add comment.
74691
74692 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
74693
74694         * modules/canonicalize (Depends-on): Add xreadlink.
74695         Problem reported by James Youngman.
74696
74697 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74698
74699         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
74700         New macros.
74701         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
74702         optopt): Use them instead of invoking ## directly; otherwise, the
74703         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
74704
74705 2004-11-19  Bruno Haible  <bruno@clisp.org>
74706
74707         * lib/strtok_r.c: Move comments from here...
74708         * lib/strtok_r.h: ... to here.
74709
74710 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74711
74712         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
74713         implementations that mishandle size_t overflow.
74714
74715 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74716
74717         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
74718         might fail.  Problem reported by Yoann Vandoorselaere.
74719         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
74720         implementations that mishandle size_t overflow.
74721
74722 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74723
74724         * modules/canon-host (Depends-on): Add strdup.
74725
74726 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74727
74728         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
74729
74730 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74731
74732         * lib/canon-host.c: Include "strdup.h".
74733         (canon_host): Use getaddrinfo if available, so that IPv6 works.
74734         Use strdup instead of malloc/strcpy to duplicate strings.
74735
74736         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
74737         (human_space_before_unit): New constant.
74738         * lib/human.c (human_readable): Support it.
74739
74740         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
74741         (xgetcwd): Set errno correctly when failing.
74742         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
74743         the failure is actually due to a PATH_MAX problem.
74744
74745         Further getopt changes to make it more likely that glibc will
74746         buy the changes back.
74747         * lib/getopt.c (POSIXLY_CORRECT): New constant.
74748         (getopt): Use it, so to preserve glibc semantic
74749         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
74750         when compiling for libc.
74751         * lib/getopt_.h (__getopt_argv_const): Bring it back.
74752         (getopt_long, getopt_long_only): Use it.
74753
74754         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74755         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
74756         (getopt): Argv is now char * const *, as per standard.
74757         (_getopt_internal_r, _getopt_internal): Argv is now char **,
74758         not char *__getopt_argv_const *.
74759         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
74760         _getopt_long_only_r): Likewise.
74761         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
74762         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
74763         _getopt_long_r, _getopt_long_only_r): Likewise.
74764         * lib/getopt_.h (__getopt_argv_const): Remove.
74765         (getopt): Argv is now char * const *, as per standard.
74766
74767         * lib/getdate.y (tORDINAL): New token.
74768         (day, relunit): Allow it for relative times.
74769         (relative_time_table): Use tORDINAL for ordinals.
74770
74771 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74772
74773         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
74774         Document that "second" isn't allowed as an ordinal number.
74775
74776 2004-11-16  Jim Meyering  <jim@meyering.net>
74777
74778         * modules/closeout (Depends-on): Add fpending.
74779
74780 2004-11-15  Jim Meyering  <jim@meyering.net>
74781
74782         * lib/closeout.c: Include "__fpending.h" once again.
74783         Include <stdbool.h>.
74784         (close_stdout): Don't fail just because stdout was closed initially,
74785         since some programs don't write to stdout in the normal course of
74786         operation (other than --version and --help), and we don't want this
74787         function to make e.g. `touch file >&-' fail.
74788         But do fail if it was closed and someone has tried to write to it.
74789         E.g., `printf foo >&-' must fail.
74790
74791 2004-11-13  Jim Meyering  <jim@meyering.net>
74792
74793         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
74794
74795 2004-11-12  Simon Josefsson  <jas@extundo.com>
74796
74797         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
74798         small doc fix is still pending.
74799
74800 2004-11-11  Simon Josefsson  <jas@extundo.com>
74801
74802         * modules/strtok_r: New file.
74803
74804         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74805         strtok_r.
74806
74807 2004-11-11  Simon Josefsson  <jas@extundo.com>
74808
74809         * m4/strtok_r.m4: New file.
74810
74811         * m4/getopt.m4: Replace opterr.
74812
74813 2004-11-11  Simon Josefsson  <jas@extundo.com>
74814
74815         * lib/strtok_r.h, strtok_r.c: New file.
74816
74817 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
74818
74819         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
74820         of replacing opterr, getopt, etc.  This should handle the
74821         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
74822
74823 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
74824
74825         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
74826         we can stop lying to compilers about the constness of argv when we
74827         are compiled outside glibc.
74828         (getopt, getopt_long, getopt_long_only): Use it.
74829         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74830         _getopt_internal, getopt): Likewise.
74831         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
74832         _getopt_long_only_r): Likewise.
74833         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
74834         _getopt_long_r, _getopt_long_only_r): Likewise.
74835
74836         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
74837         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
74838         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
74839         the other external symbols.
74840         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
74841         declaration, since the above renaming now works around collisions.
74842
74843 2004-11-11  Jim Meyering  <jim@meyering.net>
74844
74845         * lib/linebreak.c: Remove trailing blanks.
74846         * lib/alloca_.h: Likewise.
74847         * lib/acosl.c: Likewise.
74848         * lib/euidaccess.c: Likewise.
74849         * lib/allocsa.h: Likewise.
74850
74851 2004-11-10  Simon Josefsson  <jas@extundo.com>
74852
74853         * m4/getaddrinfo.m4: New file.
74854
74855 2004-11-10  Simon Josefsson  <jas@extundo.com>
74856
74857         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
74858
74859 2004-11-10  Simon Josefsson  <jas@extundo.com>
74860
74861         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74862         getaddrinfo.
74863
74864         * modules/getaddrinfo: New file.
74865
74866 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74867
74868         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
74869
74870 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74871
74872         * lib/mktime.c (SHR): New macro, which is a portable
74873         substitute for >> that should work even on Crays.
74874         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
74875         Problem reported by Mark D. Baushke in
74876         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
74877         * lib/getdate.y (SHR): Likewise.
74878         (tm_diff): Use it.
74879         * lib/strftime.c (SHR): Likewise.
74880         (tm_diff): Use it.
74881         * lib/quotearg.c (struct quoting_options): Use unsigned int for
74882         quote_these_too, so that right shifts are well defined.  All uses
74883         changed.
74884
74885 2004-11-10  Jim Meyering  <jim@meyering.net>
74886
74887         Ensure that no close failure goes unreported.
74888         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
74889         return early when it seems there's nothing to flush.
74890         Don't include __fpending.h.
74891
74892 2004-11-10  Jim Meyering  <jim@meyering.net>
74893
74894         * modules/closeout (Depends-on): Remove fpending.
74895
74896 2004-11-10  Jim Meyering  <jim@meyering.net>
74897
74898         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
74899
74900 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74901
74902         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
74903         gl_FUNC_STRFTIME.
74904         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
74905         and AC_REQUIRE when possible, to avoid duplicate checks.
74906         Check for <wchar.h>.
74907
74908 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74909
74910         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
74911
74912 2004-11-09  Bruno Haible  <bruno@clisp.org>
74913
74914         * m4/sockpfaf.m4: New file.
74915
74916 2004-11-05  Bruno Haible  <bruno@clisp.org>
74917
74918         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
74919         Reported by Mark D. Baushke <mdb@cvshome.org>.
74920
74921 2004-11-04  Bruno Haible  <bruno@clisp.org>
74922
74923         2004-09-11  Bruno Haible  <bruno@clisp.org>
74924                 * allocsa.valgrind: New file.
74925         2004-02-06  Bruno Haible  <bruno@clisp.org>
74926                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
74927                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
74928                 Reported by Christopher Seip <chris.seip@hp.com>.
74929
74930 2004-11-04  Bruno Haible  <bruno@clisp.org>
74931
74932         * modules/allocsa (Files): Add lib/allocsa.valgrind.
74933         (Makefile.am): Distribute it.
74934
74935 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74936
74937         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
74938         with errno == ERANGE if the buffer is too small.
74939         Problem reported by Mark D. Baushke.
74940
74941 2004-11-03  Albert Chin  <china@thewrittenword.com>
74942             Paul Eggert  <eggert@cs.ucla.edu>
74943
74944         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
74945         equivalent, substitute $ac_type for equivalent type rather than
74946         blindly using uint32_t *always* which won't work if uint32_t is not
74947         available.  Define _UINT32_T to work around typedef of uint32_t if
74948         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
74949         2.5.1.
74950
74951 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74952
74953         * m4/jm-macros.m4: Sync from coreutils.
74954         (gl_MACROS): Check for mbrlen, for pathchk.
74955         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
74956
74957 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74958
74959         * lib/xreadlink.c (MAXSIZE): New macro.
74960         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
74961         size does not exceed MAXSIZE.  Avoid cast.
74962         As suggested by Mark D. Baushke in
74963         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
74964         if readlink fails with buffer size just under MAXSIZE, try again
74965         with MAXSIZE.
74966
74967 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74968
74969         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
74970
74971 2004-11-02  Derek R. Price  <derek@ximbiot.com>
74972         and  Paul Eggert  <eggert@cs.ucla.edu>
74973
74974         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
74975         (get_date): Overparenthesize to avoid GCC warning.
74976
74977 2004-11-02  Bruno Haible  <bruno@clisp.org>
74978
74979         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
74980         returns void.
74981
74982 2004-11-02  Bruno Haible  <bruno@clisp.org>
74983
74984         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
74985         function returns void.
74986
74987 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74988
74989         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
74990         fflush_unlocked, flockfile, funlockfile, funlockfile,
74991         fputs_unlocked, putc_unlocked.
74992
74993 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74994
74995         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
74996         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
74997         already declared.
74998
74999 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75000
75001         * modules/getdate (Files): Add doc/getdate.texi.
75002         (Depends-on): Add setenv, xalloc.
75003
75004 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75005
75006         * lib/getdate.y: Add support for TZ="foo" within a date string.
75007         Fix some bugs near time_t boundaries.  Reject dates with
75008         out-of-range components, e.g., "Sept 31".
75009         Include <stdlib.h>, "setenv.h", "xalloc.h".
75010         (ISDIGIT_LOCALE): Remove; unused.
75011         Note that the TZ and time functions used here are not reentrant.
75012         (mktime_ok, get_tz): New functions.
75013         (TZBUFSIZE): New constant.
75014         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75015         This requires that we sometimes generate our own TZ="XXX..." setting.
75016
75017 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75018
75019         * doc/getdate.texi: New file, from coreutils with modifications for
75020         the new TZ parsing.
75021
75022 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75023
75024         * lib/mktime.c (not_equal_tm): Remove redundant check.
75025
75026 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75027
75028         * modules/regex (lib_SOURCES): Add regex.c.
75029         Reported by James Youngman in
75030         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75031
75032 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75033
75034         * lib/getdate.y: Use Bison 1.875 features, and some minor
75035         code cleanups.  This change does not affect semantics.
75036         Don't include <stdlib.h>; no longer needed.
75037         Don't include unlocked-io.h; only the "#if TEST" code uses
75038         stdio, and performance isn't crucial there.
75039         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75040         Bison 1.875 features as described below.
75041         All uses of "PC." replaced by "pc->".
75042         (YYSTYPE): Add a forward declaration.
75043         (yylex, yyerror): Use full prototypes in forward decls.
75044         Use "%pure-parser" rather than obsolescent "%pure_parser".
75045         Use %parse-param and %lex-param instead of obsolescent
75046         YYPARSE_PARAM and YYLEX_PARAM.
75047         (meridian_table, month_and_day_table, time_units_table,
75048         relative_time_table, time_zone_table, military_table,
75049         lookup_zone, lookup_word, get_date):
75050         Use NULL instead of 0 where appropriate.
75051         (to_hour): Avoid abort (), to avoid a dependency on
75052         stdlib.h.
75053         (yyerror, yylex): Now accepts parser_control * arg.
75054         (main) [TEST]: Use '\0' rather than 0 for char.
75055
75056 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75057
75058         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75059
75060 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75061
75062         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75063         It's now the caller's responsibility to handle the case where
75064         !HAVE_GETPAGESIZE && !defined getpagesize.
75065
75066         * lib/mktime.c (leapyear): Arg is long int, not int.
75067
75068 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75069
75070         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75071
75072 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75073
75074         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75075         missing.  Problem reported by James Youngman.
75076
75077 2004-10-16  Simon Josefsson  <jas@extundo.com>
75078
75079         * gnulib-tool: Fix comments.  Fix parse problem.
75080         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75081
75082 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75083
75084         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75085         implementation of getopt_long.  Problem reported by Alexander Taler in:
75086         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75087
75088 2004-10-15  Bruno Haible  <bruno@clisp.org>
75089
75090         * gnulib-tool: Untabify. Initialize supplied_libname.
75091         (func_usage): More homogenous output.
75092         (func_modules_transitive_closure, func_modules_to_filelist,
75093         func_emit_lib_Makefile_am): New functions.
75094         (func_import): New function, extracted from big case statement. Use
75095         func_get_license, func_modules_transitive_closure,
75096         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75097         opt_lgpl. Don't use test -a, as it's not portable.
75098         (func_create_testdir): Use func_modules_transitive_closure,
75099         func_modules_to_filelist, func_emit_lib_Makefile_am.
75100
75101 2004-10-15  Bruno Haible  <bruno@clisp.org>
75102
75103         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75104
75105 2004-10-15  Bruno Haible  <bruno@clisp.org>
75106
75107         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75108         the portions belonging to each module.
75109         Suggested by Derek Robert Price <derek@ximbiot.com>.
75110
75111 2004-10-12  Simon Josefsson  <jas@extundo.com>
75112
75113         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75114         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75115         to real functions.
75116
75117 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75118
75119         * modules/vsnprintf: New file.
75120
75121 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75122
75123         * m4/vsnprintf.m4: New file.
75124
75125 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75126
75127         * lib/vsnprintf.h: New file.
75128         * lib/vsnprintf.c: New file.
75129
75130 2004-10-11  Bruno Haible  <bruno@clisp.org>
75131
75132         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75133         vsnprintf.
75134
75135 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75136
75137         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75138
75139 2004-10-07  Bruno Haible  <bruno@clisp.org>
75140
75141         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75142         fits into the provided buffer.
75143
75144 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75145
75146         * lib/diacrit.c, diacrit.h: Add GPL notice.
75147
75148         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
75149         notice.
75150         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
75151         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
75152         This avoids a potential constant-folding bug.
75153
75154 2004-10-05  Bruno Haible  <bruno@clisp.org>
75155
75156         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
75157         for the declaration of strsep.
75158
75159 2004-10-05  Bruno Haible  <bruno@clisp.org>
75160
75161         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
75162
75163 2004-10-04  Simon Josefsson  <jas@extundo.com>
75164
75165         * modules/memmem: New file.
75166         * tests/test-memmem.c: New file.
75167         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
75168
75169 2004-10-04  Simon Josefsson  <jas@extundo.com>
75170
75171         * m4/memmem.m4: New file.
75172
75173 2004-10-04  Simon Josefsson  <jas@extundo.com>
75174
75175         * lib/memmem.h: New file.
75176         * lib/memmem.c: New file, taken from glibc.
75177
75178 2004-10-04  Simon Josefsson  <jas@extundo.com>
75179
75180         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
75181         '#ifdef USE_UNLOCKED_IO'.
75182
75183 2004-10-04  Simon Josefsson  <jas@extundo.com>
75184
75185         * config/srclist.txt: Add memmem from glibc.
75186
75187 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75188
75189         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
75190
75191         * modules/argmatch, modules/argp, modules/closeout, modules/error,
75192         modules/exclude, modules/getdate, modules/getline,
75193         modules/getndelim2, modules/getpass, modules/getpass-gnu,
75194         modules/getusershell, modules/linebuffer, modules/md5,
75195         modules/mountlist, modules/posixtm, modules/readtokens,
75196         modules/readutmp, modules/regex, modules/sha1,
75197         modules/version-etc, modules/yesno:
75198         Remove dependency on unlocked-io.
75199
75200 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75201
75202         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
75203
75204         * m4/unlocked-io.m4: Add copyright notice.
75205         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
75206
75207 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75208
75209         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
75210         * lib/xmalloc.c (xmemdup): Likewise.
75211         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
75212         XFREE): Remove these long-obsolescent macros.
75213         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
75214         * lib/xstrdup.c: Remove.
75215
75216         * lib/regex.c (re_comp): Cast gettext return value to char *,
75217         Problem reported by Martin Neitzel via Mark D. Baushke.
75218
75219 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75220
75221         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
75222         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
75223         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
75224         regex.c, sha1.c, version-etc.c, yesno.c:
75225         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
75226         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
75227         the includer's responsibility.
75228
75229         Sync from coreutils.
75230
75231         * lib/modechange.c (mode_compile): Don't decrement a pointer that
75232         points to the start of a string, as the C Standard says the
75233         resulting behavior is undefined.
75234
75235         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
75236         simple -> simple_backups, numbered_existing ->
75237         numbered_existing_backups, numbered -> numbered_backups
75238         to avoid shadowing problems.  All uses changed.
75239         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
75240         * lib/backupfile.c (check_extension, numbered_backup):
75241         Rename locals to avoid shadowing 'basename'.
75242         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
75243         once.
75244
75245         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
75246         * lib/.cvsignore: Add getopt.h.
75247
75248 2004-10-04  Bruno Haible  <bruno@clisp.org>
75249
75250         * modules/README: New file.
75251         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
75252         not a module.
75253
75254 2004-10-02  Jim Meyering  <jim@meyering.net>
75255
75256         * lib/dirfd.h, getpagesize.h: Add copyright notice.
75257
75258 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75259
75260         * modules/strsep: New file.
75261
75262 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75263
75264         * m4/strsep.m4: New file.
75265
75266 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75267
75268         * lib/strsep.h: New file.
75269         * lib/strsep.c: New file.
75270
75271 2004-10-01  Simon Josefsson  <jas@extundo.com>
75272
75273         * lib/snprintf.c (snprintf): Handle size==0.
75274
75275 2004-10-01  Simon Josefsson  <jas@extundo.com>
75276             Bruno Haible  <bruno@clisp.org>
75277
75278         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75279         (snprintf): Declare 'args'.
75280
75281 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75282
75283         * lib/snprintf.c: Remove comments as to why each header is needed.
75284
75285 2004-10-01  Bruno Haible  <bruno@clisp.org>
75286
75287         * MODULES.html.sh: Add strsep.
75288
75289 2004-09-30  Simon Josefsson  <jas@extundo.com>
75290
75291         * modules/snprintf: New file.
75292
75293 2004-09-30  Simon Josefsson  <jas@extundo.com>
75294
75295         * m4/snprintf.m4: New file.
75296
75297 2004-09-30  Simon Josefsson  <jas@extundo.com>
75298
75299         * lib/snprintf.h, lib/snprintf.c: New files.
75300
75301 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75302
75303         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75304         (hol_entry_help): Never translate an empty string.
75305         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75306         * lib/argp.h (OPTION_NO_TRANS): New option.
75307
75308 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75309
75310         * modules/argp (Maintainer): Replace Simon Josefsson
75311         by Sergey Poznyakoff.
75312
75313 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75314
75315         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
75316         changes merged back into glibc.
75317
75318 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75319
75320         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
75321
75322 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75323
75324         * lib/xvasprintf.c: Include xalloc.h.
75325         (xvasprintf): Use xalloc_die, not xmalloc_die.
75326
75327 2004-09-29  Bruno Haible  <bruno@clisp.org>
75328
75329         * modules/alloca-opt: New file, derived from modules/alloca.
75330         * modules/allocsa: Depend on alloca-opt instead of alloca.
75331         * modules/setenv: Likewise.
75332         * modules/vasnprintf: Likewise.
75333         * MODULES.html.sh: Add alloca-opt.
75334
75335 2004-09-28  Simon Josefsson  <jas@extundo.com>
75336
75337         * gnulib-tool: New parameter --lgpl, to asseert that modules are
75338         LGPL, and to replace license template from GPL to LGPL.
75339
75340 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75341
75342         * modules/dummy: Change license to LGPL.
75343
75344 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75345
75346         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
75347
75348 2004-09-24  Simon Josefsson  <jas@extundo.com>
75349
75350         * modules/minmax (License): Change from GPL to LGPL.
75351
75352 2004-09-23  Simon Josefsson  <jas@extundo.com>
75353
75354         * gnulib-tool (--import): Typo.
75355
75356 2004-09-23  Simon Josefsson  <jas@extundo.com>
75357
75358         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
75359
75360 2004-09-22  Bruno Haible  <bruno@clisp.org>
75361
75362         * modules/*: Add 'License' field.
75363         * gnulib-tool: Accept --extract-license option.
75364         (func_get_license): New function.
75365
75366 2004-09-21  Bruno Haible  <bruno@clisp.org>
75367
75368         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
75369         Reported by Simon Josefsson.
75370
75371 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75372
75373         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
75374         gl_AC_TYPE_LONG_LONG.
75375
75376 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75377
75378         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
75379
75380 2004-09-18  Simon Josefsson  <jas@extundo.com>
75381         and  Paul Eggert  <eggert@cs.ucla.edu>
75382
75383         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
75384         calls with autoreconf.  Define GL_LIB.
75385
75386 2004-09-14  Karl Berry  <karl@gnu.org>
75387
75388         * config/srclist.txt: unsync setenv.c, sigh.
75389
75390 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75391
75392         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
75393         Problem reported by Bruno Haible in:
75394         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
75395
75396 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75397
75398         * config/srclist.txt: Comment out argp-pvh.c.
75399
75400 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
75401
75402         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
75403         in case some system header has #define'd it.  Problem reported by
75404         Soeren D. Schulze in
75405         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
75406
75407 2004-09-09  Karl Berry  <karl@gnu.org>
75408
75409         * regex.[ch]: delete from the root.  These were supposed to be
75410                 synced with emacs cvs, but this has not happened for about
75411                 a year, and anyway nothing else uses emacs regex.[ch].
75412                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
75413                 lib/regex[.ch] is untouched.
75414
75415 2004-09-09  Bruno Haible  <bruno@clisp.org>
75416
75417         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
75418
75419 2004-09-09  Bruno Haible  <bruno@clisp.org>
75420
75421         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
75422         modifications.
75423         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
75424
75425 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75426
75427         * modules/xvasprintf: New file.
75428         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
75429
75430 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75431
75432         * lib/xvasprintf.h: New file.
75433         * lib/xvasprintf.c: New file.
75434         * lib/xasprintf.c: New file.
75435
75436 2004-09-08  Bruno Haible  <bruno@clisp.org>
75437
75438         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
75439
75440 2004-09-08  Bruno Haible  <bruno@clisp.org>
75441
75442         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
75443         length is > INT_MAX.
75444         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
75445         more.
75446
75447 2004-09-08  Bruno Haible  <bruno@clisp.org>
75448
75449         * lib/stdint_.h: New file, taken from GNU clisp.
75450
75451 2004-09-08  Bruno Haible  <bruno@clisp.org>
75452             Oskar Liljeblad  <oskar@osk.mine.nu>
75453
75454         * modules/stdint: New file.
75455         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
75456
75457 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75458
75459         Import from coreutils.
75460         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
75461         strings on unbounded length.  alloca's performance benefits aren't
75462         that important here.
75463         (V_STRDUP): Remove.
75464         (parse_with_separator): New function, with most of the internals
75465         of the old parse_user_spec.  Allow user to omit both user and group,
75466         for compatibility with FreeBSD.
75467         Clone only the user name, not the entire spec.
75468         Do not set *uid, *gid unless entirely successful.
75469         Avoid memory leak in some failing cases.
75470         Fix regression for USER.GROUP reported by Dmitry V. Levin in
75471         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
75472         (parse_user_spec): Rewrite to use parse_with_separator.
75473
75474 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75475
75476         * modules/userspec: Don't depend on alloca.
75477
75478 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75479
75480         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
75481
75482 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75483
75484         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
75485         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
75486         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
75487
75488 2004-08-16  Simon Josefsson  <jas@extundo.com>
75489
75490         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
75491         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
75492         Add --dry-run for --import.
75493         Let user provided command line parameters override configure.ac
75494         settings.
75495
75496 2004-08-12  Simon Josefsson  <jas@extundo.com>
75497
75498         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
75499         as discussed with Paul Eggert in threads rooted at
75500         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
75501         and
75502         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
75503         Before, the test was empty, and relied on ELIDE_CODE in source
75504         code.)
75505         (gl_PREREQ_GETOPT): New macro.
75506         (gl_GETOPT): Use them.
75507
75508 2004-08-12  Simon Josefsson  <jas@extundo.com>
75509
75510         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
75511         * lib/getopt_.h: Renamed from getopt.h.
75512
75513 2004-08-12  Simon Josefsson  <jas@extundo.com>
75514
75515         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
75516         Change default library name from libfoo to libgnu.
75517         Now, if you have a configure.ac that says:
75518                 gl_SOURCE_BASE(gl)
75519                 gl_M4_BASE(gl/m4)
75520                 gl_MODULES(error getopt etcetera)
75521                 gl_INIT
75522         you can import all you need by running:
75523                 ../gnulib/gnulib-tool --import
75524
75525         * modules/getopt (Files): Rename getopt.h to getopt_.h.
75526         (Makefile.am): Rewrite, use logic from argz.
75527         (Include): Use <getopt.h> instead of "getopt.h".
75528
75529 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75530
75531         * modules/argp (Files): Add m4/unlocked-io.m4.
75532         (Depends-on): Add extensions.
75533
75534 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75535
75536         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
75537         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
75538         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
75539         Check for program_invocation_name, program_invocation_short_name,
75540         flockfile, funlockfile, features.h, _getopt_long_only_r.
75541
75542 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75543
75544         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
75545         its complicated substitute.
75546         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
75547         and program_invocation_name.
75548         (__argp_basename) [!_LIBC]: Remove; the only use was
75549         replaced by its body.
75550         (__argp_short_program_name): Change condition from
75551         !defined __argp_short_program_name to
75552         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
75553         to match argp-namefrob.h.
75554         (__argp_failure): Don't assume strerror_r returns char *.
75555         * lib/argp-parse.c (N_): Define unconditionally.
75556         (argp_default_options): Fill out initializers with 0 to avoid
75557         gcc warnings.
75558
75559 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75560
75561         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
75562         getopt1.c.
75563
75564 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75565
75566         Merge from coreutils.
75567
75568         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
75569
75570         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
75571         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
75572
75573 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75574
75575         Merge from coreutils.
75576
75577         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
75578         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
75579         for Reliant Unix 5.43.
75580
75581         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
75582         (union fooround): Use uintmax_t, not long int.
75583         The rest is a merge from libc:
75584         [defined _LIBC]: Include <shlib-compat.h>.
75585         (_obstack) [defined _LIBC]: Remove after 2.3.4.
75586
75587         * lib/settime.c (settime): Recode to avoid warning with
75588         Sun Forte C 6U2.
75589
75590         * lib/strverscmp.c: Convert to UTF-8.
75591
75592 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75593
75594         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75595         m4/uintmax_t.m4.
75596
75597 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75598
75599         * modules/xalloc-die: New file.
75600         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
75601
75602         * modules/md5 (Files): Add m4/uint32_t.m4.
75603         * modules/sha1: Renamed from modules/sha.
75604         (Files):
75605         Rename lib/sha.h to lib/sha1.h.
75606         Rename lib/sha.c to lib/sha1.c.
75607         Rename m4/sha.m4 to m4/sha1.m4.
75608         (lib_SOURCES): Likewise.
75609         (configure.ac): Rename gl_SHA to gl_SHA1.
75610         (Include): sha.h -> sha1.h.
75611
75612 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75613
75614         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
75615         * m4/sha1.m4: Renamed from sha.m4.
75616         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
75617
75618 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75619
75620         * lib/obstack.h (obstack_empty_p):
75621         Don't assume that chunk->contents is suitably aligned.
75622         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
75623         Likewise. Problem reported by Benno in
75624         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
75625
75626         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
75627         readable.  This could be improved further but it'd take some work.
75628
75629 2004-08-08  Simon Josefsson  <jas@extundo.com>
75630
75631         * modules/xgethostname (Depends-on): Remove exit and error (not
75632         used).
75633
75634         * modules/getpass-gnu: Add getpass.h.
75635         (Depends-on): Add stdbool.
75636         * modules/getpass: Add getpass.h.
75637
75638 2004-08-08  Simon Josefsson  <jas@extundo.com>
75639
75640         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
75641         Check getpass declaration.
75642
75643 2004-08-08  Simon Josefsson  <jas@extundo.com>
75644
75645         * lib/xgethostname.c: Don't include error.h (not used).
75646
75647         * lib/getpass.h: Add.
75648         * lib/getpass.c: Include getpass.h first.
75649
75650 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
75651
75652         * lib/xalloc-die.c: New file.
75653         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
75654         All uses removed.
75655         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
75656         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
75657         xalloc-die.c.
75658         (_, N_, xalloc_die): Move to xalloc-die.c.
75659         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
75660         so that we needn't mess with xalloc_msg_memory_exhausted.
75661
75662         * lib/sha1.h: Renamed from sha.h.
75663         (SHA1_H): Renamed from _SHA_H.
75664         (sha1_ctx): Renamed from sha_ctx.
75665         (sha1_init_ctx): Renamed from sha_init_ctx.
75666         (sha1_process_block): Renamed from sha_process_block.
75667         (sha1_process_bytes): Renamed from sha_process_bytes.
75668         (sha1_finish_ctx): Renamed from sha_finish_ctx.
75669         (sha1_read_ctx): Renamed from sha_read_ctx.
75670         (sha1_stream): Renamed from sha_stream.
75671         (sha1_buffer): Renamed from sha_buffer.
75672         * lib/sha1.c: Likewise; renamed from sha.c.
75673         Do not include <sys/types.h>.
75674         Include <stddef.h> rather than <stdlib.h>.
75675
75676 2004-08-08  Bruno Haible  <bruno@clisp.org>
75677
75678         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
75679         FILESYSTEM_PREFIX_LEN.
75680         * lib/progreloc.c: Likewise.
75681         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
75682
75683 2004-08-06  Simon Josefsson  <jas@extundo.com>
75684
75685         * modules/progname (Depends-on): Don't depend on stdbool.
75686
75687 2004-08-06  Simon Josefsson  <jas@extundo.com>
75688
75689         * modules/getsubopt: New file.
75690         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75691         getsubopt.
75692
75693 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75694
75695         More merge from coreutils.
75696
75697         * m4/utimens.m4, m4/utimecmp.m4: New files.
75698         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
75699         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
75700         prereq.m4, sha.m4: Import changes from coreutils.
75701
75702 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75703
75704         More merge from coreutils.
75705         * modules/raise, modules/readtokens0, modules/utimens:
75706         * modules/utimecmp, module/xnanosleep: New files.
75707         * modules/strftime: Add lib/strftime.h.
75708         Change include from <time.h> to "strftime.h".
75709         * modules/yesno: Add lib/yesno.h.
75710         * modules/backupfile: Remove lib/addext.c.
75711         * modules/euidaccess: Add stat-macros.h.
75712         * modules/canonicalize, modules/euidaccess,
75713         modules/filemode, modules/lchown, modules/makepath,
75714         modules/rmdir, modules/stat: Likewise.
75715
75716 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75717
75718         Merge from tar.
75719         * lib/argp-help.c (make_hol, hol_append): Don't assume that
75720         SIZE_MAX is a valid preprocessor constant.
75721         (__argp_basename): Change from "#ifndef _LIBC"
75722         to "#ifndef __argp_short_program_name", so that
75723         we don't compile these functions for tar.
75724
75725         More merges from coreutils.
75726         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
75727         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
75728         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
75729         * lib/addext.c: Remove; no longer needed.
75730         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
75731         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
75732         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
75733         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
75734         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
75735         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
75736         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
75737         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
75738         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
75739         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75740         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
75741         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
75742         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
75743         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
75744         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
75745         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
75746         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
75747         Import changes from coreutils.
75748
75749 2004-08-05  Simon Josefsson  <jas@extundo.com>
75750
75751         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
75752
75753 2004-08-05  Simon Josefsson  <jas@extundo.com>
75754
75755         * m4/getsubopt.m4: New file.
75756
75757 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75758
75759         Merge from coreutils.
75760
75761         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
75762         * m4/getcwd-path-max.m4: New files.
75763
75764         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
75765         FILESYSTEM_PREFIX_LEN ->
75766         FILE_SYSTEM_PREFIX_LEN.
75767         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
75768         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
75769         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
75770         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
75771
75772         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
75773         prerequisite modules now handle the DOS stuff.
75774         Don't check for unistd.h.
75775
75776 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75777
75778         Merge from coreutils.
75779
75780         * lib/.gdb-history: Remove; this doesn't belong here.
75781
75782         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
75783         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
75784         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
75785         * lib/getcwd.c: New files.
75786
75787         * lib/dirname.h: Include <stdbool.h>.
75788         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
75789         for consistency with POSIX terminology.  All uses changed.
75790         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
75791         (strip_trailing_slashes): Use bool for booleans.
75792         * lib/stripslash.c (strip_trailing_slashes): Likewise.
75793
75794         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
75795         sometimes returns a positive errno value even when it succeeds.
75796         (print_errno_message) [!LIBC]: Fall back on strerror if
75797         __strerror_r fails.
75798
75799         * lib/path-concat.c (mempcpy): Don't define if a system header defines
75800         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
75801         (longest_relative_suffix): New function.
75802         (path_concat): Use it.  Assume first argument is not NULL.
75803         Port to DOS.  Omit redundant separators.
75804         Report an error instead of returning NULL.
75805         Use mempcpy instead of memcpy.
75806         (xpath_concat): Remove: not declared or used.
75807
75808         * lib/same.h: Include <stdbool.h>
75809         (same_name): Return bool, not int.
75810         * lib/same.c (same_name): Likewise.
75811         (errno): Don't declare; we assume C89 or better now.
75812
75813         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
75814         if not already defined.
75815
75816         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
75817         * lib/dup-safer.c (errno): Likewise.
75818
75819 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75820
75821         Merge from coreutils.
75822         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
75823         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
75824         * modules/path-concat: Don't depend on strdup.
75825
75826 2004-08-03  Simon Josefsson  <jas@extundo.com>
75827
75828         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
75829         * lib/progname.h: Don't include stdbool.h.
75830
75831 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75832
75833         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
75834         * MODULES.html.sh (func_all_modules): Remove fatal.
75835
75836 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75837
75838         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
75839
75840 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75841
75842         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
75843         working.
75844
75845 2004-08-02  Simon Josefsson  <jas@extundo.com>
75846
75847         * lib/getsubopt.h: New file, with comments from Bruno Haible.
75848         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
75849         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
75850
75851 2004-08-01  Simon Josefsson  <jas@extundo.com>
75852
75853         * lib/xgetdomainname.c: Include stdlib.h, for free().
75854
75855 2004-07-19  Bruno Haible  <bruno@clisp.org>
75856
75857         * MODULES.html.sh (func_all_modules): Add dummy.
75858
75859 2004-07-16  Simon Josefsson  <jas@extundo.com>
75860
75861         * modules/dummy: New file.
75862
75863 2004-07-16  Simon Josefsson  <jas@extundo.com>
75864
75865         * lib/dummy.c: New file.
75866
75867 2004-07-16  Bruno Haible  <bruno@clisp.org>
75868
75869         * lib/backupfile.h: Add extern "C" for C++.
75870         * lib/closeout.h: Likewise.
75871         * lib/copy-file.h: Likewise.
75872         * lib/findprog.h: Likewise.
75873         * lib/full-write.h: Likewise.
75874         * lib/pathname.h: Likewise.
75875         * lib/progname.h: Likewise.
75876         * lib/stpcpy.h: Likewise.
75877         * lib/stpncpy.h: Likewise.
75878         * lib/strcase.h: Likewise.
75879         * lib/strstr.h: Likewise.
75880         * lib/xalloc.h: Likewise.
75881
75882         * lib/mbswidth.h: Add extern "C" for C++.
75883         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
75884
75885 2004-07-13  Robert Millan  <robertmh@gnu.org>
75886
75887         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
75888
75889 2004-07-09  Simon Josefsson  <jas@extundo.com>
75890
75891         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
75892         failed without this.)
75893
75894 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75895
75896         * modules/chown (Files): Add lib/fchown-stub.c, since
75897         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
75898
75899 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75900
75901         * lib/fchown-stub.c: New file.
75902
75903 2004-06-24  Jim Meyering  <jim@meyering.net>
75904
75905         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
75906
75907 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75908
75909         * modules/argz: Omit "#include".
75910
75911         * MODULES.html.sh (func_all_modules): Add calloc, to match
75912         2004-06-01 addition of calloc module.
75913
75914 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75915
75916         * m4/argz.m4: New file, which is autoupdated from libtool.
75917
75918 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75919
75920         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
75921         libtool.
75922
75923 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75924
75925         * config/srclist-update: Don't insist on "USA." before the
75926         close-comment, as libtool omits the period and puts the */ on a
75927         separate line.
75928         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
75929         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
75930
75931 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
75932
75933         * modules/argz: New file.
75934         * MODULES.html.sh (func_all_modules): Add argz.
75935
75936 2004-06-12  Jim Meyering  <jim@meyering.net>
75937         and  Paul Eggert  <eggert@cs.ucla.edu>
75938
75939         * modules/hash (Files): Add lib/xalloc.h.
75940         * modules/pipe (Depends-on): Add wait-process.
75941         * modules/stat (Depends-on): Add xalloc.
75942         * modules/userspec (Files): Add lib/userspec.h.
75943         * modules/xstrto
75944
75945         Upgrade from gettext-0.13.
75946         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
75947         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
75948         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
75949
75950 2004-06-10  Jim Meyering  <jim@meyering.net>
75951
75952         * lib/calloc.c: New file.
75953
75954 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
75955
75956         * lib/getdate.y (yylex): Allow space between sign and number.
75957         Problem reported by Dan Jacobson.
75958
75959 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75960
75961         Merge from coreutils CVS.
75962
75963         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
75964         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
75965         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
75966         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
75967         xstrtol.m4: Fix copyright date and/or serial number.
75968
75969         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
75970         See if we need an fchown replacement.
75971         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
75972         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
75973         and use the replacement function if we detect either defect.
75974
75975         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
75976         gl_UTIMECMP.
75977
75978 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75979         and  Jim Meyering  <jim@meyering.net>
75980
75981         Merge from coreutils CVS.
75982
75983         * lib/stat-macros.h: New file, with contents from file-type.h
75984         and coreutils' system.h.
75985         * lib/file-type.c: Include "stat-macros.h".
75986         * lib/file-type.h (file_type): Move all macro definitions to new file,
75987         stat-macros.h.
75988
75989         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
75990         Wrap old code with this conditional.
75991         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
75992         function that does not dereference symlinks.
75993         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
75994
75995         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
75996         dependency problems.
75997         (xreadlink): Accept new arg SIZE, for efficiency.
75998         All decls and uses changed.
75999         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76000
76001         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76002         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76003
76004         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76005         sysexits.h.
76006
76007 2004-06-01  Jim Meyering  <jim@meyering.net>
76008
76009         * m4/calloc.m4: New file.
76010
76011 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76012
76013         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76014         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76015         Also, fix a typo in a diagnostic.
76016
76017 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76018
76019         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76020         or AC_FUNC_REALLOC.
76021
76022 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76023
76024         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76025         macros to be defined.
76026         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76027         the allocator returns NULL because the requested size is zero.
76028
76029 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76030
76031         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76032         var.  Add comment explaining why libc still defines it.  This
76033         merges the following patch from glibc:
76034         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76035
76036 2004-05-20  Andreas Schwab  <schwab@suse.de>
76037
76038         * m4/free.m4: Replace free if it not known to work, not the other
76039         way round.
76040
76041 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76042
76043         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76044         present in glibc since revision 1.1 of this file.
76045         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76046         obstack_alignment_mask, obstack_alloc, obstack_base,
76047         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76048         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76049         obstack_grow0, obstack_init, obstack_int_grow,
76050         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76051         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76052         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76053         nonexistent functions.
76054
76055 2004-05-18  Karl Berry  <karl@gnu.org>
76056
76057         * config/srclist.txt: break link for vasnprintf.c.
76058
76059 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76060
76061         Port obstack to the AS/400, where pointers are 16 bytes wide and
76062         you cannot cast an integer to a valid pointer.  This patch is
76063         currently waiting to be integrated into glibc; see
76064         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76065
76066         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76067         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76068         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76069         (struct obstack): temp member is now a union of a pointer and
76070         an integer, instead of an integer.  All integer uses changed.
76071         This does not affect the physical layout of struct obstack,
76072         except on hosts (like the AS/400) where the size or alignment of
76073         void * is greater than that of ptrdiff_t.
76074         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76075         __STDC__)]: Store temporary in pointer member of union, not
76076         integer member.
76077         * lib/obstack.c: Include <stddef.h>, for offsetof.
76078         (struct fooalign): Remove; it doesn't need a name.
76079         (union fooround): Change double to long double, and add void *.
76080         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76081         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76082         not a macro.  Hence the values are always int; so remove all
76083         casts-to-int in uses.
76084
76085 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76086
76087         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76088         we can get this patch merged into glibc.
76089
76090 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76091             Paul Eggert  <eggert@cs.ucla.edu>
76092
76093         * m4/argp: Depend on alloca.
76094
76095 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76096             Paul Eggert  <eggert@cs.ucla.edu>
76097
76098         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76099         freecoding.
76100
76101 2004-05-17  Bruno Haible  <bruno@clisp.org>
76102
76103         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76104         precision that consists of a '.' followed by an empty digit string.
76105         Patch by Tor Lillqvist <tml@iki.fi>.
76106
76107 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76108
76109         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76110         for backward compatibility with older code.  We need our own
76111         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76112         it under some other name, and our alloca.h will define it.
76113
76114 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76115             Derek Price  <derek@ximbiot.com>
76116
76117         * lib/alloca.c: Include <alloca.h>, to get our interface.
76118         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76119         include <alloca.h> first.  Use C89 prototype for alloca; this
76120         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76121         Use #elif for simplicity, since we can assume C89 now.
76122         Don't try to source the system alloca.h since it will not be found
76123         and to prevent recursively including its replacement.
76124         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76125         * lib/regex.c: Likewise.
76126
76127 2004-05-16  Derek Price  <derek@ximbiot.com>
76128             Paul Eggert  <eggert@cs.ucla.edu>
76129
76130         getline cleanup.  This changes the getndelim2 API: both order of
76131         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76132         no delimiter).
76133
76134         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76135         interface does that.
76136         (getline): Always use getdelim, so that we don't have two
76137         copies of this code.
76138         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76139         if available.
76140         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76141         (GETNDELIM2_MAXIMUM): New macro.
76142         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76143         instead of the old practice of delim2==0.  All callers changed.
76144         Return -1 on overflow, instead of returning junk.
76145         Do not set *linesize unless allocation succeeds.
76146         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
76147         that we include sys/types.h.
76148         * lib/getnline.h: Likewise.
76149         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
76150         (getndelim2): Reorder arguments.
76151         * lib/getnline.c (getnline, getndelim):
76152         Don't discard the NMAX argument.
76153         (getnline): Invoke getndelim, to avoid code duplication.
76154         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
76155         of (size_t) -1 by callers of the getnline family.
76156
76157 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76158
76159         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
76160         Check for gettimeofday.
76161         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
76162         Check for settimeofday, stime.
76163
76164 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76165
76166         * lib/nanosleep.c (suspended): Change its type from int to
76167         sig_atomic_t volatile.
76168         (first_call): Make it private to rpl_nanosleep, and have it
76169         be zero initially as that's a bit faster.
76170         (my_usleep): Round up fractional times instead of truncating them,
76171         as this is the usual meaning for 'sleep'.
76172
76173         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
76174         doesn't work.
76175         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
76176         (ENOSYS): Define if not defined.
76177         (settime): Fall back on stime if it exists and settimeofday fails.
76178         But don't bother with fallbacks if a method fails with errno == EPERM.
76179
76180 2004-05-11  Jim Meyering  <jim@meyering.net>
76181
76182         Prior to this change, the save_cwd caller required read access to the
76183         current directory on most systems (ones with the fchdir function).
76184
76185         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
76186         fails, try write-only, and finally, resort to using xgetcwd.
76187
76188 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76189
76190         * lib/obstack.c, obstack.h: Import changes from libc.
76191
76192 2004-04-28  Bruno Haible  <bruno@clisp.org>
76193
76194         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
76195         also implicitly appends .exe to executables.
76196         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
76197         accepts Windows pathnames.
76198         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76199         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76200         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76201         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76202         Reported by Derek Robert Price <derek@ximbiot.com>.
76203
76204 2004-04-21  Karl Berry  <karl@gnu.org>
76205
76206         * config/srclist.txt (localcharset.c): break sync.
76207
76208 2004-04-20  Paul Eggert  <eggert@twinsun.com>
76209
76210         * m4/host-os.m4: Add a copyright notice.
76211
76212 2004-04-20  Jim Meyering  <jim@meyering.net>
76213
76214         Change UTILS_ to gl_ in AC_DEFINE'd names.
76215         Change utils_- and jm_-prefixed variables, too.
76216         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
76217         UTILS_FUNC_MKDIR_TRAILING_SLASH.
76218         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
76219
76220         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
76221         Don't emit trailing blanks.
76222         Also rename jm_-prefixed variables to have gl_ prefix.
76223
76224         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
76225         Also rename jm_-prefixed variables to have gl_ prefix.
76226
76227         * m4/jm-macros.m4: Reflect the renamings.
76228         * m4/prereq.m4: Likewise.
76229
76230 2004-04-20  Jim Meyering  <jim@meyering.net>
76231
76232         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
76233         memory.
76234
76235 2004-04-20  Jim Meyering  <jim@meyering.net>
76236             Bruno Haible  <bruno@clisp.org>
76237
76238         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
76239         memory when realloc fails.
76240
76241 2004-04-19  Jim Meyering  <jim@meyering.net>
76242
76243         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
76244         now that readutmp.c may call `free (0)'.
76245
76246 2004-04-19  Bruno Haible  <bruno@clisp.org>
76247
76248         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
76249         * m4/inttypes_h.m4: Likewise.
76250         * m4/stdint_h.m4: Likewise.
76251         * m4/intmax_t.m4: Likewise.
76252         * m4/uintmax_t.m4: Likewise.
76253
76254 2004-04-18  Jim Meyering  <jim@meyering.net>
76255
76256         * m4/prereq.m4: Don't forbid jm_ prefix.
76257
76258         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
76259         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
76260         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
76261         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
76262         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
76263         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
76264         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
76265         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
76266         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
76267         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
76268         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
76269         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
76270         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
76271         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
76272         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
76273         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76274         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76275         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76276         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76277
76278 2004-04-18  Jim Meyering  <jim@meyering.net>
76279
76280         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76281         failure, don't leak memory and do call END_UTMP_ENT.
76282
76283 2004-04-16  Jim Meyering  <jim@meyering.net>
76284
76285         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76286         coreutils' stat program.
76287         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76288
76289 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76290
76291         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76292         C89.
76293         (CHAR_BIT): Remove, since we assume C89.
76294         Include <stdint.h> if available, as per current Autoconf CVS advice.
76295
76296 2004-03-31  Jim Meyering  <jim@meyering.net>
76297
76298         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76299         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76300         * m4/xalloc.m4: Likewise.
76301
76302 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76303
76304         Merge from coreutils.
76305
76306         * m4/inttostr.m4: New file.
76307         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76308         Require AM_STDBOOL_H and gl_TIMESPEC instead.
76309         Require gl_CLOCK_TIME.
76310         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
76311
76312 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76313
76314         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
76315         not bool, to be more consistent with Unix conventions.
76316         Suggested by Bruno Haible.
76317
76318         Merge from coreutils.
76319
76320         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
76321         * lib/umaxtostr.c: New files.
76322
76323         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
76324         the usual <time.h> dance.
76325         (get_date): Change signature to support fractional time stamps.
76326         All callers changed.
76327         * lib/getdate.y: Include "getdate.h" first, as we can now
76328         assume C89 and don't need to worry about 'const'.
76329         Similarly, include "unlocked-io.h" near start, not in middle.
76330         Include <limits.h>.
76331         (textint.value): Use long int rather than int.
76332         (textint.digits): Use size_t rather than int.
76333         (BILLION, LOG10_BILLION): New constants.
76334         (parser_control): New member rel_ns.  Members day_ordinal,
76335         time_zone, month, day, hour, minutes, rel_year, rel_month,
76336         rel_day, rel_hour, rel_minutes, rel_seconds
76337         are now long int, not int.  Member seconds is now struct timespec,
76338         not int.  New member timespec_seen.  Members dates_seen, days_seen,
76339         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
76340         not int.
76341         (%union.intval): Now long int, not int.
76342         New member timespec.
76343         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
76344         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
76345         (spec): Now is a timespec or an item list.
76346         (timespec, items): New nonterminals.
76347         (time, rel, relunit, number, get_date):
76348         Add support for fractional seconds.
76349         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
76350         (gmtime, localtime, mktime): Remove decls; not needed with C89.
76351         (to_hour): First arg is now long int, not int.
76352         (to_year): Returns long int, not int.
76353         Don't treat year -70 like 70.
76354         (tm_diff): Returns long int, not int.
76355         (lookup_word): Use bool instead of int when appropriate.
76356         (yylex): Use size_t for count, not int.
76357         Detect overflow when parsing large integer constants.
76358         Add support for fractions.
76359         (get_date): Make pointers 'const' if possible.
76360         Use more-portable code to detect integer overflow.
76361         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
76362         Don't use ctime; it's not reliable if the year has >4 digits.
76363
76364         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
76365         This is for compatibility with BSD.
76366
76367         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
76368         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
76369         From coreutils' system.h.
76370
76371         * lib/userspec.c: Don't include "posixver.h".
76372         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
76373         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
76374         compatible extension.  Simplify code by removing a boolean int
76375         that was always nonzero if a string was nonnull.
76376
76377 2004-03-30  Jim Meyering  <jim@meyering.net>
76378
76379         Merge from coreutils.
76380
76381         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
76382         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
76383         on some systems one must include <grp.h> before it.
76384         Reported by Christian Krackowizer.
76385
76386 2004-03-30  Jim Meyering  <jim@meyering.net>
76387
76388         Merge from coreutils.
76389
76390         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
76391
76392         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
76393         an empty input stream.
76394
76395         * lib/readtokens.c: Include <stdbool.h>.
76396         (readtoken): Use `size_t' rather than int/long.
76397         All callers adjusted.
76398         Use `bool' rather than `int' where appropriate.
76399         Use memset rather than an explicit loop.
76400         Use x2nrealloc rather than xrealloc.
76401         Allow the use of `\0' as a delimiter.
76402         (readtokens): Likewise.
76403         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
76404
76405 2004-03-30  Jim Meyering  <jim@meyering.net>
76406
76407         * m4/realloc.m4: Remove file, since now it does no more than
76408         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
76409         the `configure.ac' section of module/realloc.
76410         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
76411
76412 2004-03-30  Bruno Haible  <bruno@clisp.org>
76413
76414         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
76415         nonnull.
76416
76417 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76418
76419         Merge changes to getloadavg.c from coreutils and Emacs.
76420
76421         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
76422         Define to an expression, not to the empty string.
76423         Include cloexec.h and xalloc.h.
76424         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
76425         Use set_cloexec_flag rather than rolling our own.
76426         * lib/cloexec.c, lib/cloexec.h: New files.
76427
76428 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76429
76430         * m4/cloexec.m4: New file.
76431
76432 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76433
76434         * lib/getopt.h: Sync with libc CVS.
76435
76436 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76437             Bruno Haible  <bruno@clisp.org>
76438
76439         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
76440         mbswidth.
76441
76442 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76443             Bruno Haible  <bruno@clisp.org>
76444
76445         * lib/mbswidth.h: Include <wchar.h> only if
76446         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
76447         <wchar.h>.
76448         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
76449
76450 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76451
76452         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
76453         Sync with libc CVS.
76454         * lib/getopt_int.h: New file, also synced from libc.
76455
76456 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76457
76458         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
76459         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
76460         Bring back getopt.c, getopt.h, getopt1.c.
76461
76462 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76463
76464         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
76465         All uses changed.  Check for sa_sigaction member; this fixes
76466         a bug first reported by Jason Andrade in
76467         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76468
76469 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76470
76471         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
76472         '#if' expressions.  Unlike the code it replaces, it does not
76473         depend on (defined _SC_PAGESIZE).  However, it does depend on
76474         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
76475         first reported by Jason Andrade in
76476         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76477
76478 2004-02-25  Simon Josefsson  <jas@extundo.com>
76479
76480         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
76481
76482 2004-02-25  Simon Josefsson  <jas@extundo.com>
76483
76484         * lib/strdup.h: New file.
76485         * lib/strdup.c: Include it.
76486         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
76487         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
76488
76489 2004-02-23  Karl Berry  <karl@gnu.org>
76490
76491         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
76492         (from fencepost.gnu.org:/gd/gnuorg).
76493
76494 2004-02-23  Karl Berry  <karl@gnu.org>
76495
76496         * config/srclistvars.sh (GNUORG) [karl]: redefine.
76497         * config/srclist.txt: add maintain/standards documents.
76498
76499 2004-02-18  Bruno Haible  <bruno@clisp.org>
76500
76501         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
76502         Reported by Derek Robert Price <derek@ximbiot.com>.
76503
76504 2004-02-16  Karl Berry  <karl@gnu.org>
76505
76506         * config/mkinstalldirs, install-sh: update from automake.
76507
76508 2004-02-06  Karl Berry  <karl@gnu.org>
76509
76510         * m4/po.m4: update from gettext 0.14.1.
76511
76512 2004-02-06  Karl Berry  <karl@gnu.org>
76513
76514         * lib/config.charset: update from gettext 0.14.1.
76515
76516 2004-02-05  Paul Eggert  <eggert@twinsun.com>
76517
76518         Add comments and code, prompted by suggestions from Bruno Haible
76519         for sh-quote.
76520         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
76521         describing the enum quoting_style values.
76522         * lib/quotearg.c (quotearg_alloc): New function.
76523         (quotearg_buffer_restyled): Treat lone { and } as special.
76524         Treat = as special.  Work around bug with older shells
76525         that "see" a '\' that is really the 2nd byte of a multibyte char.
76526         Quote empty string with shell_quoting_style.
76527
76528 2004-02-03  Bruno Haible  <bruno@clisp.org>
76529
76530         * m4/pipe.m4: New file, from GNU gettext.
76531
76532 2004-02-03  Bruno Haible  <bruno@clisp.org>
76533
76534         * lib/pipe.h: New file, from GNU gettext.
76535         * lib/pipe.c: New file, from GNU gettext.
76536
76537 2004-01-27  Bruno Haible  <bruno@clisp.org>
76538
76539         * m4/execute.m4: New file, from GNU gettext.
76540
76541 2004-01-27  Bruno Haible  <bruno@clisp.org>
76542
76543         * lib/execute.h: New file, from GNU gettext.
76544         * lib/execute.c: New file, from GNU gettext.
76545         * lib/w32spawn.h: New file, from GNU gettext.
76546
76547 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76548
76549         Merge from diffutils.
76550
76551         * lib/file-type.c (file_type): Add typed memory objects.
76552         * lib/file-type.h (S_TYPEISTMO): New macro.
76553
76554         * lib/c-stack.h (c_stack_action): Remove argv argument.
76555         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
76556         (die): Don't calculate message unless segv_action returns.
76557         (get_stack_location, min_address_from_argv, max_address_from_argv,
76558         volatile stack_base, volatile_stack_size): Remove.
76559         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
76560         that every segmentation violation is a stack overflow.  (Ouch!)
76561         See Debian bug 136249 (still outstanding) for more info about why
76562         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
76563
76564 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76565
76566         Exit-status fix from coreutils.
76567
76568         Use exit_failure consistently in place of EXIT_FAILURE,
76569         so that program exit statuses are consistent on failure.
76570
76571         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
76572         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
76573         * lib/argmatch.h: Comment fix to match the above.
76574         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
76575         Now a macro referring to exit_failure, instead of a separate
76576         variable.  Include "exitfail.h" to get it.
76577         * lib/xstrtol.h: Include "exitfail.h".
76578         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
76579
76580         * lib/long-options.c (parse_long_options): Use prototype
76581         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
76582         for clarity.
76583
76584 2004-01-21  Jim Meyering  <jim@meyering.net>
76585
76586         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
76587         so as not to conflict with a different-sized __mktime_internal
76588         function in GNU libc.
76589         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
76590         Problem building statically-linked `ls' reported by Michael Brunnbauer.
76591
76592 2004-01-20  Karl Berry  <karl@gnu.org>
76593
76594         * config/config.guess: update from config.
76595
76596         * config/srclistvars.sh: GNUWWWLICENSES for karl.
76597
76598 2004-01-20  Bruno Haible  <bruno@clisp.org>
76599
76600         Safer stack allocation.
76601         * lib/setenv.c: Include allocsa.h.
76602         (alloca): Remove fallback definition.
76603         (freea): Remove macro.
76604         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
76605         instead of freea.
76606
76607 2004-01-20  Bruno Haible  <bruno@clisp.org>
76608
76609         * m4/eealloc.m4: New file, from GNU gettext.
76610
76611 2004-01-20  Bruno Haible  <bruno@clisp.org>
76612
76613         * m4/allocsa.m4: New file, from GNU gettext.
76614
76615 2004-01-20  Bruno Haible  <bruno@clisp.org>
76616
76617         * lib/xallocsa.h: New file, from GNU gettext.
76618         * lib/xallocsa.c: New file, from GNU gettext.
76619
76620 2004-01-20  Bruno Haible  <bruno@clisp.org>
76621
76622         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
76623
76624 2004-01-20  Bruno Haible  <bruno@clisp.org>
76625
76626         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
76627         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
76628         specially.
76629
76630 2004-01-20  Bruno Haible  <bruno@clisp.org>
76631
76632         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
76633         patch.
76634
76635 2004-01-20  Bruno Haible  <bruno@clisp.org>
76636
76637         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
76638
76639 2004-01-20  Bruno Haible  <bruno@clisp.org>
76640
76641         * lib/eealloc.h: New file.
76642
76643 2004-01-20  Bruno Haible  <bruno@clisp.org>
76644
76645         * lib/binary-io.h: Avoid warnings on Cygwin.
76646
76647 2004-01-20  Bruno Haible  <bruno@clisp.org>
76648
76649         * lib/allocsa.h: New file, from GNU gettext.
76650         * lib/allocsa.c: New file, from GNU gettext.
76651
76652 2004-01-18  Karl Berry  <karl@gnu.org>
76653
76654         * doc/gpl.texi, doc/lgpl.texi: new files.
76655
76656 2004-01-18  Karl Berry  <karl@gnu.org>
76657
76658         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
76659         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
76660
76661 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76662
76663         Merge from coreutils.
76664
76665         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
76666         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
76667         (gl_DEFAULT_POSIX2_VERSION): Move
76668         the documentation from 'configure' into 'config.hin',
76669         so that 'configure --help' isn't burdened by it and
76670         we don't have to worry about its formatting there.
76671         Reword the documentation so that it's more succinct
76672         and can be run together into a single paragraph.
76673         * m4/same.m4 (gl_SAME): Check for pathconf.
76674
76675 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76676
76677         Merge from coreutils.
76678
76679         * lib/posixver.c: Include posixver.h.
76680
76681         * lib/same.c: Include <stdbool.h>, <limits.h>.
76682         (_POSIX_NAME_MAX): Define if not defined.
76683         (MIN): New macro.
76684         (same_name): If file names are silently truncated, report
76685         that the file names are the same if they are the same after
76686         the silent truncation.
76687
76688         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
76689         conversion function.
76690         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
76691         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
76692         longer needed.
76693
76694 2004-01-15  Jim Meyering  <jim@meyering.net>
76695
76696         Merge from coreutils.
76697
76698         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
76699         if no library is required.
76700         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
76701         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
76702         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
76703         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
76704         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
76705         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
76706         value, $ac_cv_search_crypt, if it's "none required".
76707         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
76708         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
76709         not gl_FUNC_GETLOADAVG.
76710         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
76711         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
76712
76713 2004-01-15  Jim Meyering  <jim@meyering.net>
76714
76715         Merge from coreutils.
76716
76717         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
76718         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
76719         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
76720
76721         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
76722         optional configure-time default.
76723
76724         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76725
76726         * lib/xreadlink.c (xreadlink): Correct outdated comment.
76727
76728 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
76729
76730         Merge from coreutils.
76731
76732         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
76733         value, $ac_cv_search_nanosleep, if it's "none required".
76734
76735 2004-01-14  Paul Eggert  <eggert@twinsun.com>
76736
76737         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
76738         with like-named macro in fnmatch.c.
76739         (EXT): Use an internal constant instead.
76740
76741         Merge fnmatch patches from glibc.
76742         * lib/fnmatch.c (mbsinit): Remove define.
76743         Add libc_hidden_ver (__fnmatch, fnmatch).
76744         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
76745         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
76746
76747 2004-01-14  Karl Berry  <karl@gnu.org>
76748
76749         * config/install-sh: update from automake.
76750
76751 2004-01-13  Karl Berry  <karl@gnu.org>
76752
76753         * config/install-sh: update from automake.
76754
76755 2004-01-09  Karl Berry  <karl@gnu.org>
76756
76757         * config/install-sh: update from automake.
76758
76759 2004-01-05  Karl Berry  <karl@gnu.org>
76760
76761         * config/config.{sub,guess}: update from config.
76762
76763 2003-12-31  Karl Berry  <karl@gnu.org>
76764
76765         * config/depcomp: update from automake.
76766
76767 2003-12-14  Karl Berry  <karl@gnu.org>
76768
76769         * lib/config.charset: update from gettext-runtime.
76770
76771 2003-12-03  Paul Eggert  <eggert@twinsun.com>
76772
76773         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
76774         Bug reported by Alfred M. Szmidt.
76775
76776 2003-12-03  Bruno Haible  <bruno@clisp.org>
76777
76778         * m4/gettext.m4: Upgrade from gettext-0.13.
76779         * m4/po.m4: Upgrade from gettext-0.13.
76780         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
76781         * m4/intmax.m4: New file, from gettext-0.13.
76782         * m4/printf-posix.m4: New file, from gettext-0.13.
76783
76784 2003-11-29  Karl Berry  <karl@gnu.org>
76785
76786         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
76787
76788 2003-11-25  Paul Eggert  <eggert@twinsun.com>
76789             Bruno Haible  <bruno@clisp.org>
76790
76791         * lib/printf-parse.h: Don't include sys/types.h.
76792         (ARG_NONE): New macro.
76793         (char_directive): Change type of *arg_index fields to size_t.
76794         * lib/printf-parse.c: Don't include sys/types.h.
76795         (SSIZE_MAX): Remove macro.
76796         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
76797         Remove unnecessary overflow check.
76798         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
76799         fields.
76800
76801 2003-11-25  Bruno Haible  <bruno@clisp.org>
76802
76803         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
76804
76805 2003-11-25  Bruno Haible  <bruno@clisp.org>
76806
76807         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
76808         gt_TYPE_SSIZE_T.
76809
76810 2003-11-24  Paul Eggert  <eggert@twinsun.com>
76811
76812         * modules/alloca: Remove dependency on xalloc.
76813
76814 2003-11-24  Paul Eggert  <eggert@twinsun.com>
76815
76816         * lib/alloca.c: Remove dependency on xalloc module.
76817         (xalloc_die): Remove.
76818         (memory_full) [!defined emacs]: New macro.
76819         [!defined emacs]: Don't include xalloc.h.
76820         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
76821         address arithmetic overflows.  Change datatypes a bit to avoid
76822         unnecessary casts.
76823
76824 2003-11-22  Jim Meyering  <jim@meyering.net>
76825
76826         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
76827         s/size/size_t/.
76828
76829 2003-11-21  Karl Berry  <karl@gnu.org>
76830
76831         * config/config.{sub,guess}: update from config.
76832
76833 2003-11-18  Karl Berry  <karl@gnu.org>
76834
76835         * config/config.{sub,guess}: update from config.
76836
76837         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
76838
76839 2003-11-17  Paul Eggert  <eggert@twinsun.com>
76840
76841         * README: Mention that S+T cannot overflow if S is the size of
76842         an existing object and T is sufficiently small.
76843
76844 2003-11-17  Jim Meyering  <jim@meyering.net>
76845
76846         On systems without utime and without a utimes function capable of
76847         dealing with a NULL struct utimbuf* argument, this utime replacement
76848         could -- in unusual circumstances -- leak a file descriptor.
76849         * lib/utime.c: Include <unistd.h> and <errno.h>.
76850         (utime_null): Be sure to close `fd' and to preserve errno.
76851         Reported by Geoff Collyer via Arnold Robbins.
76852
76853 2003-11-17  Bruno Haible  <bruno@clisp.org>
76854
76855         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
76856         (Depends-on): Add xsize.
76857
76858 2003-11-17  Bruno Haible  <bruno@clisp.org>
76859
76860         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
76861
76862 2003-11-17  Bruno Haible  <bruno@clisp.org>
76863
76864         * lib/vasnprintf.c (alloca): Remove fallback definition.
76865         (freea): Remove definition.
76866         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
76867         Reported by Paul Eggert.
76868
76869 2003-11-16  Paul Eggert  <eggert@twinsun.com>
76870             Bruno Haible  <bruno@clisp.org>
76871
76872         Protect against address arithmetic overflow.
76873         * lib/printf-args.h: Include stddef.h.
76874         (arguments): Change type of field 'count' to size_t.
76875         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
76876         'unsigned int' where appropriate.
76877         * lib/printf-parse.h: Include sys/types.h.
76878         (char_directive): Change type of *arg_index fields to ssize_t.
76879         (char_directives): Change type of fields 'count', max_*_length to
76880         size_t.
76881         * lib/printf-parse.c: Include sys/types.h and xsize.h.
76882         (SSIZE_MAX): Define fallback value.
76883         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
76884         instead of 'int' where appropriate. Check a_allocated, d_allocated
76885         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
76886         * lib/vasnprintf.c: Include xsize.h.
76887         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
76888         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
76889         overflow. Avoid wraparound when converting a width or precision from
76890         decimal to binary.
76891
76892 2003-11-16  Bruno Haible  <bruno@clisp.org>
76893
76894         Update from GNU gettext.
76895         * lib/printf-parse.c: Generalize to it can be compiled for wide
76896         strings.
76897         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
76898         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
76899         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
76900         SNPRINTF): New macros.
76901         Don't include <alloca.h> if the file is used inside libintl.
76902         (local_wcslen): New function, for Solaris 2.5.1.
76903         (VASNPRINTF): Use it instead of wcslen.
76904
76905 2003-11-16  Bruno Haible  <bruno@clisp.org>
76906
76907         * lib/xsize.h (xmax): New function.
76908         (xsum, xsum3, xsum4): Declare as "pure" functions.
76909
76910 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76911
76912         * modules/xalloc (Files): Undo latest change, since xalloc.h
76913         no longer needs SIZE_MAX or PTRDIFF_MAX.
76914
76915 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76916
76917         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
76918         gl_PTRDIFF_MAX.
76919
76920 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76921
76922         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
76923         "return", to pacify some unknown compiler.  Problem reported
76924         by Joerg Schilling.
76925
76926 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76927
76928         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
76929         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
76930         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
76931         heuristic is just as accurate as far as we know, and it removes a
76932         dependency on size_max.m4 and ptrdiff_max.m4.
76933
76934 2003-11-11  Bruno Haible  <bruno@clisp.org>
76935
76936         * modules/xsize (Files): Add m4/size_max.m4.
76937         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
76938
76939 2003-11-11  Bruno Haible  <bruno@clisp.org>
76940
76941         * m4/size_max.m4: New file.
76942         * m4/ptrdiff_max.m4: New file.
76943         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
76944         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
76945         (gl_XALLOC): Invoke it.
76946
76947 2003-11-11  Bruno Haible  <bruno@clisp.org>
76948
76949         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
76950         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
76951         defined.
76952
76953 2003-11-10  Paul Eggert  <eggert@twinsun.com>
76954
76955         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
76956         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
76957         rejected some allocations of exactly SIZE_MAX - 2 bytes.
76958         From Bruno Haible.
76959         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
76960         not (size_t) -1, since it's defined here.
76961
76962 2003-11-09  Karl Berry  <karl@gnu.org>
76963
76964         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
76965
76966 2003-11-06  Paul Eggert  <eggert@twinsun.com>
76967
76968         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
76969         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
76970         Reject sizes of exactly SIZE_MAX bytes.
76971         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
76972         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
76973
76974 2003-11-05  Bruno Haible  <bruno@clisp.org>
76975
76976         * lib/xsize.h: Include limits.h, to avoid a possible collision with
76977         SIZE_MAX defined in <limits.h> on Solaris.
76978
76979 2003-11-04  Jim Meyering  <jim@meyering.net>
76980
76981         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
76982         variable names, rather than @VAR@.
76983         * modules/poll: Likewise.
76984
76985 2003-11-04  Bruno Haible  <bruno@clisp.org>
76986
76987         * modules/xsize: New file.
76988         * modules/linebreak: Depend on xsize.
76989         * MODULES.html.sh (func_all_modules): Add xsize.
76990
76991 2003-11-04  Bruno Haible  <bruno@clisp.org>
76992
76993         * m4/xsize.m4: New file.
76994
76995 2003-11-04  Bruno Haible  <bruno@clisp.org>
76996
76997         * lib/xsize.h: New file.
76998         * lib/linebreak.c: Include xsize.h.
76999         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77000         argument for overflow.
77001         Suggested by Paul Eggert.
77002
77003 2003-11-03  Karl Berry  <karl@gnu.org>
77004
77005         * config/config.{guess,sub}: update from config.
77006
77007 2003-11-03  Jim Meyering  <jim@meyering.net>
77008
77009         * modules/userspec (lib_SOURCES): Add userspec.h.
77010         (Include): Add "userspec.h".
77011         Improve description.
77012
77013 2003-11-03  Jim Meyering  <jim@meyering.net>
77014
77015         * lib/userspec.c: Include "userspec.h".
77016         * lib/userspec.h: New file.
77017
77018 2003-11-03  Bruno Haible  <bruno@clisp.org>
77019
77020         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77021
77022 2003-11-03  Bruno Haible  <bruno@clisp.org>
77023
77024         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77025         available, to avoid (extremely rare) race condition.
77026         Suggested by Paul Eggert.
77027
77028 2003-11-02  Karl Berry  <karl@gnu.org>
77029
77030         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77031
77032 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77033
77034         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77035         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77036         (read_filesystem_list): Set and use me_type_malloced.
77037         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77038         whatever the type happens to be), for brevity and consistency.
77039         Check for size calculation overflow on Alphas running OSF/1.
77040
77041 2003-10-31  Jim Meyering  <jim@meyering.net>
77042
77043         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77044
77045         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77046
77047 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77048             Bruno Haible  <bruno@clisp.org>
77049
77050         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77051         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77052
77053 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77054
77055         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77056         netbsd*-gnu*.  Suggested by Robert Millan.
77057
77058 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77059
77060         * modules/group-member: Depend on stdbool.
77061
77062 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77063
77064         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77065
77066 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77067
77068         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77069         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77070         after the 'gnu' in these cases.  This fixes some bugs in the
77071         previous change, and is based on suggestions by Robert Millan.
77072
77073 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77074
77075         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77076         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77077         no longer needed.
77078         * lib/quotearg.c (quotearg_n_options): Use it.
77079         * lib/group-member.c: Include <stdbool.h>.
77080         (free_group_info): Arg is now const *; don't free arg.
77081         (get_group_info): Now returns bool and accepts struct group_info *,
77082         rather than returning a malloc'ed struct group_info *.
77083         All uses changed.  Check for overflow in internal size calculation.
77084
77085         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77086         rather than xmalloc/xrealloc.
77087         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77088         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77089         conformance bug: the old code used a pointer after freeing the
77090         storage that it addressed.
77091         * lib/hash.c (hash_initialize): Simplify the code by using
77092         xalloc_oversized rather than doing it by hand.
77093         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77094         the buffer preserved.  Use free and xmalloc instead.
77095         * lib/quotearg.c (quotearg_n_options): Likewise.
77096         Use a simpler test for size overflow.  Don't use xalloc_oversized
77097         because unsigned int might be wider than size_t (!); this suggests
77098         that we should switch from unsigned int to size_t for slot numbers.
77099
77100 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77101
77102         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77103         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77104         NetBSD kernels.  Requested by Richard Stallman.
77105
77106 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77107
77108         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77109         to allocate the returned structure.  Do not allocate a subarray,
77110         as x2nrealloc will do that.
77111         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77112         instead of xnrealloc.
77113         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77114
77115 2003-10-27  Bruno Haible  <bruno@clisp.org>
77116
77117         * lib/stdbool_.h: Better support for BeOS.
77118
77119 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77120
77121         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77122         now uses inline.
77123
77124 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77125
77126         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77127         callers that want to do their own size-overflow checking.  Include
77128         <stdbool.h>, since xalloc_oversized returns bool.
77129         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77130         to use xalloc_oversized.
77131
77132         Add two functions x2realloc, x2nrealloc, for programs that grow
77133         arrays dynamically by doubling their sizes.
77134         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77135         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77136         New functions.
77137
77138         Port to C99 semantics for 'inline' of external functions.
77139         Bug reported by Bruno Haible.
77140         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77141         with the old contents of xnmalloc.
77142         (xnmalloc, xmalloc): Use it.
77143         (xnrealloc_inline): New static inline function,
77144         with the old contents of xnrealloc.
77145         (xnrealloc, xrealloc): Use it.
77146
77147         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
77148         that.
77149
77150 2003-10-26  Karl Berry  <karl@gnu.org>
77151
77152         * config/srclist.txt (COPYING.DOC): no longer available from
77153         /gd/gnuorg; don't know where the ultimate source is.
77154
77155 2003-10-25  Paul Eggert  <eggert@twinsun.com>
77156
77157         Fix several address-calculation bugs in the hash modules,
77158         plus some minor code cleanup.
77159
77160         * lib/hash.h: Include <stdbool.h>, for bool.
77161         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
77162         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
77163         hash_get_n_entries, hash_get_max_bucket_length,
77164         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
77165         hash_rehash): Use size_t rather than unsigned.
77166         * lib/hash.c (struct hash_table, hash_get_n_buckets,
77167         hash_get_n_buckets_used, hash_get_n_entries,
77168         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
77169         hash_get_entries, hash_do_for_each, hash_string, is_prime,
77170         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
77171         Likewise.
77172         (SIZE_MAX): Define if not defined.
77173         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
77174         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
77175         hash_print):
77176         Use const * when possible.
77177         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
77178         (check_tuning): Fix bug: if tuning parameters were very close to
77179         0 or 1, rounding errors could have caused subscript violations.
77180         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
77181         (hash_initialize): Add 'fail:' label
77182         to free table and return NULL, and use it to simplify code.
77183         Use calloc rather than clearing the storage ourself.
77184         (hash_initialize, hash_rehash): Check for arithmetic overflow in
77185         buffer size calculations.
77186         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
77187         Include <stddef.h>, for size_t.
77188         * lib/hash-pjw.c (hash_pjw): Likewise.
77189         Switch to method described by Bruno Haible.
77190         Include <limits.h>, for CHAR_BIT.
77191         (SIZE_BITS): New macro.
77192
77193 2003-10-23  Paul Eggert  <eggert@twinsun.com>
77194
77195         * m4/getline.m4 (AM_FUNC_GETLINE):
77196         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
77197         hosts.  Problem reported by Derek Robert Price in
77198         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
77199         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
77200         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
77201
77202 2003-10-21  Paul Eggert  <eggert@twinsun.com>
77203
77204         * lib/getndelim2.c (getndelim2): When size calculation overflows,
77205         ceiling the allocation at NMAX bytes rather than silently
77206         discarding input bytes before NMAX is reached.  This makes
77207         a difference only if NMAX exceeds SIZE_MAX / 2.
77208
77209         * lib/obstack.c: Merge from glibc.
77210         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
77211         Add libc_hidden_def (_obstack_newchunk).
77212         (_obstack_free) [! defined _LIBC]: Remove.
77213         [defined _LIBC]: Make a strong alias from obstack_free, rather than
77214         a clone of the function body.
77215         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
77216         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
77217
77218         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
77219         glibc.
77220         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
77221         arg to memcpy.
77222
77223         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
77224         (obstack_ptr_grow_fast, obstack_int_grow_fast):
77225         Don't use lvalue casts, as GCC plans to remove support for them
77226         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
77227         was also present in the non-GCC version, indicating that this
77228         code had always been buggy and had never been widely used.
77229         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
77230         Use the fast variant of each macro, rather than copying the
77231         definiens of the fast variant; that way, we'll be more likely to
77232         catch future bugs in the fast variants.
77233
77234 2003-10-20  Bruno Haible  <bruno@clisp.org>
77235
77236         * modules/wait-process: New file.
77237         * MODULES.html.sh (func_all_modules): Add wait-process.
77238
77239 2003-10-20  Bruno Haible  <bruno@clisp.org>
77240
77241         * m4/wait-process.m4: New file.
77242
77243 2003-10-20  Bruno Haible  <bruno@clisp.org>
77244
77245         * lib/wait-process.h: New file, from GNU gettext.
77246         * lib/wait-process.c: New file, from GNU gettext.
77247
77248 2003-10-19  Jim Meyering  <jim@meyering.net>
77249
77250         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
77251         HPUX 10.20.
77252
77253 2003-10-18  Karl Berry  <karl@gnu.org>
77254
77255         * config/config.guess: update from config.
77256
77257 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77258
77259         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
77260         (getgroups): First arg is int, not size_t.
77261         Don't let 'free' mangle errno.
77262
77263 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77264
77265         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
77266
77267 2003-10-16  Karl Berry  <karl@gnu.org>
77268
77269         * config/config.{guess,sub}: update from config.
77270
77271 2003-10-16  Jim Meyering  <jim@meyering.net>
77272
77273         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77274         memcpy.
77275
77276 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77277
77278         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77279         (SIZE_MAX): Remove.
77280         (new_exclude, add_exclude_file): Initial size no longer needs to
77281         be a power of 2.
77282         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77283         our own address arithmetic overflow checking.
77284
77285         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77286         (fnmatch): Do not alloca more than 2000 wide characters;
77287         instead, use malloc for large buffers.
77288         Check for address arithmetic overflow, and return -1
77289         with errno set to ENOMEM in that case.
77290         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77291         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77292         instead, return -1.  Check for address arithmetic overflow.
77293
77294 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77295
77296         Handle invalid suffixes and overflow independently, so that
77297         callers can treat them independently as needed.  Fix some bugs in
77298         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77299         suffix for a human-readable blocksize.  The major caller-visible
77300         change is the addition of a new
77301         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77302         that both overflow and suffix chars were found.
77303
77304         * lib/human.c (humblock): Don't check separately for invalid suffix
77305         char; that is xstrtoumax's job (now that its bug is fixed).
77306         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77307         INTMAX_MAX]: New macros.
77308         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
77309         TYPE_MAXIMUM): New macros.
77310         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
77311         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
77312         if overflow occurs, as it's what __strtol does and it's more useful
77313         in practice.
77314         (__xstrtol): If __strtol reports some error other than ERANGE,
77315         reflect it to the caller as LONGINT_INVALID.  If it reports
77316         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
77317         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
77318         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
77319         value.
77320         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
77321         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
77322         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
77323         [defined UINTMAX_MAX]: New macros.
77324
77325 2003-10-14  Bruno Haible  <bruno@clisp.org>
77326
77327         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
77328
77329 2003-10-14  Bruno Haible  <bruno@clisp.org>
77330
77331         * m4/sig_atomic_t: New file, from GNU gettext.
77332         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
77333
77334 2003-10-14  Bruno Haible  <bruno@clisp.org>
77335
77336         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
77337         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
77338         Also use volatile where needed.
77339
77340 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77341
77342         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
77343         Change maintainer from Bruno Haible to 'all'.
77344
77345 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77346
77347         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
77348
77349 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77350
77351         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
77352         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
77353         and define in terms of the other primitives.
77354         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
77355         (SIZE_MAX): Define if not already defined.
77356         (array_size_overflow): New function.
77357         (xalloc_die): Abort instead of exiting if 'error' returns.
77358         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
77359         (xmalloc, xrealloc): Use them.
77360         (xcalloc): Check for address arithmetic overflow.
77361         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
77362         a bit faster than strcpy.
77363
77364 2003-10-10  Simon Josefsson  <jas@extundo.com>
77365
77366         * modules/argp (Depends-on): Add restrict and strcase.
77367
77368 2003-10-10  Simon Josefsson  <jas@extundo.com>
77369
77370         * m4/argp.m4: Add AC_C_INLINE.
77371
77372 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77373
77374         Merge getpass from libc, plus a few fixes.
77375
77376         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
77377         Include <stdbool.h>.
77378         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
77379         __fsetlocking to empty.
77380         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
77381         do include <bits/libc-lock.h>.
77382         Do not include <fcntl.h>; not needed.
77383         [_LIBC]: Include <wchar.h>.
77384         (NOTCANCEL_MODE): New macro.
77385         (flockfile, funlockfile) [_LIBC]: New macros.
77386         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
77387         [!_LIBC]: New macros.
77388         (call_fclose): New function.
77389         (getpass): Use it.  Save tty stream separately; this simplifies the
77390         code and makes it more reliable if stdin happens to equal stdout.
77391         Invoke __fsetlocking on tty.
77392         Handle thread cancellation if needed.
77393         Namespace cleanup (use __tcgetattr, __getline).
77394         Use bool for Booleans.
77395         [USE_IN_LIBIO]: Handle wide streams.
77396         [!_LIBC]: Unconditionally do the fseek, since we don't know what
77397         stream might go where.
77398
77399         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
77400         doesn't have to include <stdio.h> before us.
77401         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
77402         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
77403         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
77404         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
77405         if not declared, so that we can use getpass.c code from libc without
77406         rewriting it.
77407         (flockfile, ftrylockfile, funlockfile): New macros.
77408
77409 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77410
77411         * modules/getpass: Depend on stdbool.
77412
77413 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77414
77415         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
77416
77417 2003-10-07  Karl Berry  <karl@gnu.org>
77418
77419         * config/config.{guess,sub}: update from config.
77420
77421 2003-10-06  Jim Meyering  <jim@meyering.net>
77422             Bruno Haible  <bruno@clisp.org>
77423
77424         This lets translators provide better translations for the
77425         "Written by ..." part of --version output.
77426         * lib/version-etc.h: Include stdarg.h.
77427         (version_etc_copyright): Declare as readonly.
77428         (version_etc): Make this function variadic with a NULL-terminated list
77429         of author name strings.
77430         (version_etc_va): New declaration.
77431         * lib/version-etc.c: Include stdarg.h, stdlib.h.
77432         (version_etc_copyright): Declare as readonly.
77433         (version_etc_va): New function. Provide a different translatable string
77434         for each possible number of authors < 10. Abbreviate when there are 10
77435         authors or more.
77436         (version_etc): Make this function variadic. Call version_etc_va.
77437         Suggestion from Gary V. Vaughan.
77438
77439         * lib/long-options.h (parse_long_options): Change prototype: the
77440         authors string is moved to the end and becomes variadic.
77441         * lib/long-options.c: Include stdarg.h.
77442         (parse_long_options): Make this function variadic, too.
77443         Call version_etc_va, not version_etc.
77444
77445 2003-10-06  Bruno Haible  <bruno@clisp.org>
77446
77447         * modules/version-etc-2: Remove file.
77448         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
77449
77450 2003-10-06  Bruno Haible  <bruno@clisp.org>
77451
77452         * modules/fatal-signal: New file.
77453         * MODULES.html.sh (func_all_modules): Add fatal-signal.
77454
77455 2003-10-06  Bruno Haible  <bruno@clisp.org>
77456
77457         * m4/fatal-signal.m4: New file.
77458         * m4/signalblocking.m4: New file, from GNU gettext.
77459
77460 2003-10-06  Bruno Haible  <bruno@clisp.org>
77461
77462         * lib/version-etc-2.h: Remove file.
77463         * lib/version-etc-2.c: Remove file.
77464
77465 2003-10-06  Bruno Haible  <bruno@clisp.org>
77466
77467         * lib/fatal-signal.h: New file, from GNU gettext.
77468         * lib/fatal-signal.c: New file, from GNU gettext.
77469
77470 2003-10-05  Paul Eggert  <eggert@twinsun.com>
77471
77472         * README: Rework advice for preventing empty .o files.
77473         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
77474         not <sys/types.h>.
77475
77476 2003-10-04  Karl Berry  <karl@gnu.org>
77477
77478         * lib/argp*: update from libc.
77479
77480 2003-10-04  Karl Berry  <karl@gnu.org>
77481
77482         * config/config.{guess,sub}: update from config.
77483
77484 2003-10-02  Bruno Haible  <bruno@clisp.org>
77485
77486         * modules/lchown (Include): Add lchown.h.
77487         * modules/time_r (Include): Use "..." syntax.
77488         * modules/xgetdomainname (Include): Add xgetdomainname.h.
77489
77490 2003-10-01  Simon Josefsson  <jas@extundo.com>
77491
77492         * MODULES.html.sh (func_all_modules): Move gethostname from section
77493         'based on' to section 'lacking' POSIX:2001.
77494
77495 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
77496
77497         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
77498         to output mode on the same stream.
77499
77500 2003-09-29  Paul Eggert  <eggert@twinsun.com>
77501
77502         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
77503         Fix arg typo in previous patch.
77504
77505 2003-09-28  Jim Meyering  <jim@meyering.net>
77506
77507         * lib/error.c: Correct cpp indentation.
77508
77509 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77510
77511         * modules/free: New file.
77512
77513 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77514
77515         * m4/free.m4: New file.
77516
77517 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77518
77519         * lib/minmax.h (MIN, MAX)
77520         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
77521         Omit the special code that used __typeof__, since we worry that
77522         it could be more trouble than it's worth.  See:
77523         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
77524         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
77525
77526         * lib/free.c: New file.
77527
77528 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
77529
77530         Trivial fixes to Makefile.am parts of module listings.
77531         * modules/strstr: Append strstr.h to lib_SOURCES.
77532         * modules/strcase: Likewise, for strcase.h.
77533
77534 2003-09-27  Karl Berry  <karl@gnu.org>
77535
77536         * config/mkinstalldirs: update from automake.
77537
77538 2003-09-26  Paul Eggert  <eggert@twinsun.com>
77539
77540         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
77541         (error_tail): Do not loop, reallocating temporary buffer, since
77542         the output cannot contain more wide characters than the input
77543         contains bytes, the size must be big enough already.  This avoids
77544         one potential size overflow calculation.  Check for size overflow
77545         when calculating temporary buffer size.  Free temporary buffer
77546         when done, if it was allocated with malloc; this plugs a memory
77547         leak.  Remove casts from void * to pointers, that are no longer
77548         needed now that we're assuming C89 or better.
77549
77550         Merge error changes from glibc.
77551
77552         * lib/error.c, error.h: Update copyright notice header to match glibc.
77553         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
77554         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
77555         Disable cancellation while printing error.
77556         * lib/error.h: Prepend __ to parameter names.
77557
77558 2003-09-26  Jim Meyering  <jim@meyering.net>
77559
77560         * lib/error.c (error_tail): Move some declarations
77561         into inner scope where the local variables are used.
77562
77563 2003-09-26  Bruno Haible  <bruno@clisp.org>
77564
77565         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
77566         stpncpy().
77567         Don't define stpncpy through config.h; it's now done through stpncpy.h.
77568
77569 2003-09-26  Bruno Haible  <bruno@clisp.org>
77570
77571         * lib/stpncpy.h (gnu_stpncpy): New declaration.
77572         (stpncpy): Define as alias for gnu_stpncpy.
77573         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
77574
77575 2003-09-25  Simon Josefsson  <jas@extundo.com>
77576
77577         * lib/xgetdomainname.h: New file.
77578         * lib/xgetdomainname.c: New file.
77579
77580 2003-09-25  Simon Josefsson  <jas@extundo.com>
77581             Bruno Haible  <bruno@clisp.org>
77582
77583         * modules/getdomainname: New file.
77584         * modules/xgetdomainname: New file.
77585         * MODULES.html.sh (func_all_modules): Add getdomainname,
77586         xgetdomainname.
77587
77588 2003-09-25  Simon Josefsson  <jas@extundo.com>
77589             Bruno Haible  <bruno@clisp.org>
77590
77591         * m4/getdomainname.m4: New file.
77592
77593 2003-09-25  Simon Josefsson  <jas@extundo.com>
77594             Bruno Haible  <bruno@clisp.org>
77595
77596         * lib/getdomainname.h: New file.
77597         * lib/getdomainname.c: New file.
77598
77599 2003-09-25  Karl Berry  <karl@gnu.org>
77600
77601         * lib/argp-fmtstream.c, argp-help.c: update from libc.
77602
77603 2003-09-25  Karl Berry  <karl@gnu.org>
77604
77605         * config/install-sh: update from automake.
77606
77607 2003-09-25  Bruno Haible  <bruno@clisp.org>
77608
77609         * modules/version-etc-2: New file, from modules/version-etc with
77610         modifications.
77611         * MODULES.html.sh (func_all_modules): Add version-etc-2.
77612
77613 2003-09-25  Bruno Haible  <bruno@clisp.org>
77614
77615         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
77616         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
77617
77618 2003-09-24  Simon Josefsson  <jas@extundo.com>
77619
77620         * modules/xgethostname: Add xgethostname.h.
77621
77622 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77623
77624         * lib/linebuffer.c (freebuffer): Don't free the argument, just
77625         the buffer associated with the argument.  Bug reported by
77626         Simon Josefsson.
77627
77628 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77629
77630         * README: Document assumptions that 'int' is at least 32 bits
77631         wide, that integer arithmetic is 2's complement without overflow,
77632         that there are no holes in integer values, that adding sizes of
77633         two nonoverlapping objects can't overflow, and that all-bits-zero
77634         yields scalar zero.  Fix spelling and capitalization typos.
77635
77636 2003-09-19  Karl Berry  <karl@gnu.org>
77637
77638         * lib/argp.h: update from libc.
77639
77640 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77641
77642         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
77643         to avoid spurious warnings like "AC_RUN_IFELSE was called before
77644         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
77645
77646 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77647
77648         * gnulib-tool: Use "test -h", not "test -L", for portability
77649         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
77650         (tags_regexp): Remove, since \| doesn't conform to POSIX.
77651         (sed_extract_prog): Issue s commands one-by-one, rather than
77652         using \| in one s command.
77653
77654 2003-09-16  Paul Eggert  <eggert@twinsun.com>
77655
77656         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
77657         input error, instead of returning NULL the next time we are called
77658         (and therefore losing track of errno).
77659
77660 2003-09-16  Bruno Haible  <bruno@clisp.org>
77661
77662         * gnulib-tool (func_create_testdir): Warn about duplicated
77663         dependencies.
77664
77665 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77666
77667         * modules/argmatch, modules/fatal, modules/obstack,
77668         modules/xalloc, modules/xgethostname: Sort dependencies by
77669         importance, not alphabetically.
77670
77671 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77672
77673         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
77674         fails, so that the caller gets the proper errno.
77675
77676         * lib/readutmp.c (read_utmp): Likewise.
77677         Check for fstat error.  Close stream and free storage
77678         when failing.
77679
77680 2003-09-14  Karl Berry  <karl@gnu.org>
77681
77682         * config/srclist.txt (strdup.c): disable for c89 changes.
77683
77684 2003-09-14  Jim Meyering  <jim@meyering.net>
77685
77686         * lib/getloadavg.c: Correct cpp indentation.
77687         * lib/strdup.c: Likewise.
77688         * lib/vasnprintf.c: Likewise.
77689
77690 2003-09-14  Bruno Haible  <bruno@clisp.org>
77691
77692         * modules/fwriteerror: New file.
77693         * MODULES.html.sh (func_all_modules): Add fwriteerror.
77694
77695 2003-09-14  Bruno Haible  <bruno@clisp.org>
77696
77697         * lib/fwriteerror.h: New file.
77698         * lib/fwriteerror.c: New file.
77699
77700 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77701
77702         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
77703         modules/xgethostname, modules/xalloc: Depend on exit.
77704
77705 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77706
77707         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
77708
77709         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
77710         and AC_MINIX, too, so that their extensions are available.
77711
77712         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
77713         This macro has been superseded by gl_BACKUPFILE.
77714
77715         More patches to assume C89 or better.
77716
77717         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
77718
77719         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
77720         unconditionally.
77721         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
77722         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
77723         Include <string.h>, <stdlib.h> unconditionally.
77724         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
77725         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
77726         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
77727         headers or for string.h.
77728         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
77729         or strtoul.
77730
77731         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
77732         headers.
77733         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
77734         * m4/userspec.m4 (gl_USERSPEC): Likewise.
77735         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
77736         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
77737         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77738         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
77739         memcpy, memset.
77740         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
77741         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
77742         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
77743         strtol.
77744         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
77745         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
77746         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
77747         strtoul.
77748
77749 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77750
77751         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
77752         * lib/obstack.c [!defined _LIBC]: Likewise.
77753         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
77754         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
77755         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
77756
77757         More changes to assume C89 or better.
77758
77759         * lib/error.c (error_tail): Assume vprintf.
77760
77761         * lib/argmatch.c (getenv): Remove decl.
77762         * lib/progreloc.c (get_full_program_name): Define via prototype.
77763         * lib/setenv.c (clearenv): Likewise.
77764         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
77765         needed.
77766         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
77767         (malloc, memcpy): Remove decls.
77768         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
77769         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
77770         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
77771         (memcpy): Remove macro.
77772         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
77773         (__P): Remove.  All uses removed.
77774         (PTR): Remove.  All uses changed to void *.
77775         (CHAR_BIT, NULL): Remove.
77776         (spaces, zeros, memset_space, memset_zero)
77777         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
77778         Remove.
77779         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
77780         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
77781         Define with prototype.
77782         Remove now-unnecessary prototype decl.
77783         (extra_args_spec): Assume ANSI C.  All uses changed.
77784         (extra_args_spec_iso): Remove.
77785         (my_strftime, emacs_strftimeu): Define via prototype.
77786         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
77787         unconditionally.
77788         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
77789         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
77790         (strtoul, strtol): Remove decls.
77791         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
77792         LONG_MAX): Remove.
77793         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
77794         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
77795         (LOCALE_PARAM_PROTO): New macro.
77796         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
77797         (INTERNAL (strtol), strtol): Define with a prototype.
77798         (PARAMS): Remove.  All uses removed.
77799         * lib/tempname.c: Include <string.h> unconditionally.
77800         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
77801         * lib/xgethostname.c (main): Define with a prototype.
77802         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
77803         Include <stdlib.h> unconditionally.
77804         (calloc, malloc, realloc, free): Remove decls.
77805         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
77806         Include <stdlib.h> unconditionally.  Sort include file names.
77807         (strtod): Remove.
77808         (xstrtod): Define with a prototype.
77809         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
77810         (strtol, strtoul): Remove decls.
77811
77812 2003-09-11  Paul Eggert  <eggert@twinsun.com>
77813
77814         More patches to assume C89 or better.
77815         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
77816         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
77817         string.h, memchr, STDC_HEADERS.
77818
77819 2003-09-11  Paul Eggert  <eggert@twinsun.com>
77820
77821         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
77822         Include <stdlib.h>, <string.h> unconditionally.
77823         Remove now-unnecessary cast to char *.
77824         * lib/strnlen.c: Include <string.h> unconditionally.
77825         * lib/yesno.c (yesno): Define with a prototype.
77826
77827 2003-09-11  Bruno Haible  <bruno@clisp.org>
77828
77829         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
77830
77831 2003-09-10  Jim Meyering  <jim@meyering.net>
77832
77833         * lib/error.c: Correct indentation of cpp directives.
77834
77835 2003-09-10  Bruno Haible  <bruno@clisp.org>
77836
77837         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
77838         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
77839         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
77840         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
77841         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
77842         <stdlib.h> and <string.h> checks.
77843         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
77844         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
77845
77846 2003-09-10  Bruno Haible  <bruno@clisp.org>
77847
77848         * lib/strcspn.c: Include <string.h> unconditionally.
77849         * lib/strpbrk.c: Include <string.h> unconditionally.
77850         * lib/strstr.c: Include <string.h> unconditionally.
77851         * lib/unicodeio.c: Include <string.h> unconditionally.
77852         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
77853         * lib/unsetenv.c: Likewise.
77854         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
77855         * lib/yesno.c: Include <stdlib.h> unconditionally.
77856         (rpmatch): Add prototype.
77857
77858 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77859
77860         More patches to assume C89 or better.
77861         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
77862         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
77863         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
77864         or for string.h.
77865         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
77866         stdlib.h.
77867         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
77868         C headers.
77869         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
77870         string.h.
77871         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
77872         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
77873         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
77874         or for string.h.
77875         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
77876         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
77877         C headers.
77878         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
77879         memcpy.
77880         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
77881         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
77882         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
77883         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
77884         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
77885         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
77886         string.h, free.
77887         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
77888         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
77889         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
77890         C headers, or for string.h.
77891         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
77892         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
77893         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
77894         headers, memory.h, stdlib.h, string.h, strings.h.
77895         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
77896         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
77897         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
77898         strchr.
77899         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
77900         headers, memory.h, string.h.
77901         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
77902         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
77903         free.
77904         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
77905         headers.
77906         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
77907         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
77908         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
77909         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
77910         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
77911
77912 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77913
77914         More K&R removal.
77915
77916         * lib/acosl.c (main): Use a prototype.
77917         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
77918         tanl.c: Likewise.
77919
77920         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
77921
77922         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
77923         (getopt, etopt_long, getopt_long_only, _getopt_internal)
77924         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
77925         with a prototype.
77926         * lib/getopt.c (const): Remove macro.
77927         Include <string.h> unconditionally.
77928         (my_index): Remove; all uses changed to strchr.
77929         (strlen): Remove decl.
77930         (exchange): Remove forward decl; no longer needed.
77931         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
77932         Define with prototype.
77933         * lib/getopt1.c (const): Remove macro.
77934         (getopt_long, getopt_long_only, main): Define with prototype.
77935
77936         * lib/getugroups.c: Include <string.h> unconditionally.
77937
77938         * lib/getusershell.c: Include <stdlib.h> unconditionally.
77939         (getusershell, setusershell, endusershell, readname, main):
77940         Define with prototypes.
77941
77942         * lib/group-member.c: Include group-member.h first.
77943         Include <stdlib.h> unconditionally.
77944
77945         * lib/hard-locale.c: Include hard-locale.h first.
77946         Include <stdlib.h>, <string.h> unconditionally.
77947
77948         * lib/hash.c (free, malloc): Remove decls.
77949         Include <stdlib.h> unconditionally.
77950
77951         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
77952         (getenv): Do not declare.
77953
77954         * lib/idcache.c: Include <string.h> unconditionally.
77955
77956         * lib/long-options.c: Include long-options.h first, to test interface.
77957         Include <stdlib.h> unconditionally.
77958
77959         * lib/makepath.c: Include makepath.h first, to test interface.
77960         Include <stdlib.h> and <string.h> unconditionally.
77961
77962         * lib/linebuffer.c: Include <stdlib.h>.
77963         (free): Remove decl.
77964
77965         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
77966         stddef.h. rpl_malloc returns void *, not char *.
77967         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
77968         prototype.
77969
77970         * lib/md5.h: Include <limits.h> unconditionally.
77971         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
77972         (__P): Remove; all uses removed.
77973         * lib/md5.c: Include "md5.h" first.
77974         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
77975         md5_buffer, md5_process_bytes, md5_process_block):
77976         Define with prototypes.
77977         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
77978         * lib/sha.c: Include "sha.h" first.
77979         Include <stdlib.h>, <string.h> unconditionally.
77980
77981         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
77982         * lib/memcmp.c (__ptr_t): Likewise.
77983         * lib/memrchr.c (__ptr_t): Likewise.
77984         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
77985         Include <string.h> unconditionally.
77986         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
77987         * lib/memchr.c: Include <stdlib.h> unconditionally.
77988         * lib/memchr.c (LONG_MAX): Remove.
77989         * lib/memrchr.c (LONG_MAX): Likewise.
77990         * lib/memchr.c (__memchr): Define via a prototype.
77991         * lib/memrchr.c (__memrchr): Likewise.
77992         * lib/memcmp.c (__P): Remove, and remove all uses.
77993         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
77994         Remove forward decls; no longer needed.
77995         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
77996         Use types required by C89 in prototype.
77997
77998         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
77999         * lib/savedir.c: Likewise.
78000         * lib/mkdir.c (free): Remove decl.
78001         * lib/rmdir.c (rmdir): Define with a prototype.
78002         * lib/savedir.c: Include savedir.h first, to test interface.
78003
78004         * lib/mktime.c (STDC_HEADERS): Remove.
78005         Include <stdlib.h>, <string.h> unconditionally.
78006
78007         * lib/modechange.c: Include <stdlib.h> unconditionally.
78008         (malloc): Remove decl.
78009
78010         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78011         (free): Remove decl.
78012
78013         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78014         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78015         (This type really should be intptr_t, but that's a C99ism.)
78016         (_obstack_memcpy): Remove: all uses changed to memcpy.
78017         Include <string.h> unconditionally.
78018         (struct obstack): Assume __STDC__ for types of members
78019         chunkfun, freefun, extra_arg.
78020         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78021         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78022         obstack_begin, obstack_specify_allocation,
78023         obstack_specify_allocation_with_arg, obstack_chunkfun,
78024         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78025         Remove unprototyped decls and the macros that use them.
78026         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78027         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78028         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78029         (defined __STDC__ && __STDC__)]:
78030         Remove nonprototyped code.
78031         Include <stdlib.h> unconditionally.
78032         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78033         _obstack_allocated_p, _obstack_free, obstack_free,
78034         _obstack_memory_used, print_and_abort):
78035         Define using prototypes.
78036         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78037         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78038         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78039         obstack_next_free, obstack_object_size, obstack_room) [0]:
78040         Remove unused, unprototyped code.
78041
78042         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78043
78044         * lib/physmem.c (physmem_total, physmem_available, main): Define
78045         with prototypes.
78046
78047         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78048         (main): Define with a prototype.
78049
78050         * lib/posixver.c (getenv): Remove decl.
78051
78052         * lib/putenv.c (malloc): Returns void *, not char *.
78053         Include <string.h> unconditionally.
78054         (strchr, memcpy, NULL): Do not define.
78055
78056         * lib/readtokens.c: Include readtokens.h first, to test interface.
78057         Include <stdlib.h>, <string.h> unconditionally.
78058         (init_tokenbuffer): Define with a prototype.
78059
78060         * lib/regex.c (PARAMS): Remove.  All uses removed.
78061         All uses of _RE_ARGS removed, too.
78062         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78063         unconditionally.
78064         (bzero): Assume memset exists.
78065         (memcmp, memcpy, NULL): Remove.
78066         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78067         char, or assignments to local vars of type signed char.
78068         (init_syntax_once, PREFIX(extract_number_and_incr),
78069         PREFIX(print_partial_compiled_pattern),
78070         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78071         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78072         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78073         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78074         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78075         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78076         wcs_compile_range, byte_compile_range, truncate_wchar,
78077         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78078         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78079         count_mbs_length, wcs_re_match_2_internal,
78080         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78081         PREFIX(alt_match_null_string_p),
78082         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78083         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78084         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78085         now-unnecessary declaration, if any.
78086         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78087         regcomp, regexec):
78088         Remove now-unnecessary casts among pointer types.
78089         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78090
78091         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78092         (free): Remove decl.
78093
78094         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78095
78096         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78097         (free): Remove decl.
78098
78099         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78100         * lib/xgetcwd.c: Likewise.
78101
78102         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78103         (free): Remove decl.
78104
78105         * lib/strchrnul.c (strchrnul): Define with a prototype.
78106         Fix bug: c_in was not converted to char before searching.
78107
78108         The following changes are not K&R related:
78109
78110         * lib/group-member.h: Include <sys/types.h>, so that this file is
78111         self-contained.
78112         * lib/makepath.h: Likewise.
78113
78114         * lib/getusershell.c (readname, default_index, line_size, readname):
78115         Use size_t, not int, for sizes.
78116         (readname): If the size overflows, report an error instead of
78117         looping forever.
78118
78119 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78120
78121         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78122         libc.
78123
78124 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78125
78126         * README: New section: portability guidelines.
78127
78128 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78129
78130         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78131         C89 spec.
78132
78133 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78134
78135         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78136
78137 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78138
78139         Assume C89 or better; remove K&R cruft.
78140         A few of these changes were first proposed by Derek Robert Price
78141         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78142
78143         * lib/addext.c: Include <string.h> unconditionally.
78144         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
78145         Don't declare getenv or malloc.
78146
78147         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
78148         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
78149         (NULL): Remove.
78150         (find_stack_direction, alloca): Use prototypes.
78151
78152         * lib/atexit.c (atexit): Define using a prototype.
78153
78154         * lib/basename.c, dirname.c, stripslash.c:
78155         Include <string.h> unconditionally.
78156
78157         * lib/bcopy.c: Include <stddef.h>.
78158         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
78159
78160         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
78161
78162         * lib/error.h (error, error_at_line, error_print_progname)
78163         [! (defined (__STDC__) && __STDC__)]: Remove decls.
78164         * lib/error.c: Include error.h first, to check interface.
78165         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78166         (VA_START): Remove; all uses changeed to va_start.
78167         (exit, strerror): Remove decls.
78168         (error_print_progname): Prototype uncondionally.
78169         Don't include <errno.h>; no longer needed.
78170         (private_strerror): Remove.
78171         (error_tail): Always define.
78172         (error, error_at_line): Assume C89 or better; always use prototypes.
78173         * lib/fatal.c: Include "fatal.h" first, to test interface.
78174         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78175         (VA_START): Remove; all uses changed to va_start.
78176         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
78177         this case.
78178         (exit): Remove decl.
78179         (fatal): Prototype unconditionally.  Assume va_start works.
78180         Abort at end, to pacify gcc.
78181
78182         * lib/euidaccess.c (main): Define with a prototype.
78183
78184         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
78185
78186         * lib/exitfail.c: Include <stdlib.h> unconditionally.
78187
78188         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
78189         prototypes.
78190         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
78191         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
78192         (getenv): Remove decl.
78193         (fnmatch): Define using a prototype.
78194         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
78195         (FCT): Define using a prototype.
78196
78197         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
78198
78199         * lib/gethostname.c: Include <stddef.h>.
78200         (gethostname): Define with prototype.  Length is size_t, not int.
78201
78202 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78203
78204         Assume C89 or better; remove K&R cruft.
78205         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
78206         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
78207         string.h, getenv, malloc.
78208         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
78209         headers.
78210         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
78211         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
78212         do not check for strerror.
78213         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
78214         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
78215         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
78216         do not check for doprnt or vprintf.
78217         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
78218         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
78219
78220 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78221
78222         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
78223         getversion.c should have been removed then, but was accidentally
78224         preserved.
78225
78226         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
78227         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
78228
78229 2003-09-08  Karl Berry  <karl@gnu.org>
78230
78231         * config/config.sub, config.guess, srclistvars.sh: update from savannah
78232                 config, forget about prep.
78233
78234         * config/depcomp, missing: update from automake.
78235
78236 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78237
78238         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
78239         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78240
78241 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78242
78243         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
78244         copy_tm_result.  Bug reported by Simon Josefsson in
78245         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78246
78247 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78248
78249         * m4/time_r.m4: New file.
78250         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
78251         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
78252         is. Check for timegm declaration.
78253         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
78254         Do not check for gmtime_r.
78255         Replace mktime if __mktime_internal does not exist and if mktime
78256         hasn't been replaced already.
78257
78258 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78259
78260         * lib/time_r.c, lib/time_r.h: New files.
78261
78262         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
78263         __localtime_r.
78264         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
78265         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
78266
78267         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
78268         __gmtime_r.
78269         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
78270         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
78271         Include <time_r.h>.
78272
78273         * lib/timegm.c: Switch to glibc implementation, with the following
78274         changes:
78275         [defined HAVE_CONFIG_H]: Include <config.h>.
78276         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78277         (__mktime_internal) [!defined _LIBC]: New decl.
78278         (__gmtime_r) [!defined _LIBC]: New macro and function.
78279         (timegm): Use a prototype, since gnulib assumes C89.
78280         Do not bother declaring tmp to be const, as it's not really usefu.
78281         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78282         (timegm): Declare only if HAVE_DECL_TIMEGM.
78283
78284 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78285
78286         * MODULES.html.sh (func_all_modules): Add time_r.
78287         * modules/time_r: New file.
78288         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78289         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78290
78291 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78292
78293         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78294         Bug reported by Lute Kamstra in
78295         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78296
78297         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78298         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78299         course with correspondingly smaller numbers for tomorrow and
78300         yesterday.  From Tadayoshi Funaba.  Originally installed into
78301         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78302         coreutils merge?).
78303
78304 2003-08-31  Simon Josefsson  <jas@extundo.com>
78305
78306         * modules/timegm: New file.
78307         * MODULES.html.sh (func_all_modules): Add timegm.
78308
78309 2003-08-31  Simon Josefsson  <jas@extundo.com>
78310
78311         * m4/timegm.m4: New file.
78312
78313 2003-08-31  Simon Josefsson  <jas@extundo.com>
78314
78315         * lib/timegm.h: New file.
78316         * lib/timegm.c: New file.  Based on
78317         wget-1.8.2/src/http.c:mktime_from_utc.
78318
78319 2003-08-31  Karl Berry  <karl@gnu.org>
78320
78321         * lib/argp.h: update from libc.
78322
78323 2003-08-28  Bruno Haible  <bruno@clisp.org>
78324
78325         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
78326         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
78327         followed by '#define fnmatch fnmatch_posix' gives an error.
78328
78329 2003-08-28  Bruno Haible  <bruno@clisp.org>
78330
78331         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
78332         warning on QNX, which defines O_BINARY to 000000.
78333
78334 2003-08-27  Jim Meyering  <jim@meyering.net>
78335
78336         * m4/mkstemp.m4: Require that the system mkstemp be able to create
78337         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
78338         would fail after 32.  Reported by Danny Levinson.  Details here:
78339         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
78340
78341 2003-08-24  Bruno Haible  <bruno@clisp.org>
78342
78343         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
78344         MSVC7 <stdio.h> is included later.
78345
78346 2003-08-22  Simon Josefsson  <jas@extundo.com>
78347
78348         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
78349
78350 2003-08-20  Karl Berry  <karl@gnu.org>
78351
78352         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
78353
78354 2003-08-20  Bruno Haible  <bruno@clisp.org>
78355
78356         * modules/progname: New file.
78357         * MODULES.html.sh (func_all_modules): Add progname.
78358
78359 2003-08-20  Bruno Haible  <bruno@clisp.org>
78360
78361         * lib/progname.h: New file, from GNU gettext.
78362         * lib/progname.c: New file, from GNU gettext.
78363         * lib/progreloc.c: New file, from GNU gettext.
78364
78365 2003-08-19  Jim Meyering  <jim@meyering.net>
78366
78367         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
78368         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
78369
78370 2003-08-19  Bruno Haible  <bruno@clisp.org>
78371
78372         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
78373         more.
78374
78375 2003-08-19  Bruno Haible  <bruno@clisp.org>
78376
78377         * lib/xstrdup.c: Assume <string.h> exists.
78378
78379 2003-08-18  Paul Eggert  <eggert@twinsun.com>
78380
78381         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
78382         in makefile rules.
78383
78384 2003-08-18  Jim Meyering  <jim@meyering.net>
78385
78386         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
78387         * m4/lib-ld.m4: Likewise.
78388
78389 2003-08-18  Jim Meyering  <jim@meyering.net>
78390
78391         * lib/setenv.h: Indent nested cpp directive.
78392         * lib/vasnprintf.c: Remove trailing blanks.
78393
78394 2003-08-17  Simon Josefsson  <jas@extundo.com>
78395
78396         * modules/xstrndup: New file.
78397         * MODULES.html.sh (func_all_modules): Add xstrndup.
78398
78399 2003-08-17  Simon Josefsson  <jas@extundo.com>
78400
78401         * modules/argp: Fix autoconf macro name. Add more dependencies.
78402
78403 2003-08-17  Simon Josefsson  <jas@extundo.com>
78404
78405         * m4/xstrndup.m4: New file.
78406
78407 2003-08-17  Simon Josefsson  <jas@extundo.com>
78408
78409         * m4/argp.m4: New file.
78410
78411 2003-08-17  Simon Josefsson  <jas@extundo.com>
78412             Bruno Haible  <bruno@clisp.org>
78413
78414         * lib/xstrndup.h: New file.
78415         * lib/xstrndup.c: New file.
78416
78417 2003-08-17  Bruno Haible  <bruno@clisp.org>
78418
78419         * modules/strndup (Files, Include): Add lib/strndup.h.
78420
78421 2003-08-17  Bruno Haible  <bruno@clisp.org>
78422
78423         * modules/euidaccess (Files): Add lib/euidaccess.h.
78424
78425 2003-08-17  Bruno Haible  <bruno@clisp.org>
78426
78427         * lib/strndup.h: New file.
78428
78429 2003-08-17  Bruno Haible  <bruno@clisp.org>
78430
78431         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
78432         like AC_GNU_SOURCE.
78433         * modules/extensions (configure.ac): Comment out the invocation of
78434         gl_USE_SYSTEM_EXTENSIONS.
78435
78436 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78437
78438         Merges from coreutils, etc.
78439         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
78440         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
78441         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
78442         fixing a typo.
78443         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
78444         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
78445
78446 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78447
78448         Document merge from coreutils.
78449         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
78450         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
78451         * modules/utime: Add m4/utimes-null.m4.
78452
78453 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78454
78455         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
78456         space, undoing this 2003-08-12 change:
78457         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78458
78459 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78460
78461         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
78462         strtoul.c from libc, undoing this 2003-08-12 change:
78463         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78464
78465 2003-08-16  Jim Meyering  <jim@meyering.net>
78466
78467         Merges from coreutils.
78468         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
78469         prefix.  Adjust cache variables similarly.  Create 500 rather than
78470         just 300 files, to exercise bug on Darwin6.5, too.
78471         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
78472         $missing_dir.
78473         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
78474         AM_SYS_POSIX_TERMIOS.
78475         Reported by mkc@mathdogs.com.
78476         Also change use of $am_cv_sys_posix_termios
78477         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
78478         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
78479         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
78480         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
78481         in /proc/mounts until it finds one with matching device number.  This
78482         is unnecessary when the FILE argument *is* a mount point.  No stat call
78483         is necessary in that case.  So, disable the statvfs-testing code on
78484         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
78485         as RedHat bug# 84846.
78486         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78487         to 1MB, so as not to render systems with no stack size limit (e.g.,
78488         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78489         Include <unistd.h>.  On some systems,
78490         it is required for the definition of _SC_PAGESIZE.
78491
78492 2003-08-16  Jim Meyering  <jim@meyering.net>
78493
78494         Merge from coreutils.
78495         * lib/xstrtoimax.c: #else #if -> #elif.
78496         * lib/xstrtoumax.c: Likewise.
78497
78498 2003-08-16  Jim Meyering  <jim@meyering.net>
78499
78500         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
78501         * m4/utimes.m4: Removed.
78502         * m4/utimes-null.m4: Renamed from utimes.m4.
78503
78504         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78505         to 1MB, so as not to render systems with no stack size limit (e.g.,
78506         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78507         Include <unistd.h>.  On some systems,
78508         it is required for the definition of _SC_PAGESIZE.
78509
78510 2003-08-16  Jim Meyering  <jim@meyering.net>
78511         and Paul Eggert  <eggert@cs.ucla.edu>
78512
78513         Merges from coreutils, etc.
78514
78515         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
78516         using the latest version from cvs.  This avoids problems with #line
78517         directives using a vendor (Sun) compiler.
78518         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
78519         Don't set GETGROUPS_LIB here; now it's
78520         done via getgroups.m4's wrapper function.
78521         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
78522         rather than just in sh-util/configure.in, so that the
78523         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
78524         same.
78525         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
78526         AC_FUNC_GETLOADAVG where to find getloadavg.c.
78527         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
78528         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
78529         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
78530         Remove code that is now done by the newly-required macros.
78531         Append $(EXEEXT) to DF_PROG.
78532         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
78533         Do not invoke or require the following here,
78534         since prereq.m4 or some gnulib .m4 now does this for us:
78535         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
78536         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
78537         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
78538         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
78539         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
78540         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
78541         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
78542         AC_FUNC_OBSTACK.
78543         Do not replace the following functions, as this is now the job
78544         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
78545         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
78546         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
78547         atexit getpass, strdup, getpagesize.
78548         Replace 'raise'.
78549         Do not check for the following functions, as this is now the job
78550         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
78551         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
78552         setregid.
78553         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
78554         Check for sys/sysctl.h.
78555         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
78556         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
78557         of checking for ssize_t ourselves.
78558
78559         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
78560         Require every macro that gnulib/modules/* suggests for us.
78561         (jm_PREREQ_ADDEXT): New macro.
78562         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
78563         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
78564
78565         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
78566         (gl_PHYSMEM): Use it.
78567         Also check for `table' function.
78568         Check for new headers and functions.
78569         Add check for sys/sysmp.h.
78570         With suggestions from Kaveh Ghazi.
78571         Ignore headers that are present but cannot be compiled.  This
78572         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
78573         C 5.4.
78574
78575 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78576
78577         Document merge from coreutils.
78578         * modules/userspec: Depend on posixver.
78579         * modules/strftime: Depend on tzset.
78580
78581 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78582
78583         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
78584         rather than tab, after '#' in shell-script copyright notices.
78585         Suggested by Bruno Haible.
78586
78587 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78588
78589         * config/srclist-update: Use three spaces, rather than tab, after '#'
78590         in shell-script copyright notices.  Suggested by Bruno Haible.
78591         Remove unnecessary parenthesization in regular expression.
78592
78593 2003-08-15  Jim Meyering  <jim@meyering.net>
78594
78595         Merge from coreutils.
78596         * lib/xgethostname.c: Include <stdlib.h>.
78597         (xghostname): Don't exit for anything other than memory-related
78598         failure; just return NULL.
78599         * lib/userspec.c: Include "posixver.h".
78600         (parse_user_spec): Accept `.' as a separator only
78601         in pre-POSIX-200112 mode.
78602         * lib/strtoimax.c: Use #elif rather than #else #if.
78603         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
78604         Remove function, now that we can rely on a working tzset function.
78605         [!_LIBC]: Ensure that the required autoconf test has been run.
78606         [!defined _NL_CURRENT && HAVE_STRFTIME]:
78607         Use underlying_strftime for %r.
78608         * lib/sha.c: Merge in some clean-up and optimization changes from
78609         glibc.
78610         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
78611         Ensure that it is a multiple of 64.
78612         Rearrange loop exit tests so as to avoid performing an
78613         additional fread after encountering an error or EOF.
78614         * lib/realloc.c: Update copyright date.
78615
78616 2003-08-15  Jim Meyering  <jim@meyering.net>
78617         and Paul Eggert  <eggert@twinsun.com>
78618
78619         Merge from coreutils.
78620         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
78621         member but strut utmpx does not.  Needed for AIX 4.3.3.
78622         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
78623
78624 2003-08-15  Jim Meyering  <jim@meyering.net>
78625         and Paul Eggert  <eggert@cs.ucla.edu>
78626
78627         Merges from coreutils, etc.
78628         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
78629         Require gl_FUNC_TZSET_CLOBBER.
78630         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
78631         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
78632         members.
78633
78634 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78635
78636         Help the merge from coreutils.
78637         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
78638         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
78639         * m4/tzset.m4: Use it too.
78640
78641 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78642
78643         * modules/tzset: New file.
78644
78645 2003-08-14  Jim Meyering  <jim@meyering.net>
78646
78647         Merges from coreutils.
78648         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
78649         variable names, rather than @FNMATCH_H@.
78650         * modules/alloca: Likewise for $(ALLOCA_H).
78651
78652         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
78653         the three copies of the literal target, `fnmatch.h'.
78654         * modules/alloca (alloca.h): Likewise.
78655
78656 2003-08-14  Jim Meyering  <jim@meyering.net>
78657
78658         Merge from coreutils.
78659         * m4/tzset.m4: New file.
78660         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
78661         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
78662         otherwise, AIX 5.1 systems would end up using the latter.
78663         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
78664         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
78665         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
78666         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
78667
78668 2003-08-14  Jim Meyering  <jim@meyering.net>
78669
78670         Merge from coreutils.
78671         * lib/obstack.h: Whitespace changes.
78672         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
78673         and xcalloc return values.
78674         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
78675         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
78676         hang on OSF/1 5.1 for DIR on both local and remote file systems.
78677         Reported by (and fix confirmed by) Nelson H. F. Beebe.
78678         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78679         error from mntctl.
78680         Use mntctl's return value to drive the entry-processing loop, since
78681         we can't rely on the value of the vmt_length member in the last
78682         entry.  On some systems doing so could result in exhausting
78683         virtual memory.  Based in part on a patch from Mike Jetzer.
78684
78685 2003-08-14  Jim Meyering  <jim@meyering.net>
78686         and Paul Eggert  <eggert@twinsun.com>
78687
78688         Merges from coreutils, plus other fixes.
78689         * lib/physmem.c: Merge in portability changes from gcc/libiberty
78690         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
78691         for credits and details.  Thanks to Kaveh Ghazi for helping
78692         to keep these files in sync.
78693         (ARRAY_SIZE): Define it.
78694         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
78695         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
78696         (memcasecmp): Don't assume size_t fits in unsigned int.
78697         Remove casts and duplicate code.
78698         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
78699         (memcpy): Remove definition.
78700         Merge in some clean-up and optimization changes from glibc.
78701         [BLOCKSIZE]: Move definition to top of file.
78702         Ensure that it is a multiple of 64.
78703         Rearrange loop exit tests so as to avoid performing an
78704         additional fread after encountering an error or EOF.
78705         * lib/md5.h (md5_uintptr): Define.
78706         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
78707         return to the initial working directory.  Preserve errno
78708         for caller.
78709         * lib/idcache.c: Include "xalloc.h".
78710         (xmalloc, xrealloc): Remove decls.
78711         (getuser): Remove casts no longer required in C89.
78712         * lib/human.c: Include stdio.h, for sprintf.
78713         * lib/group-member.c: Include "xalloc.h".
78714         (xmalloc, xrealloc): Remove decls.
78715         (get_group_info): Remove casts no longer required in C89.
78716         * lib/getusershell.c (readname): Remove casts no longer required in
78717         C89.
78718         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
78719         * lib/getline.c: Whitespace fix, from coreutils.
78720
78721 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78722
78723         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
78724         Check for isascii.
78725
78726         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78727         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78728         Undo previous (whitespace-only) change.
78729
78730 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78731
78732         * lib/exclude.c: Include <ctype.h>
78733         (IN_CTYPE_DOMAIN): New macro.
78734         (is_space): New fn.
78735         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
78736         and empty lines.
78737
78738         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78739         Undo previous (whitespace-only) change.
78740
78741 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78742
78743         * config/srclist-update: Change update back to the old behavior,
78744         leaving whitespace alone.  Use one 'sed' command rather than a
78745         pipeline.
78746         (fixlicense): Now a variable, not a function.
78747         (remove_trailing_blanks): Remove.
78748         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
78749         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78750         Undo previous (whitespace-only) change.
78751
78752 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78753
78754         Merge from coreutils.
78755         * modules/euidaccess: Add lib_SOURCES, include for new
78756         file euidaccess.h
78757
78758 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78759
78760         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78761         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78762         Normalize leading white space and remove trailing white space.
78763
78764         Merge from coreutils
78765         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
78766
78767         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
78768         0.12.1.  These files are now being upgraded automatically by
78769         ../config/srclist-update.
78770
78771 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78772
78773         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78774         Normalize leading white space and remove trailing white space.
78775         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
78776         notice, as per ../config/srclist-update.
78777
78778         Merge from coreutils.
78779         * lib/euidaccess.h: New file.
78780         * lib/euidaccess.c: Include it.
78781         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
78782         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
78783         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
78784
78785 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78786
78787         * config/srclist-update: Add copyright notice.
78788         (remove_id_lines, remove_trailing_blanks): New constants.
78789         (fixfile): Use them to normalize spacing a bit in copied files.
78790         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78791         Normalize leading white space and remove trailing white space.
78792
78793         * config/texinfo.tex: Sync with texinfo.
78794
78795         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
78796         strtoul.c from libc, to merge coreutils whitespace changes.
78797
78798         * config/srclist.txt: Get the following m4 files from gettext:
78799         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
78800         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
78801         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
78802         wint_t.m4.
78803
78804 2003-08-12  Karl Berry  <karl@gnu.org>
78805
78806         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
78807         been made.
78808
78809 2003-08-11  Paul Eggert  <eggert@twinsun.com>
78810
78811         * modules/gnu-source, m4/gnu-source.m4:
78812         Remove; we're assuming Autoconf 2.54 or later now.
78813         Suggested by Bruno Haible.
78814         * MODULES.html.sh (func_all_modules): Remove gnu-source.
78815
78816 2003-08-11  Bruno Haible  <bruno@clisp.org>
78817
78818         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
78819
78820 2003-08-11  Bruno Haible  <bruno@clisp.org>
78821
78822         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
78823         (vasnprintf): Use it instead of wcslen.
78824
78825 2003-08-11  Bruno Haible  <bruno@clisp.org>
78826
78827         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
78828         value to ensure that _Bool promotes to int. Use #define for _Bool when
78829         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
78830
78831 2003-08-10  Karl Berry  <karl@gnu.org>
78832
78833         * lib/regex.h: update from libc (whitespace fix).
78834
78835 2003-08-09  Paul Eggert  <eggert@twinsun.com>
78836
78837         Merge some files from coreutils.  These changes were
78838         originally made by Jim Meyering.
78839         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
78840         many older Unixes require this.
78841         * lib/alloca.c (alloca): Remove cast to argument of free;
78842         no longer needed in C89.
78843         * lib/alloca_.h, regex.h: Fix white space to match
78844         what GNU indent does.
78845
78846 2003-08-09  Paul Eggert  <eggert@twinsun.com>
78847
78848         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
78849         apparently Emacs's Unicode mode got confused before my 2003-08-05
78850         checkin.
78851
78852 2003-08-08  Paul Eggert  <eggert@twinsun.com>
78853
78854         * m4/extensions.m4: New file.
78855         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
78856         Require gl_USE_SYSTEM_EXTENSIONS.
78857         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
78858         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
78859
78860 2003-08-08  Paul Eggert  <eggert@twinsun.com>
78861
78862         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
78863         * modules/extensions, modules/gnu-source: New files.
78864         * modules/timespec, modules/unlocked-io: Depend on extensions.
78865
78866 2003-08-07  Paul Eggert  <eggert@twinsun.com>
78867
78868         * modules/restrict: New file.
78869         * MODULES.html.sh (func_all_modules): Add restrict.
78870         * modules/regex: Depend on restrict.
78871
78872 2003-08-07  Paul Eggert  <eggert@twinsun.com>
78873
78874         * m4/restrict.m4: New file.
78875         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
78876
78877 2003-08-07  Bruno Haible  <bruno@clisp.org>
78878
78879         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
78880         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
78881
78882 2003-08-07  Bruno Haible  <bruno@clisp.org>
78883
78884         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
78885         makes the module 'getndelim2' compatible with the module 'getline'.
78886
78887 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78888
78889         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
78890         byte with "\201" to avoid glitches when editing that source file
78891         with multi-gnome-terminal.
78892
78893 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78894
78895         * lib/bumpalloc.h: Remove.
78896
78897 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78898
78899         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
78900         * modules/bumpalloc: Remove.
78901
78902 2003-08-04  Paul Eggert  <eggert@twinsun.com>
78903
78904         * lib/getloadavg.c: Change copyright notice and spacing to conform to
78905         GNU coding style.
78906
78907         Merge from coreutils.
78908         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
78909         1. From glibc.
78910         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
78911         from Karl Berry, implemented by Jim Meyering.
78912         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
78913         from Dmitry V. Levin.
78914         Remove anachronistic cast of xrealloc.
78915         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
78916         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
78917         type. Otherwise, it wouldn't compile with at least /bin/cc on
78918         ymp-cray-unicos9.0.2.X.
78919         Combine two mostly-identical uses of alloca into one.
78920         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
78921
78922 2003-08-04  Dave Love  <d.love@dl.ac.uk>
78923
78924         [From Emacs.]
78925
78926         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
78927         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
78928         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
78929         obsolete NLIST_NAME_UNION.
78930         [__GNU__]: Undef BSD and FSCALE.
78931         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
78932
78933 2003-08-03  Paul Eggert  <eggert@twinsun.com>
78934
78935         * lib/stdbool_.h (_Bool): Make it signed char, instead of
78936         an enum type, so that it's guaranteed to promote to int.  See:
78937         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
78938
78939 2003-08-03  Karl Berry  <karl@gnu.org>
78940
78941         * config/depcomp: update from automake.
78942
78943 2003-07-31  Paul Eggert  <eggert@twinsun.com>
78944
78945         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
78946         (strerror): Don't assume that a printable int fits in 14 bytes.
78947
78948 2003-07-31  Bruno Haible  <bruno@clisp.org>
78949
78950         * modules/getpass-gnu: New file.
78951         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
78952
78953 2003-07-31  Bruno Haible  <bruno@clisp.org>
78954
78955         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
78956
78957 2003-07-24  Karl Berry  <karl@gnu.org>
78958
78959         * config/missing: update from automake.
78960
78961 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
78962             Bruno Haible  <bruno@clisp.org>
78963
78964         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
78965         * lib/getline.c (getline, getdelim): Likewise.
78966         Remove _GNU_SOURCE define; now it's defined in config.h through
78967         m4/getline.m4.
78968
78969 2003-07-23  Karl Berry  <karl@gnu.org>
78970
78971         * config/config.sub: update from prep.
78972
78973 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78974
78975         * modules/xalloc (Depends-on): Add exitfail.
78976         * modules/xmemcoll: Likewise.
78977
78978 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78979
78980         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
78981         over-parenthesization in macros.
78982
78983         Sync with coreutils.
78984
78985         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
78986         required by C99.
78987
78988         Use `exit_failure' for xalloc and xmemcoll instead of their own
78989         private exit-failure variables.
78990         * lib/xalloc.h (xalloc_exit_failure): Remove.
78991         * lib/xmalloc.c: Likewise.  Include exitfail.h.
78992         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
78993         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
78994         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
78995         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
78996
78997 2003-07-20  Jim Meyering  <jim@meyering.net>
78998
78999         * modules/closeout (Depends-on): Add exitfail.
79000         Suggestion from Bruno Haible.
79001
79002 2003-07-19  Karl Berry  <karl@gnu.org>
79003
79004         * config/config.sub: update from prep.
79005
79006 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79007
79008         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79009         Remove.
79010         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79011         to test that it can stand by itself.  Include "exitfail.h".
79012         Clients should set exit_failure instead.
79013         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79014
79015 2003-07-18  Bruno Haible  <bruno@clisp.org>
79016
79017         * modules/getndelim2: New file.
79018         * modules/getline: Share files with module getndelim2.
79019         * modules/getnline: Depend on getndelim2 instead of sharing files with
79020         it. Add getnline.c to lib_SOURCES.
79021         * MODULES.html.sh (func_all_modules): Add getndelim2.
79022
79023 2003-07-18  Bruno Haible  <bruno@clisp.org>
79024
79025         * m4/getndelim2.m4: New file.
79026         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79027         invoke gl_PREREQ_GETNDELIM2.
79028         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79029         gl_PREREQ_GETNDELIM2.
79030         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79031         gl_GETNDELIM2.
79032
79033 2003-07-18  Bruno Haible  <bruno@clisp.org>
79034
79035         * lib/getndelim2.h: New file.
79036         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79037         getndelim2.h.
79038         (getndelim2): Make non-static. Change return type to ssize_t.
79039         * lib/getline.h: Change argument names.
79040         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79041         * lib/getnline.c: Include getndelim2.h.
79042
79043 2003-07-18  Andreas Schwab  <schwab@suse.de>
79044
79045         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79046
79047 2003-07-17  Karl Berry  <karl@gnu.org>
79048
79049         * config/config.sub: update from prep.
79050
79051 2003-07-17  Bruno Haible  <bruno@clisp.org>
79052
79053         * modules/getnline: New file.
79054         * modules/getline: Add lib/getndelim2.c to source file list.
79055         * MODULES.html.sh (func_all_modules): Add getnline.
79056
79057 2003-07-17  Bruno Haible  <bruno@clisp.org>
79058
79059         * m4/getnline.m4: New file.
79060
79061 2003-07-17  Bruno Haible  <bruno@clisp.org>
79062
79063         * m4/Makefile.am.in: Remove file.
79064         * m4/Makefile.am: Remove file.
79065         * m4/Makefile.in: Remove file.
79066
79067 2003-07-17  Bruno Haible  <bruno@clisp.org>
79068
79069         * lib/getnline.h: New file.
79070         * lib/getnline.c: New file.
79071         * lib/getndelim2.c: New file, extracted from getline.c.
79072         (getndelim2): Renamed from getdelim2, with added nmax argument.
79073         * lib/getline.c: Include getndelim2.c.
79074         (getdelim2): Moved out to getndelim2.c.
79075         (getline, getdelim): Update.
79076
79077 2003-07-17  Bruno Haible  <bruno@clisp.org>
79078
79079         * lib/Makefile.am: Remove file.
79080         * lib/Makefile.in: Remove file.
79081
79082 2003-07-17  Bruno Haible  <bruno@clisp.org>
79083
79084         * configure.in: Remove file.
79085         * Makefile.in: Remove file.
79086
79087 2003-07-17  Bruno Haible  <bruno@clisp.org>
79088
79089         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79090
79091 2003-07-16  Karl Berry  <karl@gnu.org>
79092
79093         * config/srclist-update: was running fixlicense twice, which caused
79094                 texinfo.tex to be nullified for some reason.  Simplify,
79095                 $gplsrc is no longer needed as far as I can see?
79096
79097 2003-07-16  Jim Meyering  <jim@meyering.net>
79098
79099         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79100
79101 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79102
79103         * config/srclist.txt: Get the following files from gettext-runtime/intl
79104         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79105         ref-del.sin.  From Bruno Haible.
79106         * config/srclist-update (fixfile): Change grep pattern again, since the
79107         previous fix didn't work (there was another trailing $).  Use
79108         '[$]' to escape the $s.
79109
79110 2003-07-15  Karl Berry  <karl@gnu.org>
79111
79112         * lib/vasnprintf.c: update from gettext.
79113
79114 2003-07-15  Karl Berry  <karl@gnu.org>
79115
79116         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79117         gets expanded when surrounded by '$'.
79118
79119 2003-07-15  Jim Meyering  <jim@meyering.net>
79120
79121         * modules/save-cwd: Don't depend on error.  From Derek Price.
79122
79123 2003-07-15  Jim Meyering  <jim@meyering.net>
79124
79125         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79126
79127 2003-07-14  Simon Josefsson  <jas@extundo.com>
79128
79129         * modules/mempcpy: New file.
79130         * MODULES.html.sh (func_all_modules): Add mempcpy.
79131
79132 2003-07-14  Simon Josefsson  <jas@extundo.com>
79133
79134         * m4/mempcpy.m4: New file.
79135
79136 2003-07-14  Simon Josefsson  <jas@extundo.com>
79137
79138         * lib/mempcpy.h: New file.
79139         * lib/mempcpy.c: New file.
79140
79141 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79142
79143         * modules/getdate, modules/posixtm: Depend on mktime.
79144
79145 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79146
79147         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
79148         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
79149         unicodeio.c, unicodeio.h, unlocked-io.h:
79150         Switch from LGPL to GPL.
79151
79152 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79153
79154         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
79155         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
79156         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
79157         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
79158         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
79159         updated automatically by ../config/srclist-update.  This changes
79160         their license from LPGL to GPL.
79161
79162 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79163
79164         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
79165         assumed to refer to the root of the most recent stable gettext version.
79166         * config/srclistvars.sh: Add defaults for eggert.
79167         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
79168         Match "This program" as well as "The program".  This is needed
79169         for gettext.
79170
79171 2003-07-14  Jim Meyering  <jim@meyering.net>
79172
79173         Don't emit diagnostics.  Let callers do that.
79174         * lib/save-cwd.c: Don't include "error.h".
79175         (save_cwd): Don't call error.  Ensure that errno is valid
79176         when returning nonzero.
79177
79178         * lib/save-cwd.h (restore_cwd): Update prototype.
79179         * lib/save-cwd.c (restore_cwd): Remove two parameters.
79180         Simplify.  Don't call error upon failure.  Let callers do that.
79181         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
79182         when auditing is enabled.  But don't bother updating the #if.
79183
79184 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
79185
79186         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
79187         it breaks C++ compilation.
79188         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
79189
79190 2003-07-10  Simon Josefsson  <jas@extundo.com>
79191
79192         * modules/strchrnul (Makefile.am): Add strchrnul.h.
79193
79194 2003-07-10  Jim Meyering  <jim@meyering.net>
79195
79196         * m4/clock_time.m4: Remove trailing blank.
79197         * m4/intmax_t.m4: Likewise.
79198
79199 2003-07-10  Jim Meyering  <jim@meyering.net>
79200
79201         * lib/vasnprintf.c: Remove trailing blanks.
79202         Make cpp indentation consistent.
79203
79204 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79205
79206         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
79207         posixver.c, strftime.c, strnlen.c, strverscmp.c:
79208         Switch from LGPL to GPL.
79209
79210 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79211
79212         * config/srclist.txt: Sort sublists.  Add
79213         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
79214         that differ from gnulib for one reason or another; we'd like this list
79215         to be smaller but for now let's document what we have.
79216
79217 2003-07-08  Paul Eggert  <eggert@twinsun.com>
79218
79219         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
79220         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
79221         and sweeter "eval x=$x".
79222         * config/srclist.txt: Get lib/argp* from glibc.
79223
79224 2003-07-07  Paul Eggert  <eggert@twinsun.com>
79225
79226         * lib/mktime.c: Fix some boundary cases and remove need for floating
79227         point.
79228
79229         Issue a compile-time diagnostic if time_t is floating point, or if
79230         two's complement arithmetic is not in effect, or if arithmetic
79231         right shift does not propagate the sign.  These assumptions were
79232         all in the original code but they weren't checked.
79233
79234         (TIME_T_MIDPOINT, verify): New macros.
79235         (__isleap): Remove; it has integer overflow problems.
79236         (leapyear): New function, without those problems.
79237         (ydhms_tm_diff): Remove; splitting into two parts.
79238         (ydhms_diff): New function, containing the arithmetic part of
79239         the old ydhms_tm_diff function.  Issue a compile-time
79240         diagnostic if we are not using C99 integer division.
79241         Avoid casts when possible.
79242         (guess_time_tm): New function, containing the checking part of
79243         the old ydhms_tm_diff function.  Return the new value, rather than
79244         the difference between it and the old.  Accept a new argument T
79245         so that *T specifies the old value.  Check for overflow in the result.
79246
79247         (__mktime_internal): Use a time_t offset, not a long int offset.
79248         This undoes the 2003-06-04 change, which is no longer needed now
79249         that we have better overflow checking.
79250         (localtime_offset): Likewise.
79251
79252         (__mktime_internal): Avoid harmful overflow on hosts where time_t
79253         and long are 64-bit but int is only 32-bit.
79254         (ydhms_diff): Use long int to store year1 and yday1.
79255         Issue a compile-time diagnostic if long int is not wide enough.
79256
79257         (__mktime_internal): Use long int to store adjusted year and yday.
79258         Use plain C rather than preprocessor commands, if that doesn't
79259         affect efficiency.
79260         Check for overflow (and try to repair) after each probe
79261         rather than checking only at the very end.  This avoids some bugs
79262         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
79263         does not equal GMT offset at maximum time).
79264         Use integer to check for overflow rather than floating point; this
79265         is more portable to non-IEEE hosts, and is a tad faster.
79266         When we detect that we are oscillating between two values,
79267         don't check whether tm_isdst has the requested value, since
79268         we already know the answer.  When tm_isdst has the wrong value,
79269         use a different heuristic to find the right one, based on the
79270         extreme values actually observed in practice in tz2003a,
79271         rather than the (overly optimistic) "previous 3 calendar quarters".
79272
79273         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79274         "T const" to accommodate glibc style.
79275         (check_result): Use less-confusing report format.  "long" -> "long int.
79276         (main): Likewise.
79277         Don't loop if the iteration overflows time_t.
79278         Allow a negative step in the iteration.
79279
79280 2003-07-06  Karl Berry  <karl@gnu.org>
79281
79282         * config/depcomp: update from automake.
79283         * config/config.sub: update from prep.
79284
79285 2003-07-03  Karl Berry  <karl@gnu.org>
79286
79287         * config/config.guess: update from prep.
79288
79289 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79290
79291         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79292         xreadlink.c now includes it unconditionally.
79293
79294 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79295
79296         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79297         having it depend on HAVE_SYS_TYPES_H.
79298
79299 2003-07-01  Bruno Haible  <bruno@clisp.org>
79300
79301         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79302         <sys/types.h> should be sufficient.
79303         Reported by Paul Eggert.
79304
79305 2003-06-26  Karl Berry  <karl@gnu.org>
79306
79307         * config/depcomp: update from automake.
79308
79309 2003-06-26  Bruno Haible  <bruno@clisp.org>
79310
79311         * modules/human: Depend on module stdbool.
79312
79313 2003-06-25  Bruno Haible  <bruno@clisp.org>
79314
79315         * modules/readlink: New file.
79316         * modules/xreadlink: Depend on it.
79317         * MODULES.html.sh (func_all_modules): Add readlink.
79318
79319 2003-06-25  Bruno Haible  <bruno@clisp.org>
79320
79321         * m4/readlink.m4: New file.
79322
79323 2003-06-25  Bruno Haible  <bruno@clisp.org>
79324
79325         * lib/readlink.c: New file.
79326
79327 2003-06-22  Karl Berry  <karl@gnu.org>
79328
79329         * config/srclist.txt: update mkinstalldirs from automake.
79330         * config/mkinstalldirs: update.
79331
79332 2003-06-22  Bruno Haible  <bruno@clisp.org>
79333
79334         Portability to mingw32.
79335         * m4/ssize_t.m4: New file, from GNU gettext.
79336         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
79337         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
79338
79339 2003-06-22  Bruno Haible  <bruno@clisp.org>
79340
79341         * modules/safe-read: Add m4/ssize_t.m4.
79342         * modules/xreadlink: Add m4/ssize_t.m4.
79343
79344 2003-06-20  Bruno Haible  <bruno@clisp.org>
79345
79346         Assume C89, so PARAMS isn't needed.
79347         * lib/unicodeio.h (PARAMS): Remove.
79348         * lib/unicodeio.c: Don't use PARAMS.
79349
79350 2003-06-18  Karl Berry  <karl@gnu.org>
79351
79352         * config/config.{guess,sub}: update from prep.
79353
79354 2003-06-18  Jim Meyering  <jim@meyering.net>
79355
79356         Merge changes from coreutils.
79357         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
79358         Remove explicit declarations of xmalloc and realloc.
79359         Include xalloc.h.
79360         (read_utmp): Remove anachronistic cast of xmalloc.
79361
79362 2003-06-17  Paul Eggert  <eggert@twinsun.com>
79363
79364         Assume C89, so PARAMS isn't needed.
79365         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
79366         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
79367         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
79368         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
79369         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
79370         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
79371         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
79372         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
79373         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
79374         lib/xstrtod.h, lib/xstrtol.h: Likewise.
79375         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
79376         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
79377         no longer needed. Anyway, config.h should always be included before any
79378         other file.
79379
79380 2003-06-11  Simon Josefsson  <jas@extundo.com>
79381
79382         * modules/sysexits: New file.
79383         * MODULES.html.sh (func_all_modules): Add sysexits.
79384
79385 2003-06-11  Simon Josefsson  <jas@extundo.com>
79386
79387         * lib/sysexit_.h: New file.
79388
79389 2003-06-11  Derek Price  <derek@ximbiot.com>
79390
79391         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
79392         necessary.
79393
79394 2003-06-11  Bruno Haible  <bruno@clisp.org>
79395
79396         * m4/sysexits.m4: New file.
79397
79398 2003-06-10  Simon Josefsson  <jas@extundo.com>
79399
79400         * lib/argp.h: New file, from glibc.
79401         * lib/argp-ba.c: New file, from glibc.
79402         * lib/argp-eexst.c: New file, from glibc.
79403         * lib/argp-fmtstream.c: New file, from glibc.
79404         * lib/argp-fmtstream.h: New file, from glibc.
79405         * lib/argp-fs-xinl.c: New file, from glibc.
79406         * lib/argp-help.c: New file, from glibc.
79407         * lib/argp-namefrob.h: New file, from glibc.
79408         * lib/argp-parse.c: New file, from glibc.
79409         * lib/argp-pv.c: New file, from glibc.
79410         * lib/argp-pvh.c: New file, from glibc.
79411         * lib/argp-xinl.c: New file, from glibc.
79412
79413 2003-06-10  Simon Josefsson  <jas@extundo.com>
79414
79415         * modules/strchrnul: New file.
79416
79417 2003-06-10  Simon Josefsson  <jas@extundo.com>
79418
79419         * modules/argp: New file.
79420
79421 2003-06-10  Simon Josefsson  <jas@extundo.com>
79422
79423         * m4/strchrnul.m4: New file.
79424
79425 2003-06-10  Simon Josefsson  <jas@extundo.com>
79426
79427         * lib/strchrnul.h: New file.
79428         * lib/strchrnul.c: New file.
79429
79430 2003-06-10  Bruno Haible  <bruno@clisp.org>
79431
79432         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
79433
79434 2003-06-07  Karl Berry  <karl@gnu.org>
79435
79436         * config/config.{guess,sub}: update from prep.
79437
79438 2003-06-07  Jim Meyering  <jim@meyering.net>
79439
79440         * modules/strtod: Use $(...) notation, not @...@ for
79441         AC_REPLACE'd variables.
79442         * modules/localcharset: Likewise.
79443
79444 2003-06-07  Jim Meyering  <jim@meyering.net>
79445
79446         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
79447         in place of my name in the copyright comment.
79448         Remove definition and uses of __P.
79449
79450         From coreutils.
79451         * lib/stat.c: Don't declare xmalloc explicitly.
79452         Instead, include "xalloc.h".
79453         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
79454         xrealloc, and xcalloc return values.
79455         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
79456         Improve comment.
79457         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
79458
79459 2003-06-07  Bruno Haible  <bruno@clisp.org>
79460
79461         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
79462         avoid AC_CONFIG_LINKS.
79463         * modules/fnmatch (Makefile.am): Use explicit creation rule for
79464         fnmatch.h, to avoid AC_CONFIG_LINKS.
79465         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
79466
79467 2003-06-07  Bruno Haible  <bruno@clisp.org>
79468
79469         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
79470         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
79471         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79472         directory.
79473         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
79474         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79475         directory.
79476
79477 2003-06-06  Jim Meyering  <jim@meyering.net>
79478
79479         Merge from coreutils.
79480         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
79481         Consolidate declarations and initializations of *_base* locals.
79482
79483         Merge from coreutils.
79484         This avoids a core dump on systems without GNU putenv,
79485         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
79486         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
79487         (unsetenv): New static function, from GNU libc.
79488         (rpl_putenv): Use it.
79489
79490         * lib/modechange.c: Remove trailing blanks.
79491
79492         Merge from coreutils.
79493         * lib/fsusage.c: Remove declaration of statfs.
79494         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
79495
79496         * lib/posixtm.c: Include <stdbool.h> unconditionally.
79497
79498 2003-06-06  Jim Meyering  <jim@meyering.net>
79499
79500         * lib/stdbool_.h: Renamed from stdbool.h.in.
79501
79502 2003-06-06  Jim Meyering  <jim@meyering.net>
79503             Bruno Haible  <bruno@clisp.org>
79504
79505         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
79506         Adjust Makefile.am snippet not to redirect directly to target.
79507         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
79508
79509 2003-06-05  Paul Eggert  <eggert@twinsun.com>
79510
79511         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
79512         mismatch, look in future quarters as well as past.  This fixes a
79513         bug when processing fall-backwards gaps immediately after a long
79514         period of daylight-saving time.
79515
79516         * lib/mktime.c: Assume freestanding C89 or better.
79517         (HAVE_LIMITS_H): Remove.  Assume it's 1.
79518         (__P): Remove; not used.
79519         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
79520         (mktime, not_equal_tm, print_tm, check_result,
79521         main): Use prototypes.  Use const * where appropriate.
79522         (main): Fix typo in testing code that uncovered by above changes.
79523         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
79524
79525 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79526
79527         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
79528         locale.h, localeconv.  This merges changes from coreutils.
79529
79530         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
79531         It can be removed after the next Autoconf is released.
79532         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
79533         needed.
79534
79535 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79536
79537         * lib/mktime.c: Fix Debian bug 177940
79538         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
79539         (localtime_offset): Now long int, not time_t, because we want it
79540         to be guaranteed to be signed.  All uses changed.
79541         (__mktime_internal): If overflow would occur when adding offset,
79542         don't add it.
79543
79544         Merge 'human' changes from coreutils.  Rewrite to support
79545         locale-specific notations like thousands separators.
79546         * lib/human.c: Simplify authorship notice.
79547         Include human.h immediately after config.h.
79548         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
79549         <limits.h>: Do not include, since human.h does.
79550         (SIZE_MAX, UINTMAX_MAX): New macros.
79551         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
79552         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
79553         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
79554         (power_letter): Renamed from suffixes.
79555         (generate_suffix_backwards): Remove.
79556         (adjust_value): Now takes int style (because of human.h changes)
79557         and long double value (for greater precision on some platforms).
79558         (group_number): New function.
79559         (human_readable): Use it.  Use integer options, not enum.
79560         Put the options before the sizes in the arg list.
79561         Support all the new options.
79562         The old human_readable function has been removed;
79563         use inttostr.h instead.
79564         (human_readable, default_block_size, humblock):
79565         Use uintmax_t, not int, for block sizes.
79566         (human_readable_inexact, block_size_types): Remove.
79567         (block_size_opts): New constant.
79568         (human_options): Renamed from human_block_size, with new signature
79569         that allows block sizes up to UINTMAX_MAX.  All callers changed.
79570         * lib/human.h: Add copyright and authorship notice.
79571         Include <limits.h> and <stdbool.h> unconditionally.
79572         (PARAMS): Remove.  All uses removed.
79573         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
79574         (enum human_inexact_style): Remove tag; now a nameless enum.
79575         (human_floor, human_ceiling, human_round_to_even): Now have
79576         values 2, 0, 1 rather than -1, 1, 0.
79577         (human_group_digits, human_suppress_point_zero, human_autoscale,
79578         human_base_1024, human_SI, human_B): New constants.
79579         (human_readable_inexact, human_block_size): Remove.
79580         (human_readable): Size args are now uintmax_t, not int.
79581         (human_options): New decl.
79582
79583         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
79584         unnecessary now that we assume C89 or better.  This change
79585         imported from coreutils.
79586
79587         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79588         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
79589         in the 2003-05-30 sync from glibc.
79590
79591         .h files should stand alone, but we shouldn't include <sys/types.h>
79592         if we can get away with just <stddef.h>.
79593
79594         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
79595         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
79596         rather than <sys/types.h>, as we merely need size_t.
79597         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
79598         to get size_t.
79599         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
79600         Include <stdio.h>, to get FILE.
79601         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
79602         memcasecmp.h has included <stddef.h> and all we need is size_t.
79603         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
79604         our interface, instead of including <sys/types.h>
79605
79606 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79607
79608         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
79609         now, as glibc mktime is buggy on non-glibc systems.
79610
79611 2003-06-03  Karl Berry  <karl@gnu.org>
79612
79613         * config/config.sub: update from prep.
79614
79615 2003-06-02  Paul Eggert  <eggert@twinsun.com>
79616
79617         [from coreutils]
79618         Fix some minor time-related bugs with POSIX time arguments.
79619         Some valid time stamps were being rejected (notably -1, and
79620         time stamps before 1900 on 64-bit hosts).  And some invalid
79621         time stamps were being accepted, e.g. September 31.
79622
79623         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
79624         that we can return (time_t) -1 successfully.
79625         * lib/posixtm.c: Likewise.
79626         [HAVE_STDBOOL_H]: Include <stdbool.h>.
79627         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
79628         (t): Remove static var.
79629         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
79630         of static var.  All uses changed.
79631         (year): Do not reject years before 1900; they can occur with
79632         64-bit time_t.
79633         (posix_time_parse): Do not check for out-of-range components;
79634         that is now the caller's responsibility, since our checks were
79635         only approximations.
79636         (posixtime): Use mktime to check for out-of-range components,
79637         since it knows them exactly.
79638         If mktime returns (time_t) -1, check whether an error actually occurred
79639         by invoking localtime on -1.
79640         (main) [TEST_POSIXTIME]: Check for input data errors, and report
79641         posixtime failures better.
79642         Improve the test data (in comments only).
79643
79644 2003-06-02  Karl Berry  <karl@gnu.org>
79645
79646         * config/mkinstalldirs (version): new variable.
79647         (--version): new option.
79648         (usage): improve message.
79649
79650 2003-05-30  Karl Berry  <karl@gnu.org>
79651
79652         * lib/mktime.c: update from libc.
79653
79654 2003-05-30  Bruno Haible  <bruno@clisp.org>
79655
79656         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
79657         * config/config.rpath: Upgrade to gettext-0.12.1.
79658
79659 2003-05-30  Bruno Haible  <bruno@clisp.org>
79660
79661         * m4/gettext.m4: Upgrade to gettext-0.12.1.
79662         * m4/nls.m4: New file, from gettext-0.12.1.
79663         * m4/po.m4: New file, from gettext-0.12.1.
79664         * m4/progtest.m4: Upgrade to gettext-0.12.1.
79665
79666 2003-05-30  Bruno Haible  <bruno@clisp.org>
79667
79668         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
79669         * lib/localcharset.h: Likewise.
79670         * lib/localcharset.c: Likewise.
79671
79672 2003-05-29  Karl Berry  <karl@gnu.org>
79673
79674         * config/config.rpath: update from gettext.
79675
79676 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79677
79678         Assume the headers required for C89 freestanding compilers.
79679         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
79680         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
79681         * m4/human.m4 (gl_HUMAN): Likewise.
79682         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
79683         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
79684         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79685         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
79686         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79687         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
79688
79689 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79690
79691         Assume the headers required for C89 freestanding compilers.
79692         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
79693         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
79694         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
79695         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
79696         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
79697         define, since <limits.h> is guaranteed to do that.
79698         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
79699         * lib/exclude.c: Include <stdbool.h> unconditionally.
79700         * lib/tempname.c: Include <stddef.h> unconditionally.
79701         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
79702         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
79703         <stddef.h> does that.
79704         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
79705         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
79706         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
79707         needed.
79708         * lib/xstrtol.c: Likewise.
79709         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
79710         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
79711
79712         * lib/addext.c (addext): Use assignment rather than cast, to avoid
79713         warnings on some platforms.
79714
79715         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79716         arbitrarily.
79717
79718 2003-05-26  Jim Meyering  <jim@meyering.net>
79719
79720         Merge in a change from coreutils:
79721         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
79722         that is guaranteed to be `no'.  Use `no_such_member' to indicate
79723         that condition, rather than `-1' which is slightly misleading.
79724         Change the name of the cache variable to have the gl_ prefix.
79725         Prompted by a patch from Richard Dawe for DJGPP.
79726
79727 2003-05-24  Karl Berry  <karl@gnu.org>
79728
79729         * config/config.guess: update from prep.
79730
79731 2003-05-22  Karl Berry  <karl@gnu.org>
79732
79733         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
79734
79735 2003-05-20  Karl Berry  <karl@gnu.org>
79736
79737         * config/config.guess: update from prep.
79738
79739 2003-05-18  Karl Berry  <karl@gnu.org>
79740
79741         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
79742         might actually be set by the user.
79743
79744         * config/depcomp, install-sh, mdate-sh: update from automake.
79745
79746 2003-05-17  Bruno Haible  <bruno@clisp.org>
79747
79748         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
79749         invalid expansion for AC_EGREP_CPP.
79750         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
79751         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
79752         Suggested by Akim Demaille <akim@epita.fr> in
79753         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
79754
79755 2003-05-12  Jim Meyering  <jim@meyering.net>
79756
79757         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
79758         the space-padded-by-default conversion specifiers, %e, %k, %l.
79759
79760 2003-05-12  Bruno Haible  <bruno@clisp.org>
79761
79762         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
79763         the string is longer than 4 KB.
79764
79765 2003-05-11  Karl Berry  <karl@gnu.org>
79766
79767         * config/config.{guess,sub}: update from prep.
79768
79769 2003-05-09  Bruno Haible  <bruno@clisp.org>
79770
79771         * modules/error: Add m4/strerror_r.m4 to file list.
79772
79773 2003-05-03  Bruno Haible  <bruno@clisp.org>
79774
79775         Upgrade to Unicode-4.0.
79776         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
79777         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
79778         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
79779         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
79780         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
79781         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
79782         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
79783         Change width of U+E0100..U+E01EF from 1 to 0.
79784
79785 2003-04-25  Jim Meyering  <jim@meyering.net>
79786
79787         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
79788         of type size_t, not int.
79789
79790 2003-04-25  Bruno Haible  <bruno@clisp.org>
79791
79792         * lib/copy-file.c: Include <stddef.h>, for size_t.
79793
79794 2003-04-21  Paul Eggert  <eggert@twinsun.com>
79795
79796         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
79797         code which expansion is under static control.  Patch imported from
79798         Akim Demaille's patch to Bison; see
79799         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
79800
79801 2003-04-14  Bruno Haible  <bruno@clisp.org>
79802
79803         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
79804
79805 2003-04-11  Jim Meyering  <jim@meyering.net>
79806
79807         Merge changes from Coreutils.
79808
79809         2003-03-22  Jim Meyering  <jim@meyering.net>
79810
79811         * lib/strftime.c (widen): Cast alloca return value to proper type.
79812
79813         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
79814
79815         From GNU libc.
79816         * lib/strftime.c (my_strftime): Handle very large width
79817         specifications for numeric values correctly.  Improve checks for
79818         overflow.
79819
79820         2003-01-19  Jim Meyering  <jim@meyering.net>
79821
79822         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
79823         definitions.
79824         (nl_get_alt_digit) [! defined my_strftime]: Define.
79825         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
79826         _nl_get_alt_digit and _nl_get_walt_digit.
79827
79828         * lib/strftime.c (my_strftime): Merge in locale-related changes from
79829         libc. These changes have no effect outside of _LIBC.
79830
79831 2003-04-10  Bruno Haible  <bruno@clisp.org>
79832
79833         * modules/findprog: New file.
79834         * MODULES.html.sh (func_all_modules): Add it.
79835
79836 2003-04-10  Bruno Haible  <bruno@clisp.org>
79837
79838         * m4/findprog.m4: New file.
79839         * m4/eaccess.m4: New file.
79840
79841 2003-04-10  Bruno Haible  <bruno@clisp.org>
79842
79843         * lib/findprog.h: New file, from GNU gettext.
79844         * lib/findprog.c: New file, from GNU gettext.
79845
79846 2003-04-05  Jim Meyering  <jim@meyering.net>
79847
79848         Merge changes from Coreutils.
79849
79850         * lib/exclude.h (PARAMS): Remove definition and uses.
79851         * lib/exclude.c: Remove uses of `PARAMS'.
79852
79853         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
79854         Add test-cases for DOS filenames. Declare program_name.
79855         (main): Set up program_name.  Patch by Rich Dawe.
79856
79857         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79858         error from mntctl.
79859         Use mntctl's return value to drive the entry-processing loop, since
79860         we can't rely on the value of the vmt_length member in the last
79861         entry.  On some systems doing so could result in exhausting
79862         virtual memory.  Based in part on a patch from Mike Jetzer.
79863
79864 2003-04-04  Bruno Haible  <bruno@clisp.org>
79865
79866         * modules/linebreak: New file.
79867         * MODULES.html.sh (func_all_modules): Add it.
79868
79869 2003-04-04  Bruno Haible  <bruno@clisp.org>
79870
79871         * m4/linebreak.m4: New file.
79872
79873 2003-04-04  Bruno Haible  <bruno@clisp.org>
79874
79875         * lib/linebreak.h: New file, from GNU gettext.
79876         * lib/linebreak.c: New file, from GNU gettext with slight
79877         modifications.
79878         * lib/lbrkprop.h: New file, from GNU gettext.
79879
79880 2003-04-03  Bruno Haible  <bruno@clisp.org>
79881
79882         * modules/utf8-ucs4: New file.
79883         * modules/utf16-ucs4: New file.
79884         * modules/ucs4-utf8: New file.
79885         * modules/ucs4-utf16: New file.
79886         * MODULES.html.sh (func_all_modules): Add them.
79887
79888 2003-04-03  Bruno Haible  <bruno@clisp.org>
79889
79890         * m4/utf-ucs4.m4: New file.
79891         * m4/ucs4-utf.m4: New file.
79892
79893 2003-04-03  Bruno Haible  <bruno@clisp.org>
79894
79895         * lib/utf8-ucs4.h: New file, from GNU gettext.
79896         * lib/utf16-ucs4.h: New file, from GNU gettext.
79897         * lib/ucs4-utf8.h: New file, from GNU gettext.
79898         * lib/ucs4-utf16.h: New file, from GNU gettext.
79899
79900 2003-04-02  Bruno Haible  <bruno@clisp.org>
79901
79902         * modules/binary-io: New file.
79903         * MODULES.html.sh (func_all_modules): Add it.
79904
79905 2003-04-02  Bruno Haible  <bruno@clisp.org>
79906
79907         * lib/binary-io.h: New file, from GNU gettext.
79908
79909 2003-04-01  Bruno Haible  <bruno@clisp.org>
79910
79911         * modules/pathname: New file.
79912         * MODULES.html.sh (func_all_modules): Add it.
79913
79914 2003-04-01  Bruno Haible  <bruno@clisp.org>
79915
79916         * lib/pathname.h: New file, from GNU gettext.
79917         * lib/concatpath.c: New file, from GNU gettext.
79918
79919 2003-03-30  Bruno Haible  <bruno@clisp.org>
79920
79921         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
79922
79923 2003-03-30  Bruno Haible  <bruno@clisp.org>
79924
79925         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
79926         function chown() doesn't exist.
79927
79928 2003-03-28  Bruno Haible  <bruno@clisp.org>
79929
79930         * modules/copy-file: New file.
79931         * MODULES.html.sh (func_all_modules): Add it.
79932
79933 2003-03-28  Bruno Haible  <bruno@clisp.org>
79934
79935         * m4/copy-file.m4: New file.
79936
79937 2003-03-28  Bruno Haible  <bruno@clisp.org>
79938
79939         * lib/copy-file.h: New file, from GNU gettext.
79940         * lib/copy-file.c: New file, from GNU gettext.
79941
79942 2003-03-18  Jim Meyering  <jim@meyering.net>
79943
79944         * lib/quote.c (quote_n): Fix typo in comment.
79945
79946 2003-03-18  Bruno Haible  <bruno@clisp.org>
79947
79948         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
79949         checking.
79950         * m4/onceonly_2_57.m4: Likewise.
79951
79952 2003-03-17  Bruno Haible  <bruno@clisp.org>
79953
79954         * m4/onceonly.m4: Require autoconf 2.54 or newer.
79955         (m4_quote): Remove macro.
79956         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
79957
79958 2003-03-14  Jim Meyering  <jim@meyering.net>
79959
79960         Merge changes from Coreutils.
79961         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
79962         to be const, in order to avoid warnings.
79963         (obstack_room): Likewise.
79964         (obstack_empty_p): Likewise.
79965
79966 2003-03-14  Bruno Haible  <bruno@clisp.org>
79967
79968         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
79969         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
79970
79971 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79972
79973         Merge changes from Bison.
79974         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
79975         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
79976         when compiling Bison 1.875's `bitset bset = obstack_alloc
79977         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
79978         * lib/hash.c: Include <stdbool.h> unconditionally.
79979
79980 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79981
79982         * m4/onceonly.m4 (m4_quote): New macro.
79983         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
79984         Quote AC_FOREACH variable-expansions properly.
79985
79986 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79987
79988         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
79989
79990 2003-03-09  Paul Eggert  <eggert@twinsun.com>
79991
79992         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
79993         Reported by Bruce Becker; see:
79994         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
79995
79996 2003-03-03  Paul Eggert  <eggert@twinsun.com>
79997             Bruno Haible  <bruno@clisp.org>
79998
79999         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80000         Reported by John Hughes, see
80001         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80002
80003 2003-02-20  Bruno Haible  <bruno@clisp.org>
80004
80005         * MODULES.html.sh (func_all_modules): Add poll.
80006
80007 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80008
80009         * modules/poll: New file.
80010
80011 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80012
80013         * lib/poll_.h: New file.
80014         * lib/poll.c: New file.
80015
80016 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80017
80018         * m4/poll.m4: New file.
80019
80020 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80021
80022         * modules/mathl: New file.
80023
80024 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80025
80026         * lib/mathl.h: New file.
80027         * lib/acosl.c: New file.
80028         * lib/asinl.c: New file.
80029         * lib/atanl.c: New file.
80030         * lib/ceill.c: New file.
80031         * lib/cosl.c: New file.
80032         * lib/expl.c: New file.
80033         * lib/floorl.c: New file.
80034         * lib/frexpl.c: New file.
80035         * lib/ldexpl.c: New file.
80036         * lib/logl.c: New file.
80037         * lib/sincosl.c: New file.
80038         * lib/sinl.c: New file.
80039         * lib/sqrtl.c: New file.
80040         * lib/tanl.c: New file.
80041         * lib/trigl.c: New file.
80042         * lib/trigl.h: New file.
80043
80044 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80045
80046         * m4/mathl.m4: New file.
80047
80048 2003-02-18  Bruno Haible  <bruno@clisp.org>
80049
80050         * MODULES.html.sh (func_all_modules): Add mathl.
80051
80052 2003-02-17  Bruno Haible  <bruno@clisp.org>
80053
80054         * modules/mkdtemp: New module.
80055         * MODULES.html.sh (func_all_modules): Add it.
80056
80057 2003-02-17  Bruno Haible  <bruno@clisp.org>
80058
80059         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80060
80061 2003-02-17  Bruno Haible  <bruno@clisp.org>
80062
80063         * lib/mkdtemp.h: New file, from GNU gettext.
80064         * lib/mkdtemp.c: New file, from GNU gettext.
80065
80066 2003-02-02  Jim Meyering  <jim@meyering.net>
80067
80068         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80069         e.g. glibc-2.2.93.
80070
80071 2003-01-31  Bruno Haible  <bruno@clisp.org>
80072
80073         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80074         'rpl_rename'.
80075         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80076         'rpl_strnlen'.
80077         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80078         'rpl_strtod'.
80079         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80080         'rpl_utime'.
80081
80082 2003-01-31  Bruno Haible  <bruno@clisp.org>
80083
80084         * lib/rename.c: #undef rename before defining rpl_rename.
80085         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80086
80087 2003-01-30  Bruno Haible  <bruno@clisp.org>
80088
80089         * modules/vasnprintf, modules/vasprintf: New modules.
80090         * MODULES.html.sh (func_all_modules): Add them.
80091
80092 2003-01-30  Bruno Haible  <bruno@clisp.org>
80093
80094         * m4/signed.m4: New file, from GNU gettext.
80095         * m4/longdouble.m4: New file, from GNU gettext.
80096         * m4/wchar_t.m4: New file, from GNU gettext.
80097         * m4/wint_t.m4: New file, from GNU gettext.
80098         * m4/vasnprintf.m4: New file.
80099         * m4/vasprintf.m4: New file.
80100
80101 2003-01-30  Bruno Haible  <bruno@clisp.org>
80102
80103         * lib/printf-args.h: New file, from GNU gettext.
80104         * lib/printf-args.c: New file, from GNU gettext.
80105         * lib/printf-parse.h: New file, from GNU gettext.
80106         * lib/printf-parse.c: New file, from GNU gettext.
80107         * lib/vasnprintf.h: New file, from GNU gettext.
80108         * lib/vasnprintf.c: New file, from GNU gettext.
80109         * lib/asnprintf.c: New file, from GNU gettext.
80110         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80111         * lib/vasprintf.c: New file, from GNU gettext.
80112         * lib/asprintf.c: New file, from GNU gettext.
80113
80114 2003-01-29  Bruno Haible  <bruno@clisp.org>
80115
80116         * modules/stpncpy: New module.
80117         * MODULES.html.sh (func_all_modules): Add it.
80118
80119 2003-01-29  Bruno Haible  <bruno@clisp.org>
80120
80121         * m4/stpncpy.m4: New file.
80122
80123 2003-01-29  Bruno Haible  <bruno@clisp.org>
80124
80125         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80126         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80127
80128 2003-01-28  Bruno Haible  <bruno@clisp.org>
80129
80130         * modules/c-ctype: New module.
80131         * MODULES.html.sh (func_all_modules): Add it.
80132
80133 2003-01-28  Bruno Haible  <bruno@clisp.org>
80134
80135         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80136         Paul Eggert.
80137         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80138         Paul Eggert.
80139
80140 2003-01-27  Bruno Haible  <bruno@clisp.org>
80141
80142         * modules/xsetenv: New module.
80143         * MODULES.html.sh (func_all_modules): Add it.
80144
80145 2003-01-27  Bruno Haible  <bruno@clisp.org>
80146
80147         * lib/xsetenv.h: New file, from GNU gettext.
80148         * lib/xsetenv.c: New file, from GNU gettext.
80149
80150 2003-01-23  Jim Meyering  <jim@meyering.net>
80151
80152         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
80153         from working on systems without dirfd (at least Irix and OSF1/Tru64).
80154
80155 2003-01-23  Bruno Haible  <bruno@clisp.org>
80156
80157         * modules/minmax: New module.
80158         * MODULES.html.sh (func_all_modules): Add it.
80159
80160 2003-01-23  Bruno Haible  <bruno@clisp.org>
80161
80162         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
80163         Eggert.
80164
80165 2003-01-22  Bruno Haible  <bruno@clisp.org>
80166
80167         * modules/exit: New module.
80168         * MODULES.html.sh (func_all_modules): Add it.
80169
80170 2003-01-22  Bruno Haible  <bruno@clisp.org>
80171
80172         * lib/exit.h: New file, from GNU gettext.
80173
80174 2003-01-19  Bruno Haible  <bruno@clisp.org>
80175
80176         * gnulib-tool: Recognize option --extract-maintainer.
80177         (func_get_maintainer): New function.
80178         * modules/*: Add Maintainer entry.
80179
80180 2003-01-16  Jim Meyering  <jim@meyering.net>
80181
80182         * m4/regex.m4: The `regex' struct is both input and output.
80183         Initialize it before each use.  Patch by Tim Waugh.
80184
80185 2003-01-16  Bruno Haible  <bruno@clisp.org>
80186
80187         * MODULES.html.sh: Add a table of contents. Add the module name as
80188         leftmost column. Add hyperlinks.
80189
80190 2003-01-15  Bruno Haible  <bruno@clisp.org>
80191
80192         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
80193
80194 2003-01-15  Bruno Haible  <bruno@clisp.org>
80195
80196         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
80197         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
80198         suffix.
80199
80200 2003-01-15  Bruno Haible  <bruno@clisp.org>
80201
80202         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
80203
80204 2003-01-15  Bruno Haible  <bruno@clisp.org>
80205
80206         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
80207         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
80208
80209 2003-01-14  Jim Meyering  <jim@meyering.net>
80210
80211         * lib/same.c (same_name): Tweak a comment.
80212
80213 2003-01-14  Bruno Haible  <bruno@clisp.org>
80214
80215         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
80216         when a string comparison is sufficient.
80217
80218 2003-01-14  Bruno Haible  <bruno@clisp.org>
80219
80220         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
80221         'unsigned int'.
80222
80223 2003-01-14  Bruno Haible  <bruno@clisp.org>
80224
80225         * lib/hash-pjw.c: Add comment about low quality of this function.
80226
80227 2003-01-13  Bruno Haible  <bruno@clisp.org>
80228
80229         * modules/stpcpy: Distribute lib/stpcpy.h.
80230         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
80231
80232 2003-01-13  Bruno Haible  <bruno@clisp.org>
80233
80234         * modules/*: Add a description.
80235         * modules/strpbrk: Fix Makefile.am snippet.
80236         * modules/strtoimax: Fix dependencies.
80237         * modules/strtoumax: Likewise.
80238
80239 2003-01-13  Bruno Haible  <bruno@clisp.org>
80240
80241         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
80242         * modules/alloca (Makefile.am): All object files depend on alloca.h.
80243         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
80244
80245 2003-01-13  Bruno Haible  <bruno@clisp.org>
80246
80247         * gnulib-tool (func_create_testdir): Store config/* files in the main
80248         directory.
80249         * config.rpath: Move to ...
80250         * config/config.rpath: ... here.
80251         * modules/gettext: Contains config/config.rpath, not config.rpath.
80252         * modules/iconv: Likewise.
80253
80254 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80255
80256         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80257         to avoid collisions with libcurses and libreadline.
80258
80259         * m4/getstr.m4: Remove.
80260         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
80261
80262 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80263
80264         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80265         to avoid collisions with libcurses and libreadline.
80266
80267         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
80268         * lib/getstr.h, getstr.c: Remove.
80269         * lib/getline.c: Include "getline.h", to check interface.
80270         Move body of old getstr.c here: this defines MIN_CHUNK and
80271         declares getdelim2, which is renamed from getstr.
80272         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
80273
80274         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80275         All uses changed.
80276         * lib/linebuffer.h: Likewise.
80277         (readline): Remove backward-compatibility macro.
80278
80279 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80280
80281         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80282         to avoid collisions with libcurses and libreadline.
80283         * getstr: Remove.
80284         * MODULES.html.sh: Remove getstr.
80285         * modules/getline: Depend on unlocked-io, not getstr.
80286
80287 2003-01-12  Jim Meyering  <jim@meyering.net>
80288
80289         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80290
80291 2003-01-10  Bruno Haible  <bruno@clisp.org>
80292
80293         * modules/alloca: Change Makefile.am requirements. Simplify Include
80294         requirements. Add lib/alloca_.h to file list.
80295
80296 2003-01-10  Bruno Haible  <bruno@clisp.org>
80297
80298         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80299
80300 2003-01-10  Bruno Haible  <bruno@clisp.org>
80301
80302         * lib/alloca_.h: New file.
80303         * lib/getdate.y: Unconditionally include alloca.h.
80304         * lib/makepath.c: Likewise.
80305         * lib/setenv.c: Likewise.
80306         * lib/userspec.c: Likewise.
80307
80308 2003-01-09  Karl Berry  <karl@gnu.org>
80309
80310         * MODULES.html.sh: include `dirname $0` in PATH, to find
80311         gnulib-tool.
80312
80313 2003-01-09  Bruno Haible  <bruno@clisp.org>
80314
80315         * modules/stdbool: Change configure.ac, Makefile.am requirements.
80316         Simplify Include requirements. Add lib/stdbool.h.in to file list.
80317
80318 2003-01-09  Bruno Haible  <bruno@clisp.org>
80319
80320         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
80321
80322 2003-01-09  Bruno Haible  <bruno@clisp.org>
80323
80324         * lib/stdbool.h.in: New file.
80325
80326 2003-01-09  Bruno Haible  <bruno@clisp.org>
80327
80328         * gnulib-tool (func_all_modules): Ignore files ending in ~.
80329         * MODULES.html.sh: Likewise.
80330
80331 2003-01-08  Jim Meyering  <jim@meyering.net>
80332
80333         * lib/full-write.c: Undefine and define-away `const' after inclusion
80334         of errno.h, not before.  Suggestion from Bruno Haible.
80335
80336 2003-01-08  Bruno Haible  <bruno@clisp.org>
80337
80338         * modules/full-read: Depend on full-write.
80339
80340 2003-01-08  Bruno Haible  <bruno@clisp.org>
80341
80342         * lib/safe-read.c: Include specification header first, to ensure its
80343         selfcontainedness.
80344         * lib/full-write.c: Likewise.
80345
80346 2003-01-07  Jim Meyering  <jim@meyering.net>
80347
80348         * lib/full-write.c: Rework so that it may serve to define full_read,
80349         too.
80350         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
80351
80352 2003-01-07  Bruno Haible  <bruno@clisp.org>
80353
80354         * lib/strtoimax.c: Include <stdint.h> as an alternative to
80355         <inttypes.h>.
80356         * lib/xstrtol.h: Likewise.
80357         * lib/xstrtoimax.c: Likewise.
80358         * lib/xstrtoumax.c: Likewise.
80359         * lib/human.h: Likewise.
80360
80361         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
80362         on systems that have <inttypes.h> but not <stdint.h>.
80363
80364 2003-01-07  Bruno Haible  <bruno@clisp.org>
80365
80366         * MODULES.html.sh: Add copyright notice.
80367         (missed_files): Omit CVS directory entries.
80368         (func_module): Make it work with sed-3.02.
80369         * MODULES.txt: Remove file.
80370
80371 2003-01-06  Jim Meyering  <jim@meyering.net>
80372
80373         * lib/version-etc.c: Update year in translatable copyright string.
80374
80375 2003-01-03  Karl Berry  <karl@gnu.org>
80376
80377         * config/config.{guess,sub}: update from prep.
80378
80379 2003-01-02  Karl Berry  <karl@gnu.org>
80380
80381         * doc/COPYING.DOC: belatedly updated to 1.2.
80382
80383 2003-01-01  Karl Berry  <karl@gnu.org>
80384
80385         * gnulib-tool (func_verify_module): report module name $module in
80386         error message, not $1.
80387         * gnulib-tool (create-testdir): don't complain if destdir couldn't
80388         be created, only if it doesn't exist.
80389         * gnulib-tool (last_checkin_date): don't expand the $Date here.
80390
80391 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80392
80393         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
80394
80395 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80396
80397         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
80398         memcmp if strcoll doesn't work.
80399
80400 2002-12-31  Bruno Haible  <bruno@clisp.org>
80401
80402         * lib/utime.c (utime_null): No need to call ftruncate if the file was
80403         nonempty.
80404
80405 2002-12-31  Bruno Haible  <bruno@clisp.org>
80406
80407         * lib/memcoll.c (STRCOLL): New macro.
80408         (memcoll): Use it.
80409
80410 2002-12-31  Bruno Haible  <bruno@clisp.org>
80411
80412         * lib/localcharset.h: New file.
80413         * lib/localcharset.c: Include it.
80414         * lib/unicodeio.c: Likewise.
80415
80416 2002-12-31  Bruno Haible  <bruno@clisp.org>
80417
80418         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
80419         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
80420
80421 2002-12-31  Bruno Haible  <bruno@clisp.org>
80422
80423         * lib/getline.h: Include <stddef.h>, for size_t.
80424
80425         * lib/unicodeio.h: Include <stddef.h>, for size_t.
80426         * lib/unicodeio.c: Don't include <stddef.h>.
80427
80428 2002-12-31  Bruno Haible  <bruno@clisp.org>
80429
80430         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
80431         HAVE_TM_ZONE.
80432
80433 2002-12-24  Karl Berry  <karl@gnu.org>
80434
80435         * config/config.guess: update from prep.
80436
80437 2002-12-24  Bruno Haible  <bruno@clisp.org>
80438
80439         General infrasructure.
80440         * m4/README: Rewritten.
80441         * m4/onceonly.m4: New file.
80442         * m4/onceonly_2_57.m4: New file.
80443
80444         Module atexit.
80445         * m4/atexit.m4: New file.
80446
80447         Module strtod.
80448         * m4/strtod.m4: New file.
80449
80450         Module strtol.
80451         * m4/strtol.m4: New file.
80452
80453         Module strtoul.
80454         * m4/strtoul.m4: New file.
80455
80456         Module memchr.
80457         * m4/memchr.m4: New file.
80458
80459         Module memcmp.
80460         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
80461         (jm_FUNC_MEMCMP): Invoke it.
80462
80463         Module memcpy.
80464         * m4/memcpy.m4: New file.
80465
80466         Module memmove.
80467         * m4/memmove.m4: New file.
80468
80469         Module memset.
80470         * m4/memset.m4: New file.
80471
80472         Module strcspn.
80473         * m4/strcspn.m4: New file.
80474
80475         Module strpbrk.
80476         * m4/strpbrk.m4: New file.
80477
80478         Module strstr.
80479         * m4/strstr.m4: New file.
80480
80481         Module strerror.
80482         * m4/strerror.m4: New file.
80483
80484         Module mktime.
80485         * m4/mktime.m4: Renamed from jm-mktime.m4.
80486         (gl_PREREQ_MKTIME): New macro.
80487         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
80488
80489         Module malloc.
80490         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
80491         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
80492         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
80493
80494         Module realloc.
80495         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
80496         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
80497         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
80498
80499         Module strftime.
80500         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
80501         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
80502         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
80503         gl_TM_GMTOFF.
80504         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
80505
80506         Module xalloc.
80507         * m4/xalloc.m4: New file.
80508
80509         Module alloca.
80510         * m4/alloca.m4: New file.
80511
80512         Module putenv.
80513         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
80514         (jm_FUNC_PUTENV): Invoke it.
80515
80516         Module setenv.
80517         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
80518         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
80519         when invoked twice.
80520         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
80521         gt_FUNC_SETENV.
80522
80523         Module memrchr.
80524         * m4/memrchr.m4: New file.
80525
80526         Module stpcpy.
80527         * m4/stpcpy.m4: New file.
80528
80529         Module strcase.
80530         * m4/strcase.m4: New file.
80531
80532         Module strdup.
80533         * m4/strdup.m4: New file.
80534
80535         Module strnlen.
80536         * m4/strnlen.m4: New file.
80537
80538         Module strndup.
80539         * m4/strndup.m4: New file.
80540
80541         Module xstrtod.
80542         * m4/xstrtod.m4: New file.
80543
80544         Module xstrtol.
80545         * m4/xstrtol.m4: New file.
80546
80547         Module getdate.
80548         * m4/getdate.m4: New file.
80549
80550         Module unlocked-io.
80551         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
80552         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
80553         * m4/jm-glibc-io.m4n: Remove file.
80554
80555         Module long-options.
80556         * m4/long-options.m4: New file.
80557
80558         Module md5.
80559         * m4/md5.m4: New file.
80560
80561         Module sha.
80562         * m4/sha.m4: New file.
80563
80564         Module getstr.
80565         * m4/getstr.m4: New file.
80566
80567         Module getline.
80568         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
80569         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
80570         <sys/types.h>, for size_t. Use the function name gnu_getline, not
80571         simply getline. Infoke gl_PREREQ_GETLINE.
80572
80573         Module obstack.
80574         * m4/obstack.m4: New file.
80575
80576         Module hash.
80577         * m4/hash.m4: New file.
80578
80579         Module readtokens.
80580         * m4/readtokens.m4: New file.
80581
80582         Module strverscmp.
80583         * m4/strverscmp.m4: New file.
80584
80585         Module stdbool.
80586         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
80587         OSF/1.
80588
80589         Module strtoll.
80590         * m4/strtoll.m4: New file.
80591
80592         Module strtoull.
80593         * m4/strtoull.m4: New file.
80594
80595         Module strtoimax.
80596         * m4/strtoimax.m4: New file.
80597
80598         Module strtoumax.
80599         * m4/strtoumax.m4: New file.
80600
80601         Module xstrtoimax.
80602         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
80603         jm_AC_PREREQ_XSTRTOIMAX.
80604         Moved the strtol prerequisites to strtol.m4.
80605         Moved the strtoll prerequisites to strtoll.m4.
80606         Moved the strtoimax prerequisites to strtoimax.m4.
80607
80608         Module xstrtoumax.
80609         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
80610         jm_AC_PREREQ_XSTRTOUMAX.
80611         Moved the strtoul prerequisites to strtoul.m4.
80612         Moved the strtoull prerequisites to strtoull.m4.
80613         Moved the strtoumax prerequisites to strtoumax.m4.
80614
80615         Module chown.
80616         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
80617         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
80618
80619         Module dup2.
80620         * m4/dup2.m4: New file.
80621
80622         Module ftruncate.
80623         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
80624         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
80625
80626         Module getgroups.
80627         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
80628         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
80629
80630         Module gettimeofday.
80631         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
80632         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
80633         gl_PREREQ_GETTIMEOFDAY.
80634
80635         Module mkdir.
80636         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
80637         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
80638
80639         Module mkstemp.
80640         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
80641         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
80642         jm_AC_TYPE_UINTMAX_T.
80643         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
80644
80645         Module stat.
80646         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
80647         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
80648
80649         Module lstat.
80650         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
80651         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
80652
80653         Module timespec.
80654         * m4/timespec.m4 (gl_TIMESPEC): New macro.
80655         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
80656         * m4/st_mtim.m4: Indentation.
80657
80658         Module nanosleep.
80659         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
80660         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
80661         gl_PREREQ_NANOSLEEP.
80662
80663         Module regex.
80664         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
80665         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
80666         (gl_REGEX): New macro.
80667
80668         Module rename.
80669         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
80670         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
80671
80672         Module rmdir.
80673         * m4/rmdir.m4: New file.
80674
80675         Module utime.
80676         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
80677         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
80678         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
80679
80680         Module dirname.
80681         * m4/dirname.m4: New file.
80682
80683         Module getopt.
80684         * m4/getopt.m4: New file.
80685
80686         Module unistd-safer.
80687         * m4/unistd-safer.m4: New file.
80688
80689         Module fnmatch.
80690         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
80691         declaration.
80692         (gl_PREREQ_FNMATCH_EXTRA): New macro.
80693         (gl_FUNC_FNMATCH_POSIX): New macro.
80694         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
80695         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
80696         simply fnmatch.
80697
80698         Module exclude.
80699         * m4/exclude.m4: New file.
80700
80701         Module human.
80702         * m4/human.m4: New file.
80703
80704         Module acl.
80705         * m4/acl.m4: Nop.
80706
80707         Module backupfile.
80708         * m4/backupfile.m4: New file.
80709         * m4/d-ino.m4: Indentation.
80710
80711         Module fsusage.
80712         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
80713         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
80714         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
80715
80716         Module dirfd.
80717         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
80718         requirements.
80719
80720         Module euidaccess.
80721         * m4/euidaccess.m4: New file.
80722
80723         Module file-type.
80724         * m4/file-type.m4: New file.
80725
80726         Module fileblocks.
80727         * m4/fileblocks.m4: New file.
80728
80729         Module filemode.
80730         * m4/filemode.m4: New file.
80731
80732         Module isdir.
80733         * m4/isdir.m4: New file.
80734
80735         Module lchown.
80736         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
80737         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
80738
80739         Module makepath.
80740         * m4/makepath.m4: New file.
80741
80742         Module modechange.
80743         * m4/modechange.m4: New file.
80744
80745         Module mountlist.
80746         * m4/mountlist.m4: New file.
80747         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
80748         Indentation.
80749
80750         Module path-concat.
80751         * m4/path-concat.m4: New file.
80752
80753         Module pathmax.
80754         * m4/pathmax.m4: New file.
80755
80756         Module same.
80757         * m4/same.m4: New file.
80758
80759         Module save-cwd.
80760         * m4/save-cwd.m4: New file.
80761
80762         Module savedir.
80763         * m4/savedir.m4: New file.
80764
80765         Module xgetcwd.
80766         * m4/xgetcwd.m4: New file.
80767         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
80768
80769         Module xreadlink.
80770         * m4/xreadlink.m4: New file.
80771
80772         Module safe-read.
80773         * m4/safe-read.m4: New file.
80774
80775         Module safe-write.
80776         * m4/safe-write.m4: New file.
80777
80778         Module closeout.
80779         * m4/closeout.m4: New file.
80780
80781         Module stdio-safer.
80782         * m4/stdio-safer.m4: New file.
80783
80784         Module getpass.
80785         * m4/getpass.m4: New file.
80786
80787         Module getugroups.
80788         * m4/getugroups.m4: New file.
80789
80790         Module group-member.
80791         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
80792         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
80793
80794         Module idcache.
80795         * m4/idcache.m4: New file.
80796
80797         Module userspec.
80798         * m4/userspec.m4: New file.
80799
80800         Module gettime.
80801         * m4/clock_time.m4: New file.
80802         * m4/gettime.m4: New file.
80803
80804         Module settime.
80805         * m4/settime.m4: New file.
80806
80807         Module posixtm.
80808         * m4/posixtm.m4: New file.
80809
80810         Module gethostname.
80811         * m4/gethostname.m4: New file.
80812
80813         Module canon-host.
80814         * m4/canon-host.m4: New file.
80815
80816         Module gettext.
80817         * m4/codeset.m4: New file, from gettext-0.11.5.
80818         * m4/gettext.m4: New file, from gettext-0.11.5.
80819         * m4/glibc21.m4: New file, from gettext-0.11.5.
80820         * m4/iconv.m4: New file, from gettext-0.11.5.
80821         * m4/intdiv0.m4: New file, from gettext-0.11.5.
80822         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
80823         * m4/inttypes.m4: New file, from gettext-0.11.5.
80824         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
80825         * m4/isc-posix.m4: New file, from gettext-0.11.5.
80826         * m4/lcmessage.m4: New file, from gettext-0.11.5.
80827         * m4/lib-ld.m4: New file, from gettext-0.11.5.
80828         * m4/lib-link.m4: New file, from gettext-0.11.5.
80829         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
80830         * m4/progtest.m4: New file, from gettext-0.11.5.
80831         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
80832         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
80833         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
80834
80835         Module localcharset.
80836         * m4/localcharset.m4: New file.
80837
80838         Module hard-locale.
80839         * m4/hard-locale.m4: New file.
80840
80841         Module mbswidth.
80842         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
80843         onceonly macros.
80844         * m4/mbrtowc.m4: Add comment.
80845
80846         Module memcasecmp.
80847         * m4/memcasecmp.m4: New file.
80848
80849         Module memcoll.
80850         * m4/memcoll.m4: New file.
80851
80852         Module unicodeio.
80853         * m4/unicodeio.m4: New file.
80854
80855         Module rpmatch.
80856         * m4/rpmatch.m4: New file.
80857
80858         Module yesno.
80859         * m4/yesno.m4: New file.
80860
80861         Module exitfail.
80862         * m4/exitfail.m4: New file.
80863
80864         Module c-stack.
80865         * m4/c-stack.m4 (gl_C_STACK): New macro.
80866         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
80867
80868         Module error.
80869         * m4/error.m4 (gl_ERROR): New macro.
80870         (jm_PREREQ_ERROR): Use onceonly macros.
80871
80872         Module fatal.
80873         * m4/fatal.m4: New file.
80874
80875         Module getloadavg.
80876         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
80877         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
80878
80879         Module getpagesize.
80880         * m4/getpagesize.m4: New file.
80881
80882         Module getusershell.
80883         * m4/getusershell.m4: New file.
80884
80885         Module physmem.
80886         * m4/physmem.m4: New file.
80887
80888         Module posixver.
80889         * m4/posixver.m4: New file.
80890
80891         Module quotearg.
80892         * m4/quotearg.m4: New file.
80893
80894         Module quote.
80895         * m4/quote.m4: New file.
80896
80897         Module readutmp.
80898         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
80899
80900         Module sig2str.
80901         * m4/sig2str.m4: New file.
80902
80903         Other.
80904         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
80905         ulonglong.m4.
80906         * m4/intmax_t.m4: New file.
80907         * m4/d-type.m4: Indentation.
80908         * m4/jm-macros.m4: Update.
80909         * m4/prereq.m4 (jm_PREREQ): Update.
80910         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
80911         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
80912         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
80913         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
80914         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
80915         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
80916         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
80917         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
80918         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
80919         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
80920         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
80921         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
80922         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
80923         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
80924         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
80925         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
80926         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
80927         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
80928         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
80929
80930 2002-12-24  Bruno Haible  <bruno@clisp.org>
80931
80932         * MODULES.txt: Update according to m4/ changes.
80933
80934         Module gettext.
80935         * config.rpath: New file, from gettext-0.11.5.
80936
80937         * modules/*: New module descriptions.
80938         * gnulib-tool: New file.
80939         * MODULES.html.sh: New file.
80940
80941 2002-12-21  Karl Berry  <karl@gnu.org>
80942
80943         * doc/fdl.texi: update to version 1.2.
80944
80945 2002-12-19  Karl Berry  <karl@gnu.org>
80946
80947         * config/config.guess: update from prep.
80948
80949 2002-12-18  Bruno Haible  <bruno@clisp.org>
80950
80951         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
80952         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
80953
80954 2002-12-17  Bruno Haible  <bruno@clisp.org>
80955
80956         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
80957         stdlib.h, string.h.
80958
80959 2002-12-17  Bruno Haible  <bruno@clisp.org>
80960
80961         * lib/canon-host.c (strdup): Remove unused declaration.
80962
80963         * lib/fsusage.c: Include full_read.h.
80964         (get_fs_usage): Use full_read instead of safe_read.
80965
80966         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
80967
80968 2002-12-12  Karl Berry  <karl@gnu.org>
80969
80970         * config/config.guess: update from prep.
80971
80972 2002-12-11  Bruno Haible  <bruno@clisp.org>
80973
80974         * m4/setenv.m4: New file, from gettext-0.11.5.
80975
80976 2002-12-11  Bruno Haible  <bruno@clisp.org>
80977
80978         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
80979         not unsetenv().
80980         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
80981         modifications:
80982
80983         2002-12-11  Bruno Haible  <bruno@clisp.org>
80984
80985                 * setenv.c (alloca): Fall back to malloc.
80986                 (freea): New macro.
80987                 (setenv): Use freea() to free memory allocated with alloca().
80988
80989         2002-11-13  Bruno Haible  <bruno@clisp.org>
80990
80991                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
80992                 function declarations.
80993                 * unsetenv.c (unsetenv): Likewise.
80994
80995         2002-03-04  Bruno Haible  <bruno@clisp.org>
80996
80997                 Portability to AIX 4.3.3.
80998                 * unsetenv.c: New file, extracted from setenv.c.
80999                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81000
81001         2001-12-20  Bruno Haible  <bruno@clisp.org>
81002
81003                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81004                 use malloc instead. For SunOS 4.
81005
81006         2001-12-11  Bruno Haible  <bruno@clisp.org>
81007
81008                 * setenv.c: Declare alloca.
81009                 (compar_fn_t): New typedef.
81010                 (KNOWN_VALUE, STORE_VALUE): Use it.
81011
81012         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81013         setenv.h.
81014
81015 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81016
81017         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81018         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81019         Choose values that are less likely to collide with system fnmatch
81020         options.
81021         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81022         defined (e.g., a pure POSIX system).
81023         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81024         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81025
81026 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81027
81028         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81029         a pain in practice to deal with generated m4 files.  This change
81030         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81031
81032         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81033         and jm-glibc-io.m4, as they are no longer a special case.
81034         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81035         kludge and the auto-generation stuff.  Check only whether the
81036         functions are declared, not whether they exist, since older hosts
81037         that don't declare the functions can't use the optimization anyway.
81038
81039 2002-12-06  Jim Meyering  <jim@meyering.net>
81040
81041         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81042
81043         Merge in changes from libc's misc/error.c, in preparation
81044         for the merge of gnulib's changes back into libc.
81045
81046         * lib/error.c (_): Define only if not already defined.
81047         Move definition to follow all #include directives.
81048         Include unlocked-io.h only if !_LIBC.
81049         [_LIBC]: Include <libio/libioP.h>.
81050         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81051         (fflush): Tweak definition to use INTUSE.
81052         (putc): Define.
81053
81054 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81055
81056         * lib/alloca.c [defined emacs]: Include "lisp.h".
81057         (xalloc_die) [defined emacs]: New macro.
81058         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81059         [! defined emacs]: Include <xalloc.h>.
81060         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81061         (pointer): Typedef to POINTER_TYPE *.
81062         (malloc): Remove decl; we now always use xmalloc.
81063         (alloca): Use old-style definition, since Emacs needs this.
81064         Check for arithmetic overflow when computing combined size.
81065
81066 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81067
81068         Do not generate unlocked-io.h automatically, since it's easier to
81069         maintain it by hand.
81070
81071         * lib/unlocked-io.h: New file, from GNU diffutils,
81072         but with proper copyright notice and attribution.
81073         * lib/gen-uio: Remove.
81074         * lib/Makefile.am: Add copyright notice.
81075         (libfetish_a_SOURCES): Add unlocked-io.h.
81076         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81077         (DISTCLEANFILES, io_functions): Remove macros.
81078         (EXTRA_DIST): Remove gen_uio.
81079         (unlocked-io.h): Remove rule.
81080
81081 2002-12-04  Jim Meyering  <jim@meyering.net>
81082
81083         Reflect the fact that stat.c and lstat.c are no longer generated.
81084         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81085         (DISTCLEANFILES): Likewise.
81086         (EXTRA_DIST): Likewise.
81087         (all_local): Don't depend on stat.c or lstat.c.
81088         (stat.c, lstat.c): Remove rules.
81089         (EXTRA_DIST): Remove xstat.in.
81090
81091         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81092         * lib/stat.c: New file.  Contents mostly from xstat.in.
81093         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81094         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81095
81096         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81097         too.
81098         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81099
81100 2002-12-03  Jim Meyering  <jim@meyering.net>
81101
81102         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81103         but not semantics, to minimize the differences between these two files.
81104         (safe_read): Change comment to mention SAFE_READ_ERROR.
81105
81106         * lib/safe-read.c (IS_EINTR): Define.
81107         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81108
81109 2002-12-02  Jim Meyering  <jim@meyering.net>
81110
81111         * lib/safe-read.c (EINTR): Define.
81112         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81113         (INT_MAX): Provide fallback.
81114         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81115
81116         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81117
81118 2002-12-02  Bruno Haible  <bruno@clisp.org>
81119
81120         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81121         Define, taken from safe-read.c.
81122         (INT_MAX): Provide fallback.
81123         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81124         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81125
81126         * lib/safe-read.c (EINTR): Remove definition.
81127         (safe_read): Don't use EINTR if it is absent.
81128
81129 2002-12-01  Jim Meyering  <jim@meyering.net>
81130
81131         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81132         zero.
81133         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81134
81135 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81136
81137         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81138         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81139         with `if (! (value < limit)) abort ();', for readability.
81140
81141 2002-11-26  Karl Berry  <karl@gnu.org>
81142
81143         * lib/strdup.c: copy from libc again, with jim's ok.
81144         * lib/.cppi-disable: re-add strdup.c
81145
81146 2002-11-25  Karl Berry  <karl@gnu.org>
81147
81148         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
81149         instead of "strtol.c".
81150
81151 2002-11-25  Karl Berry  <karl@gnu.org>
81152
81153         * config/install-sh: update from automake for variable quoting, $0 in
81154         error msgs, etc.
81155
81156         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
81157         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
81158         entry.
81159
81160 2002-11-25  Jim Meyering  <jim@meyering.net>
81161
81162         * lib/mktime.c: Sync from libc, now that it has the latest fix.
81163
81164 2002-11-24  Karl Berry  <karl@gnu.org>
81165
81166         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
81167         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
81168
81169 2002-11-24  Jim Meyering  <jim@meyering.net>
81170
81171         Update from coreutils:
81172
81173         * lib/mktime.c: Merge in changes from libc.
81174
81175         Avoid a link-time failure on some Linux systems.
81176         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
81177         (otherwise).
81178         (__mon_yday): Declare with the STATIC attribute.
81179         (__mktime_internal): Likewise.
81180         Based on a report from Greg Schafer.
81181
81182 2002-11-23  Jim Meyering  <jim@meyering.net>
81183
81184         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
81185         Use `unsigned', not `int', as type of index.
81186
81187         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
81188
81189         * lib/fsusage.c: Remove unneeded parentheses around operands of
81190         `defined'.
81191
81192 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81193
81194         * lib/quotearg.h: Allow multiple inclusion by surrounding with
81195         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
81196         so that we can be included first.
81197         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
81198         * lib/quotearg.c: Include quotearg.h immediately after config.h.
81199         No need to include stddef.h or sys/types.h any more.
81200         Surround local include files with "", not "<>".
81201         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
81202         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
81203         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
81204         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
81205         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
81206         (ISPRINT): Remove; no longer needed now that we assume C89.
81207
81208         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
81209         Preserve errno.
81210
81211         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
81212         quotearg_char): Use SIZE_MAX rather than
81213         (size_t) -1 when we are talking about "infinity".
81214
81215         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
81216
81217 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81218
81219         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
81220         hint that one should use `if (! x) abort ();' rather than `assert
81221         (x);', and anyway it's one less thing to worry about configuring.
81222         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
81223         hash_rehash, hash_insert): Use abort rather than assert.
81224
81225 2002-11-22  Bruno Haible  <bruno@clisp.org>
81226
81227         * lib/safe-read.h: Assume C89. Add comments.
81228         (safe_read): Change return type to size_t.
81229         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
81230         byte counts > SSIZE_MAX correctly.
81231         * lib/safe-write.h: New file.
81232         * lib/safe-write.c: New file.
81233         * lib/full-read.h: New file.
81234         * lib/full-read.c: New file.
81235         * lib/full-write.h: Assume C89. Add comments.
81236         * lib/full-write.c: Include safe-write.h.
81237         (full_write): Rewritten to use safe_write.
81238         Suggested by Jim Meyering and Paul Eggert.
81239
81240 2002-11-21  Jim Meyering  <jim@meyering.net>
81241
81242         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
81243
81244         Merge in changes from the coreutils.
81245
81246         2002-09-25  Paul Eggert  <eggert@twinsun.com>
81247         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
81248         <stdint.h>.
81249         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
81250         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
81251         int.  Work more efficiently if X is the same width as uintmax_t.
81252         Do not compare X to -1, to avoid bogus compiler warning.
81253         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
81254         Don't assume that f_frsize and f_bsize are the same type.
81255
81256         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
81257         warning on FreeBSD.
81258
81259         * lib/makepath.c (make_path): Restore umask *before* creating the final
81260         component.
81261         (make_path): Minor reformatting.
81262
81263         * lib/xmalloc.c: Adjust to work with new autoconf macros,
81264         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
81265         HAVE_MALLOC/HAVE_REALLOC.
81266
81267         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
81268         dummy ones.  At least on GNU/Linux systems, `auto' means something
81269         else.
81270         From Michael Stone.
81271
81272 2002-11-21  Bruno Haible  <bruno@clisp.org>
81273
81274         Remove case insensitive option matching.
81275         * lib/argmatch.h (argcasematch): Remove declaration.
81276         (ARGCASEMATCH): Remove macro.
81277         (__xargmatch_internal): Remove case_sensitive argument.
81278         (XARGMATCH): Update.
81279         (XARGCASEMATCH): Remove macro.
81280         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81281         case_sensitive argument.
81282         (argcasematch): Remove function.
81283         (__xargmatch_internal): Remove case_sensitive argument.
81284         (main): Use XARGMATCH instead of XARGCASEMATCH.
81285
81286         * lib/xmalloc.c: Change compile-time error message. Add comment about
81287         required autoconf version.
81288
81289 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81290
81291         Merge argmatch cleanups from Bison.  Assume C89.
81292
81293         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81294         Include stdlib.h, for EXIT_FAILURE.
81295         Always include <string.h>, since we assume C89.
81296         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81297         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81298         Include <stddef.h> instead, since it's all we need for size_t.
81299         (PARAMS): Remove.  All uses removed.
81300         (ARRAY_CARDINALITY): Do not bother to #undef.
81301         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81302         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81303         Remove unnecessary parentheses.
81304         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81305         Insert necessary parentheses.
81306         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81307         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81308
81309 2002-11-19  Bruno Haible  <bruno@clisp.org>
81310
81311         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
81312         * lib/mbswidth.h: Include <stddef.h>, for size_t.
81313
81314         * lib/mbswidth.h (PARAMS): Remove macro.
81315         (mbswidth, mbsnwidth): Use ANSI C function declarations.
81316         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
81317
81318         * lib/gcd.h (PARAMS): Remove macro.
81319         (gcd): Use ANSI C function declarations.
81320         * lib/gcd.c (gcd): Likewise.
81321
81322 2002-11-15  Bruno Haible  <bruno@clisp.org>
81323
81324         * lib/strcspn.c: Include <stddef.h>.
81325         (strcspn): Use ANSI C function declaration. Change return type to
81326         size_t. Use NULL.
81327         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
81328         (strpbrk): Use NULL.
81329         * lib/strpbrk.h (PARAMS): Remove macro.
81330         (strpbrk): Use ANSI C function declaration.
81331         * lib/strstr.c: Don't include <sys/types.h>.
81332         * lib/strstr.h (PARAMS): Remove macro.
81333         (strstr): Use ANSI C function declarations.
81334
81335 2002-11-14  Karl Berry  <karl@gnu.org>
81336
81337         * config/mkinstalldirs: `do' on separate line, instead of
81338         `for var; do'.
81339
81340 2002-11-06  Bruno Haible  <bruno@clisp.org>
81341
81342         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
81343         * lib/gcd.c (gcd): Likewise.
81344
81345 2002-11-05  Bruno Haible  <bruno@clisp.org>
81346
81347         * lib/gcd.h: New file, from gettext-0.11.5.
81348         * lib/gcd.c: New file, from gettext-0.11.5.
81349
81350 2002-11-05  Bruno Haible  <bruno@clisp.org>
81351
81352         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81353         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81354         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81355         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81356
81357         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
81358         <libintl.h>.
81359         * lib/makepath.c: Include gettext.h instead of <locale.h> and
81360         <libintl.h>.
81361
81362         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
81363         * lib/human.c: Include gettext.h instead of <libintl.h>.
81364         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
81365         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
81366         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
81367         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
81368         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
81369         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
81370         (textdomain): Remove definition.
81371         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
81372
81373         * lib/long-options.c: Remove include of <libintl.h> and definition of
81374         _.
81375         * lib/same.c: Remove include of <libintl.h> and definition of _.
81376
81377 2002-11-04  Owen Taylor  <otaylor@redhat.com>
81378
81379         * lib/config.charset: A few additions for Solaris.
81380
81381 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81382
81383         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
81384         * lib/localcharset.c (locale_charset): Declare as extern "C".
81385
81386 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81387
81388         * lib/config.charset: msdos in uk_UA uses CP1125.
81389
81390 2002-11-04  Bruno Haible  <bruno@clisp.org>
81391
81392         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
81393         * lib/strcase.h: New file, from GNU gettext-0.11.5.
81394         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
81395         * lib/strstr.h: New file, from GNU gettext-0.11.5.
81396         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
81397
81398 2002-11-04  Bruno Haible  <bruno@clisp.org>
81399
81400         * lib/localcharset.c (locale_charset): Don't return an empty string.
81401
81402 2002-11-04  Bruno Haible  <bruno@clisp.org>
81403
81404         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
81405         aliases.
81406
81407 2002-11-04  Bruno Haible  <bruno@clisp.org>
81408
81409         * lib/config.charset: Update for newest glibc. Add canonical names
81410         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
81411
81412 2002-11-04  Bruno Haible  <bruno@clisp.org>
81413
81414         * lib/config.charset: Add support for NetBSD.
81415
81416 2002-11-04  Bruno Haible  <bruno@clisp.org>
81417
81418         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
81419
81420 2002-11-01  Bruno Haible  <bruno@clisp.org>
81421
81422         * configure.in: Add AC_CONFIG_AUX_DIR call.
81423         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
81424         test/Makefile.
81425         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
81426
81427 2002-09-28  Karl Berry  <karl@gnu.org>
81428
81429         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
81430         installed automake until the next release, since changes have been
81431         made.
81432
81433 2002-09-25  Karl Berry  <karl@gnu.org>
81434
81435         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
81436         * lib/getopt*: copy from libc/posix.
81437         * lib/gettext.h: copy from gettext.
81438         * lib/.cppi-disable: add strdup.c, gettext.h.
81439
81440 2002-09-25  Karl Berry  <karl@gnu.org>
81441
81442         * config/srclist.txt: enable gettext.h check.
81443         * config/config.{guess,sub}: update from prep.
81444         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
81445                 from automake 1.6.3.
81446         See srclist*.
81447
81448 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
81449
81450         * regex.c (PATFETCH): Remove the translating fetch.
81451         (PATFETCH_RAW): Rename to PATFETCH.
81452         (set_image_of_range): New fun.
81453         (SET_RANGE_TABLE_WORK_AREA): Use it.
81454         (regex_compile): Don't translate the pattern chars so eagerly.
81455         Only do it when inserting an `exactn' bytecode or when handling
81456         a char-range.
81457         (mutually_exclusive_p): Avoid empty statement.
81458
81459 2002-07-06  Jim Meyering  <meyering@lucent.com>
81460
81461         * m4/README: Don't mention Makefile.am.in.
81462         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
81463
81464 2002-07-01  Jim Meyering  <meyering@lucent.com>
81465
81466         * lib/c-stack.c: Include sys/time.h.
81467         From Volker Borchert.
81468
81469 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81470
81471         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
81472
81473 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81474
81475         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
81476         New macro.  Use it uniformly instead of
81477         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
81478         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
81479         reported by Vin Shelton.
81480
81481 2002-06-22  Paul Eggert  <eggert@twinsun.com>
81482
81483         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
81484         Do not assume SA_SIGINFO behavior.
81485         Bug reported by Jim Meyering on NetBSD 1.5.2.
81486
81487 2002-06-22  Jim Meyering  <meyering@lucent.com>
81488
81489         * m4/c-stack.m4: New file, from diffutils-2.8.2.
81490         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
81491
81492         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
81493         now that configure.ac uses AC_GNU_SOURCE.
81494         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
81495         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
81496
81497         Update to latest tools.  Suggestions from Paul Eggert.
81498         * m4/stdbool.m4: New file, from diffutils-2.8.2.
81499         * m4/gnu-source.m4: Update from diffutils-2.8.2.
81500         * m4/fnmatch.m4: Likewise.
81501         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
81502         to AC_HEADER_STDBOOL
81503
81504 2002-06-22  Jim Meyering  <meyering@lucent.com>
81505
81506         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
81507         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
81508
81509 2002-06-22  Jim Meyering  <meyering@lucent.com>
81510
81511         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
81512
81513         * lib/exitfail.c, exitfail.h: Likewise.
81514         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
81515
81516         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
81517         of fnmatch.h.
81518         (EXTRA_DIST): Add fnmatch_loop.c.
81519         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
81520
81521         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
81522         * lib/fnmatch.c: Update from diffutils-2.8.2.
81523         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
81524         * lib/fnmatch.h: Remove file.
81525
81526 2002-06-21  Jim Meyering  <meyering@lucent.com>
81527
81528         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
81529         * m4/mbrtowc.m4: Likewise.
81530
81531         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
81532         * m4/mbswidth.m4: Reflect name change:
81533         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
81534         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81535
81536         * m4/lib-link.m4: Update from gettext-0.11.2.
81537         * m4/gettext.m4: Likewise.
81538
81539         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
81540         From Alfred M. Szmidt.
81541
81542 2002-06-18  Paul Eggert  <eggert@twinsun.com>
81543
81544         * lib/file-type.h: Report an error if neither S_ISREG nor
81545         S_IFREG is defined, instead of using a test specific to glibc
81546         2.2.  This should be safe, since POSIX requires S_ISREG and
81547         Unix Version 7 had S_IFREG.  We don't need to check for
81548         <sys/types.h> since we don't use any symbols that it defines.
81549
81550 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
81551
81552         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
81553         $@-t, so that each temporary file name is unique and valid in the first
81554         8 characters, for operation under DOS.
81555
81556 2002-06-15  Paul Eggert  <eggert@twinsun.com>
81557
81558         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
81559
81560 2002-06-15  Jim Meyering  <meyering@lucent.com>
81561
81562         Work even with DJGPP 2.03, which lacks support for symlinks.
81563         From Richard Dawe.
81564         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
81565         is defined.
81566         * lib/lchown.c (S_ISLNK): Likewise.
81567
81568 2002-06-15  Jim Meyering  <meyering@lucent.com>
81569
81570         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
81571         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
81572         have been included before this file.
81573
81574 2002-06-14  Jim Meyering  <meyering@lucent.com>
81575
81576         * lib/file-type.h: Use the version from diffutils-2.8.2.
81577         * lib/file-type.c: Likewise.
81578
81579 2002-06-07  Jim Meyering  <meyering@lucent.com>
81580
81581         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
81582         They're needed at least for NetBSD 1.5.2.
81583         ($statxfs_includes): Include those same headers.
81584         ($statxfs_includes): Include sys/vfs.h if available.
81585         ($statxfs_includes): Likewise for sys/statvfs.h.
81586         Check for the following members in both structs statfs and statvfs:
81587         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
81588
81589 2002-06-01  Jim Meyering  <meyering@lucent.com>
81590
81591         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
81592         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
81593
81594 2002-05-28  Jim Meyering  <meyering@lucent.com>
81595
81596         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
81597         Reported by Volker Borchert.
81598
81599 2002-05-27  Jim Meyering  <meyering@lucent.com>
81600
81601         Fix a problem seen only on nonconforming systems whereby ls.c's
81602         use of localtime, and then of gettimeofday would cause trouble:
81603         the localtime call used to initialize rpl_gettimeofday's save
81604         mechanism would clobber ls's current local time information so
81605         that in any long listing the first file would always be listed
81606         with date 1970-01-01.  Analysis by Volker Borchert.
81607
81608         * lib/gettimeofday.c (localtime): Undefine.
81609         (rpl_localtime): New function.
81610
81611 2002-05-27  Jim Meyering  <meyering@lucent.com>
81612
81613         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
81614         localtime.
81615
81616         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
81617         use the replacement function; it wouldn't resolve at link time.
81618         Reported by Volker Borchert.
81619
81620 2002-05-22  Jim Meyering  <meyering@lucent.com>
81621
81622         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
81623         file-type.h.
81624         * lib/file-type.h: New file.
81625         * lib/file-type.c (file_type): New file/function.  Extracted from
81626         diffutils.
81627
81628 2002-04-30  Jim Meyering  <meyering@lucent.com>
81629
81630         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
81631
81632 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81633
81634         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
81635
81636 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81637
81638         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
81639         Do not check for alloca.h (no longer used) or stdbool.h (was never
81640         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
81641
81642 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81643
81644         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
81645
81646 2002-04-29  Jim Meyering  <meyering@lucent.com>
81647
81648         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
81649         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
81650         Use AC_FUNC_STRNLEN here instead.
81651
81652         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
81653         With autoconf-2.53a, it's part of AC_PROG_CC.
81654
81655 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81656
81657         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
81658         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
81659
81660 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81661
81662         * lib/sig2str.h, lib/sig2str.c: New files.
81663         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
81664
81665 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81666
81667         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
81668         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
81669         of 127, since 64 is the largest conceivable number for ancient
81670         nonstandard hosts.
81671         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
81672
81673 2002-04-28  Jim Meyering  <meyering@lucent.com>
81674
81675         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
81676
81677 2002-04-24  Jim Meyering  <meyering@lucent.com>
81678
81679         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
81680         (jm_PREREQ): Use it.
81681
81682         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
81683         mach/mach.h fcntl.h.
81684         Check for this function: setlocale.
81685
81686 2002-04-24  Jim Meyering  <meyering@lucent.com>
81687
81688         * lib/gettext.h: New file, from Gettext.
81689         * lib/Makefile.am (INCLUDES): Remove -I../intl.
81690         (libfetish_a_SOURCES): Add gettext.h.
81691
81692 2002-04-16  Jim Meyering  <meyering@lucent.com>
81693
81694         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
81695         ut_pid, ut_id, ut_exit.
81696
81697 2002-04-16  Jim Meyering  <meyering@lucent.com>
81698
81699         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
81700         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
81701         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
81702
81703 2002-04-12  Jim Meyering  <meyering@lucent.com>
81704
81705         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
81706         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
81707         existence of the getmntinfo function.  Needed for Darwin 5.3.
81708
81709         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
81710         This is necessary at least on Darwin 5.3.
81711
81712         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
81713         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
81714         strnlen.o in the library, and that makes some versions of ranlib
81715         object.
81716
81717 2002-04-12  Jim Meyering  <meyering@lucent.com>
81718
81719         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
81720
81721 2002-04-09  Jim Meyering  <meyering@lucent.com>
81722
81723         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
81724         to be more precise.  Rather than saying we're checking whether the
81725         function `works', say what we're testing.
81726         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
81727         Reported by Bruno Haible.
81728
81729 2002-03-10  Jim Meyering  <meyering@lucent.com>
81730
81731         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
81732         Suggestion from Santiago Vila.
81733
81734 2002-03-08  Jim Meyering  <meyering@lucent.com>
81735
81736         * lib/rename.c: Mention that this wrapper is needed also on
81737         mips-dec-ultrix4.4 systems.
81738
81739 2002-03-02  Jim Meyering  <meyering@lucent.com>
81740
81741         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
81742         not HAVE_CLOCK_SETTIME.
81743
81744 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81745
81746         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
81747         Check for clock_settime.
81748
81749 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81750
81751         * lib/nanosleep.h: Rename to....
81752         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
81753
81754         * lib/gettime.c: New file.
81755         * lib/settime.c: New file.
81756         * lib/stime.c: Remove.
81757
81758         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
81759         timespec.h.  Remove nanosleep.h.
81760
81761 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81762
81763         * m4/acl.m4: New file.
81764         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
81765         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
81766
81767 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81768
81769         * lib/acl.c, lib/acl.h: New files.
81770         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
81771
81772 2002-02-24  Jim Meyering  <meyering@lucent.com>
81773
81774         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
81775         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
81776         cause trouble.  Reported by Nelson Beebe.
81777
81778 2002-02-23  Paul Eggert  <eggert@twinsun.com>
81779
81780         * lib/path-concat.c (xpath_concat): Reorder code to pacify
81781         compilers that don't know that xalloc_die never returns.
81782
81783 2002-02-20  Jim Meyering  <meyering@lucent.com>
81784
81785         * lib/getdate.c: Regenerate using bison-1.33.
81786
81787 2002-02-17  Jim Meyering  <meyering@lucent.com>
81788
81789         * config/config.guess (main): Don't use `head -1'; it's no longer
81790         portable. Use `sed 1q' instead.
81791
81792 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
81793
81794         * m4/codeset.m4: Upgrade to gettext-0.11.
81795         * m4/gettext.m4: Upgrade to gettext-0.11.
81796         * m4/glibc21.m4: Upgrade to gettext-0.11.
81797         * m4/iconv.m4: Upgrade to gettext-0.11.
81798         * m4/isc-posix.m4: Upgrade to gettext-0.11.
81799         * m4/lcmessage.m4: Upgrade to gettext-0.11.
81800         * m4/lib-ld.m4: New file, from gettext-0.11.
81801         * m4/lib-link.m4: New file, from gettext-0.11.
81802         * m4/lib-prefix.m4: New file, from gettext-0.11.
81803         * m4/progtest.m4: Upgrade to gettext-0.11.
81804
81805 2002-02-15  Paul Eggert  <eggert@twinsun.com>
81806
81807         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
81808         (jm_PREREQ): Use it.
81809
81810 2002-02-15  Paul Eggert  <eggert@twinsun.com>
81811
81812         * lib/posixver.c, lib/posixver.h: New files.
81813         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
81814
81815 2002-02-02  Paul Eggert  <eggert@twinsun.com>
81816             Bruno Haible  <bruno@clisp.org>
81817
81818         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
81819         (fwrite_success_callback): New declaration.
81820         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
81821         print_unicode_char. Call failure callback instead of error.
81822         (fwrite_success_callback): New function.
81823         (exit_failure_callback): New function.
81824         (fallback_failure_callback): New function.
81825         (print_unicode_char): Call unicode_to_mb.
81826
81827 2002-01-26  Jim Meyering  <meyering@lucent.com>
81828
81829         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
81830         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
81831
81832 2002-01-26  Jim Meyering  <meyering@lucent.com>
81833
81834         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
81835
81836 2002-01-22  Paul Eggert  <eggert@twinsun.com>
81837
81838         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
81839
81840 2002-01-22  Jim Meyering  <meyering@lucent.com>
81841
81842         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
81843         Otherwise, some versions of automake would omit the rule that makes
81844         Makefile from Makefile.in.
81845
81846 2002-01-21  Paul Eggert  <eggert@twinsun.com>
81847
81848         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
81849         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
81850         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
81851         (memcoll): Set errno to zero if there is no error.
81852
81853         * lib/quotearg.c (quotearg_buffer_restyled):
81854         Fix bug with quoting buffers containing NUL when backslashing escapes.
81855         This bug was exposed by the other changes in this patch.
81856         (quotearg_n_options): New arg ARGSIZE.
81857         All callers changed.
81858         (quoting_options_from_style): New function.
81859         (quotearg_n_style): Use it.
81860         (quotearg_n_style_mem): New function.
81861
81862         * lib/quotearg.h (quotearg_n_style_mem): New function.
81863
81864 2002-01-19  Jim Meyering  <meyering@lucent.com>
81865
81866         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
81867         Remove useless quotes: DF_PROG="df".
81868         * m4/strnlen.m4: New file.
81869
81870 2002-01-16  Paul Eggert  <eggert@twinsun.com>
81871
81872         * lib/backupfile.c (ISDIGIT): Comment fix.
81873         * lib/getdate.y (ISDIGIT): Likewise.
81874         * lib/posixtm.c (ISDIGIT, year): Likewise.
81875         * lib/strverscmp.c (ISDIGIT): Likewise.
81876         * lib/userspec.c (ISDIGIT): Likewise.
81877
81878 2002-01-16  Jim Meyering  <meyering@lucent.com>
81879
81880         * lib/getdate.y: Add three semicolons, each just before a closing
81881         brace. Bison (as of version 1.31) no longer papers over that mistake.
81882
81883 2002-01-05  Jim Meyering  <meyering@lucent.com>
81884
81885         * lib/version-etc.c (version_etc_copyright): Update copyright year.
81886
81887 2001-12-19  Paul Eggert  <eggert@twinsun.com>
81888
81889         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
81890         not silently exit merely because the output buffer happens to
81891         have nothing pending.
81892
81893 2001-12-18  Paul Eggert  <eggert@twinsun.com>
81894
81895         See the big note in ../ChangeLog.
81896         * lib/human.c (suffixes): Prefer K to k for 1024.
81897         (generate_suffix_backwards): New function.
81898         (human_readable_inexact): Use it.
81899         * lib/xstrtol.c (__xstrtol): If there is no number but there
81900         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
81901         Accept 'K' as well as 'k'.
81902
81903 2001-12-15  Jim Meyering  <meyering@lucent.com>
81904
81905         * lib/regex.h (__restrict_arr): Update from libc.
81906
81907         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
81908         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
81909         (STREQ): Define.
81910
81911 2001-12-14  Jim Meyering  <meyering@lucent.com>
81912
81913         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
81914         Suggestion from Bruno Haible.
81915
81916 2001-12-10  Jim Meyering  <meyering@lucent.com>
81917
81918         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
81919         xrealloc, Instead, include "xalloc.h".
81920         (initbuffer): Don't cast xmalloc return value to char*.
81921         (readline): Reword comment.
81922         Don't cast xrealloc return value to char*
81923         Return NULL, not 0.
81924
81925 2001-12-09  Jim Meyering  <meyering@lucent.com>
81926
81927         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
81928         about `signed and unsigned type in conditional expression'.
81929         * lib/posixtm.c (posix_time_parse): Likewise.
81930
81931         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
81932
81933         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
81934         to avoid a pedantic warning.
81935
81936         * lib/getstr.c: Don't include assert.h.
81937         (getstr): Remove warning-evoking assertions.
81938         Return -1 if offset parameter is out of bounds.
81939         Change the type of a local from int to size_t.
81940
81941         * lib/strftime.c (my_strftime_localtime_r): Include this function
81942         definition in the `#if ! HAVE_TM_GMTOFF' block.
81943
81944         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
81945         Include xalloc.h instead.
81946
81947 2001-12-02  Jim Meyering  <meyering@lucent.com>
81948
81949         * lib/tempname.c: Don't declare getenv, thus reverting the change of
81950         2001-11-18.  It's no longer necessary, now that stdlib.h is always
81951         included.
81952
81953         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
81954         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
81955
81956 2001-11-30  Akim Demaille  <akim@epita.fr>
81957
81958         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
81959         before being defined.
81960
81961 2001-11-27  Paul Eggert  <eggert@twinsun.com>
81962
81963         * lib/quotearg.h (quotearg_n, quotearg_n_style):
81964         First arg is int, not unsigned.
81965         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
81966         (SIZE_MAX, UINT_MAX): New macros.
81967         (quotearg_n_options): Abort if N is negative.
81968         Avoid overflow check on hosts where size_t is 64 bits and int
81969         is 32 bits, as overflow is impossible there.
81970         Fix off-by-one typo that caused unnecessary reallocation.
81971
81972 2001-11-27  Jim Meyering  <meyering@lucent.com>
81973
81974         * lib/tempname.c: Merge with version from libc.
81975         * lib/regex.c: Likewise.
81976
81977         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
81978         systems for which STDC_HEADERS is 0, it was not included, resulting in
81979         a warning about an integer-to-pointer conversion problem with getenv.
81980         Reported by Volker Borchert.
81981
81982 2001-11-26  Jim Meyering  <meyering@lucent.com>
81983
81984         * lib/gtod.h: Remove file.
81985         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
81986         * lib/gettimeofday.c: Don't include gtod.h.
81987         (GTOD_init): Remove function.
81988         (rpl_gettimeofday): Do its job here instead, rather than aborting.
81989         Suggestion from Volker Borchert.
81990
81991 2001-11-23  Jim Meyering  <meyering@lucent.com>
81992
81993         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
81994         it.
81995         * lib/hash.c (struct hash_table): Define it here instead.
81996
81997 2001-11-22  Jim Meyering  <meyering@lucent.com>
81998
81999         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82000
82001 2001-11-20  Jim Meyering  <meyering@lucent.com>
82002
82003         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82004         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82005
82006 2001-11-19  Jim Meyering  <meyering@lucent.com>
82007
82008         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82009         directory.  Use "conftestXXXXXX" as the template.
82010         Suggestion from Paul Eggert.
82011
82012         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82013         immediately, so the test doesn't mistakenly hit the max-open-files
82014         limit.
82015
82016 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82017
82018         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82019         (TEMPORARIES): New macro.
82020         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82021         removes an artificial limitation (e.g. HP-UX 10.20, where
82022         TMP_MAX is 17576).
82023
82024 2001-11-18  Jim Meyering  <meyering@lucent.com>
82025
82026         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82027
82028 2001-11-18  Jim Meyering  <meyering@lucent.com>
82029
82030         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82031         on SunOS 4.
82032
82033         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82034         files will be created before anything else.
82035
82036 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82037
82038         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82039         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82040
82041 2001-11-17  Jim Meyering  <meyering@lucent.com>
82042
82043         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82044         Prompted by a report from Bob Proulx.
82045
82046         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82047         Instead, require UTILS_FUNC_MKSTEMP.
82048
82049 2001-11-17  Jim Meyering  <meyering@lucent.com>
82050
82051         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82052         Now, that's done as part of AC_FUNC_STRTOD.
82053
82054 2001-11-17  Jim Meyering  <meyering@lucent.com>
82055
82056         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82057         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82058         rather than group writable.  Patch by Juan F. Codagnone.
82059
82060         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82061         xrealloc, Instead, include "xalloc.h".
82062
82063         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82064         Remove explicit declarations of xmalloc, xrealloc,
82065         and xstrdup.  Instead, include "xalloc.h".
82066
82067         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82068         unlocked-io.h.
82069         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82070         Likewise.
82071         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82072
82073         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82074         Reported by Padraig Brady.
82075
82076         * lib/mkstemp.c: #undef mkstemp.
82077         Include config.h.
82078         (rpl_mkstemp): Rename from mkstemp.
82079         Protoize.
82080
82081 2001-11-16  Jim Meyering  <meyering@lucent.com>
82082
82083         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82084         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82085         determine the amount of total physical memory, use pstat_getstatic.
82086         HPUX-11 doesn't define _SC_PHYS_PAGES.
82087         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82088         If sysconf couldn't be used to determine the amount of available
82089         physical memory, use both pstat_getstatic and pstat_getdynamic.
82090         Based on a patch from Bob Proulx.
82091
82092 2001-11-10  Jim Meyering  <meyering@lucent.com>
82093
82094         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82095         (jm_PREREQ): Use it.
82096
82097 2001-11-09  Jim Meyering  <meyering@lucent.com>
82098
82099         * m4/jm-macros.m4: Require autoconf-2.52f.
82100         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82101         Use these AC_-prefixed names, not the AM_-prefixed ones.
82102
82103         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82104
82105 2001-11-05  Jim Meyering  <meyering@lucent.com>
82106
82107         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82108
82109 2001-11-04  Jim Meyering  <meyering@lucent.com>
82110
82111         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82112         $DEFS.
82113
82114 2001-11-03  Jim Meyering  <meyering@lucent.com>
82115
82116         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82117         of AC_DEFUN.
82118
82119         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82120         know the name of the variable in the macro definition.
82121
82122 2001-11-03  Jim Meyering  <meyering@lucent.com>
82123
82124         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82125         in argmatch_to_argument call.
82126
82127         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82128         argument.
82129
82130         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82131         e.g., a fault due to an attempt to free a NULL pointer.
82132
82133 2001-11-01  Jim Meyering  <meyering@lucent.com>
82134
82135         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82136         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82137
82138 2001-11-01  Jim Meyering  <meyering@lucent.com>
82139
82140         * lib/dirfd.c, lib/dirfd.h: New files.
82141         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82142
82143         * lib/hash.c (hash_print) [TESTING]: Clean up.
82144
82145 2001-10-22  Paul Eggert  <eggert@twinsun.com>
82146
82147         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
82148         to avoid a warning if -Wall.
82149
82150 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
82151
82152         * README: New file
82153         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
82154         (per RMS's instructions, this is now the canonical source)
82155         * lgpl/, gpl/: New directories.
82156
82157 2001-10-21  Paul Eggert  <eggert@twinsun.com>
82158
82159         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
82160
82161 2001-10-21  Jim Meyering  <meyering@lucent.com>
82162
82163         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
82164         this code would end up calling gettext even in packages built
82165         with --disable-nls.
82166         * lib/getopt.c (_): Likewise.
82167         * lib/regex.c (_): Likewise.
82168
82169 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82170
82171         * m4/error.m4 (jm_PREREQ_ERROR):
82172         Do not invoke AC_CHECK_FUNCS with strerror_r, as
82173         AC_FUNC_STRERROR_R does that.
82174         Check for strerror declaration.
82175
82176         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
82177         are supposed to have them these days.
82178         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
82179         Merge changes from latest Autoconf CVS.
82180         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
82181         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
82182         POSIX decided to standardize on the int flavor of strerror_r.
82183
82184 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82185
82186         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
82187         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
82188         Use strerror_r that is only a macro, even if it is not a function.
82189         (strerror): Check for HAVE_DECL_STRERROR before declaring.
82190         (private_strerror): Use prototypes, not old-style function definition.
82191         (print_errno_message): New function.
82192         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
82193         char*-flavored one.
82194         (error_tail, error, error_at_line): Use it.
82195
82196 2001-10-11  Jim Meyering  <meyering@lucent.com>
82197
82198         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
82199         and quote_n (1, ... to avoid clobbering a buffer.
82200
82201 2001-10-05  Jim Meyering  <meyering@lucent.com>
82202
82203         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
82204         hash-pjw.h.
82205         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
82206         * lib/hash-pjw.h: New file.
82207
82208 2001-09-30  Jim Meyering  <meyering@lucent.com>
82209
82210         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
82211         `struct fsstat' has the `f_fstypename' member.
82212         Use that to define FS_TYPE, which is now used to make
82213         the getfsstat link test tighter.
82214
82215 2001-09-30  Jim Meyering  <meyering@lucent.com>
82216
82217         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
82218         Include <sys/ucred.h>, for Apple Darwin.
82219         Include sys/mount.h and sys/fs_types.h only if available.
82220         (FS_TYPE): Define.
82221         (read_filesystem_list): Use FS_TYPE.
82222
82223 2001-09-29  Paul Eggert  <eggert@twinsun.com>
82224
82225         * lib/exclude.c (excluded_filename): 0 -> false, since it's
82226         a boolean context.
82227
82228 2001-09-29  Jim Meyering  <meyering@lucent.com>
82229
82230         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82231         [one-argument getmntent function]): Include stdio.h before mntent.h.
82232         SunOS 4.1.x needs it for the declaration of `FILE'.
82233         Patch by Volker Borchert.
82234
82235         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82236         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
82237         sys/fs_types.h, and make the link-test for getfsstat guard #include
82238         directives with appropriate #if HAVE_*_H tests so that we can
82239         detect getfsstat on Apple Darwin1.3.7 systems.
82240         Reported by Nelson Beebe.
82241         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
82242
82243 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82244
82245         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82246         #defines strtoimax.  Also treat the other strto* functions
82247         like strtoimax.
82248
82249         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82250         Check for strtoul and strtoumax,
82251         as those declarations are made even in the signed case.
82252         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
82253         Likewise, for strtol and strtoimax.
82254
82255 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82256
82257         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82258         #defines strtoimax.  Also treat the other strto* functions
82259         like strtoimax.
82260
82261         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
82262         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
82263         (strtoimax, strtoumax): Do not declare if already defined as a macro.
82264
82265 2001-09-26  Jim Meyering  <meyering@lucent.com>
82266
82267         Most macros in unlocked-io.h had the wrong number of arguments.
82268         * lib/gen-uio: New script.
82269         (USE_UNLOCKED_IO): Define to 1 if not already defined.
82270         * lib/unlocked-io.hin: Remove file.
82271         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
82272         rather than trying to embed it here.
82273         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82274         Reported by Padraig Brady.
82275
82276 2001-09-25  Volker Borchert  <bt@teknon.de>
82277
82278         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82279         `result'.
82280
82281 2001-09-24  Jim Meyering  <meyering@lucent.com>
82282
82283         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82284
82285 2001-09-23  Jim Meyering  <meyering@lucent.com>
82286
82287         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82288         instead of the mere test for existence of mntent.h.  The latter
82289         would get a false-positive on AIX 3.4 systems.
82290         In the outer getmntent if-block, don't die if neither of the getmntent
82291         tests succeeds.  Instead, just fall through and continue with the
82292         remaining tests.
82293
82294 2001-09-23  Jim Meyering  <meyering@lucent.com>
82295
82296         * lib/mountlist.c: Remove useless parentheses in #if directives.
82297         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82298         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82299
82300 2001-09-22  Jim Meyering  <meyering@lucent.com>
82301
82302         * m4/gettext.m4: New file.  From gettext.
82303         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82304         * m4/progtest.m4: Likewise
82305         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82306         * m4/glibc21.m4: Likewise.
82307
82308         * m4/libintl.m4: Remove.  No longer used.
82309
82310 2001-09-22  Jim Meyering  <meyering@lucent.com>
82311
82312         * lib/localcharset.c: Update from latest gettext.
82313         * lib/config.charset: Likewise.
82314
82315 2001-09-20  Jim Meyering  <meyering@lucent.com>
82316
82317         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
82318         strtoimax.
82319         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
82320         strtoumax.
82321
82322 2001-09-20  Jim Meyering  <meyering@lucent.com>
82323
82324         * lib/xstrtol.c (strtoimax): Guard declaration with
82325         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
82326         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
82327         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
82328         (strtoumax): Likewise, for completeness (it wasn't necessary).
82329
82330 2001-09-17  Paul Eggert  <eggert@twinsun.com>
82331
82332         * lib/strtoimax.c (HAVE_LONG_LONG):
82333         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
82334         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
82335         to work around bug in IBM C compiler.
82336
82337 2001-09-17  Jim Meyering  <meyering@lucent.com>
82338
82339         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
82340         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
82341         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
82342         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
82343         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
82344         whenever the right hand side need not be expanded by the shell.
82345
82346 2001-09-16  Paul Eggert  <eggert@twinsun.com>
82347
82348         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
82349         library.  It's not correct, as some older glibcs are buggy.
82350         fnmatch wasn't fixed until glibc 2.2.
82351
82352         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
82353         special shell magic here.
82354
82355 2001-09-16  Jim Meyering  <meyering@lucent.com>
82356
82357         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
82358         * m4/jm-macros.m4: Require it.
82359
82360 2001-09-16  Jim Meyering  <meyering@lucent.com>
82361
82362         * lib/mkdir.c: New file.
82363
82364 2001-09-15  Jim Meyering  <meyering@lucent.com>
82365
82366         * m4/jm-macros.m4: Check for help2man.
82367
82368 2001-09-11  Jim Meyering  <meyering@lucent.com>
82369
82370         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
82371         The body, by Paul Eggert, was moved here from configure.in.
82372         * m4/jm-macros.m4: Require UTILS_HOST_OS.
82373
82374 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82375
82376         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
82377         (jm_PREREQ): Use it.
82378
82379 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82380
82381         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
82382         Use ssize_t, not int, to store result of readlink.
82383         Check for ssize_t overflow as well as size_t overflow,
82384         as POSIX says the result of readlink is implementation-defined
82385         when ssize_t overflows.
82386         Remove unnecessary cast to char*.
82387         Use free+malloc instead of realloc, as the storage doesn't need
82388         to be preserved and it's clearer and can be more efficient that way.
82389         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
82390         * lib/xreadlink.h (xreadlink): Update prototype.
82391
82392 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82393
82394         * lib/xgetcwd.c: Revert some of the previous change; intead,
82395         fix the HAVE_GETCWD_NULL code to behave more like the
82396         !HAVE_GETCWD_NULL code used to.
82397
82398         Include "xalloc.h".
82399         (xgetcwd): Do not return NULL when memory is exhausted; instead,
82400         invoke xalloc_die.
82401
82402 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82403
82404         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
82405         sys/param.h, as pathmax.h includes them.
82406
82407 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82408
82409         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
82410         (jm_PREREQ_XGETCWD): New macro.
82411
82412         * m4/getcwd.m4: New file.
82413
82414 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82415
82416         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
82417         like the HAVE_GETCWD_NULL code.
82418         Include pathmax.h if not HAVE_GETCWD.
82419         Do not include xalloc.h.
82420         (INITIAL_BUFFER_SIZE): New symbol.
82421         Do not use xmalloc / xrealloc, since the caller is responsible for
82422         handling errors.  Preserve errno around `free' during failure.
82423         Do not overrun buffer when using getwd.
82424
82425 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82426
82427         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
82428         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
82429         getcwd (NULL, 0).
82430
82431 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82432
82433         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
82434         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
82435         spotted by Jim Meyering.
82436
82437 2001-09-03  Jim Meyering  <meyering@lucent.com>
82438
82439         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
82440         failure.
82441
82442 2001-09-02  Jim Meyering  <meyering@lucent.com>
82443
82444         * lib/error.c: Update from GNU libc.
82445
82446 2001-09-01  Jim Meyering  <meyering@lucent.com>
82447
82448         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
82449         Used by df.
82450
82451 2001-09-01  Jim Meyering  <meyering@lucent.com>
82452
82453         * lib/xreadlink.c: New file.
82454         * lib/xreadlink.h: New file.
82455         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
82456         xreadlink.h.
82457
82458         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
82459         doesn't conflict with sparc Solaris 7's definition in
82460         /usr/include/sys/int_types.h.
82461
82462         * lib/exclude.c: Use `""', not `<>' to #include non-system header
82463         files.
82464         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
82465         and strncasecmp as r-values.  Unixware didn't have declarations.
82466
82467 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82468
82469         * lib/xstrtol.h: Add copyright notice.
82470         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
82471         LONGINT_INVALID_SUFFIX_CHAR.
82472
82473 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82474
82475         * lib/xstrtol.c (strtoimax): New decl.
82476
82477 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82478
82479         * lib/xgetcwd.c: Don't include pathmax.h.
82480         Include stdlib.h and unistd.h if available.
82481         Include xalloc.h.
82482         (xmalloc, xstrdup, free): Remove decls.
82483         (xgetcwd): Don't assume sizes fit in unsigned.
82484         Check for overflow when computing sizes.
82485         Simplify reallocation code.
82486
82487 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82488
82489         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
82490         a directory's st_size can have an arbitrary value, so the old
82491         usage could waste an arbitrary amount of memory.  All uses
82492         changed.
82493         * lib/savedir.h: Update prototype.
82494
82495 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82496
82497         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
82498
82499         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
82500         old strtoimax.c.
82501
82502         Also, make the following further changes to make this file's
82503         configuration more similar to that of strtol.c:
82504         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
82505         (strtoumax, uintmax_t, strtoull, strtol): Remove.
82506         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
82507         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
82508         changed to signed values.
82509
82510         And make the following changes as well:
82511         Fix copyright notice, as 1999 was missing.
82512         (verify): New macro.
82513         (strtoimax): Check sizes at compile-time, not run-time.
82514         Prefer strtol to strtoll if both work.
82515         (main): Remove; it was not that useful and was a pain to maintain.
82516
82517         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
82518
82519 2001-08-31  Jim Meyering  <meyering@lucent.com>
82520
82521         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
82522         Use an initial, malloc'd, buffer of length 128 rather than
82523         a statically allocated one of length 1024.
82524
82525 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82526
82527         Simplify code, partly by assuming autoconf 2.52 semantics.
82528
82529         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
82530
82531         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
82532         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
82533         All uses removed.
82534         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
82535         Move AC_REQUIRE to next-to-top level, to avoid confusion.
82536         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
82537         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
82538         jm_AC_HEADER_INTTYPES_H.
82539         * m4/jm-macros.m4 (jm_MACROS): Likewise.
82540
82541         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
82542
82543         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82544         Quote first arg of AC_DEFUN.
82545         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
82546         since they are needed to parse the include file even if we need
82547         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
82548         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
82549         but with opposite signedness.
82550
82551 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82552
82553         Merge 'exclude' changes from tar 1.13.22.
82554         This fixes one or two unlikely storage allocation overflow bugs,
82555         but doesn't change user-visible behavior otherwise.
82556
82557 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82558
82559         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
82560         (jm_PREREQ_EXCLUDE): New macro.
82561
82562 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82563
82564         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
82565         tm to be declared.
82566
82567 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82568
82569         * lib/hash.c: Remove '2001' from copyright notice.
82570
82571 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82572
82573         * lib/full-write.h: New file.
82574         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
82575         * lib/full-write.c: Correct credits, as cccp.c no longer
82576         exists and anyway it was so heavily changed from the old cccp
82577         code as to be unrecognizable.  Include full-write.h.
82578         (full_write): Return size_t, with short writes meaning failure.
82579         All callers changed.  This fixes a bug with large buffers
82580         on 64-bit hosts.
82581         * lib/utime.c: Include full-write.h.
82582
82583 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82584
82585         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
82586         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
82587         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
82588         Include if available.
82589         (<xalloc.h>): Include
82590         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
82591         (verify): New macro.  Use it to verify that EXCLUDE macros do not
82592         collide with FNM macros.
82593         (struct patopts): New struct.
82594         (struct exclude): Use it, as exclude patterns now come with options.
82595         (new_exclude): Support above changes.
82596         (new_exclude, add_exclude_file):
82597         Initial size must now be a power of two to simplify overflow checking.
82598         (free_exclude, fnmatch_no_wildcards): New function.
82599         (excluded_filename): No longer requires options arg, as the options
82600         are determined by add_exclude.  Now returns bool, not int.
82601         (excluded_filename, add_exclude):
82602         Add support for the fancy new exclusion options.
82603         (add_exclude, add_exclude_file): Now takes int options arg.
82604         Check for arithmetic overflow when computing sizes.
82605         (add_exclude_file): xrealloc might modify errno, so don't
82606         realloc until after errno might be used.
82607
82608         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
82609         New macros.
82610         (free_exclude): New decl.
82611         (add_exclude, add_exclude_file): Now takes int options arg.
82612         (excluded_filename): No longer requires options arg, as the options
82613         are determined by add_exclude.  Now returns bool, not int.
82614
82615 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82616
82617         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
82618
82619 2001-08-27  Jim Meyering  <meyering@lucent.com>
82620
82621         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
82622
82623         * lib/version-etc.c (N_): Remove definition.
82624         Revert most of last change.
82625         Instead, simply don't mark the `Copyright...' string for translation.
82626         Based on advice from Paul Eggert.
82627
82628         * lib/strtoxmax.c: Tweak comment.
82629
82630 2001-08-26  Jim Meyering  <meyering@lucent.com>
82631
82632         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
82633
82634         * m4/xstrtoimax.m4: New file.
82635         * m4/xstrtoumax.m4: Add comments explaining why we
82636         AC_REPLACE_FUNCS(strtol).
82637
82638 2001-08-26  Jim Meyering  <meyering@lucent.com>
82639
82640         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
82641         of copyright with `%s' so translators don't get an untranslated
82642         message in 2002.
82643         (COPYRIGHT_YEAR): Define.
82644         (version_etc): Use fprintf rather than fputs.
82645         Suggestion from Ulrich Drepper.
82646
82647         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
82648
82649         * lib/strtoll.c: New file, from GNU libc.
82650         * lib/xstrtoimax.c: New file.
82651
82652         * lib/xstrtol.h: Add xstrtoimax.
82653         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
82654         * lib/strtoimax.c: New file.  Likewise, but first define
82655         STRTOUXMAX_SIGNED.
82656
82657         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
82658         ...
82659         * lib/strtoxmax.c: ... then renamed to this.
82660
82661 2001-08-18  Paul Eggert  <eggert@twinsun.com>
82662
82663         * m4/inttypes.m4: Add AC_PREREQ(2.13).
82664         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
82665         (jm_AC_TYPE_INTMAX_T): New macro.
82666         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
82667
82668         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
82669
82670         * m4/longlong.m4: Renamed from ulonglong.m4.
82671         * m4/inttypes.m4: Renamed from inttypes_h.m4.
82672         * m4/uintmax_t.m4: Removed.
82673
82674 2001-08-13  Paul Eggert  <eggert@twinsun.com>
82675
82676         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
82677         Port to Solaris 8, where 'sed' requires a space after the 'r'
82678         command, and where sh dislikes "$/".  Clean up the spacing a bit.
82679         Redirect output to $tmp just once.
82680
82681 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
82682
82683         * lib/addext.c (<errno.h>): Include.
82684         (errno): Declare if not defined.
82685         (addext): Work correctly when pathconf returns -1 and leaves
82686         errno alone because there is no limit.  Also, work even if
82687         pathconf returns a value greater than SIZE_MAX.
82688
82689 2001-08-12  Jim Meyering  <meyering@lucent.com>
82690
82691         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
82692         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
82693         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
82694         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
82695         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
82696         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
82697         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
82698         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
82699         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
82700         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
82701         utime.m4, utimes.m4, xstrtoumax.m4:
82702         Quote the first argument in each use of AC_DEFUN.
82703
82704 2001-08-12  Jim Meyering  <meyering@lucent.com>
82705
82706         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
82707         Simply `return getcwd (NULL, 0);'.
82708         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
82709         Use 1300 as initial value for length, not PATH_MAX.
82710
82711         * lib/pathmax.h: Clean up cpp syntax.
82712
82713 2001-08-12  Jim Meyering  <meyering@lucent.com>
82714
82715         * lib/gettimeofday.c: New file.
82716         * lib/gtod.h: New file.
82717         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
82718
82719 2001-08-05  Jim Meyering  <meyering@lucent.com>
82720
82721         * m4/jm-macros.m4: Require autoconf-2.52.
82722
82723 2001-08-04  Jim Meyering  <meyering@lucent.com>
82724
82725         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
82726         stmt, to get in sync with glibc.
82727
82728 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82729
82730         The following changes are from gettext 0.10.39 as maintained by
82731         Bruno Haible.
82732
82733         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
82734         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
82735         with inverted sense.  All uses changed.
82736
82737         * lib/mbswidth.c: Don't include <limits.h>.
82738         Include <stdlib.h> and <string.h> unconditionally.
82739         (iswcntrl, mbsinit, ISCNTRL): New macros.
82740         (mbsnwidth): Use K&R style function declarations.
82741         Don't bother checking for MB_LEN_MAX == 1, since the compiler
82742         can optimize it when MB_CUR_MAX == 1.
82743         The width of control characters is zero, not 1.
82744
82745 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82746
82747         The following changes are from gettext 0.10.39 as maintained by
82748         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
82749
82750         * m4/codeset.m4: Upgrade to serial AM1.
82751         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
82752         all uses changed.  Quote first arg of AC_DEFUN.
82753         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
82754
82755         * m4/iconv.m4: Upgrade to serial AM2.
82756         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
82757         Add --with-libconv-prefix.
82758         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
82759         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
82760         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
82761         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
82762         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
82763
82764         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
82765         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
82766         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
82767         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
82768         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
82769         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
82770         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
82771         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
82772         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82773
82774         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
82775         string.h any more.
82776
82777         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
82778         not the default value.
82779
82780         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
82781         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
82782         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
82783         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
82784         Also check for iswcntrl, used for wcwidth fallback.
82785         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
82786         to Autoconf 2.13.
82787
82788 2001-08-03  Jim Meyering  <meyering@lucent.com>
82789
82790         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
82791         as it was in the original.  Reported by Paul Eggert.
82792
82793 2001-07-16  Jim Meyering  <meyering@lucent.com>
82794
82795         * m4/gettimeofday.m4: New file.
82796         Prompted by a report from Bernhard Baehr.
82797
82798 2001-07-15  Jim Meyering  <meyering@lucent.com>
82799
82800         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
82801         stuff. Now it's in ../Makefile.cfg.
82802
82803 2001-07-15  Jim Meyering  <meyering@lucent.com>
82804
82805         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
82806         (BUILT_SOURCES): Add unlocked-io.h.
82807         (io_functions): Define.
82808         (unlocked-io.h): New rule.
82809         (DISTCLEANFILES): Add unlocked-io.h.
82810         (all-local): Depend on unlocked-io.h, to ensure it is created.
82811
82812         * lib/unlocked-io.hin: New file
82813
82814         * lib/regex.c: Update from glibc.
82815
82816 2001-07-05  Jim Meyering  <meyering@lucent.com>
82817
82818         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
82819         recommendation.
82820         (libfetish_a_SOURCES): Put all .h files here instead.
82821         Remove a thus-exposed (better checks in automake) duplicate and
82822         two unnecessary .h files.
82823
82824 2001-07-04  Jim Meyering  <meyering@lucent.com>
82825
82826         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
82827         that generates jm-glibc-io.m4 so that it doesn't trigger any make
82828         distcheck failure.
82829
82830 2001-07-02  Jim Meyering  <meyering@lucent.com>
82831
82832         The following changes were prompted by suggestions from Bruno Haible.
82833
82834         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
82835         is now generated.
82836         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
82837         definition of EXTRA_DIST.
82838         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
82839         ensure that the generated file is created/updated whenever the list
82840         of $(unlocked_functions) is changed.
82841         (jm-glibc-io.m4): New rule.
82842         (unlocked-io.h): New rule -- currently unused.
82843
82844 2001-06-24  Jim Meyering  <meyering@lucent.com>
82845
82846         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
82847         unmatched right bracket, rather than kludging it with an extra,
82848         falsely-matching quote in a comment.  Patch by Akim Demaille.
82849
82850 2001-06-11  Jim Meyering  <meyering@lucent.com>
82851
82852         * lib/regex.c: Update from GNU libc.
82853
82854 2001-05-27  Jim Meyering  <meyering@lucent.com>
82855
82856         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
82857         Check for ut_type in struct utmp.
82858
82859 2001-05-27  Jim Meyering  <meyering@lucent.com>
82860
82861         * lib/readutmp.h (UT_TYPE): Define.
82862
82863 2001-05-24  Jim Meyering  <meyering@lucent.com>
82864
82865         * lib/argmatch.c: Include "quote.h".
82866         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
82867         quote function.  Reported by Göran Uddeborg.
82868
82869 2001-05-22  Jim Meyering  <meyering@lucent.com>
82870
82871         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
82872         now that we use the package-supplied version unconditionally.
82873         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
82874
82875 2001-05-21  Jim Meyering  <meyering@lucent.com>
82876
82877         * m4/regex.m4: Change a couple backticks to single quotes to avoid
82878         shell syntax errors.
82879
82880 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
82881
82882         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
82883
82884 2001-05-20  Paul Eggert  <eggert@twinsun.com>
82885
82886         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
82887         Don't bother to check library strftime, since
82888         we'll be using our own my_strftime function anyway.
82889         Define my_strftime instead of strftime.
82890
82891 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
82892
82893         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
82894         which is not yet declared.
82895
82896 2001-05-15  Jim Meyering  <meyering@lucent.com>
82897
82898         * m4/regex.m4: Use proper quoting so brackets appear in the test
82899         program.
82900         Reported by, and with help from, Bruno Haible.
82901
82902 2001-05-13  Jim Meyering  <meyering@lucent.com>
82903
82904         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
82905         undefined.
82906
82907 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82908
82909         dirname code cleanup.  base_name now behaves more compatibly
82910         with POSIX basename when given file names that have trailing
82911         slashes, and similarly for dir_name.  Add new primitives
82912         base_len and dir_len.  Put the directory-name-related decls
82913         into dirname.h.
82914
82915         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
82916         * lib/backupfile.c (base_name): Likewise.
82917         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
82918         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
82919         * lib/makepath.c (strip_trailing_slashes): Likewise.
82920         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
82921         ISSLASH): Likewise.
82922         * lib/rename.c (strip_trailing_slashes): Likewise.
82923         * lib/same.c (base_name): Likewise.
82924         * lib/stripslash.c (ISSLASH): Likewise.
82925
82926         * lib/addext.c: Include <dirname.h> after size_t is defined.
82927         * lib/backupfile.c: Likewise.
82928
82929         * lib/addext.c (addext): Use base_len to trim redundant
82930         trailing slashes instead of doing it ourselves.
82931         But do not trim the last slash if it is not redundant.
82932
82933         * lib/backupfile.c (find_backup_file_name,
82934         max_backup_version): Use base_len instead of rolling it ourselves.
82935         Handle the case of "" and (on DOS) "C:" correctly.
82936
82937         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
82938         needed. Include <string.h>, <dirname.h>.
82939         (base_name): Allow file names ending in slashes, other than names
82940         that are all slashes.  In this case, return the basename followed
82941         by the slashes.  This is more general, and can be used in places
82942         where the original base_name purposely had an assertion failure.
82943         (base_len): New function.
82944
82945         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
82946         Do not include <assert.h>; no longer needed.
82947         Include xalloc.h.
82948         (memrchr): Remove decl.
82949         (dir_name_r): Remove.
82950         (dir_len): Renamed from dirlen.  All callers changed.
82951         Rewrite in terms of base_name, for simplicity and consistency.
82952         (dir_name): Never return NULL.  All callers changed.
82953         Do not include <stdlib.h> in test program; no longer needed.
82954         return 0; is fine for test program.
82955
82956         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
82957         New macros.
82958         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
82959
82960         * lib/path-concat.c (path_concat): Use base_len to compute
82961         base length, not strlen; this means we cannot rely on memcpy
82962         to null-terminate.
82963
82964         * lib/same.c (STREQ): Remove.
82965         (same_name): Handle the case where the basename ends in trailing '/'.
82966
82967         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
82968         a slash was stripped.  Do not strip the last slash after a
82969         file system prefix.
82970
82971 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82972
82973         * lib/Makefile.am (libfetish_a_SOURCES):
82974         Add strftime.c, since we now compile it on all hosts.
82975
82976         * lib/strftime.c (my_strftime):
82977         Define to nstrftime if emacs, but only if my_strftime is not defined.
82978         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
82979         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
82980         Add one more extra argument: a nanoseconds value.
82981         All uses changed.
82982         (ns): New macro.
82983         (my_strftime function): Add %N format.
82984         (emacs_strftimeu): Renamed from emacs_strftime,
82985         with extra ut argument.
82986
82987 2001-05-09  Paul Eggert  <eggert@twinsun.com>
82988
82989         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
82990
82991 2001-04-21  Jim Meyering  <meyering@lucent.com>
82992
82993         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
82994         doesn't interfere.
82995
82996 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
82997
82998         * m4/ftruncate.m4: Check for chsize.
82999         Link with ftruncate.o unconditionally if ftruncate is missing.
83000         This was required when cross-compiling to i586-mingw32msvc.
83001
83002 2001-04-08  Jim Meyering  <meyering@lucent.com>
83003
83004         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83005         recomputed; that's necessary when the offset spans a DST transition.
83006         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83007
83008 2001-04-02  Jim Meyering  <meyering@lucent.com>
83009
83010         * lib/regex.h, regex.c: Update from GNU libc.
83011
83012 2001-03-24  Jim Meyering  <meyering@lucent.com>
83013
83014         * m4/jm-macros.m4: Require autoconf-2.49d.
83015
83016 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83017
83018         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83019
83020 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83021
83022         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83023
83024 2001-03-17  Jim Meyering  <meyering@lucent.com>
83025
83026         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83027         now that the version in autoconf is equivalent.
83028         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83029
83030         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83031         Suggestion from Akim Demaille.
83032
83033         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83034         (jm_PREREQ_TEMPNAME): New function.
83035
83036 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83037
83038         * lib/tempname.c (uint64_t): Define to uintmax_t if
83039         not defined, and if UINT64_MAX is not defined.
83040         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83041         Reported by John David Anglin.
83042
83043 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83044
83045         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83046         resolve alias if codeset is empty.
83047         * lib/config.charset (BeOS): Use wildcard syntax.
83048
83049 2001-03-13  Jim Meyering  <meyering@lucent.com>
83050
83051         * lib/path-concat.c (path_concat)
83052         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83053         concatenating e.g., `C:' and `foo'.
83054         From Bruno Haible.
83055
83056 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83057
83058         * lib/localcharset.c (locale_charset): Don't use
83059         setlocale(LC_CTYPE,NULL). Don't return NULL.
83060         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83061
83062 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83063
83064         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83065         support for DOS/DJGPP.
83066
83067 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83068
83069         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83070         lacks mkstemp.  Compile our own tempname.c if we compile our own
83071         mkstemp.c, as mkstemp relies on tempname.
83072
83073 2001-03-01  Jim Meyering  <meyering@lucent.com>
83074
83075         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83076         AH_VERBATIM really does output its argument verbatim.
83077
83078 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83079
83080         * lib/Makefile.am (libfetish_a_SOURCES):
83081         Add dup-safer.c, fopen-safer.c.
83082         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83083
83084         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83085         * lib/unistd-safer.h: New files.
83086
83087 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83088
83089         The mkstemp replacement is taken from glibc 2.2.2, with some
83090         portability fixes for use outside glibc, as follows:
83091
83092         * lib/tempname.c (struct_stat64): New macro.
83093         (direxists, __gen_tempname): Use it.
83094         This avoids a portability problem with Solaris 8.
83095
83096         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83097         (<stddef.h>, <stdint.h>, <string.h>):
83098         Include only if STDC_HEADERS || _LIBC.
83099         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83100         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83101         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83102         (__set_errno): Define this macro if <errno.h> doesn't.
83103         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83104         Define these macros if <stdio.h> doesn't.
83105         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83106         Define these macros if <sys/stat.h>
83107         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83108         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83109         __xstat64): Define if not _LIBC.
83110         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83111         (__gen_tempname): Invoke gettimeofday only if
83112         HAVE_GETTIMEOFDAY || _LIBC;
83113         otherwise, fall back on plain "time".
83114         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83115
83116         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83117
83118         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83119
83120 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83121
83122         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83123
83124 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83125
83126         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83127         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83128         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83129         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83130
83131 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83132
83133         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83134         Remove workaround macros for hosts that have mbrtowc but not
83135         mbstate_t, as we now insist on proper declarations for both
83136         before using mbrtowc.
83137
83138 2001-02-17  Jim Meyering  <meyering@lucent.com>
83139
83140         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83141         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83142         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83143         UnixWare 7.1.1.
83144
83145         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
83146         rather than AC_CACHE_VAL.
83147
83148 2001-02-17  Jim Meyering  <meyering@lucent.com>
83149
83150         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
83151         around included file name.
83152
83153         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
83154
83155         * lib/strftime.c: Update from GNU libc (the only changes were to
83156         comments).
83157
83158 2001-02-17  Jim Meyering  <meyering@lucent.com>
83159
83160         * lib/regex.c: Update from libc.
83161
83162 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
83163
83164         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
83165         clash.
83166
83167 2001-02-16  Paul Eggert  <eggert@twinsun.com>
83168
83169         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
83170         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
83171         Reported by Mark Hounschell via Paul Eggert.
83172
83173 2001-02-07  Jim Meyering  <meyering@lucent.com>
83174
83175         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
83176
83177 2001-02-05  Jim Meyering  <meyering@lucent.com>
83178
83179         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
83180         it includes the patch required for `large file' support with at least
83181         HP-UX's 10.20 /bin/cc.
83182
83183 2001-02-03  Jim Meyering  <meyering@lucent.com>
83184
83185         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
83186         AS_IF, now that it works once again (mysteriously).
83187         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83188
83189 2001-01-30  Jim Meyering  <meyering@lucent.com>
83190
83191         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
83192         * m4/chown.m4: Rename conftestchown to conftest.chown.
83193         * m4/rename.m4: s/conftestdir/conftest.d1/ and
83194         s/conftestdir2/conftest.d2/.
83195         * m4/utimes.m4: s/conftestdata/conftest.data/
83196         Inspired by Pavel Roskin's change in autoconf.
83197
83198 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
83199
83200         * lib/config.charset: Update for FreeBSD 4.2.
83201
83202 2001-01-27  Jim Meyering  <meyering@lucent.com>
83203
83204         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
83205         a use of AS_IF.
83206         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83207
83208 2001-01-26  Jim Meyering  <meyering@lucent.com>
83209
83210         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
83211         quotearg.c includes it.
83212
83213 2001-01-26  Jim Meyering  <meyering@lucent.com>
83214
83215         * lib/quotearg.c: Include stddef.h.
83216         * lib/quote.c: Include stddef.h.
83217         Reported by Axel Kittenberger.
83218
83219         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
83220         line in double quotes so that it evokes a better diagnostic.
83221         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
83222         Reported by Axel Kittenberger.
83223
83224 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
83225
83226         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
83227         as if it was a `charset'.
83228
83229 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83230
83231         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
83232         has const.
83233
83234 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83235
83236         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
83237         to avoid a warning.  Add back 'const' to inptr.
83238
83239 2001-01-20  Jim Meyering  <meyering@lucent.com>
83240
83241         Be sure that headers are checked before used in code compiled
83242         for the type checks.
83243         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
83244         In place of that, invoke jm_CHECK_ALL_TYPES.
83245         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
83246         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
83247         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
83248         The check for ssize_t was mistakenly run before the test for unistd.h.
83249
83250         The configure-time check for stdbool.h was missing.
83251         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
83252         (jm_PREREQ_HASH): New function.
83253
83254 2001-01-17  Jim Meyering  <meyering@lucent.com>
83255
83256         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
83257         for autoconf-2.49c.
83258         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
83259
83260 2001-01-16  Jim Meyering  <meyering@lucent.com>
83261
83262         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
83263         From Bruno Haible.
83264
83265 2001-01-14  Jim Meyering  <meyering@lucent.com>
83266
83267         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
83268         foo and bar.  Create conftestdir/ in the script, not in the C code.
83269         Remove directories in the script, not in the C code.
83270         Remove conftestdir{,2} before trying to create the directory.
83271         Make the entire configure script fail if the mkdir fails.
83272
83273 2001-01-14  Jim Meyering  <meyering@lucent.com>
83274
83275         * lib/rename.c: New file.  From Volker Borchert.
83276         Include stdlib.h, string.h or strings.h, and xalloc.h.
83277         Use strip_trailing_slashes rather than open-coding it.
83278
83279 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83280
83281         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83282
83283 2001-01-03  Jim Meyering  <meyering@lucent.com>
83284
83285         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83286         of local `inptr' to avoid warning with some system declarations of
83287         iconv.
83288
83289 2001-01-02  Volker Borchert  <bt@teknon.de>
83290
83291         * m4/rename.m4: New file.
83292         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83293
83294 2001-01-01  Jim Meyering  <meyering@lucent.com>
83295
83296         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83297         even on systems with utmpx.h.  It's necessary for the declaration of
83298         utmp's ut_user member.  Reported by Andreas Jaeger.
83299
83300         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83301         available. They are required for the declarations of getgrgid and
83302         getpwuid resp.
83303         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83304         Reported by Andreas Jaeger.
83305
83306 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83307
83308         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
83309         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
83310         so `make install' also works in VPATH builds.
83311
83312 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
83313
83314         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
83315         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
83316         can be used in subdirectories.
83317
83318 2000-12-29  Paul Eggert  <eggert@twinsun.com>
83319
83320         * lib/modechange.c: Do not assume that mode_t uses the
83321         traditional octal encoding.  E.g. "chmod 1 FOO" should set
83322         the other-execute bit of FOO even if S_IXOTH != 1.
83323
83324         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
83325         WOTH, XOTH, ALLM): New macros.
83326         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
83327          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
83328         Use them.
83329         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
83330         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
83331         (mode_compile):
83332         No need to use uintmax_t; unsigned long is long enough.
83333         Don't bother to get suffix since we don't use it.
83334
83335 2000-12-26  Jim Meyering  <meyering@lucent.com>
83336
83337         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
83338         better with autoheader.
83339
83340 2000-12-24  Jim Meyering  <meyering@lucent.com>
83341
83342         * lib/hash.c (is_prime): Return explicit boolean values.
83343         (hash_get_first): Return NULL to appease Irix5.6's 89.
83344         Reported by Nelson Beebe.
83345
83346 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
83347
83348         * lib/localcharset.c (locale_charset): Add support for Win32.
83349
83350 2000-12-18  Paul Eggert  <eggert@twinsun.com>
83351
83352         * lib/physmem.h, lib/physmem.c: New files.
83353
83354         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
83355         (noinst_HEADERS): Add physmem.h.
83356
83357         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
83358         't' for compatibility with Solaris 8 sort.
83359
83360 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
83361
83362         * lib/config.charset: Add support for BeOS.
83363
83364 2000-12-17  Jim Meyering  <meyering@lucent.com>
83365
83366         * m4/dos.m4 (jm_AC_DOS): New file and macro.
83367         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
83368
83369 2000-12-16  Jim Meyering  <meyering@lucent.com>
83370
83371         This bug had a serious impact on chown: `chown N:M FILE' (for integer
83372         N and M) would have treated it like `chown N:N FILE'.
83373
83374         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
83375
83376 2000-12-16  Jim Meyering  <meyering@lucent.com>
83377
83378         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
83379         SHELLS_FILE to a file name that's useful on djgpp systems.
83380         Include stdlib.h.
83381         (ADDITIONAL_DEFAULT_SHELLS): Define.
83382         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
83383         Based mostly on a patch from Prashant TR.
83384
83385 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
83386
83387         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
83388         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
83389         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
83390
83391 2000-12-08  Andreas Schwab  <schwab@suse.de>
83392
83393         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
83394         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
83395
83396 2000-12-07  Jim Meyering  <meyering@lucent.com>
83397
83398         * lib/stripslash.c (ISSLASH): Define.
83399         (strip_trailing_slashes): Use ISSLASH rather than comparing against
83400         `/'.
83401         From Prashant TR.
83402
83403         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
83404         (dir_name_r): Declare this function as static.
83405         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
83406         manifest itself on a name containing a mix of slashes and
83407         backslashes.
83408         Make this function work with names starting with a DOS-style
83409         drive letter and colon prefix.
83410         (dir_name): Append `.' if necessary.
83411         Based mostly on patches from Prashant TR and Eli Zaretskii.
83412
83413         * lib/dirname.h (dir_name_r): Remove prototype.
83414
83415 2000-12-06  Paul Eggert  <eggert@twinsun.com>
83416
83417         * m4/off_t-format.m4: Remove this file.
83418         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
83419
83420 2000-12-06  Jim Meyering  <meyering@lucent.com>
83421
83422         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
83423         replacement strtoull, we may well need the replacement strtoul, too.
83424         Check for declarations of strtoul and strtoull.
83425         Check for strtol.  Mainly as a cue to cause automake to include
83426         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
83427         Check for limits.h -- strtol.c needs it.
83428
83429 2000-12-05  Jim Meyering  <meyering@lucent.com>
83430
83431         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
83432
83433 2000-12-04  Jim Meyering  <meyering@lucent.com>
83434
83435         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
83436         Also include memory.h, stdlib.h, unistd.h if appropriate.
83437         Reported by Andreas Jaeger (conflicting declaration of malloc).
83438
83439 2000-12-02  Jim Meyering  <meyering@lucent.com>
83440
83441         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
83442         * m4/jm-macros.m4 (jm_MACROS): require it.
83443
83444 2000-12-02  Jim Meyering  <meyering@lucent.com>
83445
83446         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
83447
83448 2000-12-01  Paul Eggert  <eggert@twinsun.com>
83449
83450         * lib/memrchr.c: Include <config.h> before any system include file.
83451
83452 2000-11-30  Jim Meyering  <meyering@lucent.com>
83453
83454         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
83455
83456 2000-11-30  Jim Meyering  <meyering@lucent.com>
83457
83458         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
83459
83460 2000-11-29  Paul Eggert  <eggert@twinsun.com>
83461
83462         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
83463
83464 2000-11-26  Jim Meyering  <meyering@lucent.com>
83465
83466         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
83467
83468 2000-11-22  Paul Eggert  <eggert@twinsun.com>
83469
83470         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
83471         size of (size_t) -1; it's not portable.
83472
83473 2000-11-17  Jim Meyering  <meyering@lucent.com>
83474
83475         * lib/strstr.c: Update from GNU libc.
83476
83477 2000-11-17  Akim Demaille  <akim@epita.fr>
83478
83479         * lib/obstack.h: Formatting changes.
83480         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
83481         prevent type checking.
83482         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
83483         cast the value to (void *): assigning a `foo *' to a `void *'
83484         variable is valid.
83485         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
83486
83487 2000-11-16  Jim Meyering  <meyering@lucent.com>
83488
83489         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
83490
83491 2000-11-11  Jim Meyering  <meyering@lucent.com>
83492
83493         * lib/error.c: Add a couple #includes, merging from GNU libc version.
83494
83495 2000-11-10  Jim Meyering  <meyering@lucent.com>
83496
83497         * lib/obstack.h: Update from GNU libc.
83498         * lib/obstack.c: Likewise.
83499
83500 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
83501
83502         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
83503
83504 2000-11-06  Paul Eggert  <eggert@twinsun.com>
83505
83506         * lib/getusershell.c (setusershell): Use rewind rather than
83507         fseek/fseeko, to avoid configuration hassles with fseeko.
83508         Don't bother opening SHELLS_FILE if shellstream is NULL;
83509         it's not necessary.
83510
83511 2000-11-05  Jim Meyering  <meyering@lucent.com>
83512
83513         * lib/makepath.h (make_dir): Declare.
83514         * lib/makepath.c (make_dir): Remove `static' attribute.
83515         Tweak a comment.
83516
83517 2000-11-04  Jim Meyering  <meyering@lucent.com>
83518
83519         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
83520
83521 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
83522
83523         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
83524         last one in a bucket, advance to the next bucket.
83525
83526 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
83527
83528         * lib/fnmatch.c: Do not comment out all the code if we are using
83529         the GNU C library, because in some cases we are replacing buggy
83530         code in the GNU C library itself.
83531
83532 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
83533
83534         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
83535         (regex_compile): Catch bogus \(\1\).
83536
83537 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83538
83539         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
83540         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
83541         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
83542
83543 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83544
83545         * lib/error.h, getline.h, modechange.h:
83546         Remove "2000" from Copyright line, as the file hasn't been
83547         changed this year other than in the copyright notice.
83548
83549         * lib/xalloc.h: Add "2000" to Copyright line, as this file
83550         was changed this year.
83551
83552 2000-10-29  Jim Meyering  <meyering@lucent.com>
83553
83554         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
83555         renaming.
83556         * m4/ls-mntd-fs.m4: Likewise
83557
83558 2000-10-29  Jim Meyering  <meyering@lucent.com>
83559
83560         * lib/xstat.in: Fix grammar in comment.
83561
83562 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
83563
83564         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
83565         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
83566         doesn't define __restrict_arr.
83567
83568 2000-10-28  Jim Meyering  <meyering@lucent.com>
83569
83570         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
83571         (jm_PREREQ_MEMCHR): New function.
83572
83573 2000-10-28  Jim Meyering  <meyering@lucent.com>
83574
83575         * lib/memchr.c: Update from libc.
83576         Adjust for portability:
83577         [HAVE_STDLIB_H]: Include stdlib.h.
83578         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
83579         Undef __memchr, too.
83580         [!weak_alias]: Define __memchr to memchr.
83581
83582         * lib/regex.c: Update from libc.
83583         * lib/regex.h: Likewise.
83584         * lib/getopt1.c: Likewise.
83585         * lib/memcmp.c: Likewise.
83586
83587         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
83588         Avoid using fseek, when possible -- it's broken by design.
83589         Patch by Ulrich Drepper.
83590
83591 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
83592
83593         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
83594         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
83595         Giving in to popular pressure to shut up the compiler with casts.
83596
83597 2000-10-26  Jim Meyering  <meyering@lucent.com>
83598
83599         * lib/strftime.c: Update from libc.
83600
83601 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
83602
83603         * regex.c: More `unsigned char' -> `re_char' changes.
83604         Also change several `int' into `re_wchar_t'.
83605         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
83606         (PUSH_FAILURE_POINTER): Don't cast any more.
83607         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
83608         We want GCC to complain, since this piece of code makes
83609         re_match non-reentrant, which *should* be fixed.
83610         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
83611         (EXTEND_BUFFER): Use RETALLOC.
83612         (SET_LIST_BIT): Don't cast.
83613         (re_wchar_t): New type.
83614         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
83615         that those two functions will always properly return.
83616         (IMMEDIATE_QUIT_CHECK): Cast to void.
83617         (analyse_first): Use recursion rather than an explicit stack.
83618         (re_compile_fastmap): Can't fail anymore.
83619         (re_search_2): Don't check re_compile_fastmap for failure.
83620         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
83621         Now also sets the new value (passed in a new argument).
83622         (re_match_2_internal): Use it.
83623         Also, use a new var `reg' of type size_t when looping through regs
83624         rather than reuse the inappropriate `mcnt'.
83625
83626 2000-10-25  Jim Meyering  <meyering@lucent.com>
83627
83628         * lib/obstack.c: Update from libc.
83629
83630 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
83631
83632         * regex.c (regex_compile): Change the way of handling a range from
83633         a char less than 256 to a char not less than 256.
83634
83635 2000-10-24  Andrew Innes  <andrewi@gnu.org>
83636
83637         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
83638         NT-Emacs only.
83639         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
83640         so that re_search functions only quit when callers expect them to.
83641
83642 2000-10-23  Jim Meyering  <meyering@lucent.com>
83643
83644         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
83645         wrong.  That set_locale call must not have any side effects.
83646         From Paul Eggert.
83647
83648 2000-10-22  Jim Meyering  <meyering@lucent.com>
83649
83650         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
83651         [CYCLIC]: Remove now-unused definition.
83652
83653         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
83654         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
83655         Suggestion from Ulrich Drepper.
83656
83657 2000-10-21  Jim Meyering  <meyering@lucent.com>
83658
83659         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
83660         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
83661         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
83662
83663 2000-10-21  Jim Meyering  <meyering@lucent.com>
83664
83665         * lib/dirname.c (memrchr): Declare if necessary.
83666         (dir_name): Remove the restriction that there be no
83667         trailing slashes.  Now, this code skips past them, effectively
83668         ignoring them.
83669         [TEST_DIRNAME] (main): New unit tests.
83670
83671         * lib/memrchr.c: New file from GNU libc.
83672         Undef __memrchr, too.
83673         [!weak_alias]: Define __memrchr to memrchr.
83674         Guard weak_alias use with `#ifdef weak_alias'.
83675
83676 2000-10-21  Jim Meyering  <meyering@lucent.com>
83677
83678         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
83679         (dir_name): Use dir_name_r.
83680         * lib/dirname.h (dir_name_r): Declare it.
83681
83682 2000-10-17  Jim Meyering  <meyering@lucent.com>
83683
83684         * lib/quote.h (PARAMS): Define and use.
83685         Reported by Akim Demaille.
83686
83687         * lib/getopt.c: Update from libc.
83688
83689 2000-10-16  Jim Meyering  <meyering@lucent.com>
83690
83691         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
83692         setlocale.
83693         From Jan Fedak.
83694
83695 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
83696
83697         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
83698
83699 2000-09-25  Jim Meyering  <meyering@lucent.com>
83700
83701         * lib/md5.h (rol): Define (from GnuPG).
83702
83703         * lib/sha.c: Give credit (GnuPG) where due.
83704         (M): Use rol rather than open-coding it.
83705         Add a FIXME comment.
83706
83707 2000-09-21  Jim Meyering  <meyering@lucent.com>
83708
83709         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
83710         Reported by Michael Stone.
83711
83712 2000-09-20  Jim Meyering  <meyering@lucent.com>
83713
83714         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
83715         (noinst_HEADERS): Add sha.h.
83716         Based on code from Scott G. Miller and from GnuPG.
83717
83718 2000-09-18  Jim Meyering  <meyering@lucent.com>
83719
83720         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
83721         LIBS. Otherwise, everyone ends up linking with -lelf for some
83722         configurations.
83723         Reported by Mike Stone.
83724
83725 2000-09-15  Jim Meyering  <meyering@lucent.com>
83726
83727         * lib/regex.c: Update from libc.
83728
83729 2000-09-10  Jim Meyering  <meyering@lucent.com>
83730
83731         * lib/getopt.c (_getopt_internal): Update from glibc.
83732
83733 2000-09-09  Jim Meyering  <meyering@lucent.com>
83734
83735         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
83736         think it should be used as a general replacement for isascii.
83737         * lib/fnmatch.c: Likewise.
83738         * lib/mbswidth.c: Likewise
83739         * lib/regex.c: Likewise.
83740
83741         Don't use atoi.
83742         * lib/userspec.c: Include sys/param.h and limits.h.
83743         Include xstrtol.h.
83744         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
83745         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
83746         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
83747         UID, GID.  Check range.
83748
83749 2000-09-06  Jim Meyering  <meyering@lucent.com>
83750
83751         * lib/getopt.c (_getopt_internal): Update from glibc.
83752
83753 2000-08-30  Jim Meyering  <meyering@lucent.com>
83754
83755         * lib/strftime.c: Merge in changes from GNU libc.
83756
83757 2000-08-26  Jim Meyering  <meyering@lucent.com>
83758
83759         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
83760         * m4/fpending.m4: New file.
83761
83762 2000-08-26  Jim Meyering  <meyering@lucent.com>
83763
83764         * lib/closeout.c: Include "__fpending.h".
83765         (close_stdout_status): Return right away if there's nothing to flush.
83766
83767         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
83768         * lib/__fpending.c: New file.
83769         * lib/__fpending.h: New file.
83770
83771 2000-08-20  Jim Meyering  <meyering@lucent.com>
83772
83773         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
83774         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
83775         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
83776
83777 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
83778
83779         Improve fileutils installation on systems where running
83780         programs (like install) can't be unlinked.
83781         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
83782         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
83783
83784 2000-08-07  Paul Eggert  <eggert@twinsun.com>
83785
83786         Standardize on "memory exhausted" instead of "Memory exhausted"
83787         or "virtual memory exhausted".
83788         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
83789         "virtual memory exhausted".
83790         * lib/same.c (same_name): Invoke xalloc_die instead of printing
83791         our own message.
83792         * lib/userspec.c (parse_user_spec): Likewise.
83793         * lib/bumpalloc.h: comment fix
83794         * lib/same.c, userspec.c: Include xalloc.h.
83795
83796         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
83797         not char *const and pointing to a constant array.
83798         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
83799         (xrealloc): Comment fix.
83800
83801         * lib/userspec.c (parse_user_spec):
83802         Don't translate a message until just before returning,
83803         to avoid unnecessary translation.
83804
83805 2000-08-07  Jim Meyering  <meyering@lucent.com>
83806
83807         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
83808         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
83809         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
83810         getgroups.c, gethostname.c, getopt.h, group-member.c,
83811         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
83812         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
83813         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
83814         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
83815         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
83816         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
83817         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
83818         yesno.c: Back out Copyright date changes for each file with no change
83819         this year.  This eases coordination with other programs using the same
83820         source code modules.  From Paul Eggert.
83821
83822 2000-08-06  Paul Eggert  <eggert@twinsun.com>
83823
83824         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
83825         not char, for compatibility with glibc 2.1.3 strftime.c.
83826
83827 2000-08-03  Greg McGary  <greg@mcgary.org>
83828
83829         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
83830         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
83831         (EXTEND_BUFFER): Use them.
83832
83833 2000-08-01  Jim Meyering  <meyering@lucent.com>
83834
83835         * lib/dirname.c (ISSLASH): Define.
83836         (BACKSLASH_IS_PATH_SEPARATOR): Define.
83837         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
83838         both `\' and `/' may be use as path separators.
83839         Based on a patch from Prashant TR.
83840
83841 2000-07-31  Paul Eggert  <eggert@twinsun.com>
83842
83843         * lib/quotearg.c (quotearg_n_options): Don't make the initial
83844         slot vector a constant, since it might get modified.
83845
83846 2000-07-31  Jim Meyering  <meyering@lucent.com>
83847
83848         * lib/xmalloc.c: Use `virtual memory exhausted', not
83849         `Memory exhausted'.
83850         * lib/obstack.c (print_and_abort): Likewise.
83851
83852 2000-07-30  Paul Eggert  <eggert@twinsun.com>
83853
83854         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
83855         buffer, so that the caller can always quote one small
83856         component of a "memory exhausted" message in slot 0.
83857         From a suggestion by Jim Meyering.
83858
83859 2000-07-30  Jim Meyering  <meyering@lucent.com>
83860
83861         * lib/makepath.c (make_path): Quote the other instance, too.
83862
83863         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
83864         (STATIC_BUF_SIZE): Define.
83865         (quotearg_n_options): Use only statically allocated storage when
83866         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
83867         than STATIC_BUF_SIZE.
83868
83869 2000-07-29  Jim Meyering  <meyering@lucent.com>
83870
83871         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
83872         * lib/dirname.c (dir_name): Likewise.
83873
83874         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
83875         `/'.
83876
83877         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
83878         (dir_name): Assert that there are no trailing slashes.
83879
83880 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
83881
83882         * lib/mbswidth.h (mbswidth): Add a flags argument.
83883         (mbswidth): New declaration.
83884         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
83885         * lib/mbswidth.c (mbswidth): Add a flags argument.
83886         (mbsnwidth): New function.
83887
83888 2000-07-24  Jim Meyering  <meyering@lucent.com>
83889
83890         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
83891
83892 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83893
83894         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
83895
83896 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83897
83898         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
83899         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
83900         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
83901         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
83902         invoke multibyte primitives.
83903
83904 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83905
83906         * lib/quotearg.c:
83907         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
83908         so that mbstate_t is always defined.
83909
83910         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
83911         be 1 in at least one GCC installation, and this configuration
83912         error is likely to be common.  Ignoring MB_LEN_MAX hurts
83913         performance on hosts that have mbrtowc but have only unibyte
83914         locales, but I assume these hosts are rare.
83915
83916 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83917
83918         * lib/mbswidth.c (_XOPEN_SOURCE):
83919         Don't define; this causes problems on Solaris 7.
83920         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
83921
83922 2000-07-23  Jim Meyering  <meyering@lucent.com>
83923
83924         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
83925         too: getgrgid, getpwuid, getuid.
83926
83927 2000-07-23  Jim Meyering  <meyering@lucent.com>
83928
83929         * lib/basename.c (base_name): Add an assertion.
83930
83931 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
83932
83933         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
83934         shadow its mbsinit function.
83935
83936 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
83937
83938         * lib/mbswidth.h: New file.
83939         * lib/mbswidth.c: New file.
83940         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
83941         (noinst_HEADERS): Add mbswidth.h.
83942
83943 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
83944
83945         * lib/config.charset: Add support for FreeBSD. Improve support for
83946         HP-UX and IRIX 6.
83947
83948 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
83949
83950         * m4/mbswidth.m4: New file.
83951         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
83952
83953 2000-07-15  Jim Meyering  <meyering@lucent.com>
83954
83955         * lib/makepath.c: Include quote.h.
83956         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
83957         corresponding argument in a `quote (...)' call.
83958         Give better diagnostics.
83959
83960         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
83961         (noinst_HEADERS): Add quote.h.
83962
83963         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
83964         from tar's src/misc.c.
83965         * lib/quote.h: New file.  Prototypes for same.
83966
83967 2000-07-14  Paul Eggert  <eggert@twinsun.com>
83968
83969         From a suggestion by Bruno Haible.
83970         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
83971         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
83972         to decide whether to define the BeOS workaround macro;
83973         this adjusts to the change to AC_MBSTATE_T.
83974
83975 2000-07-14  Jim Meyering  <meyering@lucent.com>
83976
83977         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
83978         jm_AC_TYPE_UINTMAX_T.
83979
83980 2000-07-13  Paul Eggert  <eggert@twinsun.com>
83981
83982         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
83983
83984         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
83985         quotearg_buffer_restyled): Add support for
83986         clocale_quoting_style.  Undo previous change to
83987         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
83988         and "{RIGHT QUOTATION MARK}" msgids.
83989
83990 2000-07-10  Paul Eggert  <eggert@twinsun.com>
83991
83992         From a suggestion by Bruno Haible.
83993         * m4/mbstate_t.m4 (AC_MBSTATE_T):
83994         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
83995         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
83996         and mbstate_t, to a single-part test that simply defines mbstate_t.
83997         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
83998         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
83999
84000 2000-07-10  Jim Meyering  <meyering@lucent.com>
84001
84002         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84003
84004         * m4/gnu-source.m4: Output to confdefs.h directly.
84005         Suggestion from Akim Demaille.
84006
84007 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84008
84009         The old behavior of quoting `like this' doesn't look good with
84010         newer, ISO-style fonts.  See:
84011         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84012
84013         Instead, quote "like this" by default.  Let the translator
84014         tailor the locale-specific quoting behavior by providing
84015         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84016
84017         * lib/quotearg.c (N_): New macro.
84018         (gettext_default): New function.
84019         (quotearg_buffer_restyled): Use
84020         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84021         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84022
84023 2000-07-09  Jim Meyering  <meyering@lucent.com>
84024
84025         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84026         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84027
84028         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84029         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84030
84031 2000-07-09  Jim Meyering  <meyering@lucent.com>
84032
84033         * lib/Most files: Update copyright dates to include 2000.
84034
84035 2000-07-08  Jim Meyering  <meyering@lucent.com>
84036
84037         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84038         if not defined.
84039         (xgethostname): Remove now-unnecessary #ifdef.
84040         Move declaration of `err' into loop where it's used.
84041
84042 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84043         and Bruno Haible  <haible@clisp.cons.org>
84044
84045         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84046         only if the test for an object-type mbstate_t fails.  This
84047         prevents us from mistakenly reporting that mbstate_t is a
84048         system object type after we "#define mbstate_t int" to work
84049         around its lack.
84050
84051 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84052         and Bruno Haible  <haible@clisp.cons.org>
84053
84054         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84055
84056 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84057
84058         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84059         to strerror_r.
84060         Include <ctype.h> for use of isalpha.
84061
84062 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84063
84064         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84065         by allocating a larger buffer. Test the gethostname return value for
84066         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84067         returns an error and ENAMETOOLONG isn't defined.
84068
84069 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84070
84071         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84072         dimension.
84073
84074 2000-07-04  Jim Meyering  <meyering@lucent.com>
84075
84076         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84077         of the deprecated AC_CHECKING.
84078
84079 2000-07-04  Jim Meyering  <meyering@lucent.com>
84080
84081         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84082         Reported by Bruno Haible.
84083
84084 2000-07-04  Jim Meyering  <meyering@lucent.com>
84085
84086         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84087         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84088         lacks mbrtowc.
84089
84090 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84091
84092         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84093         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84094
84095 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84096         and Bruno Haible  <haible@clisp.cons.org>
84097
84098         * lib/quotearg.c (mbrtowc):
84099         Assign to *pwc, and return 1 only if result is nonzero.
84100         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84101
84102 2000-07-03  Jim Meyering  <meyering@lucent.com>
84103
84104         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84105
84106 2000-07-03  Jim Meyering  <meyering@lucent.com>
84107
84108         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84109         This is necessary to get a definition of e.g., UTMP_FILE on
84110         HP-UX 10.20.
84111         From Bob Proulx.
84112
84113 2000-07-02  Jim Meyering  <meyering@lucent.com>
84114
84115         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84116
84117         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84118         AC_LIBOBJ(function_name).
84119         * m4/chown.m4: Likewise.
84120         * m4/fnmatch.m4: Likewise.
84121         * m4/ftruncate.m4: Likewise.
84122         * m4/getgroups.m4: Likewise.
84123         * m4/getline.m4: Likewise.
84124         * m4/group-member.m4: Likewise.
84125         * m4/jm-macros.m4: Likewise.
84126         * m4/lstat.m4: Likewise.
84127         * m4/malloc.m4: Likewise.
84128         * m4/memcmp.m4: Likewise.
84129         * m4/nanosleep.m4: Likewise.
84130         * m4/putenv.m4: Likewise.
84131         * m4/realloc.m4: Likewise.
84132         * m4/regex.m4: Likewise.
84133         * m4/stat.m4: Likewise.
84134         * m4/strftime.m4: Likewise.
84135
84136 2000-07-02  Jim Meyering  <meyering@lucent.com>
84137
84138         * lib/quotearg.c (mbstate_t): Don't define here.
84139
84140 2000-07-02  Jim Meyering  <meyering@lucent.com>
84141
84142         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84143
84144 2000-07-01  Jim Meyering  <meyering@lucent.com>
84145
84146         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
84147
84148 2000-07-01  Jim Meyering  <meyering@lucent.com>
84149
84150         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
84151         problem.
84152
84153 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84154
84155         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
84156         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
84157
84158 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84159
84160         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
84161         per change in ../m4/ls-mntd-fs.m4.
84162         (read_filesystem_list): Ignore symbolic links.
84163
84164 2000-06-29  Jim Meyering  <meyering@lucent.com>
84165
84166         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
84167         for declaration of strcmp.
84168
84169         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
84170
84171         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
84172         Avoid warning by casting result to `char *' to remove `const'.
84173
84174 2000-06-28  Jim Meyering  <meyering@lucent.com>
84175
84176         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
84177         included by quotearg.c, for which we perform this test.  From
84178         Bruno Haible.
84179
84180 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84181
84182         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
84183         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
84184         <utmpx.h> exists, put readutmp.o into LIBOBJS.
84185
84186 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84187
84188         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
84189
84190 2000-06-26  Paul Eggert  <eggert@twinsun.com>
84191
84192         savedir now sets errno on failure and invokes xmalloc to get memory.
84193         Fix a couple of other minor bugs while we're at it.
84194
84195         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
84196         (NAMLEN): Remove macro.
84197         (malloc, realloc): Remove decls.
84198         (stpcpy): Likewise.
84199         ("xalloc.h"): Include.
84200         (NAME_SIZE_DEFAULT): New macro.
84201         (savedir): Use xmalloc / xrealloc to allocate memory.
84202         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
84203         Skip "" directory entries.
84204         Use strlen to calculate directory entry length, since the old method
84205         is rarely used these days and isn't worth supporting.
84206         Don't use a pointer after freeing it.
84207         Check for integer overflow when calculating allocation size.
84208         Use memcpy to copy entries, instead of stpcpy.
84209         Set errno properly when returning NULL.
84210         Check for readdir error.
84211
84212 2000-06-26  Jim Meyering  <meyering@lucent.com>
84213
84214         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
84215
84216 2000-06-25  Jim Meyering  <meyering@lucent.com>
84217
84218         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
84219         Linux header bug when _XOPEN_SOURCE is defined to 500.
84220
84221 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84222
84223         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
84224         deficiency.
84225
84226 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84227
84228         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
84229         Include xalloc.h.
84230         Don't include <stdlib.h>.  Don't declare malloc, realloc.
84231
84232 2000-06-24  Jim Meyering  <meyering@lucent.com>
84233
84234         * m4/strerror_r.m4: Revive this file -- to try out an experimental
84235         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
84236         for which strerror does return char*, but which lacks a conveniently
84237         accessible declaration of the function.  If the compile-test says
84238         strerror_r doesn't work, then resort to a `run'-test that works on
84239         BeOS and segfaults on DEC Unix.
84240
84241 2000-06-24  Jim Meyering  <meyering@lucent.com>
84242
84243         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
84244
84245 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84246
84247         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
84248         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
84249
84250 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84251
84252         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
84253         (mbrtowc, mbstate_t): Define substitutes if
84254         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
84255         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
84256         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
84257
84258 2000-06-23  Jim Meyering  <meyering@lucent.com>
84259
84260         * m4/afs.m4: Add missing AC_MSG_RESULT.
84261         Reported by Bruno Haible.
84262
84263         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
84264         Suggestion from Bruno Haible.
84265
84266 2000-06-23  Jim Meyering  <meyering@lucent.com>
84267
84268         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
84269
84270 2000-06-21  Jim Meyering  <meyering@lucent.com>
84271
84272         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
84273
84274 2000-06-21  Jim Meyering  <meyering@lucent.com>
84275
84276         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84277         (noinst_HEADERS): Add getstr.h.
84278
84279         * lib/getline.c (getstr): Move into a separate file.
84280         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84281         the following changes: new parameter, delim2; both delim[12]
84282         parameters have type `int', not `char'.  The latter would lose
84283         with 8-bit delimiters.
84284         * lib/getstr.h: New file.
84285
84286 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84287
84288         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84289         than 1024, return a memory chunk of least possible size, instead
84290         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84291         Use free/xmalloc instead of xrealloc to avoid copying for very long
84292         paths.
84293
84294 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84295
84296         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84297         the empty string.
84298
84299 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84300
84301         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84302         address, not strdup.  Include <stdlib.h> and don't declare free().
84303
84304 2000-06-19  Jim Meyering  <meyering@lucent.com>
84305
84306         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84307
84308 2000-06-18  Jim Meyering  <meyering@lucent.com>
84309
84310         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
84311
84312         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
84313         `checking whether...' message to be consistent with that of the
84314         lstat test.
84315
84316 2000-06-18  Jim Meyering  <meyering@lucent.com>
84317
84318         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
84319         Besides, these days every porting target provides a mkdir function.
84320
84321         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
84322         needed. (this snippet comes from src/system.h).
84323
84324 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
84325
84326         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
84327
84328 2000-06-15  Paul Eggert  <eggert@twinsun.com>
84329
84330         * lib/human.c (adjust_value): New function.
84331         (human_readable_inexact): Apply rounding style even when
84332         printing approximate values.
84333
84334 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84335
84336         * lib/human.c (human_readable_inexact): Allow an input block
84337         size that is not a multiple of the output block size, and vice versa.
84338         Reported by Piergiorgio Sartor.
84339
84340 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84341
84342         * lib/getdate.y (get_date): Apply relative times after time
84343         zone indicator, not before.  Reported by Todd A. Jacobs.
84344
84345 2000-06-13  Jim Meyering  <meyering@lucent.com>
84346
84347         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
84348
84349         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
84350
84351 2000-06-12  Paul Eggert  <eggert@twinsun.com>
84352
84353         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
84354
84355 2000-06-12  Jim Meyering  <meyering@lucent.com>
84356
84357         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
84358         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
84359         optional argument.
84360         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
84361         the optional argument, `lib'.
84362
84363 2000-06-08  Jim Meyering  <meyering@lucent.com>
84364
84365         * m4/largefile.m4: Remove file (now that it's part of autoconf).
84366
84367 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84368
84369         Rewrite largefile configuration so that we don't need to run
84370         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
84371         AC_CANONICAL_HOST in configure.in -- jmm]
84372
84373         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
84374         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
84375         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
84376         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
84377         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
84378         All uses changed.
84379         Instead of inspecting the output of getconf, try to compile the
84380         test program without and with the macro definition.
84381         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
84382         for getconf.  Instead, check for the needed flags by compiling
84383         test programs.
84384
84385 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84386
84387         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
84388
84389 2000-06-04  Jim Meyering  <meyering@lucent.com>
84390
84391         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
84392         SunOS 4.1.4 for which gid_t is an unsigned type.
84393
84394 2000-06-03  Jim Meyering  <meyering@lucent.com>
84395
84396         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
84397         now that autoconf requires that.
84398
84399         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
84400         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
84401         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
84402
84403 2000-06-03  Jim Meyering  <meyering@lucent.com>
84404
84405         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
84406
84407 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84408
84409         * m4/glibc21.m4: New file.
84410         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
84411
84412 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84413
84414         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
84415         newer, don't install charset.alias.
84416         * lib/config.charset: Change the Linux/glibc rules so they become empty
84417         on glibc-2.1 or newer.
84418
84419 2000-06-02  Jim Meyering  <meyering@lucent.com>
84420
84421         * lib/mountlist.c: Back out last change.  Instead, do this...
84422         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
84423         me_dummy member using the same `ignore'-testing code.
84424         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
84425         fs_type strings.
84426         From Mark D. Roth.
84427
84428 2000-05-29  Jim Meyering  <meyering@lucent.com>
84429
84430         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
84431         mounts with the `ignore' attribute.  Based on a patch from
84432         Mark D. Roth.
84433
84434 2000-05-28  Jim Meyering  <meyering@lucent.com>
84435
84436         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
84437         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84438         * m4/stat.m4: Likewise.
84439         * m4/lstat.m4: Likewise.
84440         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
84441
84442         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
84443         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
84444
84445 2000-05-26  Jim Meyering  <meyering@lucent.com>
84446
84447         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
84448
84449 2000-05-24  Jim Meyering  <meyering@lucent.com>
84450
84451         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
84452         autoconf requires that.
84453         * m4/lib-check.m4: Likewise.
84454         * m4/jm-macros.m4: Likewise.
84455         * m4/strftime.m4: Likewise.
84456
84457         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
84458         AC_CHECK_DECLS, now that autoconf requires that.
84459
84460 2000-05-22  Jim Meyering  <meyering@lucent.com>
84461
84462         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84463         * m4/lstat.m4: Likewise.
84464
84465 2000-05-22  Jim Meyering  <meyering@lucent.com>
84466
84467         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
84468
84469 2000-05-20  Jim Meyering  <meyering@lucent.com>
84470
84471         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
84472         (jm_PREREQ): Use it.
84473
84474 2000-05-18  Jim Meyering  <meyering@lucent.com>
84475
84476         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
84477         back, too, since it may have been modified by allocate_entry.
84478         (hash_delete): Rewrite to use neither the assignment operator
84479         nor the comma operator in an if-expression.
84480
84481 2000-05-15  Paul Eggert  <eggert@twinsun.com>
84482
84483         * lib/closeout.c:
84484         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
84485         Remove; no longer needed.
84486         "quotearg.h": Add include.
84487         (file_name): Do not bother to explicitly initialize to NULL; it's less
84488         efficient on some hosts.
84489         (close_stdout_status): Remove test as to whether stdout was already
84490         closed; it breaks for the case "echo x | sort >&-".
84491         Quote file name colons.
84492         Do not assume that _("write error") lacks format strings.
84493
84494 2000-05-15  Jim Meyering  <meyering@lucent.com>
84495
84496         * lib/version-etc.c (version_etc_copyright): Update the copyright
84497         string used in all --version output.
84498
84499 2000-05-14  Jim Meyering  <meyering@lucent.com>
84500
84501         * lib/closeout.c (close_stdout_set_file_name): New function.
84502         (close_stdout_status): Use new file-scoped global.
84503         Return right away if fstat says the stdout file descriptor is invalid.
84504         * lib/closeout.h (close_stdout_set_file_name): Declare.
84505
84506 2000-05-10  Jim Meyering  <meyering@lucent.com>
84507
84508         * lib/closeout.c [default_exit_status]: New file-scoped variable.
84509         (close_stdout_set_status): New function.
84510         * lib/closeout.h (close_stdout_set_status): Declare.
84511
84512 2000-05-09  Jim Meyering  <meyering@lucent.com>
84513
84514         * m4/gettext.m4: Rename this...
84515         * m4/libintl.m4: ...to this.
84516
84517 2000-05-08  Jim Meyering  <meyering@lucent.com>
84518
84519         * lib/long-options.c: Don't include closeout.h.
84520         (parse_long_options): Don't call close_stdout for --version.
84521
84522 2000-05-06  Paul Eggert  <eggert@twinsun.com>
84523
84524         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
84525         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
84526         2.1.3 bug.  This avoids a clash when files like regex.c define
84527         _GNU_SOURCE.
84528
84529 2000-05-06  Jim Meyering  <meyering@lucent.com>
84530
84531         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
84532         (AC_REPLACE_FUNCS): Add strnlen.
84533
84534         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
84535         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
84536
84537         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
84538         AC_SEARCH_LIBS call for nanosleep.
84539         (LIB_NANOSLEEP): Set and AC_SUBST.
84540
84541 2000-05-06  Jim Meyering  <meyering@lucent.com>
84542
84543         * lib/strnlen.c: Undefine __strnlen and strnlen.
84544         [!weak_alias]: Define __strnlen to strnlen.
84545
84546         * lib/atexit.c: New file, from libiberty.
84547
84548 2000-05-06  Jim Meyering  <meyering@lucent.com>
84549
84550         * lib/closeout.c (close_stdout_status): Also check for errors on the
84551         stderr stream.
84552
84553 2000-05-05  Jim Meyering  <meyering@lucent.com>
84554
84555         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
84556         AC_SEARCH_LIBS call for clock_gettime.
84557         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
84558
84559         * m4/search-libs.m4: Update from autoconf.
84560
84561         su doesn't work on Solaris 2.6.
84562         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
84563         <shadow.h>.  Reported by Dragos Harabor.
84564
84565 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
84566
84567         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
84568         memcpy instead of xmalloc, xrealloc, path_concat.
84569         (locale_charset): Treat empty environment variables as absent.
84570         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
84571
84572 2000-05-04  Jim Meyering  <meyering@lucent.com>
84573
84574         * lib/getopt.c: Update from glibc.
84575         * lib/obstack.c: Likewise.
84576         * lib/obstack.h: Likewise.
84577         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
84578         file
84579
84580         * lib/regex.h: Likewise.
84581         * lib/strndup.c: Likewise.
84582         * lib/strnlen.c: New file, from glibc.
84583
84584 2000-05-03  Jim Meyering  <meyering@lucent.com>
84585
84586         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
84587
84588 2000-05-02  Paul Eggert  <eggert@twinsun.com>
84589
84590         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
84591         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
84592         compile-time test, rather than inspecting host and OS, to
84593         decide whether to define _LARGEFILE_SOURCE.
84594
84595 2000-05-01  Jim Meyering  <meyering@lucent.com>
84596
84597         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
84598
84599         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
84600         Based on a patch from Bruno Haible.
84601
84602 2000-05-01  Jim Meyering  <meyering@lucent.com>
84603
84604         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
84605
84606 2000-04-29  Jim Meyering  <meyering@lucent.com>
84607
84608         * lib/path-concat.c: Declare strdup only if it's not defined.
84609         * lib/canon-host.c: Likewise.
84610
84611 2000-04-28  Jim Meyering  <meyering@lucent.com>
84612
84613         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
84614         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
84615         is included first, then limits.h is included by locale.h by libintl.h.
84616         From John David Anglin.
84617
84618 2000-04-25  Jim Meyering  <meyering@lucent.com>
84619
84620         * lib/makepath.c (S_IRWXUGO): Define.
84621         (make_path): Always perform explicit chmod if MODE specifies any
84622         of the `special' permission bits.  Prompted by a bug report against
84623         install from Mate Wierdl and Joost van Baal.
84624
84625 2000-04-18  Jim Meyering  <meyering@lucent.com>
84626
84627         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
84628         (jm_PREREQ): Use it.
84629
84630 2000-04-18  Jim Meyering  <meyering@lucent.com>
84631
84632         * lib/README: New file.
84633
84634         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
84635         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
84636
84637 2000-04-17  Jim Meyering  <meyering@lucent.com>
84638
84639         Get it right :-)
84640         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
84641         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
84642         Suggestion from Akim Demaille.
84643
84644 2000-04-17  Jim Meyering  <meyering@lucent.com>
84645
84646         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
84647         the definition of it to rpl_strftime also defined-away the system's
84648         declaration.
84649
84650 2000-04-15  Jim Meyering  <meyering@lucent.com>
84651
84652         Use `C' to denote so-called `contiguous' files, the same way
84653         that tar does.
84654         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
84655         (ftypelet): Use S_ISCTG.
84656         From Michael Deutschmann.
84657
84658 2000-04-14  Jim Meyering  <meyering@lucent.com>
84659
84660         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
84661         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
84662         clobbered.
84663
84664 2000-04-14  Jim Meyering  <meyering@lucent.com>
84665
84666         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
84667
84668 2000-04-13  Jim Meyering  <meyering@lucent.com>
84669
84670         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
84671         AH_VERBATIM to insert required #ifndef into config.h.in.
84672         Suggestion from Akim Demaille.
84673
84674 2000-04-12  Jim Meyering  <meyering@lucent.com>
84675
84676         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
84677         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
84678         Christian Krackowizer.
84679
84680         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
84681         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
84682         (AC_SYS_LARGEFILE): Require.
84683         (AM_C_PROTOTYPES): Require.
84684
84685 2000-04-08  Jim Meyering  <meyering@lucent.com>
84686
84687         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
84688         names don't conflict.  Reported by Eli Zaretskii.
84689
84690 2000-04-07  Jim Meyering  <meyering@lucent.com>
84691
84692         * lib/putenv.c: Move inclusion of errno.h so it follows that of
84693         sys/types.h, to work around system header problems on AIX 3.2.5.
84694         From Bruno Haible.
84695
84696 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
84697
84698         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
84699         bug.  Deal with the different error behavior of Irix iconv.
84700
84701 2000-04-05  Paul Eggert  <eggert@twinsun.com>
84702
84703         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
84704         IRIX if the installer said otherwise.
84705
84706 2000-04-05  Jim Meyering  <meyering@lucent.com>
84707
84708         Portability tweaks required for ultrix4.3.
84709         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
84710         (jm_CHECK_DECLS): Add getutent to the list of functions.
84711         (_jm_DECL_HEADERS): Add utmpx.h.
84712         From John David Anglin.
84713
84714         * m4/strftime.m4: Back out the 2000-04-02 change.
84715         Instead of that change, simply undefine putenv in the test program.
84716
84717 2000-04-05  Jim Meyering  <meyering@lucent.com>
84718
84719         Portability tweaks required for ultrix4.3.
84720         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
84721         getutent.
84722         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
84723         * lib/canon-host.c: Declare strdup.
84724         * lib/path-concat.c: Likewise.
84725         From John David Anglin.
84726
84727 2000-04-04  Jim Meyering  <meyering@lucent.com>
84728
84729         Be more DOS 8.3-friendly.
84730         * lib/ref-add.sin: Renamed from ref-add.sed.in.
84731         * lib/ref-del.sin: Renamed from ref-del.sed.in.
84732         * lib/Makefile.am: Reflect renaming.
84733         Reported by Eli Zaretskii.
84734
84735         Use a temporary file name that won't clash with `charset.alias'
84736         in the DOS 8.3 name space.
84737         * lib/Makefile.am (charset_tmp): Define.
84738         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
84739         (uninstall-local): Likewise.
84740         Reported by Eli Zaretskii.
84741
84742 2000-04-03  Jim Meyering  <meyering@lucent.com>
84743
84744         * m4/gettext.m4: Fix typo in comment.
84745
84746         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
84747         textutils/configure.in).  Suggestion from Paul Eggert.
84748         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
84749
84750 2000-04-02  Paul Eggert  <eggert@twinsun.com>
84751
84752         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
84753         variable in the shell rather than using putenv, which isn't
84754         portable.  This avoids the configure-time inter-test dependency
84755         on the potentially-renamed putenv function.
84756
84757 2000-03-30  Paul Eggert  <eggert@twinsun.com>
84758
84759         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
84760         before checking struct stat.st_blksize, so that
84761         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
84762
84763 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84764
84765         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
84766         since strftime.c uses HAVE_STRFTIME to decide whether to use
84767         the underlying strftime.
84768
84769 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84770
84771         * lib/time/strftime.c (my_strftime): Make sure we call the system
84772         strftime, not ourselves, when invoking the underlying strftime.
84773
84774 2000-03-24  Jim Meyering  <meyering@lucent.com>
84775
84776         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
84777         (charset_alias): Define.
84778         (install-exec-local): Factor out common code.
84779         (uninstall-local): Split lines longer than 80.
84780         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
84781         (SUFFIXES): Define.
84782         (.sed.in.sed): New rule.  Don't redirect directly to $@.
84783         (CLEANFILES): Add ref-add.sed and ref-del.sed.
84784
84785 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
84786
84787         * lib/config.charset: Output a line containing "Packages using this
84788         file".
84789         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
84790         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
84791         ref-del.sed): New rules.
84792
84793 2000-03-17  Jim Meyering  <meyering@lucent.com>
84794
84795         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
84796         Otherwise, include <strings.h>
84797
84798 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
84799
84800         * lib/unicodeio.c (utf8_wctomb): New function.
84801         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
84802         format instead of in UCS-4 with platform dependent endianness.
84803
84804 2000-03-10  Jim Meyering  <meyering@lucent.com>
84805
84806         * m4/lib-check.m4: Look for getspnam in -lgen, too.
84807         From Marco Franzen.
84808
84809 2000-03-07  Paul Eggert  <eggert@twinsun.com>
84810
84811         * lib/savedir.c (savedir): Work even if directory size is
84812         negative; this can happen with some screwy NFS configurations.
84813
84814 2000-03-06  Jim Meyering  <meyering@lucent.com>
84815
84816         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
84817         if it's NULL (because we ran out of memory).  From Bruno Haible.
84818
84819 2000-03-05  Jim Meyering  <meyering@lucent.com>
84820
84821         * lib/localcharset.c ("path-concat.h"): Include.
84822         (get_charset_aliases): Use path_concat instead of ANSI string
84823         concatenation.
84824
84825         * lib/unicodeio.h (PARAMS): Define.
84826         Use it to guard prototype.
84827
84828 2000-03-04  Jim Meyering  <meyering@lucent.com>
84829
84830         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
84831         for lib/localcharset.c.
84832
84833 2000-03-04  Jim Meyering  <meyering@lucent.com>
84834
84835         * lib/Makefile.am (install-exec-local): Create $(libdir) before
84836         installing into it.
84837         (uninstall-local): Uncomment this rule so `make distcheck' works
84838         once again.
84839
84840         * lib/unicodeio.c (<errno.h>): Include it.
84841         (errno): Declare if not defined.
84842
84843         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
84844
84845         * lib/config.charset: New version, incorporating remarks from a linux
84846         i18n mailing list.  From Bruno Haible.
84847
84848 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
84849
84850         * m4/codeset.m4: New file.
84851         * m4/iconv.m4: New file.
84852         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
84853
84854 2000-03-03  Jim Meyering  <meyering@lucent.com>
84855
84856         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
84857
84858 2000-03-02  Jim Meyering  <meyering@lucent.com>
84859
84860         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
84861         the messages come out on separate lines.
84862
84863         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
84864         rather than jm_CHECK_DECLARATIONS.
84865         * m4/decl.m4: Remove now-unused file.
84866
84867         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
84868         geteuid.
84869
84870 2000-03-02  Jim Meyering  <meyering@lucent.com>
84871
84872         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
84873
84874 2000-03-01  Jim Meyering  <meyering@lucent.com>
84875
84876         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
84877         * lib/unicodeio.c: Likewise.
84878
84879 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
84880
84881         * lib/config.charset: New file.
84882         * lib/localcharset.c: New file.
84883         * lib/unicodeio.h, lib/unicodeio.c: New files.
84884         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
84885         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
84886         (noinst_HEADERS): Add unicodeio.h.
84887         (all-local, install-exec-local, charset.alias): New targets.
84888
84889 2000-02-28  Paul Eggert  <eggert@twinsun.com>
84890
84891         * lib/quotearg.c (ALERT_CHAR): New macro.
84892         (quotearg_buffer_restyled): Use it.
84893
84894 2000-02-27  Jim Meyering  <meyering@lucent.com>
84895
84896         * m4/check-decl.m4: Add getenv to the list.
84897
84898 2000-02-27  Jim Meyering  <meyering@lucent.com>
84899
84900         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
84901         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
84902
84903         * lib/backupfile.c: Guard inclusion of stdlib.h with
84904         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
84905         Declare malloc if needed.
84906
84907         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
84908         `#ifndef HAVE_DECL..'
84909         now that autoconf always defines the HAVE_DECL_ symbols.
84910         * lib/human.c: Likewise.
84911         * lib/same.c: Likewise.
84912         * lib/strtoumax.c: Likewise.
84913
84914         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
84915         declaration check was not run.
84916         * lib/hash.c: Likewise.
84917         * lib/human.c: Likewise.
84918         * lib/same.c: Likewise.
84919         * lib/strtoumax.c: Likewise.
84920
84921         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
84922         `.', then first look up the entire `.'-containing string as a login
84923         name.
84924
84925 2000-02-23  Jim Meyering  <meyering@lucent.com>
84926
84927         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
84928         in place of my hack.
84929
84930 2000-02-18  Paul Eggert  <eggert@twinsun.com>
84931
84932         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
84933         (textint): New typedef.
84934         (parser_control): Member year changed from int to textint.
84935         All uses changed.
84936         (YYSTYPE): Removed; replaced by %union with int and textint members.
84937         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
84938         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
84939         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
84940         (tSNUMBER, tUNUMBER): Now of type <textintval>.
84941         (date, number, to_year): Use width of number in digits, not its value,
84942         to determine whether it's a 2-digit year, or a 2-digit time.
84943         (yylex): Store number of digits of numeric tokens.
84944         Reported by John Kendall.
84945
84946         (parser_control): Changed from struct parser_control to typedef (for
84947         consistency).  All uses changed.
84948
84949         (tID): Removed; not used.
84950         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
84951
84952 2000-02-14  Paul Eggert  <eggert@twinsun.com>
84953
84954         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
84955         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
84956
84957 2000-02-12  Jim Meyering  <meyering@lucent.com>
84958
84959         * lib/userspec.c (ISDIGIT): Define it.
84960         (isdigit): Remove definition.
84961         (is_number): Use ISDIGIT, not isdigit.
84962         <libintl.h>: Include.
84963         (_ and N_): Define.
84964         (parse_user_spec): Mark translatable strings.
84965
84966 2000-02-10  Jim Meyering  <meyering@lucent.com>
84967
84968         With these changes, nanosleep.[ch] are finally enough like the other
84969         lib/* replacement files to compile on a few more losing systems.
84970
84971         * lib/nanosleep.h: Don't include config.h.
84972         Remove prototype from declaration of nanosleep.
84973         (PARAMS): Remove now-unneeded definition.
84974         * lib/nanosleep.c: #undef nanosleep.
84975         (rpl_nanosleep): Rename from nanosleep.
84976
84977 2000-02-10  Jim Meyering  <meyering@lucent.com>
84978
84979         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
84980         gnu_nanosleep to rpl_nanosleep.
84981
84982 2000-02-09  Jim Meyering  <meyering@lucent.com>
84983
84984         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
84985         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
84986
84987 2000-02-08  Akim Demaille  <akim@epita.fr>
84988
84989         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
84990         `[' and `]' and remove uses of `changequote'.
84991         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
84992         (AC_SYS_LARGEFILE): Likewise.
84993         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
84994         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
84995         of changequote.
84996         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
84997         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
84998         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
84999         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85000
85001 2000-02-05  Jim Meyering  <meyering@lucent.com>
85002
85003         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85004         Remove explicit use of AC_HEADER_TIME.  It is required by
85005         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85006         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85007         in autoconf whereby the expansion of the latter ended up preceding
85008         the expansion of its prerequisite, AC_HEADER_TIME.
85009         Reported by Volker Borchert.
85010
85011 2000-02-03  Jim Meyering  <meyering@lucent.com>
85012
85013         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85014
85015 2000-02-03  Jim Meyering  <meyering@lucent.com>
85016
85017         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85018         rather than with `#if HAVE_UTMPNAME'.
85019
85020 2000-02-02  Jim Meyering  <meyering@lucent.com>
85021
85022         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85023         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85024         Reported by Eli Zaretskii.
85025
85026 2000-02-01  Jim Meyering  <meyering@lucent.com>
85027
85028         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85029
85030 2000-01-31  Jim Meyering  <meyering@lucent.com>
85031
85032         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85033         functions.  Add the time.h and sys/time.h headers along with the
85034         AC_REQUIRE'ment of AC_HEADER_TIME.
85035
85036 2000-01-31  Jim Meyering  <meyering@lucent.com>
85037
85038         * lib/nanosleep.h (nanosleep): Guard declaration with
85039         `#if ! HAVE_DECL_NANOSLEEP'.
85040         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85041         the declaration in that vendor's sys/timers.h.
85042         Reported by Christian Krackowizer.
85043
85044         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85045         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85046         (ISPRINT): Likewise.
85047         Reported by Tom Tromey.
85048
85049 2000-01-30  Jim Meyering  <meyering@lucent.com>
85050
85051         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85052
85053         * m4/prereq.m4 (utmp_includes): Define.
85054         Check for ut_user and ut_name members in both struct utmpx
85055         and struct utmp.
85056
85057 2000-01-30  Jim Meyering  <meyering@lucent.com>
85058
85059         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85060         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85061         header files where only utmpx.ut_user is declared.
85062
85063         * lib/readutmp.h (UT_USER): Define.
85064
85065 2000-01-29  Jim Meyering  <meyering@lucent.com>
85066
85067         * m4/lib-check.m4: New file containing library-related checks from
85068         fileutils and sh-utils (textutils had none).
85069
85070 2000-01-28  Jim Meyering  <meyering@lucent.com>
85071
85072         * m4/perl.m4: Change format of warning message to look more like that
85073         from the missing script.  Suggestion from François Pinard.
85074
85075 2000-01-25  Jim Meyering  <meyering@lucent.com>
85076
85077         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85078         well as time.h in the compile check.
85079         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85080         Fix typo in cross-compiling case: s/yes/no/.
85081
85082 2000-01-23  Jim Meyering  <meyering@lucent.com>
85083
85084         * m4/jm-macros.m4: Move df-related tests here from
85085         fileutils/configure.in
85086
85087         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85088         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85089
85090         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85091         s/space/ac_fsusage_space/.
85092         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85093
85094         * m4/ftruncate.m4: New file (derived from part of
85095         fileutils/configure.in).
85096         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85097         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85098
85099         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85100         AC_SUBST these here, rather than just in sh-util/configure.in, so
85101         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85102         all the same.
85103         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85104         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85105         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85106         (AC_SUBST(POW_LIBM)): Likewise.
85107         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85108
85109 2000-01-23  Jim Meyering  <meyering@lucent.com>
85110
85111         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85112         obstack.c.
85113
85114 2000-01-22  Jim Meyering  <meyering@lucent.com>
85115
85116         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85117
85118         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85119
85120         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85121         configure.in
85122         (AC_CHECK_HEADERS): Likewise for sh-utils.
85123         (AC_CHECK_HEADERS): Likewise for textutils.
85124         Merge the three lists of headers.
85125
85126         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85127         from fileutils' configure.in.
85128
85129         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85130         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85131         check-decl.m4.
85132
85133         * m4/check-decl.m4: Use #if rather than #ifdef.
85134         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85135         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85136         (_jm_DECL_HEADERS): Define new function.
85137         (jm_CHECK_DECLARATIONS): Require it.
85138
85139 2000-01-22  Jim Meyering  <meyering@lucent.com>
85140
85141         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85142         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85143         Required for some AIX systems.  Reported by Christian Krackowizer.
85144         [TESTING] (main): New function.
85145
85146         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
85147         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
85148         letters.
85149
85150         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
85151         iswprint.
85152
85153         * lib/strverscmp.c (ISDIGIT): Define.
85154         (strverscmp): Use ISDIGIT, not isdigit.
85155
85156 2000-01-19  Jim Meyering  <meyering@lucent.com>
85157
85158         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
85159         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
85160         defines `struct timespec' in <sys/time.h>
85161
85162         * m4/c-bs-a.m4: Remove uses of changequote altogether.
85163         Thanks to Akim for explaining.
85164
85165 2000-01-17  Paul Eggert  <eggert@twinsun.com>
85166
85167         * lib/nanosleep.c (nanosleep):
85168         Don't use SA_INTERRUPT to decide whether to call sigaction, as
85169         POSIX.1 doesn't require SA_INTERRUPT and some systems
85170         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
85171         it's been part of POSIX.1 since day 1 (in 1988).
85172
85173 2000-01-17  Jim Meyering  <meyering@lucent.com>
85174
85175         * lib/interlock: Remove unused file.  Reported by François Pinard.
85176
85177 2000-01-16  Paul Eggert  <eggert@twinsun.com>
85178
85179         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
85180         alert, backslash, formfeed, and vertical tab unnecessarily in
85181         shell quoting style.
85182
85183 2000-01-16  Jim Meyering  <meyering@lucent.com>
85184
85185         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
85186         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
85187         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
85188         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
85189
85190 2000-01-16  Jim Meyering  <meyering@lucent.com>
85191
85192         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
85193         because the latter didn't work.
85194
85195 2000-01-15  Jim Meyering  <meyering@lucent.com>
85196
85197         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
85198         (AC_REPLACE_FUNCS): Add memcpy and memset.
85199         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
85200         Add strpbrk.
85201         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
85202
85203 2000-01-12  Jim Meyering  <meyering@lucent.com>
85204
85205         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
85206         (jm_PREREQ): Use it.
85207         (jm_PREREQ_READUTMP): New macro.
85208         (jm_PREREQ): Use it.
85209
85210 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85211
85212         Quote multibyte characters correctly.
85213         * m4/c-bs-a.m4: New file.
85214         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
85215         (jm_PREREQ): Use it.
85216
85217 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85218
85219         * m4/uintmax_t.m4: Port to autoconf 2.13.
85220
85221 2000-01-08  Jim Meyering  <meyering@ascend.com>
85222
85223         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
85224         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
85225
85226 2000-01-04  Jim Meyering  <meyering@ascend.com>
85227
85228         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
85229         jm_STRUCT_DIRENT_D_TYPE.
85230         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
85231         jm_STRUCT_DIRENT_D_INO.
85232         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
85233         jm_STRUCT_UTIMBUF.
85234         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
85235         renamings.
85236         * m4/utime.m4: Likewise.
85237
85238         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
85239         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
85240
85241 2000-01-03  Paul Eggert  <eggert@twinsun.com>
85242
85243         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
85244         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
85245
85246 2000-01-02  Jim Meyering  <meyering@ascend.com>
85247
85248         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
85249         remember if this is necessary.
85250
85251 1999-12-26  Jim Meyering  <meyering@ascend.com>
85252
85253         * m4/jm-macros.m4: Use it here.
85254         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
85255
85256 1999-12-23  Jim Meyering  <meyering@ascend.com>
85257
85258         * m4/jm-macros.m4: Check for clock_gettime (moved from
85259         fileutils/configure.in)
85260         Check for gettimeofday.
85261
85262 1999-12-20  Jim Meyering  <meyering@ascend.com>
85263
85264         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
85265         autoconf-2.14a-1999-12-20.
85266
85267 1999-12-19  Jim Meyering  <meyering@ascend.com>
85268
85269         * m4/lstat-slash.m4: New file.
85270         * m4/jm-macros.m4: Use the new macro:
85271         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85272
85273 1999-12-07  Jim Meyering  <meyering@ascend.com>
85274
85275         * m4/perl.m4: Require that File::Compare be available, too.
85276         Too many systems seem to lack it.
85277
85278         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85279         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85280
85281 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85282
85283         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85284         problem with the QNX 4.25 shell, which doesn't propagate exit
85285         status of failed commands inside shell assignments.
85286
85287 1999-11-17  Jim Meyering  <meyering@ascend.com>
85288
85289         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85290
85291 1999-11-07  Jim Meyering  <meyering@ascend.com>
85292
85293         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85294
85295 1999-11-06  Jim Meyering  <meyering@ascend.com>
85296
85297         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85298         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85299
85300 1999-11-05  Jim Meyering  <meyering@ascend.com>
85301
85302         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85303         configure.in of textutils, fileutils, and sh-utils into this one
85304         (shared between those packages) file.
85305         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85306         AC_STRUCT_ST_BLKSIZE.
85307
85308 1999-11-03  Jim Meyering  <meyering@ascend.com>
85309
85310         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
85311         of AC_CHECK_TYPE checks includes unistd.h.
85312         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
85313         Suggestion from Akim Demaille.
85314
85315 1999-10-30  Jim Meyering  <meyering@ascend.com>
85316
85317         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
85318         m4-quoted string.
85319         * m4/ls-mntd-fs.m4: Likewise.
85320         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
85321         * m4/jm-winsz1.m4: Likewise.
85322
85323         * m4/const.m4: Remove file, since the fix made it into the experimental
85324         version of autoconf.
85325         * m4/mktime.m4: Likewise.
85326
85327         * m4/check-type.m4: Remove file, now that the latest version of
85328         AC_CHECK_TYPE takes a third arg to specify additional #includes.
85329
85330         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
85331         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
85332         AC_CHECK_TYPE.
85333
85334 1999-10-04  Jim Meyering  <meyering@ascend.com>
85335
85336         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
85337
85338 1999-09-22  Paul Eggert  <eggert@twinsun.com>
85339
85340         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
85341         2.95.1 bug with HP-UX 10.20.
85342
85343 1999-09-17  Jim Meyering  <meyering@ascend.com>
85344
85345         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
85346         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
85347         due to missing strdup (against sh-utils-2.0).
85348
85349 1999-08-29  Jim Meyering  <meyering@ascend.com>
85350
85351         * m4/jm-macros.m4: Require jm_BISON.
85352         * m4/bison.m4: New file.
85353
85354 1999-08-17  Paul Eggert  <eggert@twinsun.com>
85355
85356         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
85357         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
85358
85359 1999-08-05  Jim Meyering  <meyering@ascend.com>
85360
85361         * m4/getline.m4: Rename test file from conftestdata to conftest.data
85362         to avoid conflicts with `conftest' on 8+3 filesystems.
85363         Suggestion from Eli Zaretskii.
85364
85365 1999-08-04  Jim Meyering  <meyering@ascend.com>
85366
85367         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
85368         fileutils and sh-utils (textutils's getline test was inadequate).
85369         (AM_FUNC_GETLINE): Run this test.
85370         (AC_CHECK_FUNCS): Check for getdelim.
85371         Reported by Bob Proulx.
85372
85373 1999-08-02  Jim Meyering  <meyering@ascend.com>
85374
85375         * m4/jm-macros.m4: Add a comment.
85376
85377 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85378
85379         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
85380         <inttypes.h> defines strtoumax as a macro (and not as a
85381         function).
85382
85383 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85384
85385         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
85386         that we can shift, multiply and divide unsigned long long
85387         values; Ultrix cc can't do it.
85388
85389 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85390
85391         * m4/mktime.m4: New file, which is a preview of what should appear
85392         in the next public autoconf release.
85393
85394 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85395
85396         * m4/lfs.m4: Remove this file.
85397         * m4/largefile.m4: New file.  It contains the old contents of
85398         lfs.m4, except that all names with prefix AC_LFS have been
85399         changed to use the prefix AC_SYS_LARGEFILE instead, to be
85400         compatible with future autoconf versions.  Also, some minor m4
85401         quoting problems have been fixed.
85402
85403 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85404
85405         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
85406         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
85407         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
85408         and simplify the shell code.
85409
85410 1999-08-01  Jim Meyering  <meyering@ascend.com>
85411
85412         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
85413         m4.
85414
85415 1999-07-20  Jim Meyering  <meyering@ascend.com>
85416
85417         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
85418
85419 1999-07-15  Jim Meyering  <meyering@ascend.com>
85420
85421         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
85422
85423 1999-05-22  Jim Meyering  <meyering@ascend.com>
85424
85425         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
85426
85427 1999-05-20  Jim Meyering  <meyering@ascend.com>
85428
85429         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
85430         Add a colon after each `then' in case $4 is empty.
85431
85432 1999-05-16  Jim Meyering  <meyering@ascend.com>
85433
85434         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
85435
85436 1999-05-10  Jim Meyering  <meyering@ascend.com>
85437
85438         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
85439
85440         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
85441         AC_FUNC_MKTIME.
85442
85443 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
85444
85445         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
85446
85447 1999-05-04  Paul Eggert  <eggert@twinsun.com>
85448
85449         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
85450         not CPPFLAGS, so that linking works correctly in IRIX.
85451
85452 1999-04-30  Paul Eggert  <eggert@twinsun.com>
85453
85454         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
85455
85456 1999-04-20  Paul Eggert  <eggert@twinsun.com>
85457
85458         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
85459         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
85460         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
85461         jm_AC_TYPE_UNSIGNED_LONG_LONG.
85462         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
85463
85464         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
85465
85466 1999-04-20  Jim Meyering  <meyering@ascend.com>
85467
85468         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
85469         AC_REPLACE xstroull if necessary.  From Paul Eggert.
85470         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
85471
85472 1999-04-18  Jim Meyering  <meyering@ascend.com>
85473
85474         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
85475         * m4/jm-macros.m4: Use it.
85476
85477 1999-04-06  Jim Meyering  <meyering@ascend.com>
85478
85479         * m4/strftime.m4: Remove test for %f.
85480
85481 1999-03-29  Jim Meyering  <meyering@ascend.com>
85482
85483         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
85484         superset of the AC_TYPE_* checks in the textutils, fileutils,
85485         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
85486         AC_TYPE_PID_T.
85487
85488 1999-03-28  Jim Meyering  <meyering@ascend.com>
85489
85490         * m4/jm-macros.m4: Define GNU_PACKAGE here.
85491         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
85492         replaced e.g., in the *.sh files of the sh-utils.
85493
85494 1999-03-20  Jim Meyering  <meyering@ascend.com>
85495
85496         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
85497         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
85498         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
85499
85500 1999-03-19  Jim Meyering  <meyering@ascend.com>
85501
85502         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
85503
85504 1999-03-12  Jim Meyering  <meyering@ascend.com>
85505
85506         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
85507
85508 1999-03-07  Jim Meyering  <meyering@ascend.com>
85509
85510         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
85511         declared.
85512
85513 1999-02-17  Jim Meyering  <meyering@ascend.com>
85514
85515         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
85516         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
85517
85518 1999-02-07  Jim Meyering  <meyering@ascend.com>
85519
85520         * m4/group-member.m4: New file -- extracted from sh-utils'
85521         configure.in.
85522
85523         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
85524         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
85525
85526 1999-02-06  Jim Meyering  <meyering@ascend.com>
85527
85528         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
85529         * m4/fnmatch.m4: Likewise.
85530         * m4/getgroups.m4: Likewise.
85531         * m4/lstat.m4: Likewise.
85532         * m4/malloc.m4: Likewise.
85533         * m4/putenv.m4: Likewise.
85534         * m4/realloc.m4: Likewise.
85535         * m4/regex.m4: Likewise.
85536         * m4/stat.m4: Likewise.
85537         * m4/strftime.m4: Likewise.
85538         Suggestion from Alain Magloire.
85539
85540         * m4/chown.m4: Use `.$ac_objext', not `.o'.
85541         * m4/fnmatch.m4: Likewise.
85542         * m4/getgroups.m4: Likewise.
85543         * m4/getline.m4: Likewise.
85544         * m4/lstat.m4: Likewise.
85545         * m4/malloc.m4: Likewise.
85546         * m4/memcmp.m4: Likewise.
85547         * m4/putenv.m4: Likewise.
85548         * m4/realloc.m4: Likewise.
85549         * m4/regex.m4: Likewise.
85550         * m4/stat.m4: Likewise.
85551         * m4/strftime.m4: Likewise.
85552         Suggestion from Alain Magloire.
85553
85554         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
85555         an argument.
85556
85557         * m4/regex.m4: Add a run-time Test for proper operation of
85558         re_compile_pattern.
85559
85560 1999-01-31  Jim Meyering  <meyering@ascend.com>
85561
85562         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
85563
85564 1999-01-30  Jim Meyering  <meyering@ascend.com>
85565
85566         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
85567
85568         * m4/jm-mktime.m4: Make this a wrapper around the official
85569         AM_FUNC_MKTIME rather than my private copy, now that the official one
85570         is up to date.
85571         * m4/mktime.m4: Remove file.
85572
85573         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
85574         * m4/uptime.m4: Likewise.
85575         * m4/uintmax_t.m4: Likewise.
85576
85577 1999-01-28  Jim Meyering  <meyering@ascend.com>
85578
85579         * m4/jm-macros.m4: Use jm_AFS.
85580         * m4/afs.m4: New file (from fileutils' configure.in).
85581
85582         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
85583         * m4/chown.m4: Likewise.
85584         * m4/d-ino.m4: Likewise.
85585         * m4/d-type.m4: Likewise.
85586         * m4/fnmatch.m4: Likewise.
85587         * m4/getgroups.m4: Likewise.
85588         * m4/gettext.m4: Likewise.
85589         * m4/jm-mktime.m4: Likewise.
85590         * m4/jm-winsz2.m4: Likewise.
85591         * m4/lcmessage.m4: Likewise.
85592         * m4/ls-mntd-fs.m4: Likewise.
85593         * m4/malloc.m4: Likewise.
85594         * m4/memcmp.m4: Likewise.
85595         * m4/putenv.m4: Likewise.
85596         * m4/realloc.m4: Likewise.
85597         * m4/st_mtim.m4: Likewise.
85598         * m4/strftime.m4: Likewise.
85599
85600 1999-01-16  Jim Meyering  <meyering@ascend.com>
85601
85602         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
85603         (ARGMATCH_DIE_DECL): Define.
85604
85605 1999-01-12  Jim Meyering  <meyering@ascend.com>
85606
85607         * m4/Makefile.am.in: Rewrite to avoid using fmt.
85608         Reported by Lars Hecking.
85609
85610 1999-01-10  Jim Meyering  <meyering@ascend.com>
85611
85612         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
85613         gross kludge.
85614         * m4/inttypes_h.m4: Likewise.
85615         * m4/lstat.m4: Likewise.
85616         * m4/malloc.m4: Likewise.
85617         * m4/readdir.m4: Likewise.
85618         * m4/realloc.m4: Likewise.
85619         * m4/st_dm_mode.m4: Likewise.
85620         * m4/stat.m4: Likewise.
85621         * m4/utimbuf.m4: Likewise.
85622         * m4/utimes.m4: Likewise.
85623
85624         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
85625         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
85626         comments in config.h.in are meaningful.
85627
85628         * m4/jm-macros.m4: Require autoconf-2.13 here.
85629
85630         * m4/regex.m4: By default, don't use the included regex.c on systems
85631         with glibc 2.  Suggestion from Uli Drepper.
85632
85633 1999-01-02  Jim Meyering  <meyering@ascend.com>
85634
85635         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
85636
85637 1998-12-18  Jim Meyering  <meyering@ascend.com>
85638
85639         * m4/Makefile.am.in (Makefile.am): Simplify rule.
85640         Based on a suggestion from Lars Hecking.
85641
85642 1998-11-16  Paul Eggert  <eggert@twinsun.com>
85643
85644         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
85645
85646 1998-11-16  Jim Meyering  <meyering@ascend.com>
85647
85648         * m4/lfs.m4: Double-quote the `uname...` expression.
85649
85650 1998-11-14  Jim Meyering  <meyering@ascend.com>
85651
85652         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
85653         * m4/stat.m4: Likewise.
85654
85655 1998-11-03  Jim Meyering  <meyering@ascend.com>
85656
85657         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
85658         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
85659
85660 1998-10-18  Jim Meyering  <meyering@ascend.com>
85661
85662         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
85663
85664 1998-10-17  Jim Meyering  <meyering@ascend.com>
85665
85666         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
85667         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
85668         calls for those previously hard-coded headers.  Instead, take a new
85669         parameter.
85670         (jm_CHECK_DECLARATIONS): Reflect interface change.
85671         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
85672         (jm_CHECK_DECL_LOCALTIME_R): New macro.
85673
85674         * m4/mktime.m4: Test for spring-forward gap before long-running test.
85675
85676 1998-10-14  Jim Meyering  <meyering@ascend.com>
85677
85678         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
85679         instead of "TZ=America/Vancouver".  From Paul Eggert.
85680
85681 1998-10-11  Jim Meyering  <meyering@ascend.com>
85682
85683         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
85684         This adds a test for a recently added compatibility fix for mktime.c.
85685         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
85686
85687 1998-09-27  Jim Meyering  <meyering@ascend.com>
85688
85689         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
85690
85691         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
85692         ../configure.in, including a change from Gordon Matzigkeit to allow
85693         cross-compiling for the Hurd.
85694
85695         * m4/glibc.m4: New file/macro to test for the GNU C Library
85696         versions 1 and 2.  From Gordon Matzigkeit.
85697         Indent.
85698
85699 1998-09-21  Jim Meyering  <meyering@ascend.com>
85700
85701         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
85702
85703 1998-08-18  Paul Eggert  <eggert@twinsun.com>
85704
85705         Port nanosecond-resolution times to UnixWare 2.1.2 and
85706         pedantic Solaris 2.6.
85707
85708         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
85709         AC_STRUCT_ST_MTIM.
85710         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
85711         Generate name of ns member, instead of just 1 or undef.
85712         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
85713
85714 1998-08-15  Jim Meyering  <meyering@ascend.com>
85715
85716         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
85717         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
85718         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
85719         instead of jm_TYPE_SSIZE_T.
85720
85721 1998-08-12  Jim Meyering  <meyering@ascend.com>
85722
85723         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
85724
85725 1998-08-02  Jim Meyering  <meyering@ascend.com>
85726
85727         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
85728         in acconfig.h manually.
85729
85730 1998-07-31  Paul Eggert  <eggert@twinsun.com>
85731
85732         * m4/st_mtim.m4: New file.
85733
85734 1998-07-28  Jim Meyering  <meyering@ascend.com>
85735
85736         * m4/utimes.m4: Undef stat.
85737
85738 1998-07-25  Jim Meyering  <meyering@ascend.com>
85739
85740         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
85741         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
85742
85743 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
85744
85745         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
85746         uid and gid actually remain unchanged.
85747
85748 1998-07-07  Jim Meyering  <meyering@ascend.com>
85749
85750         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
85751
85752 1998-07-04  Jim Meyering  <meyering@ascend.com>
85753
85754         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
85755         to prove that this macro can be used in packages without regex.c.
85756
85757 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
85758
85759         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
85760         is to be used.
85761
85762 1998-07-03  Jim Meyering  <meyering@ascend.com>
85763
85764         * m4/gettext.m4: Add -lintl if it's found to be necessary.
85765
85766         * m4/gettext.m4: New file -- from gettext-0.10.35.
85767         * m4/lcmessage.m4: Likewise.
85768         * m4/progtest.m4: Likewise.
85769
85770         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
85771         * m4/jm-macros.m4: Require the new macro.
85772
85773 1998-06-29  Jim Meyering  <meyering@ascend.com>
85774
85775         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
85776         for the definition of NGROUPS (used in a system header included
85777         by sys/mount.h).
85778
85779 1998-06-28  Jim Meyering  <meyering@ascend.com>
85780
85781         * m4/ls-mntd-fs.m4: New file.
85782         * m4/fstypename.m4: New file.
85783
85784         * m4/jm-macros.m4: Require the new macro.
85785         * m4/jm-glibc-io.m4: New file.
85786
85787 1998-05-19  Jim Meyering  <meyering@ascend.com>
85788
85789         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
85790         * m4/lchown.m4: New file.
85791
85792         * m4/Makefile.am.in: New file.
85793         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
85794
85795 1998-05-14  Jim Meyering  <meyering@ascend.com>
85796
85797         * m4/Makefile.am (EXTRA_DIST): Add them.
85798         * m4/jm-macros.m4: New file.
85799         * m4/utimbuf.m4: New file.
85800
85801 1998-05-12  Jim Meyering  <meyering@ascend.com>
85802
85803         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
85804
85805 1998-05-11  Jim Meyering  <meyering@ascend.com>
85806
85807         * m4/isc-posix.m4: New file.
85808
85809 1998-05-10  Jim Meyering  <meyering@ascend.com>
85810
85811         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
85812
85813 1998-05-09  Jim Meyering  <meyering@ascend.com>
85814
85815         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
85816         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
85817         with automake.
85818
85819         * m4/ssize_t.m4: New file.
85820         * m4/mktime.m4: Remove file -- the new automake has this now.
85821
85822 1998-04-26  Jim Meyering  <meyering@ascend.com>
85823
85824         * m4/assert.m4: New file.
85825         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
85826
85827 1998-04-05  Jim Meyering  <meyering@ascend.com>
85828
85829         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
85830         (jm_PREREQ): Use it here.
85831
85832 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
85833
85834         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
85835         in acconfig.h.
85836
85837 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
85838
85839         * m4/prereq.m4: New file.
85840         * m4/error.m4: New file.
85841         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
85842
85843 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
85844
85845         * m4/getline.m4: Don't set am_cv_func_working_getline before the
85846         cache-check for the same variable -- that defeated the purpose of
85847         the test; the test program was never run.  This was a problem only
85848         on systems with losing getline functions -- HP-UX 10.20 is one.
85849         Reported by Bjorn Helgaas.
85850
85851 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
85852
85853         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
85854
85855 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
85856
85857         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
85858
85859         * m4/const.m4: New file.  Use an initializer in this declaration
85860         typedef int charset[2]; const charset x;
85861         Reported by Bob Glickstein.
85862
85863 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
85864
85865         * m4/chown.m4: Fix reversed types on -1 args to chown.
85866         From Kaveh Ghazi.
85867
85868 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
85869
85870         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
85871         Add lseek and memchr.
85872
85873         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
85874         T.E.Dickey <dickey@clark.net> said that some older preprocessors
85875         have a 20-character limit on names.
85876
85877 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
85878
85879         * m4/inttypes_h.m4: New file.
85880         * m4/uintmax_t.m4: New file.
85881         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
85882
85883
85884         -----
85885
85886         Local Variables:
85887         coding: utf-8
85888         End:
85889
85890         Copyright (C) 1997-2011 Free Software Foundation, Inc.
85891
85892         Copying and distribution of this file, with or without
85893         modification, are permitted provided the copyright notice
85894         and this notice are preserved.